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 #pragma once
20 
21 
22 #include <com/sun/star/container/XIndexReplace.hpp>
23 #include <com/sun/star/uno/Reference.h>
24 #include <xmloff/xmlictxt.hxx>
25 
26 class XMLHints_Impl;
27 namespace com::sun::star {
28  namespace text { class XTextRange; }
29  namespace xml::sax { class XAttributeList; }
30 }
31 
32 #define CONV_FROM_STAR_BATS 1
33 #define CONV_FROM_STAR_MATH 2
34 #define CONV_STAR_FONT_FLAGS_VALID 4
35 
37 {
38  css::uno::Reference < css::text::XTextRange > xStart;
39  OUString sStyleName;
40  OUString m_sXmlId;
41  OUString m_sAbout;
42  OUString m_sProperty;
43  OUString m_sContent;
44  OUString m_sDatatype;
47  std::unique_ptr<XMLHints_Impl> m_xHints;
48  // Lost outline numbering in master document (#i73509#)
52  bool bHeading;
54  bool bIsRestart;
55  sal_Int16 nStartValue;
57 
58 public:
59 
60 
61  XMLParaContext( SvXMLImport& rImport,
62  sal_Int32 nElement,
63  const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
64 
65  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
66 
67  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
68  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
69 
70  virtual void SAL_CALL characters( const OUString& rChars ) override;
71 
72 };
73 
75 {
77  sal_Int16 m_Level;
79  sal_Int16 m_StartValue;
81  OUString m_ListId;
83  css::uno::Reference< css::container::XIndexReplace > m_xNumRules;
84 
85 public:
86 
87 
89  sal_Int32 nElement,
90  const css::uno::Reference< css::xml::sax::XFastAttributeList > & i_xAttrList );
91 
92  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
93 
94  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
95  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
96 
97  sal_Int16 GetLevel() const { return m_Level; }
98  const css::uno::Reference< css::container::XIndexReplace >& GetNumRules() const
99  { return m_xNumRules; }
100  const OUString& GetListId() const { return m_ListId; }
101  sal_Int16 GetStartValue() const { return m_StartValue; }
102 
103 };
104 
105 /* 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:83
OUString sStyleName
Definition: txtparai.hxx:39
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:50
sal_Int16 m_StartValue
text:start-value
Definition: txtparai.hxx:79
OUString m_sAbout
Definition: txtparai.hxx:41
sal_Int8 nOutlineLevel
Definition: txtparai.hxx:46
XMLParaContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
bool bIgnoreLeadingSpace
Definition: txtparai.hxx:51
sal_uInt8 nStarFontsConvFlags
Definition: txtparai.hxx:56
OUString m_sProperty
Definition: txtparai.hxx:42
OUString m_sContent
Definition: txtparai.hxx:43
exports com.sun.star. text
std::unique_ptr< XMLHints_Impl > m_xHints
Definition: txtparai.hxx:47
bool mbOutlineLevelAttrFound
Definition: txtparai.hxx:49
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:98
bool bIsListHeader
Definition: txtparai.hxx:53
sal_Int16 m_Level
text:list-level MINUS 1
Definition: txtparai.hxx:77
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:44
OUString m_sDatatype
Definition: txtparai.hxx:44
OUString m_ListId
text:list-id
Definition: txtparai.hxx:81
unsigned char sal_uInt8
const OUString & GetListId() const
Definition: txtparai.hxx:100
sal_Int16 nStartValue
Definition: txtparai.hxx:55
sal_Int16 GetStartValue() const
Definition: txtparai.hxx:101
bool m_bHaveAbout
Definition: txtparai.hxx:45
OUString m_sXmlId
Definition: txtparai.hxx:40
sal_Int16 GetLevel() const
Definition: txtparai.hxx:97
css::uno::Reference< css::text::XTextRange > xStart
Definition: txtparai.hxx:38
XMLNumberedParaContext(SvXMLImport &i_rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &i_xAttrList)
Definition: txtparai.cxx:2012