LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvxGradientTabPage Class Reference

#include <cuitabarea.hxx>

Inheritance diagram for SvxGradientTabPage:
[legend]
Collaboration diagram for SvxGradientTabPage:
[legend]

Public Member Functions

 SvxGradientTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
 
virtual ~SvxGradientTabPage () override
 
void Construct ()
 
virtual bool FillItemSet (SfxItemSet *) override
 
virtual void Reset (const SfxItemSet *) override
 
virtual void ActivatePage (const SfxItemSet &rSet) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
void SetColorList (XColorListRef const &pColorList)
 
void SetGradientList (XGradientListRef const &pGrdLst)
 
void SetGrdChgd (ChangeType *pIn)
 
void SetColorChgd (ChangeType *pIn)
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Private Member Functions

 DECL_LINK (ClickAddHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ClickModifyHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ChangeGradientHdl, ValueSet *, void)
 
void ChangeGradientHdl_Impl ()
 
 DECL_LINK (ClickRenameHdl_Impl, SvxPresetListBox *, void)
 
 DECL_LINK (ClickDeleteHdl_Impl, SvxPresetListBox *, void)
 
 DECL_LINK (ModifiedEditHdl_Impl, weld::SpinButton &, void)
 
 DECL_LINK (ModifiedMetricHdl_Impl, weld::MetricSpinButton &, void)
 
 DECL_LINK (ModifiedColorListBoxHdl_Impl, ColorListBox &, void)
 
 DECL_LINK (ModifiedListBoxHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (ChangeAutoStepHdl_Impl, weld::Toggleable &, void)
 
 DECL_LINK (ModifiedSliderHdl_Impl, weld::Scale &, void)
 
void ModifiedHdl_Impl (void const *)
 
void SetControlState_Impl (css::awt::GradientStyle eXGS)
 
sal_Int32 SearchGradientList (std::u16string_view rGradientName)
 
basegfx::BColorStops createColorStops ()
 

Private Attributes

const SfxItemSetm_rOutAttrs
 
XColorListRef m_pColorList
 
XGradientListRef m_pGradientList
 
ChangeTypem_pnGradientListState
 
ChangeTypem_pnColorListState
 
XFillAttrSetItem m_aXFillAttr
 
SfxItemSetm_rXFSet
 
basegfx::BColorStops m_aColorStops
 
SvxXRectPreview m_aCtlPreview
 
std::unique_ptr< weld::ComboBoxm_xLbGradientType
 
std::unique_ptr< weld::Labelm_xFtCenter
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrCenterX
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrCenterY
 
std::unique_ptr< weld::Labelm_xFtAngle
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrAngle
 
std::unique_ptr< weld::Scalem_xSliderAngle
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrBorder
 
std::unique_ptr< weld::Scalem_xSliderBorder
 
std::unique_ptr< ColorListBoxm_xLbColorFrom
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrColorFrom
 
std::unique_ptr< ColorListBoxm_xLbColorTo
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrColorTo
 
std::unique_ptr< SvxPresetListBoxm_xGradientLB
 
std::unique_ptr< weld::SpinButtonm_xMtrIncrement
 
std::unique_ptr< weld::CheckButtonm_xCbIncrement
 
std::unique_ptr< weld::Buttonm_xBtnAdd
 
std::unique_ptr< weld::Buttonm_xBtnModify
 
std::unique_ptr< weld::CustomWeldm_xCtlPreview
 
std::unique_ptr< weld::CustomWeldm_xGradientLBWin
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Detailed Description

Definition at line 356 of file cuitabarea.hxx.

Constructor & Destructor Documentation

◆ SvxGradientTabPage()

SvxGradientTabPage::SvxGradientTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rInAttrs 
)

Definition at line 42 of file tpgradnt.cxx.

References DEGREE, SfxTabPage::GetDialogController(), GetItemSet(), and PERCENT().

◆ ~SvxGradientTabPage()

SvxGradientTabPage::~SvxGradientTabPage ( )
overridevirtual

Definition at line 118 of file tpgradnt.cxx.

References m_xCtlPreview, m_xGradientLB, m_xGradientLBWin, m_xLbColorFrom, and m_xLbColorTo.

Member Function Documentation

◆ ActivatePage()

void SvxGradientTabPage::ActivatePage ( const SfxItemSet rSet)
overridevirtual

◆ ChangeGradientHdl_Impl()

void SvxGradientTabPage::ChangeGradientHdl_Impl ( )
private

◆ Construct()

void SvxGradientTabPage::Construct ( )

Definition at line 127 of file tpgradnt.cxx.

References m_pGradientList, and m_xGradientLB.

◆ Create()

std::unique_ptr< SfxTabPage > SvxGradientTabPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rOutAttrs 
)
static

