LibreOffice Module xmloff (master)  1
txtparai.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 #ifndef INCLUDED_XMLOFF_SOURCE_TEXT_TXTPARAI_HXX
20 #define INCLUDED_XMLOFF_SOURCE_TEXT_TXTPARAI_HXX
21 
22 
23 #include <com/sun/star/container/XIndexReplace.hpp>
24 #include <com/sun/star/uno/Reference.h>
25 #include <xmloff/xmlictxt.hxx>
26 
27 class XMLHints_Impl;
28 namespace com::sun::star {
29  namespace text { class XTextRange; }
30  namespace xml::sax { class XAttributeList; }
31 }
32 
33 #define CONV_FROM_STAR_BATS 1
34 #define CONV_FROM_STAR_MATH 2
35 #define CONV_STAR_FONT_FLAGS_VALID 4
36 
38 {
39  css::uno::Reference < css::text::XTextRange > xStart;
40  OUString sStyleName;
41  OUString m_sXmlId;
42  OUString m_sAbout;
43  OUString m_sProperty;
44  OUString m_sContent;
45  OUString m_sDatatype;
48  std::unique_ptr<XMLHints_Impl> m_xHints;
49  // Lost outline numbering in master document (#i73509#)
53  bool bHeading;
55  bool bIsRestart;
56  sal_Int16 nStartValue;
58 
59 public:
60 
61 
62  XMLParaContext( SvXMLImport& rImport,
63  sal_Int32 nElement,
64  const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
65 
66  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
67 
68  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
69  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
70 
71  virtual void SAL_CALL characters( const OUString& rChars ) override;
72 
73 };
74 
76 {
78  sal_Int16 m_Level;
80  sal_Int16 m_StartValue;
82  OUString m_ListId;
84  css::uno::Reference< css::container::XIndexReplace > m_xNumRules;
85 
86 public:
87 
88 
90  sal_Int32 nElement,
91  const css::uno::Reference< css::xml::sax::XFastAttributeList > & i_xAttrList );
92 
93  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
94 
95  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
96  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
97 
98  sal_Int16 GetLevel() const { return m_Level; }
99  const css::uno::Reference< css::container::XIndexReplace >& GetNumRules() const
100  { return m_xNumRules; }
101  const OUString& GetListId() const { return m_ListId; }
102  sal_Int16 GetStartValue() const { return m_StartValue; }
103 
104 };
105 
106 #endif
107 
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: txtparai.cxx:2082
css::uno::Reference< css::container::XIndexReplace > m_xNumRules
text:style-name
Definition: txtparai.hxx:84
OUString sStyleName
Definition: txtparai.hxx:40
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: txtparai.cxx:1710
signed char sal_Int8
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: txtparai.cxx:1990
bool mbOutlineContentVisible
Definition: txtparai.hxx:51
sal_Int16 m_StartValue
text:start-value
Definition: txtparai.hxx:80
OUString m_sAbout
Definition: txtparai.hxx:42
sal_Int8 nOutlineLevel
Definition: txtparai.hxx:47
XMLParaContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
bool bIgnoreLeadingSpace
Definition: txtparai.hxx:52
sal_uInt8 nStarFontsConvFlags
Definition: txtparai.hxx:57
OUString m_sProperty
Definition: txtparai.hxx:43
OUString m_sContent
Definition: txtparai.hxx:44
exports com.sun.star. text
std::unique_ptr< XMLHints_Impl > m_xHints
Definition: txtparai.hxx:48
bool mbOutlineLevelAttrFound
Definition: txtparai.hxx:50
virtual void SAL_CALL characters(const OUString &rChars) override
This method is called for all characters that are contained in the current element.
Definition: txtparai.cxx:2002
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: txtparai.cxx:2089
const css::uno::Reference< css::container::XIndexReplace > & GetNumRules() const
Definition: txtparai.hxx:99
bool bIsListHeader
Definition: txtparai.hxx:54
sal_Int16 m_Level
text:list-level MINUS 1
Definition: txtparai.hxx:78
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:45
OUString m_sDatatype
Definition: txtparai.hxx:45
OUString m_ListId
text:list-id
Definition: txtparai.hxx:82
unsigned char sal_uInt8
const OUString & GetListId() const
Definition: txtparai.hxx:101
sal_Int16 nStartValue
Definition: txtparai.hxx:56
sal_Int16 GetStartValue() const
Definition: txtparai.hxx:102
bool m_bHaveAbout
Definition: txtparai.hxx:46
OUString m_sXmlId
Definition: txtparai.hxx:41
sal_Int16 GetLevel() const
Definition: txtparai.hxx:98
css::uno::Reference< css::text::XTextRange > xStart
Definition: txtparai.hxx:39
XMLNumberedParaContext(SvXMLImport &i_rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &i_xAttrList)
Definition: txtparai.cxx:2012