LibreOffice Module writerfilter (master) 1
LatentStyleHandler.cxx
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 */
10#include "TagLogger.hxx"
11#include <ooxml/resourceids.hxx>
12
14{
15using namespace ::com::sun::star;
16
18 : LoggedProperties("LatentStyleHandler")
19{
20}
21
23
25{
26 beans::PropertyValue aValue;
27 bool bFound = true;
28 switch (nId)
29 {
30 case NS_ooxml::LN_CT_LsdException_name:
31 aValue.Name = "name";
32 break;
33 case NS_ooxml::LN_CT_LsdException_locked:
34 aValue.Name = "locked";
35 break;
36 case NS_ooxml::LN_CT_LsdException_uiPriority:
37 aValue.Name = "uiPriority";
38 break;
39 case NS_ooxml::LN_CT_LsdException_semiHidden:
40 aValue.Name = "semiHidden";
41 break;
42 case NS_ooxml::LN_CT_LsdException_unhideWhenUsed:
43 aValue.Name = "unhideWhenUsed";
44 break;
45 case NS_ooxml::LN_CT_LsdException_qFormat:
46 aValue.Name = "qFormat";
47 break;
48 default:
49 bFound = false;
50#ifdef DBG_UTIL
51 TagLogger::getInstance().element("unhandled");
52#endif
53 break;
54 }
55 if (bFound)
56 {
57 aValue.Value <<= rVal.getString();
58 m_aAttributes.push_back(aValue);
59 }
60}
61
63
64const std::vector<beans::PropertyValue>& LatentStyleHandler::getAttributes() const
65{
66 return m_aAttributes;
67}
68
69} // namespace writerfilter::dmapper
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
An SPRM: Section, Paragraph and Run Modifier.
static TagLogger & getInstance()
Definition: TagLogger.cxx:95
void element(const std::string &name)
Definition: TagLogger.cxx:102
virtual OUString getString() const =0
Returns string representation of the value.
std::vector< css::beans::PropertyValue > m_aAttributes
void lcl_attribute(Id nId, Value &rVal) override
const std::vector< css::beans::PropertyValue > & getAttributes() const
sal_Int16 nId
sal_uInt32 Id