Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / sc / source / filter / xml / xmltabi.hxx
blob2b194d172d161d74ced641a776e0fca3c89a2640
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_XMLTABI_HXX
20 #define INCLUDED_SC_SOURCE_FILTER_XML_XMLTABI_HXX
22 #include <externalrefmgr.hxx>
23 #include "importcontext.hxx"
25 #include <xmloff/xmlictxt.hxx>
26 #include <memory>
28 namespace sax_fastparser { class FastAttributeList; }
31 struct ScXMLExternalTabData
33 ScExternalRefCache::TableTypeRef mpCacheTable;
34 sal_Int32 mnRow;
35 sal_Int32 mnCol;
36 sal_uInt16 mnFileId;
38 ScXMLExternalTabData();
41 class ScXMLTableContext : public ScXMLImportContext
43 OUString sPrintRanges;
44 ::std::unique_ptr<ScXMLExternalTabData> pExternalRefInfo;
45 sal_Int32 nStartOffset;
46 bool bStartFormPage;
47 bool bPrintEntireSheet;
49 public:
51 ScXMLTableContext( ScXMLImport& rImport,
52 const rtl::Reference<sax_fastparser::FastAttributeList>& rAttrList );
54 virtual ~ScXMLTableContext() override;
56 virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix,
57 const OUString& rLocalName,
58 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttrList ) override;
60 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
61 createFastChildContext( sal_Int32 nElement,
62 const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList ) override;
64 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
67 class ScXMLTableProtectionContext : public ScXMLImportContext
69 public:
70 ScXMLTableProtectionContext( ScXMLImport& rImport,
71 const rtl::Reference<sax_fastparser::FastAttributeList>& rAttrList );
73 virtual ~ScXMLTableProtectionContext() override;
75 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
76 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
79 #endif
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */