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_XMLINDEXMARKEXPORT_HXX_
30 #define _XMLOFF_XMLINDEXMARKEXPORT_HXX_
32 #include <rtl/ustrbuf.hxx>
33 #include <com/sun/star/uno/Reference.h>
34 #include <com/sun/star/uno/Sequence.h>
37 class XMLTextParagraphExport
;
38 namespace com
{ namespace sun
{ namespace star
{
39 namespace beans
{ class XPropertySet
; }
48 * This class handles the export of index marks for table of content,
49 * alphabetical and user index.
51 * Marks for bibliography indices are internally modelled as text
52 * fields and thus handled in txtparae.cxx
54 class XMLIndexMarkExport
56 ::rtl::OUString sLevel
;
57 ::rtl::OUString sUserIndexName
;
58 ::rtl::OUString sPrimaryKey
;
59 ::rtl::OUString sSecondaryKey
;
60 ::rtl::OUString sDocumentIndexMark
;
61 ::rtl::OUString sIsStart
;
62 ::rtl::OUString sIsCollapsed
;
63 ::rtl::OUString sAlternativeText
;
64 ::rtl::OUString sTextReading
;
65 ::rtl::OUString sPrimaryKeyReading
;
66 ::rtl::OUString sSecondaryKeyReading
;
67 ::rtl::OUString sMainEntry
;
71 XMLTextParagraphExport
& rParaExport
;
74 XMLIndexMarkExport(SvXMLExport
& rExp
,
75 XMLTextParagraphExport
& rParaExp
);
77 ~XMLIndexMarkExport();
80 * export by the property set of its *text* *portion*.
82 * The text portion supplies us with the properties of the index
83 * mark itself, as well as the information whether we are at the
84 * start or end of an index mark, or whether the index mark is
88 const ::com::sun::star::uno::Reference
<
89 ::com::sun::star::beans::XPropertySet
> & rPropSet
,
90 sal_Bool bAutoStyles
);
94 /// export attributes of table-of-content index marks
95 void ExportTOCMarkAttributes(
96 const ::com::sun::star::uno::Reference
<
97 ::com::sun::star::beans::XPropertySet
> & rPropSet
);
99 /// export attributes of user index marks
100 void ExportUserIndexMarkAttributes(
101 const ::com::sun::star::uno::Reference
<
102 ::com::sun::star::beans::XPropertySet
> & rPropSet
);
104 /// export attributes of alphabetical index marks
105 void ExportAlphabeticalIndexMarkAttributes(
106 const ::com::sun::star::uno::Reference
<
107 ::com::sun::star::beans::XPropertySet
> & rPropSet
);
109 /// create a numerical ID for this index mark
110 /// (represented by its properties)
112 ::rtl::OUStringBuffer
& sBuffer
,
113 const ::com::sun::star::uno::Reference
<
114 ::com::sun::star::beans::XPropertySet
> & rPropSet
);
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */