LibreOffice Module xmloff (master) 1
txtstyli.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_TXTSTYLI_HXX
20#define INCLUDED_XMLOFF_TXTSTYLI_HXX
21
22#include <sal/config.h>
23
24#include <optional>
25
26#include <xmloff/dllapi.h>
27#include <xmloff/prstylei.hxx>
28
30
32{
37 OUString m_sDataStyleName; // for grid columns only
38
40
43
45
46 // Introduce import of empty list style (#i69523#)
48
50
52 std::optional<sal_Int16> m_aListLevel;
53
54protected:
55
56 virtual void SetAttribute( sal_Int32 nElement,
57 const OUString& rValue ) override;
58
59public:
60
61 XMLTextStyleContext( SvXMLImport& rImport,
62 SvXMLStylesContext& rStyles, XmlStyleFamily nFamily,
63 bool bDefaultStyle = false );
64 ~XMLTextStyleContext() override;
65
68
69 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
70 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
71
72 const OUString& GetListStyle() const { return m_sListStyleName; }
73 // XML import: reconstruction of assignment of paragraph style to outline levels (#i69629#)
74 bool IsListStyleSet() const
75 {
76 return m_bListStyleSet;
77 }
78
79 const OUString& GetMasterPageName() const { return m_sMasterPageName; }
80 bool HasMasterPageName() const { return m_bHasMasterPageName; }
81 const OUString& GetDropCapStyleName() const { return m_sDropCapTextStyleName; }
82 const OUString& GetDataStyleName() const { return m_sDataStyleName; }
83
84 virtual void CreateAndInsert( bool bOverwrite ) override;
85 virtual void Finish( bool bOverwrite ) override;
86 virtual void SetDefaults() override;
87
88 // override FillPropertySet, so we can get at the combined characters
89 virtual void FillPropertySet(
90 const css::uno::Reference< css::beans::XPropertySet > & rPropSet ) override;
91
93 { return m_bHasCombinedCharactersLetter; }
94
95 const ::std::vector< XMLPropertyState > & GetProperties_() { return GetProperties(); }
96};
97
98#endif
99
100/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Import <script:events> element.
virtual void SetDefaults() override
Definition: prstylei.cxx:232
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
Definition: prstylei.cxx:222
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: prstylei.cxx:175
::std::vector< XMLPropertyState > & GetProperties()
Definition: prstylei.hxx:79
virtual void CreateAndInsert(bool bOverwrite) override
Definition: prstylei.cxx:257
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
Definition: prstylei.cxx:57
virtual void Finish(bool bOverwrite) override
Definition: prstylei.cxx:446
bool m_bHasCombinedCharactersLetter
Definition: txtstyli.hxx:44
const OUString & GetDataStyleName() const
Definition: txtstyli.hxx:82
const ::std::vector< XMLPropertyState > & GetProperties_()
Definition: txtstyli.hxx:95
sal_Int8 m_nOutlineLevel
Definition: txtstyli.hxx:39
const OUString & GetDropCapStyleName() const
Definition: txtstyli.hxx:81
std::optional< sal_Int16 > m_aListLevel
Reads <style:style style:list-level="...">.
Definition: txtstyli.hxx:52
rtl::Reference< XMLEventsImportContext > m_xEventContext
Definition: txtstyli.hxx:49
bool HasCombinedCharactersLetter() const
Definition: txtstyli.hxx:92
bool IsListStyleSet() const
Definition: txtstyli.hxx:74
OUString m_sCategoryVal
Definition: txtstyli.hxx:34
XMLTextStyleContext(const XMLTextStyleContext &)=delete
OUString m_sMasterPageName
Definition: txtstyli.hxx:36
OUString m_sDropCapTextStyleName
Definition: txtstyli.hxx:35
bool HasMasterPageName() const
Definition: txtstyli.hxx:80
const OUString & GetMasterPageName() const
Definition: txtstyli.hxx:79
XMLTextStyleContext operator=(const XMLTextStyleContext &)=delete
OUString m_sDataStyleName
Definition: txtstyli.hxx:37
OUString m_sListStyleName
Definition: txtstyli.hxx:33
const OUString & GetListStyle() const
Definition: txtstyli.hxx:72
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29
XmlStyleFamily
Definition: families.hxx:50
signed char sal_Int8