LibreOffice Module cui (master) 1
|
#include <personalization.hxx>
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 SfxItemSet & | GetItemSet () 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 SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet) |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (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::RadioButton > | m_xNoPersona |
Just the default look, without any bitmap. More... | |
std::unique_ptr< weld::RadioButton > | m_xDefaultPersona |
Use the built-in bitmap. More... | |
std::unique_ptr< weld::ToggleButton > | m_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 SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Definition at line 17 of file personalization.hxx.
SvxPersonalizationTabPage::SvxPersonalizationTabPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rSet | ||
) |
Definition at line 30 of file personalization.cxx.
References i, LINK, LoadDefaultImages(), m_vDefaultPersonaImages, MAX_DEFAULT_PERSONAS, and rSet.
|
overridevirtual |
Definition at line 49 of file personalization.cxx.
|
static |
Definition at line 51 of file personalization.cxx.
References rSet.
Referenced by CreateGeneralTabPage().
|
private |
Handle the default Persona selection.
|
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().
void SvxPersonalizationTabPage::LoadDefaultImages | ( | ) |
Definition at line 104 of file personalization.cxx.
References aName, VclPtr< class reference_type >::disposeAndClear(), Graphic::Draw(), SvStream::eof(), VclPtr< class reference_type >::get(), Graphic::GetSizePixel(), Size::Height(), GraphicFilter::ImportGraphic(), SvFileStream::IsOpen(), m_vDefaultPersonaImages, m_vDefaultPersonaSettings, m_xDefaultPersona, MAX_DEFAULT_PERSONAS, nIndex, SvStream::ReadLine(), Size::setHeight(), Size::setWidth(), and Size::Width().
Referenced by SvxPersonalizationTabPage().
|
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.
|
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().
|
private |
Buttons to show the default persona images.
Definition at line 22 of file personalization.hxx.
Referenced by LoadDefaultImages(), and SvxPersonalizationTabPage().
|
private |
Definition at line 26 of file personalization.hxx.
Referenced by LoadDefaultImages().
|
private |
Use the built-in bitmap.
Definition at line 21 of file personalization.hxx.
Referenced by LoadDefaultImages(), and Reset().
|
private |
Just the default look, without any bitmap.
Definition at line 20 of file personalization.hxx.
Referenced by FillItemSet(), and Reset().