android: Update app-specific/MIME type icons
[LibreOffice.git] / writerfilter / source / dmapper / TextEffectsHandler.hxx
blob30a8435b28292cab07e3145c71f6f627289f7c5e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 */
11 #pragma once
13 #include "LoggedResources.hxx"
15 #include <com/sun/star/beans/PropertyValue.hpp>
17 #include "PropertyIds.hxx"
19 #include <oox/helper/grabbagstack.hxx>
21 #include <memory>
22 #include <optional>
24 namespace writerfilter::dmapper
26 /// Class to process all text effects like glow, textOutline, ...
27 class TextEffectsHandler : public LoggedProperties
29 private:
30 std::optional<PropertyIds> maPropertyId;
31 OUString maElementName;
32 std::unique_ptr<oox::GrabBagStack> mpGrabBagStack;
34 void convertElementIdToPropertyId(sal_Int32 aElementId);
36 public:
37 explicit TextEffectsHandler(sal_uInt32 aElementId);
38 virtual ~TextEffectsHandler() override;
40 const std::optional<PropertyIds>& getGrabBagPropertyId() const { return maPropertyId; }
42 css::beans::PropertyValue getInteropGrabBag();
44 static OUString getSchemeColorValTypeString(sal_Int32 nType);
45 static OUString getRectAlignmentString(sal_Int32 nType);
46 static OUString getLineCapString(sal_Int32 nType);
47 static OUString getCompoundLineString(sal_Int32 nType);
48 static OUString getPenAlignmentString(sal_Int32 nType);
49 static OUString getOnOffString(sal_Int32 nType);
50 static OUString getPathShadeTypeString(sal_Int32 nType);
51 static OUString getPresetLineDashValString(sal_Int32 nType);
52 static OUString getPresetCameraTypeString(sal_Int32 nType);
53 static OUString getLightRigTypeString(sal_Int32 nType);
54 static OUString getLightRigDirectionString(sal_Int32 nType);
55 static OUString getBevelPresetTypeString(sal_Int32 nType);
56 static OUString getPresetMaterialTypeString(sal_Int32 nType);
57 static OUString getLigaturesString(sal_Int32 nType);
58 static OUString getNumFormString(sal_Int32 nType);
59 static OUString getNumSpacingString(sal_Int32 nType);
61 static sal_uInt8 GetTextFillSolidFillAlpha(const css::beans::PropertyValue& rValue);
63 // LoggedProperties
64 virtual void lcl_attribute(Id aName, Value& aValue) override;
65 virtual void lcl_sprm(Sprm& sprm) override;
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */