/* -*- 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_WRITERFILTER_SOURCE_DMAPPER_TEXTEFFECTSHANDLER_HXX #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TEXTEFFECTSHANDLER_HXX #include #include #include #include #include #include #include #include namespace writerfilter { namespace dmapper { /// Class to process all text effects like glow, textOutline, ... class TextEffectsHandler : public LoggedProperties { private: boost::optional maPropertyId; OUString maElementName; boost::scoped_ptr mpGrabBagStack; void convertElementIdToPropertyId(sal_Int32 aElementId); // LoggedProperties virtual void lcl_attribute(Id aName, Value& aValue) SAL_OVERRIDE; virtual void lcl_sprm(Sprm& sprm) SAL_OVERRIDE; public: TextEffectsHandler(sal_uInt32 aElementId); virtual ~TextEffectsHandler(); boost::optional getGrabBagPropertyId() { return maPropertyId;} css::beans::PropertyValue getInteropGrabBag(); static OUString getSchemeColorValTypeString(sal_Int32 nType); static OUString getRectAlignmentString(sal_Int32 nType); static OUString getLineCapString(sal_Int32 nType); static OUString getCompoundLineString(sal_Int32 nType); static OUString getPenAlignmentString(sal_Int32 nType); static OUString getOnOffString(sal_Int32 nType); static OUString getPathShadeTypeString(sal_Int32 nType); static OUString getPresetLineDashValString(sal_Int32 nType); static OUString getPresetCameraTypeString(sal_Int32 nType); static OUString getLightRigTypeString(sal_Int32 nType); static OUString getLightRigDirectionString(sal_Int32 nType); static OUString getBevelPresetTypeString(sal_Int32 nType); static OUString getPresetMaterialTypeString(sal_Int32 nType); static OUString getLigaturesString(sal_Int32 nType); static OUString getNumFormString(sal_Int32 nType); static OUString getNumSpacingString(sal_Int32 nType); }; typedef boost::shared_ptr TextEffectsHandlerPtr; }} #endif // INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TEXTEFFECTSHANDLER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */