update dev300-m58
[ooovba.git] / sc / source / filter / xml / xmllabri.hxx
blob6859c2e00e9833a913d6d54f72b9c9000daa47ec
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: xmllabri.hxx,v $
10 * $Revision: 1.6 $
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>
35 class ScXMLImport;
38 //___________________________________________________________________
40 class ScXMLLabelRangesContext : public SvXMLImportContext
42 private:
43 const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
44 ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
46 public:
47 ScXMLLabelRangesContext(
48 ScXMLImport& rImport,
49 USHORT nPrefix,
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(
56 USHORT nPrefix,
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
68 private:
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(); }
76 public:
77 ScXMLLabelRangeContext(
78 ScXMLImport& rImport,
79 USHORT nPrefix,
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(
86 USHORT nPrefix,
87 const ::rtl::OUString& rLocalName,
88 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList>& xAttrList
90 virtual void EndElement();
93 #endif