1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XMLIndexBibliographyConfigurationContext.hxx,v $
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_XMLINDEXBIBLIOGRAPHYCONFIGURATIONCONTEXT_HXX_
32 #define _XMLOFF_XMLINDEXBIBLIOGRAPHYCONFIGURATIONCONTEXT_HXX_
34 #include <xmloff/xmlstyle.hxx>
35 #include <com/sun/star/uno/Reference.h>
36 #include <com/sun/star/uno/Sequence.h>
37 #include <com/sun/star/beans/PropertyValue.hpp>
38 #include <com/sun/star/lang/Locale.hpp>
39 #include <rtl/ustring.hxx>
44 namespace com
{ namespace sun
{ namespace star
{
45 namespace xml
{ namespace sax
{ class XAttributeList
; } }
50 * Import bibliography configuration.
52 * Little cheat: Cover all child elements in CreateChildContext.
54 class XMLIndexBibliographyConfigurationContext
: public SvXMLStyleContext
56 const ::rtl::OUString sFieldMaster_Bibliography
;
57 const ::rtl::OUString sBracketBefore
;
58 const ::rtl::OUString sBracketAfter
;
59 const ::rtl::OUString sIsNumberEntries
;
60 const ::rtl::OUString sIsSortByPosition
;
61 const ::rtl::OUString sSortKeys
;
62 const ::rtl::OUString sSortKey
;
63 const ::rtl::OUString sIsSortAscending
;
64 const ::rtl::OUString sSortAlgorithm
;
65 const ::rtl::OUString sLocale
;
67 ::rtl::OUString sSuffix
;
68 ::rtl::OUString sPrefix
;
69 ::rtl::OUString sAlgorithm
;
70 ::com::sun::star::lang::Locale aLocale
;
71 sal_Bool bNumberedEntries
;
72 sal_Bool bSortByPosition
;
74 ::std::vector
< ::com::sun::star::uno::Sequence
<
75 ::com::sun::star::beans::PropertyValue
> > aSortKeys
;
81 XMLIndexBibliographyConfigurationContext(
84 const ::rtl::OUString
& rLocalName
,
85 const ::com::sun::star::uno::Reference
<
86 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
88 ~XMLIndexBibliographyConfigurationContext();
92 virtual void StartElement(
93 const ::com::sun::star::uno::Reference
<
94 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
96 virtual void CreateAndInsert( sal_Bool bOverwrite
);
98 virtual SvXMLImportContext
*CreateChildContext(
100 const ::rtl::OUString
& rLocalName
,
101 const ::com::sun::star::uno::Reference
<
102 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
104 void ProcessAttribute(
106 const ::rtl::OUString sLocalName
,
107 const ::rtl::OUString sValue
);