merge the formfield patch from ooo-build
[ooovba.git] / xmloff / inc / XMLNumberStylesImport.hxx
blob32db560c17966aa6d7689d673c3bc3d3290c459b
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: XMLNumberStylesImport.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 ************************************************************************/
31 #ifndef _XMLOFF_NUMBERSTYLESIMPORT_HXX
32 #define _XMLOFF_NUMBERSTYLESIMPORT_HXX
34 #include <xmloff/xmlnumfi.hxx>
35 #include <com/sun/star/container/XNameAccess.hpp>
37 //////////////////////////////////////////////////////////////////////////////
38 // presentations:animations
40 struct SdXMLFixedDataStyle;
41 class SdXMLImport;
43 class SdXMLNumberFormatImportContext : public SvXMLNumFormatContext
45 private:
46 friend class SdXMLNumberFormatMemberImportContext;
48 SdXMLImport& mrImport;
50 sal_Bool mbTimeStyle;
51 sal_Bool mbAutomatic;
52 sal_uInt8 mnElements[16];
53 sal_Int16 mnIndex;
55 sal_Int32 mnKey;
57 bool compareStyle( const SdXMLFixedDataStyle* pStyle, sal_Int16& nIndex ) const;
59 protected:
60 void add( rtl::OUString& rNumberStyle, sal_Bool bLong, sal_Bool bTextual, sal_Bool bDecimal02, rtl::OUString& rText );
62 public:
63 TYPEINFO();
65 SdXMLNumberFormatImportContext( SdXMLImport& rImport,
66 sal_uInt16 nPrfx,
67 const rtl::OUString& rLocalName,
68 SvXMLNumImpData* pNewData, sal_uInt16 nNewType,
69 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
70 SvXMLStylesContext& rStyles);
71 virtual ~SdXMLNumberFormatImportContext();
73 virtual void EndElement();
75 virtual SvXMLImportContext * CreateChildContext( USHORT nPrefix, const ::rtl::OUString& rLocalName,
76 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
78 sal_Int32 GetDrawKey() const { return mnKey; }
81 #endif // _XMLOFF_NUMBERSTYLESIMPORT_HXX