office-gobmx/oox/inc/drawingml/effectpropertiescontext.hxx
Tomaž Vajngerl 2a7ab2ab77 oox: add model::EffectStyle and import effect style elements of a theme
Extends the SwCoreThemeTest with effect style use-cases-

Change-Id: Ifcb96a860fcbc0aae65e8ec276e069f7f60fb950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149361
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-04-12 09:40:09 +02:00

40 lines
1.2 KiB
C++

/* -*- 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/.
*/
#pragma once
#include <oox/core/contexthandler2.hxx>
namespace model { class EffectStyle; }
namespace oox::drawingml {
struct EffectProperties;
struct Effect;
class EffectPropertiesContext final : public ::oox::core::ContextHandler2
{
public:
EffectPropertiesContext(::oox::core::ContextHandler2Helper const & rParent, EffectProperties& rEffectProperties,
model::EffectStyle* pEffectStyle = nullptr) noexcept;
virtual ~EffectPropertiesContext() override;
virtual ::oox::core::ContextHandlerRef
onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override;
private:
static void saveUnsupportedAttribs( Effect& rEffect, const AttributeList& rAttribs );
model::EffectStyle* mpEffectStyle;
EffectProperties& mrEffectProperties;
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */