summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/TextEffectsHandler.hxx
blob: f224c63fc9dc0f58084a97cca5007b3fe55da958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 */

#ifndef INCLUDED_TEXTEFFECTSHANDLER_HXX
#define INCLUDED_TEXTEFFECTSHANDLER_HXX

#include <WriterFilterDllApi.hxx>
#include <resourcemodel/LoggedResources.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <i18nlangtag/languagetag.hxx>
#include <boost/scoped_ptr.hpp>

namespace writerfilter {
namespace dmapper
{

class GrabBagStack;

/// Class to process all text effects like glow, textOutline, ...
class TextEffectsHandler : public LoggedProperties
{
private:
    boost::scoped_ptr<GrabBagStack> mpGrabBagStack;

    // LoggedProperties
    virtual void lcl_attribute(Id aName, Value& aValue);
    virtual void lcl_sprm(Sprm& sprm);

public:
    TextEffectsHandler();
    virtual ~TextEffectsHandler();

    css::beans::PropertyValue getInteropGrabBag();
    void enableInteropGrabBag(OUString aName);
    void disableInteropGrabBag();
    bool isInteropGrabBagEnabled();

    static OUString getSchemeColorTypeString(sal_Int32 nType);
};

typedef boost::shared_ptr<TextEffectsHandler> TextEffectsHandlerPtr;

}}

#endif // INCLUDED_TEXTEFFECTSHANDLER_HXX

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */