1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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>
40 struct ScXMLExternalTabData
43 ScExternalRefCache::TableTypeRef mpCacheTable
;
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(); }
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();
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();