LibreOffice Module writerfilter (master) 1
TextEffectsHandler.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 */
10
11#pragma once
12
13#include "LoggedResources.hxx"
14
15#include <com/sun/star/beans/PropertyValue.hpp>
16
17#include "PropertyIds.hxx"
18
20
21#include <memory>
22#include <optional>
23
25{
28{
29private:
30 std::optional<PropertyIds> maPropertyId;
31 OUString maElementName;
32 std::unique_ptr<oox::GrabBagStack> mpGrabBagStack;
33
34 void convertElementIdToPropertyId(sal_Int32 aElementId);
35
36public:
37 explicit TextEffectsHandler(sal_uInt32 aElementId);
38 virtual ~TextEffectsHandler() override;
39
40 const std::optional<PropertyIds>& getGrabBagPropertyId() const { return maPropertyId; }
41
42 css::beans::PropertyValue getInteropGrabBag();
43
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);
60
61 static sal_uInt8 GetTextFillSolidFillAlpha(const css::beans::PropertyValue& rValue);
62
63 // LoggedProperties
64 virtual void lcl_attribute(Id aName, Value& aValue) override;
65 virtual void lcl_sprm(Sprm& sprm) override;
66};
67}
68
69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void sprm(Sprm &sprm) override
Receives a SPRM.
An SPRM: Section, Paragraph and Run Modifier.
Class to process all text effects like glow, textOutline, ...
void convertElementIdToPropertyId(sal_Int32 aElementId)
virtual void lcl_sprm(Sprm &sprm) override
static OUString getSchemeColorValTypeString(sal_Int32 nType)
static OUString getPresetLineDashValString(sal_Int32 nType)
static OUString getPresetMaterialTypeString(sal_Int32 nType)
static OUString getNumSpacingString(sal_Int32 nType)
std::unique_ptr< oox::GrabBagStack > mpGrabBagStack
static OUString getPresetCameraTypeString(sal_Int32 nType)
static OUString getPenAlignmentString(sal_Int32 nType)
static OUString getBevelPresetTypeString(sal_Int32 nType)
static OUString getLightRigDirectionString(sal_Int32 nType)
static OUString getOnOffString(sal_Int32 nType)
static OUString getCompoundLineString(sal_Int32 nType)
static OUString getPathShadeTypeString(sal_Int32 nType)
static OUString getNumFormString(sal_Int32 nType)
static OUString getRectAlignmentString(sal_Int32 nType)
static sal_uInt8 GetTextFillSolidFillAlpha(const css::beans::PropertyValue &rValue)
static OUString getLigaturesString(sal_Int32 nType)
virtual void lcl_attribute(Id aName, Value &aValue) override
static OUString getLightRigTypeString(sal_Int32 nType)
static OUString getLineCapString(sal_Int32 nType)
const std::optional< PropertyIds > & getGrabBagPropertyId() const
sal_uInt32 Id
unsigned char sal_uInt8