merge the formfield patch from ooo-build
[ooovba.git] / sc / source / filter / xml / xmlrowi.hxx
blob17e7850ac2d5e93f31ba7b51a7cab226c0a8f19e
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: xmlrowi.hxx,v $
10 * $Revision: 1.8 $
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_XMLROWI_HXX
31 #define SC_XMLROWI_HXX
33 #include <xmloff/xmlictxt.hxx>
34 #include <xmloff/xmlimp.hxx>
36 class ScXMLImport;
38 class ScXMLTableRowContext : public SvXMLImportContext
40 rtl::OUString sStyleName;
41 rtl::OUString sVisibility;
42 sal_Int32 nRepeatedRows;
43 sal_Bool bHasCell;
45 const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
46 ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
48 public:
50 ScXMLTableRowContext( 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 ~ScXMLTableRowContext();
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 ScXMLTableRowsContext : public SvXMLImportContext
67 sal_Int32 nHeaderStartRow;
68 sal_Int32 nHeaderEndRow;
69 sal_Int32 nGroupStartRow;
70 sal_Int32 nGroupEndRow;
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 ScXMLTableRowsContext( 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 ~ScXMLTableRowsContext();
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