LibreOffice Module xmloff (master) 1
XMLIndexMarkExport.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <rtl/ustrbuf.hxx>
23#include <com/sun/star/uno/Reference.h>
24
25class SvXMLExport;
26namespace com::sun::star {
27 namespace beans { class XPropertySet; }
28}
29
30
39{
40 static constexpr OUStringLiteral gsLevel = u"Level";
41 static constexpr OUStringLiteral gsUserIndexName = u"UserIndexName";
42 static constexpr OUStringLiteral gsPrimaryKey = u"PrimaryKey";
43 static constexpr OUStringLiteral gsSecondaryKey = u"SecondaryKey";
44 static constexpr OUStringLiteral gsDocumentIndexMark = u"DocumentIndexMark";
45 static constexpr OUStringLiteral gsIsStart = u"IsStart";
46 static constexpr OUStringLiteral gsIsCollapsed = u"IsCollapsed";
47 static constexpr OUStringLiteral gsAlternativeText = u"AlternativeText";
48 static constexpr OUStringLiteral gsTextReading = u"TextReading";
49 static constexpr OUStringLiteral gsPrimaryKeyReading = u"PrimaryKeyReading";
50 static constexpr OUStringLiteral gsSecondaryKeyReading = u"SecondaryKeyReading";
51 static constexpr OUStringLiteral gsMainEntry = u"IsMainEntry";
52
54
55public:
56 explicit XMLIndexMarkExport(SvXMLExport& rExp);
57
66 void ExportIndexMark(
67 const css::uno::Reference<css::beans::XPropertySet> & rPropSet,
68 bool bAutoStyles);
69
70private:
71
74 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
75
78 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
79
82 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
83
86 static void GetID(
87 OUStringBuffer& sBuffer,
88 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
89
90};
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class handles the export of index marks for table of content, alphabetical and user index.
static constexpr OUStringLiteral gsAlternativeText
static void GetID(OUStringBuffer &sBuffer, const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
create a numerical ID for this index mark (represented by its properties)
static constexpr OUStringLiteral gsDocumentIndexMark
static constexpr OUStringLiteral gsPrimaryKeyReading
static constexpr OUStringLiteral gsSecondaryKey
static constexpr OUStringLiteral gsUserIndexName
XMLIndexMarkExport(SvXMLExport &rExp)
static constexpr OUStringLiteral gsTextReading
static constexpr OUStringLiteral gsSecondaryKeyReading
static constexpr OUStringLiteral gsIsStart
void ExportTOCMarkAttributes(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
export attributes of table-of-content index marks
void ExportIndexMark(const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bAutoStyles)
export by the property set of its text portion.
static constexpr OUStringLiteral gsIsCollapsed
static constexpr OUStringLiteral gsPrimaryKey
static constexpr OUStringLiteral gsLevel
void ExportUserIndexMarkAttributes(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
export attributes of user index marks
static constexpr OUStringLiteral gsMainEntry
void ExportAlphabeticalIndexMarkAttributes(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
export attributes of alphabetical index marks
float u
class SAL_NO_VTABLE XPropertySet