Definition at line 233 of file tpgradnt.cxx.

Referenced by SvxAreaTabPage::SetOptimalSize().

◆ createColorStops()

basegfx::BColorStops SvxGradientTabPage::createColorStops ( )
private

Definition at line 653 of file tpgradnt.cxx.

References m_aColorStops, m_xLbColorFrom, and m_xLbColorTo.

Referenced by FillItemSet(), and ModifiedHdl_Impl().

◆ DeactivatePage()

DeactivateRC SvxGradientTabPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 175 of file tpgradnt.cxx.

References FillItemSet().

◆ DECL_LINK() [1/11]

SvxGradientTabPage::DECL_LINK ( ChangeAutoStepHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/11]

SvxGradientTabPage::DECL_LINK ( ChangeGradientHdl  ,
ValueSet ,
void   
)
private

◆ DECL_LINK() [3/11]

SvxGradientTabPage::DECL_LINK ( ClickAddHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/11]

SvxGradientTabPage::DECL_LINK ( ClickDeleteHdl_Impl  ,
SvxPresetListBox ,
void   
)
private

◆ DECL_LINK() [5/11]

SvxGradientTabPage::DECL_LINK ( ClickModifyHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/11]

SvxGradientTabPage::DECL_LINK ( ClickRenameHdl_Impl  ,
SvxPresetListBox ,
void   
)
private

◆ DECL_LINK() [7/11]

SvxGradientTabPage::DECL_LINK ( ModifiedColorListBoxHdl_Impl  ,
ColorListBox ,
void   
)
private

◆ DECL_LINK() [8/11]

SvxGradientTabPage::DECL_LINK ( ModifiedEditHdl_Impl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_LINK() [9/11]

SvxGradientTabPage::DECL_LINK ( ModifiedListBoxHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [10/11]

SvxGradientTabPage::DECL_LINK ( ModifiedMetricHdl_Impl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [11/11]

SvxGradientTabPage::DECL_LINK ( ModifiedSliderHdl_Impl  ,
weld::Scale ,
void   
)
private

◆ FillItemSet()

bool SvxGradientTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

◆ ModifiedHdl_Impl()

void SvxGradientTabPage::ModifiedHdl_Impl ( void const *  pControl)
private

◆ Reset()

void SvxGradientTabPage::Reset ( const SfxItemSet )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 222 of file tpgradnt.cxx.

References ChangeGradientHdl_Impl(), m_pGradientList, and m_xBtnModify.

◆ SearchGradientList()

sal_Int32 SvxGradientTabPage::SearchGradientList ( std::u16string_view  rGradientName)
private

Definition at line 636 of file tpgradnt.cxx.

References i, m_pGradientList, nCount, and nPos.

Referenced by ActivatePage().

◆ SetColorChgd()

void SvxGradientTabPage::SetColorChgd ( ChangeType pIn)
inline

Definition at line 432 of file cuitabarea.hxx.

References m_pnColorListState.

◆ SetColorList()

void SvxGradientTabPage::SetColorList ( XColorListRef const &  pColorList)
inline

Definition at line 428 of file cuitabarea.hxx.

References m_pColorList.

Referenced by SvxAreaTabPage::CreatePage().

◆ SetControlState_Impl()

void SvxGradientTabPage::SetControlState_Impl ( css::awt::GradientStyle  eXGS)
private

◆ SetGradientList()

void SvxGradientTabPage::SetGradientList ( XGradientListRef const &  pGrdLst)
inline

Definition at line 429 of file cuitabarea.hxx.

References m_pGradientList.

◆ SetGrdChgd()

void SvxGradientTabPage::SetGrdChgd ( ChangeType pIn)
inline

Definition at line 431 of file cuitabarea.hxx.

References m_pnGradientListState.

Member Data Documentation

◆ m_aColorStops

basegfx::BColorStops SvxGradientTabPage::m_aColorStops
private

Definition at line 371 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), and createColorStops().

◆ m_aCtlPreview

SvxXRectPreview SvxGradientTabPage::m_aCtlPreview
private

Definition at line 373 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), and ModifiedHdl_Impl().

◆ m_aXFillAttr

XFillAttrSetItem SvxGradientTabPage::m_aXFillAttr
private

Definition at line 367 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), and ModifiedHdl_Impl().

◆ m_pColorList

XColorListRef SvxGradientTabPage::m_pColorList
private

Definition at line 361 of file cuitabarea.hxx.

Referenced by ActivatePage(), and SetColorList().

◆ m_pGradientList

XGradientListRef SvxGradientTabPage::m_pGradientList
private

◆ m_pnColorListState

ChangeType* SvxGradientTabPage::m_pnColorListState
private

Definition at line 365 of file cuitabarea.hxx.

