Update ooo320-m1
[ooovba.git] / xmloff / source / forms / formstyles.hxx
blob5ac5a89bafe1307c60c646617565ec4989b74af6
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: formstyles.hxx,v $
10 * $Revision: 1.5 $
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_FORMSTYLES_HXX
32 #define XMLOFF_FORMSTYLES_HXX
34 #include <xmloff/prstylei.hxx>
36 //.........................................................................
37 namespace xmloff
39 //.........................................................................
41 //=====================================================================
42 //= OControlStyleContext
43 //=====================================================================
44 class OControlStyleContext : public XMLPropStyleContext
46 protected:
47 ::rtl::OUString m_sNumberStyleName;
49 public:
50 OControlStyleContext(
51 SvXMLImport& _rImport,
52 const sal_uInt16 _Prefix,
53 const ::rtl::OUString& _rLocalName,
54 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& _rxAttrList,
55 SvXMLStylesContext& _rParentStyles,
56 const sal_uInt16 _nFamily,
57 const sal_Bool _bDefaultStyle
60 inline const ::rtl::OUString& getNumberStyleName( ) const { return m_sNumberStyleName; }
62 protected:
63 virtual void SetAttribute(
64 sal_uInt16 _nPrefixKey,
65 const ::rtl::OUString& _rLocalName,
66 const ::rtl::OUString& _rValue
70 //.........................................................................
71 } // namespace xmloff
72 //.........................................................................
74 #endif // XMLOFF_FORMSTYLES_HXX