Bump for 3.6-28
[LibreOffice.git] / xmloff / source / text / XMLIndexAlphabeticalSourceContext.hxx
blob11bcbfe2ba99fdc3d0d358462145cf2e194530ea
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _XMLOFF_XMLINDEXALPHABETICALSOURCECONTEXT_HXX_
30 #define _XMLOFF_XMLINDEXALPHABETICALSOURCECONTEXT_HXX_
32 #include "XMLIndexSourceBaseContext.hxx"
33 #include <com/sun/star/uno/Reference.h>
34 #include <com/sun/star/lang/Locale.hpp>
37 namespace com { namespace sun { namespace star {
38 namespace xml { namespace sax { class XAttributeList; } }
39 namespace beans { class XPropertySet; }
40 } } }
41 namespace rtl { class OUString; }
44 /**
45 * Import alphabetical (keyword) index source element
47 class XMLIndexAlphabeticalSourceContext : public XMLIndexSourceBaseContext
49 const ::rtl::OUString sMainEntryCharacterStyleName;
50 const ::rtl::OUString sUseAlphabeticalSeparators;
51 const ::rtl::OUString sUseCombinedEntries;
52 const ::rtl::OUString sIsCaseSensitive;
53 const ::rtl::OUString sUseKeyAsEntry;
54 const ::rtl::OUString sUseUpperCase;
55 const ::rtl::OUString sUseDash;
56 const ::rtl::OUString sUsePP;
57 const ::rtl::OUString sIsCommaSeparated;
58 const ::rtl::OUString sSortAlgorithm;
59 const ::rtl::OUString sLocale;
61 ::com::sun::star::lang::Locale aLocale;
62 ::rtl::OUString sAlgorithm;
64 ::rtl::OUString sMainEntryStyleName;
65 sal_Bool bMainEntryStyleNameOK;
67 sal_Bool bSeparators;
68 sal_Bool bCombineEntries;
69 sal_Bool bCaseSensitive;
70 sal_Bool bEntry;
71 sal_Bool bUpperCase;
72 sal_Bool bCombineDash;
73 sal_Bool bCombinePP;
74 sal_Bool bCommaSeparated;
76 public:
78 TYPEINFO();
80 XMLIndexAlphabeticalSourceContext(
81 SvXMLImport& rImport,
82 sal_uInt16 nPrfx,
83 const ::rtl::OUString& rLocalName,
84 ::com::sun::star::uno::Reference<
85 ::com::sun::star::beans::XPropertySet> & rPropSet);
87 ~XMLIndexAlphabeticalSourceContext();
89 protected:
91 virtual void ProcessAttribute(
92 enum IndexSourceParamEnum eParam,
93 const ::rtl::OUString& rValue);
95 virtual void EndElement();
97 virtual SvXMLImportContext* CreateChildContext(
98 sal_uInt16 nPrefix,
99 const ::rtl::OUString& rLocalName,
100 const ::com::sun::star::uno::Reference<
101 ::com::sun::star::xml::sax::XAttributeList> & xAttrList );
104 #endif
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */