Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef SC_XMLCOLI_HXX
29 : : #define SC_XMLCOLI_HXX
30 : :
31 : : #include <xmloff/xmlictxt.hxx>
32 : : #include <xmloff/xmlimp.hxx>
33 : :
34 : : class ScXMLImport;
35 : :
36 : : class ScXMLTableColContext : public SvXMLImportContext
37 : : {
38 : : sal_Int32 nColCount;
39 : : rtl::OUString sStyleName;
40 : : rtl::OUString sVisibility;
41 : : rtl::OUString sCellStyleName;
42 : :
43 : : const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
44 : 1797 : ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
45 : :
46 : : public:
47 : :
48 : : ScXMLTableColContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
49 : : const ::rtl::OUString& rLName,
50 : : const ::com::sun::star::uno::Reference<
51 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
52 : :
53 : : virtual ~ScXMLTableColContext();
54 : :
55 : : virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
56 : : const ::rtl::OUString& rLocalName,
57 : : const ::com::sun::star::uno::Reference<
58 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
59 : :
60 : : virtual void EndElement();
61 : : };
62 : :
63 : : class ScXMLTableColsContext : public SvXMLImportContext
64 : : {
65 : : sal_Int32 nHeaderStartCol;
66 : : sal_Int32 nHeaderEndCol;
67 : : sal_Int32 nGroupStartCol;
68 : : sal_Int32 nGroupEndCol;
69 : : bool bHeader;
70 : : bool bGroup;
71 : : bool bGroupDisplay;
72 : :
73 : : const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
74 : 0 : ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
75 : :
76 : : public:
77 : :
78 : : ScXMLTableColsContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
79 : : const ::rtl::OUString& rLName,
80 : : const ::com::sun::star::uno::Reference<
81 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
82 : : const bool bHeader, const bool bGroup);
83 : :
84 : : virtual ~ScXMLTableColsContext();
85 : :
86 : : virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
87 : : const ::rtl::OUString& rLocalName,
88 : : const ::com::sun::star::uno::Reference<
89 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
90 : :
91 : : virtual void EndElement();
92 : : };
93 : :
94 : : #endif
95 : :
96 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|