1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 #include "LatentStyleHandler.hxx"
10 #include <ooxml/resourceids.hxx>
12 namespace writerfilter
17 using namespace ::com::sun::star
;
19 LatentStyleHandler::LatentStyleHandler() :
20 LoggedProperties("LatentStyleHandler")
24 LatentStyleHandler::~LatentStyleHandler() = default;
26 void LatentStyleHandler::lcl_attribute(Id nId
, Value
& rVal
)
28 beans::PropertyValue aValue
;
32 case NS_ooxml::LN_CT_LsdException_name
:
35 case NS_ooxml::LN_CT_LsdException_locked
:
36 aValue
.Name
= "locked";
38 case NS_ooxml::LN_CT_LsdException_uiPriority
:
39 aValue
.Name
= "uiPriority";
41 case NS_ooxml::LN_CT_LsdException_semiHidden
:
42 aValue
.Name
= "semiHidden";
44 case NS_ooxml::LN_CT_LsdException_unhideWhenUsed
:
45 aValue
.Name
= "unhideWhenUsed";
47 case NS_ooxml::LN_CT_LsdException_qFormat
:
48 aValue
.Name
= "qFormat";
52 #ifdef DEBUG_WRITERFILTER
53 TagLogger::getInstance().element("unhandled");
59 aValue
.Value
<<= rVal
.getString();
60 m_aAttributes
.push_back(aValue
);
65 void LatentStyleHandler::lcl_sprm(Sprm
& /*rSprm*/)
69 const std::vector
<beans::PropertyValue
>& LatentStyleHandler::getAttributes() const
74 } // namespace dmapper
75 } // namespace writerfilter
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */