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: xmllabri.hxx,v $
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_XMLLABRI_HXX
31 #define SC_XMLLABRI_HXX
33 #include <xmloff/xmlictxt.hxx>
38 //___________________________________________________________________
40 class ScXMLLabelRangesContext
: public SvXMLImportContext
43 const ScXMLImport
& GetScImport() const { return (const ScXMLImport
&)GetImport(); }
44 ScXMLImport
& GetScImport() { return (ScXMLImport
&)GetImport(); }
47 ScXMLLabelRangesContext(
50 const ::rtl::OUString
& rLName
,
51 const ::com::sun::star::uno::Reference
< ::com::sun::star::xml::sax::XAttributeList
>& xAttrList
53 virtual ~ScXMLLabelRangesContext();
55 virtual SvXMLImportContext
* CreateChildContext(
57 const ::rtl::OUString
& rLocalName
,
58 const ::com::sun::star::uno::Reference
< ::com::sun::star::xml::sax::XAttributeList
>& xAttrList
60 virtual void EndElement();
64 //___________________________________________________________________
66 class ScXMLLabelRangeContext
: public SvXMLImportContext
69 ::rtl::OUString sLabelRangeStr
;
70 ::rtl::OUString sDataRangeStr
;
71 sal_Bool bColumnOrientation
;
73 const ScXMLImport
& GetScImport() const { return (const ScXMLImport
&)GetImport(); }
74 ScXMLImport
& GetScImport() { return (ScXMLImport
&)GetImport(); }
77 ScXMLLabelRangeContext(
80 const ::rtl::OUString
& rLName
,
81 const ::com::sun::star::uno::Reference
< ::com::sun::star::xml::sax::XAttributeList
>& xAttrList
83 virtual ~ScXMLLabelRangeContext();
85 virtual SvXMLImportContext
* CreateChildContext(
87 const ::rtl::OUString
& rLocalName
,
88 const ::com::sun::star::uno::Reference
< ::com::sun::star::xml::sax::XAttributeList
>& xAttrList
90 virtual void EndElement();