Update ooo320-m1
[ooovba.git] / sc / source / filter / xml / xmlcoli.hxx
blobb21463a982dffd289008d6590ba1adc8eb36c4f0
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: xmlcoli.hxx,v $
10 * $Revision: 1.9 $
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_XMLCOLI_HXX
31 #define SC_XMLCOLI_HXX
33 #include <xmloff/xmlictxt.hxx>
34 #include <xmloff/xmlimp.hxx>
36 class ScXMLImport;
38 class ScXMLTableColContext : public SvXMLImportContext
40 sal_Int32 nColCount;
41 rtl::OUString sStyleName;
42 rtl::OUString sVisibility;
43 rtl::OUString sCellStyleName;
45 const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
46 ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
48 public:
50 ScXMLTableColContext( ScXMLImport& rImport, USHORT nPrfx,
51 const ::rtl::OUString& rLName,
52 const ::com::sun::star::uno::Reference<
53 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
55 virtual ~ScXMLTableColContext();
57 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
58 const ::rtl::OUString& rLocalName,
59 const ::com::sun::star::uno::Reference<
60 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
62 virtual void EndElement();
65 class ScXMLTableColsContext : public SvXMLImportContext
67 sal_Int32 nHeaderStartCol;
68 sal_Int32 nHeaderEndCol;
69 sal_Int32 nGroupStartCol;
70 sal_Int32 nGroupEndCol;
71 sal_Bool bHeader;
72 sal_Bool bGroup;
73 sal_Bool bGroupDisplay;
75 const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
76 ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
78 public:
80 ScXMLTableColsContext( ScXMLImport& rImport, USHORT nPrfx,
81 const ::rtl::OUString& rLName,
82 const ::com::sun::star::uno::Reference<
83 ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
84 const sal_Bool bHeader, const sal_Bool bGroup);
86 virtual ~ScXMLTableColsContext();
88 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
89 const ::rtl::OUString& rLocalName,
90 const ::com::sun::star::uno::Reference<
91 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
93 virtual void EndElement();
96 #endif