merge the formfield patch from ooo-build
[ooovba.git] / xmloff / source / style / PageHeaderFooterContext.hxx
blob5775db0b1380904b3013766b5c9dd361640aa251
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: PageHeaderFooterContext.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 _XMLOFF_PAGEHEADERFOOTERCONTEXT_HXX
31 #define _XMLOFF_PAGEHEADERFOOTERCONTEXT_HXX
33 #include <xmloff/xmlimp.hxx>
35 class PageHeaderFooterContext : public SvXMLImportContext
37 ::std::vector< XMLPropertyState > & rProperties;
38 sal_Int32 nStartIndex;
39 sal_Int32 nEndIndex;
40 sal_Bool bHeader;
41 const UniReference < SvXMLImportPropertyMapper > rMap;
43 public:
45 PageHeaderFooterContext( SvXMLImport& rImport, USHORT nPrfx,
46 const rtl::OUString& rLName,
47 const ::com::sun::star::uno::Reference<
48 ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
49 ::std::vector< XMLPropertyState > & rProperties,
50 const UniReference < SvXMLImportPropertyMapper > &rMap,
51 sal_Int32 nStartIndex, sal_Int32 nEndIndex,
52 const sal_Bool bHeader);
54 virtual ~PageHeaderFooterContext();
56 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
57 const rtl::OUString& rLocalName,
58 const ::com::sun::star::uno::Reference<
59 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
61 virtual void EndElement();
64 #endif