Update ooo320-m1
[ooovba.git] / xmloff / source / text / XMLIndexAlphabeticalSourceContext.hxx
blob558ed871b0acf5304a8f31de29b8e1f885dd3900
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: XMLIndexAlphabeticalSourceContext.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_XMLINDEXALPHABETICALSOURCECONTEXT_HXX_
32 #define _XMLOFF_XMLINDEXALPHABETICALSOURCECONTEXT_HXX_
34 #include "XMLIndexSourceBaseContext.hxx"
35 #include <com/sun/star/uno/Reference.h>
36 #include <com/sun/star/lang/Locale.hpp>
39 namespace com { namespace sun { namespace star {
40 namespace xml { namespace sax { class XAttributeList; } }
41 namespace beans { class XPropertySet; }
42 } } }
43 namespace rtl { class OUString; }
46 /**
47 * Import alphabetical (keyword) index source element
49 class XMLIndexAlphabeticalSourceContext : public XMLIndexSourceBaseContext
51 const ::rtl::OUString sMainEntryCharacterStyleName;
52 const ::rtl::OUString sUseAlphabeticalSeparators;
53 const ::rtl::OUString sUseCombinedEntries;
54 const ::rtl::OUString sIsCaseSensitive;
55 const ::rtl::OUString sUseKeyAsEntry;
56 const ::rtl::OUString sUseUpperCase;
57 const ::rtl::OUString sUseDash;
58 const ::rtl::OUString sUsePP;
59 const ::rtl::OUString sIsCommaSeparated;
60 const ::rtl::OUString sSortAlgorithm;
61 const ::rtl::OUString sLocale;
63 ::com::sun::star::lang::Locale aLocale;
64 ::rtl::OUString sAlgorithm;
66 ::rtl::OUString sMainEntryStyleName;
67 sal_Bool bMainEntryStyleNameOK;
69 sal_Bool bSeparators;
70 sal_Bool bCombineEntries;
71 sal_Bool bCaseSensitive;
72 sal_Bool bEntry;
73 sal_Bool bUpperCase;
74 sal_Bool bCombineDash;
75 sal_Bool bCombinePP;
76 sal_Bool bCommaSeparated;
78 public:
80 TYPEINFO();
82 XMLIndexAlphabeticalSourceContext(
83 SvXMLImport& rImport,
84 sal_uInt16 nPrfx,
85 const ::rtl::OUString& rLocalName,
86 ::com::sun::star::uno::Reference<
87 ::com::sun::star::beans::XPropertySet> & rPropSet);
89 ~XMLIndexAlphabeticalSourceContext();
91 protected:
93 virtual void ProcessAttribute(
94 enum IndexSourceParamEnum eParam,
95 const ::rtl::OUString& rValue);
97 virtual void EndElement();
99 virtual SvXMLImportContext* CreateChildContext(
100 sal_uInt16 nPrefix,
101 const ::rtl::OUString& rLocalName,
102 const ::com::sun::star::uno::Reference<
103 ::com::sun::star::xml::sax::XAttributeList> & xAttrList );
106 #endif