update dev300-m58
[ooovba.git] / sc / source / filter / xml / xmltabi.hxx
blob497de7499900e66303de78329bc8a91fd2d388d2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmltabi.hxx,v $
10 * $Revision: 1.11.134.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SC_XMLTABI_HXX
31 #define SC_XMLTABI_HXX
33 #include "externalrefmgr.hxx"
35 #include <xmloff/xmlictxt.hxx>
36 #include <memory>
38 class ScXMLImport;
40 struct ScXMLExternalTabData
42 String maFileUrl;
43 ScExternalRefCache::TableTypeRef mpCacheTable;
44 sal_Int32 mnRow;
45 sal_Int32 mnCol;
46 sal_uInt16 mnFileId;
48 ScXMLExternalTabData();
51 class ScXMLTableContext : public SvXMLImportContext
53 rtl::OUString sPrintRanges;
54 ::std::auto_ptr<ScXMLExternalTabData> pExternalRefInfo;
55 sal_Int32 nStartOffset;
56 sal_Bool bStartFormPage;
57 sal_Bool bPrintEntireSheet;
59 const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
60 ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
62 public:
64 ScXMLTableContext( ScXMLImport& rImport, USHORT nPrfx,
65 const ::rtl::OUString& rLName,
66 const ::com::sun::star::uno::Reference<
67 ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
68 const sal_Bool bTempIsSubTable = sal_False,
69 const sal_Int32 nSpannedCols = 0);
71 virtual ~ScXMLTableContext();
73 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
74 const ::rtl::OUString& rLocalName,
75 const ::com::sun::star::uno::Reference<
76 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
78 virtual void EndElement();
81 // ============================================================================
83 class ScXMLTableProtectionContext : public SvXMLImportContext
85 ScXMLImport& GetScImport();
87 public:
88 ScXMLTableProtectionContext( ScXMLImport& rImport, USHORT nPrefix,
89 const ::rtl::OUString& rLName,
90 const ::com::sun::star::uno::Reference<
91 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
93 virtual ~ScXMLTableProtectionContext();
95 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
96 const ::rtl::OUString& rLocalName,
97 const ::com::sun::star::uno::Reference<
98 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
100 virtual void EndElement();
103 #endif