Referenced by ActivatePage(), and SetColorChgd().

◆ m_pnGradientListState

ChangeType* SvxGradientTabPage::m_pnGradientListState
private

Definition at line 364 of file cuitabarea.hxx.

Referenced by SetGrdChgd().

◆ m_rOutAttrs

const SfxItemSet& SvxGradientTabPage::m_rOutAttrs
private

Definition at line 359 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl().

◆ m_rXFSet

SfxItemSet& SvxGradientTabPage::m_rXFSet
private

Definition at line 368 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), and ModifiedHdl_Impl().

◆ m_xBtnAdd

std::unique_ptr<weld::Button> SvxGradientTabPage::m_xBtnAdd
private

Definition at line 390 of file cuitabarea.hxx.

◆ m_xBtnModify

std::unique_ptr<weld::Button> SvxGradientTabPage::m_xBtnModify
private

Definition at line 391 of file cuitabarea.hxx.

Referenced by Reset().

◆ m_xCbIncrement

std::unique_ptr<weld::CheckButton> SvxGradientTabPage::m_xCbIncrement
private

Definition at line 389 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), FillItemSet(), and ModifiedHdl_Impl().

◆ m_xCtlPreview

std::unique_ptr<weld::CustomWeld> SvxGradientTabPage::m_xCtlPreview
private

Definition at line 392 of file cuitabarea.hxx.

Referenced by ~SvxGradientTabPage().

◆ m_xFtAngle

std::unique_ptr<weld::Label> SvxGradientTabPage::m_xFtAngle
private

Definition at line 378 of file cuitabarea.hxx.

Referenced by SetControlState_Impl().

◆ m_xFtCenter

std::unique_ptr<weld::Label> SvxGradientTabPage::m_xFtCenter
private

Definition at line 375 of file cuitabarea.hxx.

Referenced by SetControlState_Impl().

◆ m_xGradientLB

std::unique_ptr<SvxPresetListBox> SvxGradientTabPage::m_xGradientLB
private

◆ m_xGradientLBWin

std::unique_ptr<weld::CustomWeld> SvxGradientTabPage::m_xGradientLBWin
private

Definition at line 393 of file cuitabarea.hxx.

Referenced by ~SvxGradientTabPage().

◆ m_xLbColorFrom

std::unique_ptr<ColorListBox> SvxGradientTabPage::m_xLbColorFrom
private

Definition at line 383 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), createColorStops(), and ~SvxGradientTabPage().

◆ m_xLbColorTo

std::unique_ptr<ColorListBox> SvxGradientTabPage::m_xLbColorTo
private

Definition at line 385 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), createColorStops(), and ~SvxGradientTabPage().

◆ m_xLbGradientType

std::unique_ptr<weld::ComboBox> SvxGradientTabPage::m_xLbGradientType
private

Definition at line 374 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), FillItemSet(), and ModifiedHdl_Impl().

◆ m_xMtrAngle

std::unique_ptr<weld::MetricSpinButton> SvxGradientTabPage::m_xMtrAngle
private

◆ m_xMtrBorder

std::unique_ptr<weld::MetricSpinButton> SvxGradientTabPage::m_xMtrBorder
private

Definition at line 381 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), FillItemSet(), and ModifiedHdl_Impl().

◆ m_xMtrCenterX

std::unique_ptr<weld::MetricSpinButton> SvxGradientTabPage::m_xMtrCenterX
private

◆ m_xMtrCenterY

std::unique_ptr<weld::MetricSpinButton> SvxGradientTabPage::m_xMtrCenterY
private

◆ m_xMtrColorFrom

std::unique_ptr<weld::MetricSpinButton> SvxGradientTabPage::m_xMtrColorFrom
private

Definition at line 384 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), FillItemSet(), and ModifiedHdl_Impl().

◆ m_xMtrColorTo

std::unique_ptr<weld::MetricSpinButton> SvxGradientTabPage::m_xMtrColorTo
private

Definition at line 386 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), FillItemSet(), and ModifiedHdl_Impl().

◆ m_xMtrIncrement

std::unique_ptr<weld::SpinButton> SvxGradientTabPage::m_xMtrIncrement
private

Definition at line 388 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), FillItemSet(), and ModifiedHdl_Impl().

◆ m_xSliderAngle

std::unique_ptr<weld::Scale> SvxGradientTabPage::m_xSliderAngle
private

Definition at line 380 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), ModifiedHdl_Impl(), and SetControlState_Impl().

◆ m_xSliderBorder

std::unique_ptr<weld::Scale> SvxGradientTabPage::m_xSliderBorder
private

Definition at line 382 of file cuitabarea.hxx.

Referenced by ChangeGradientHdl_Impl(), and ModifiedHdl_Impl().


The documentation for this class was generated from the following files: