/* -*- 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_SVX_SOURCE_SIDEBAR_AREA_SHADOWPROPERTYPANEL_HXX #define INCLUDED_SVX_SOURCE_SIDEBAR_AREA_SHADOWPROPERTYPANEL_HXX #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace svx { namespace sidebar { class ShadowPropertyPanel : public PanelLayout, public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface { public: virtual ~ShadowPropertyPanel(); virtual void dispose() override; static VclPtr Create( vcl::Window* pParent, const css::uno::Reference& rxFrame, SfxBindings* pBindings); virtual void DataChanged( const DataChangedEvent& rEvent) override; virtual void NotifyItemUpdate( const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem* pState, const bool bIsEnabled) override; SfxBindings* GetBindings() { return mpBindings;} void Initialize(); ShadowPropertyPanel( vcl::Window* pParent, const css::uno::Reference& rxFrame, SfxBindings* pBindings); private: VclPtr mpShowShadow; VclPtr mpShadowDistance; VclPtr mpLBShadowColor; VclPtr mpShadowAngle; VclPtr mpFTAngle; VclPtr mpFTDistance; VclPtr mpFTTransparency; VclPtr mpFTColor; VclPtr mpShadowTransSlider; VclPtr mpShadowTransMetric; ::sfx2::sidebar::ControllerItem maShadowController; ::sfx2::sidebar::ControllerItem maShadowTransController; ::sfx2::sidebar::ControllerItem maShadowColorController; ::sfx2::sidebar::ControllerItem maShadowXDistanceController; ::sfx2::sidebar::ControllerItem maShadowYDistanceController; css::uno::Reference mxFrame; SfxBindings* mpBindings; long nX,nY,nXY; void InsertDistanceValues(); void InsertAngleValues(); void SetTransparencyValue(long); void UpdateControls(); DECL_LINK_TYPED(ClickShadowHdl, Button*, void); DECL_LINK_TYPED(ModifyShadowColorHdl, ListBox&, void); DECL_LINK_TYPED(ModifyShadowTransMetricHdl, Edit&, void); DECL_LINK_TYPED(ModifyShadowDistanceHdl, Edit&, void); DECL_LINK_TYPED(ModifyShadowTransSliderHdl, Slider*, void); }; } } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */