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

#include <personalization.hxx>

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

Public Member Functions

 SvxPersonalizationTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual ~SvxPersonalizationTabPage () override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 Apply the settings ([OK] button). More...
 
virtual void Reset (const SfxItemSet *rSet) override
 Reset to default settings ([Revert] button). More...
 
void LoadDefaultImages ()
 
- 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 *rSet)
 
- 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 (DefaultPersona, weld::Button &, void)
 Handle the default Persona selection. More...
 

Private Attributes

std::unique_ptr< weld::RadioButtonm_xNoPersona
 Just the default look, without any bitmap. More...
 
std::unique_ptr< weld::RadioButtonm_xDefaultPersona
 Use the built-in bitmap. More...
 
std::unique_ptr< weld::ToggleButtonm_vDefaultPersonaImages [MAX_DEFAULT_PERSONAS]
 Buttons to show the default persona images. More...
 
OUString m_aPersonaSettings
 Header and footer images + color to be set in the settings. More...
 
std::vector< OUString > m_vDefaultPersonaSettings
 

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 17 of file personalization.hxx.

Constructor & Destructor Documentation

◆ SvxPersonalizationTabPage()

SvxPersonalizationTabPage::SvxPersonalizationTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)

◆ ~SvxPersonalizationTabPage()

SvxPersonalizationTabPage::~SvxPersonalizationTabPage ( )
overridevirtual

Definition at line 49 of file personalization.cxx.

Member Function Documentation

◆ Create()

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

Definition at line 51 of file personalization.cxx.

References rSet.

Referenced by CreateGeneralTabPage().

◆ DECL_LINK()

SvxPersonalizationTabPage::DECL_LINK ( DefaultPersona  ,
weld::Button ,
void   
)
private

Handle the default Persona selection.

◆ FillItemSet()

bool SvxPersonalizationTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

Apply the settings ([OK] button).

Reimplemented from SfxTabPage.

Definition at line 58 of file personalization.cxx.

References comphelper::ConfigurationChanges::create(), m_aPersonaSettings, m_xNoPersona, and Application::NotifyAllWindows().

◆ LoadDefaultImages()

void SvxPersonalizationTabPage::LoadDefaultImages ( )

◆ Reset()

void SvxPersonalizationTabPage::Reset ( const SfxItemSet rSet)
overridevirtual

Reset to default settings ([Revert] button).

Reimplemented from SfxTabPage.

Definition at line 92 of file personalization.cxx.

References m_aPersonaSettings, m_xDefaultPersona, and m_xNoPersona.

Member Data Documentation

◆ m_aPersonaSettings

OUString SvxPersonalizationTabPage::m_aPersonaSettings
private

Header and footer images + color to be set in the settings.

Definition at line 24 of file personalization.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_vDefaultPersonaImages

std::unique_ptr<weld::ToggleButton> SvxPersonalizationTabPage::m_vDefaultPersonaImages[MAX_DEFAULT_PERSONAS]
private

Buttons to show the default persona images.

Definition at line 22 of file personalization.hxx.

Referenced by LoadDefaultImages(), and SvxPersonalizationTabPage().

◆ m_vDefaultPersonaSettings

std::vector<OUString> SvxPersonalizationTabPage::m_vDefaultPersonaSettings
private

Definition at line 26 of file personalization.hxx.

Referenced by LoadDefaultImages().

◆ m_xDefaultPersona

std::unique_ptr<weld::RadioButton> SvxPersonalizationTabPage::m_xDefaultPersona
private

Use the built-in bitmap.

Definition at line 21 of file personalization.hxx.

Referenced by LoadDefaultImages(), and Reset().

◆ m_xNoPersona

std::unique_ptr<weld::RadioButton> SvxPersonalizationTabPage::m_xNoPersona
private

Just the default look, without any bitmap.

Definition at line 20 of file personalization.hxx.

Referenced by FillItemSet(), and Reset().


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