bump product version to 5.0.4.1
[LibreOffice.git] / xmloff / source / text / XMLIndexAlphabeticalSourceContext.hxx
blob44daad7aa1a28bac247c6e7f01c985da634a6ce2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLOFF_SOURCE_TEXT_XMLINDEXALPHABETICALSOURCECONTEXT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_TEXT_XMLINDEXALPHABETICALSOURCECONTEXT_HXX
23 #include "XMLIndexSourceBaseContext.hxx"
24 #include <xmloff/languagetagodf.hxx>
25 #include <com/sun/star/uno/Reference.h>
26 #include <com/sun/star/lang/Locale.hpp>
29 namespace com { namespace sun { namespace star {
30 namespace xml { namespace sax { class XAttributeList; } }
31 namespace beans { class XPropertySet; }
32 } } }
35 /**
36 * Import alphabetical (keyword) index source element
38 class XMLIndexAlphabeticalSourceContext : public XMLIndexSourceBaseContext
40 const OUString sMainEntryCharacterStyleName;
41 const OUString sUseAlphabeticalSeparators;
42 const OUString sUseCombinedEntries;
43 const OUString sIsCaseSensitive;
44 const OUString sUseKeyAsEntry;
45 const OUString sUseUpperCase;
46 const OUString sUseDash;
47 const OUString sUsePP;
48 const OUString sIsCommaSeparated;
49 const OUString sSortAlgorithm;
50 const OUString sLocale;
52 LanguageTagODF maLanguageTagODF;
53 OUString sAlgorithm;
55 OUString sMainEntryStyleName;
56 bool bMainEntryStyleNameOK;
58 bool bSeparators;
59 bool bCombineEntries;
60 bool bCaseSensitive;
61 bool bEntry;
62 bool bUpperCase;
63 bool bCombineDash;
64 bool bCombinePP;
65 bool bCommaSeparated;
67 public:
69 TYPEINFO_OVERRIDE();
71 XMLIndexAlphabeticalSourceContext(
72 SvXMLImport& rImport,
73 sal_uInt16 nPrfx,
74 const OUString& rLocalName,
75 ::com::sun::star::uno::Reference<
76 ::com::sun::star::beans::XPropertySet> & rPropSet);
78 virtual ~XMLIndexAlphabeticalSourceContext();
80 protected:
82 virtual void ProcessAttribute(
83 enum IndexSourceParamEnum eParam,
84 const OUString& rValue) SAL_OVERRIDE;
86 virtual void EndElement() SAL_OVERRIDE;
88 virtual SvXMLImportContext* CreateChildContext(
89 sal_uInt16 nPrefix,
90 const OUString& rLocalName,
91 const ::com::sun::star::uno::Reference<
92 ::com::sun::star::xml::sax::XAttributeList> & xAttrList ) SAL_OVERRIDE;
95 #endif
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */