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

#include <acccfg.hxx>

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

Public Member Functions

 SfxAcceleratorConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rItemSet)
 
virtual ~SfxAcceleratorConfigPage () override
 
virtual bool FillItemSet (SfxItemSet *) override
 
virtual void Reset (const SfxItemSet *) override
 
void Apply (const css::uno::Reference< css::ui::XAcceleratorConfiguration > &pAccMgr)
 
- 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 ()
 

Private Member Functions

 DECL_LINK (ChangeHdl, weld::Button &, void)
 
 DECL_LINK (RemoveHdl, weld::Button &, void)
 
 DECL_LINK (SelectHdl, weld::TreeView &, void)
 
 DECL_LINK (SearchUpdateHdl, weld::Entry &, void)
 
 DECL_LINK (Save, weld::Button &, void)
 
 DECL_LINK (Load, weld::Button &, void)
 
 DECL_LINK (Default, weld::Button &, void)
 
 DECL_LINK (RadioHdl, weld::Toggleable &, void)
 
 DECL_LINK (ImplUpdateDataHdl, Timer *, void)
 
 DECL_LINK (FocusOut_Impl, weld::Widget &, void)
 
 DECL_LINK (TimeOut_Impl, Timer *, void)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (LoadHdl, sfx2::FileDialogHelper *, void)
 
 DECL_LINK (SaveHdl, sfx2::FileDialogHelper *, void)
 
OUString GetLabel4Command (const OUString &rCommand)
 
int applySearchFilter (OUString const &rSearchTerm)
 
void InitAccCfg ()
 
sal_Int32 MapKeyCodeToPos (const vcl::KeyCode &rCode) const
 
void StartFileDialog (StartFileDialogType nType, const OUString &rTitle)
 
void Init (const css::uno::Reference< css::ui::XAcceleratorConfiguration > &pAccMgr)
 
void ResetConfig ()
 

Private Attributes

std::unique_ptr< sfx2::FileDialogHelperm_pFileDlg
 
OUString aLoadAccelConfigStr
 
OUString aSaveAccelConfigStr
 
OUString aFilterAllStr
 
OUString aFilterCfgStr
 
SfxStylesInfo_Impl m_aStylesInfo
 
bool m_bStylesInfoInitialized
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::ui::XAcceleratorConfiguration > m_xGlobal
 
css::uno::Reference< css::ui::XAcceleratorConfiguration > m_xModule
 
css::uno::Reference< css::ui::XAcceleratorConfiguration > m_xAct
 
css::uno::Reference< css::container::XNameAccess > m_xUICmdDescription
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
OUString m_sModuleLongName
 
OUString m_sModuleUIName
 
Timer m_aUpdateDataTimer
 
i18nutil::SearchOptions2 m_options
 
Idle m_aFillGroupIdle
 
std::unique_ptr< weld::TreeViewm_xEntriesBox
 
std::unique_ptr< weld::RadioButtonm_xOfficeButton
 
std::unique_ptr< weld::RadioButtonm_xModuleButton
 
std::unique_ptr< weld::Buttonm_xChangeButton
 
std::unique_ptr< weld::Buttonm_xRemoveButton
 
std::unique_ptr< CuiConfigGroupListBoxm_xGroupLBox
 
std::unique_ptr< CuiConfigFunctionListBoxm_xFunctionBox
 
std::unique_ptr< weld::TreeViewm_xKeyBox
 
std::unique_ptr< weld::Entrym_xSearchEdit
 
std::unique_ptr< weld::Buttonm_xLoadButton
 
std::unique_ptr< weld::Buttonm_xSaveButton
 
std::unique_ptr< weld::Buttonm_xResetButton
 

Additional Inherited Members

- 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)
 
- 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 79 of file acccfg.hxx.

Constructor & Destructor Documentation

◆ SfxAcceleratorConfigPage()

SfxAcceleratorConfigPage::SfxAcceleratorConfigPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rItemSet 
)

◆ ~SfxAcceleratorConfigPage()

SfxAcceleratorConfigPage::~SfxAcceleratorConfigPage ( )
overridevirtual

Definition at line 932 of file acccfg.cxx.

References i, m_aFillGroupIdle, m_xEntriesBox, nCount, and Task::Stop().

Member Function Documentation

◆ Apply()

void SfxAcceleratorConfigPage::Apply ( const css::uno::Reference< css::ui::XAcceleratorConfiguration > &  pAccMgr)

◆ applySearchFilter()

int SfxAcceleratorConfigPage::applySearchFilter ( OUString const &  rSearchTerm)
private

◆ DECL_LINK() [1/14]

SfxAcceleratorConfigPage::DECL_LINK ( ChangeHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/14]

SfxAcceleratorConfigPage::DECL_LINK ( Default  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/14]

SfxAcceleratorConfigPage::DECL_LINK ( FocusOut_Impl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [4/14]

SfxAcceleratorConfigPage::DECL_LINK ( ImplUpdateDataHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [5/14]

SfxAcceleratorConfigPage::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_LINK() [6/14]

SfxAcceleratorConfigPage::DECL_LINK ( Load  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [7/14]

SfxAcceleratorConfigPage::DECL_LINK ( LoadHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ DECL_LINK() [8/14]

SfxAcceleratorConfigPage::DECL_LINK ( RadioHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [9/14]

SfxAcceleratorConfigPage::DECL_LINK ( RemoveHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [10/14]

SfxAcceleratorConfigPage::DECL_LINK ( Save  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [11/14]

SfxAcceleratorConfigPage::DECL_LINK ( SaveHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ DECL_LINK() [12/14]

SfxAcceleratorConfigPage::DECL_LINK ( SearchUpdateHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [13/14]

SfxAcceleratorConfigPage::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [14/14]

SfxAcceleratorConfigPage::DECL_LINK ( TimeOut_Impl  ,
Timer ,
void   
)
private

◆ FillItemSet()

bool SfxAcceleratorConfigPage::FillItemSet ( SfxItemSet )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1487 of file acccfg.cxx.

References Apply(), m_xAct, and m_xFrame.

◆ GetLabel4Command()

OUString SfxAcceleratorConfigPage::GetLabel4Command ( const OUString &  rCommand)
private

◆ Init()

void SfxAcceleratorConfigPage::Init ( const css::uno::Reference< css::ui::XAcceleratorConfiguration > &  pAccMgr)
private

◆ InitAccCfg()

void SfxAcceleratorConfigPage::InitAccCfg ( )
private

◆ MapKeyCodeToPos()

sal_Int32 SfxAcceleratorConfigPage::MapKeyCodeToPos ( const vcl::KeyCode rCode) const
private

Definition at line 1548 of file acccfg.cxx.

References vcl::KeyCode::GetCode(), vcl::KeyCode::GetModifier(), i, TAccInfo::m_aKey, m_xEntriesBox, and nCount.

Referenced by Init().

◆ Reset()

void SfxAcceleratorConfigPage::Reset ( const SfxItemSet rSet)
overridevirtual

◆ ResetConfig()

void SfxAcceleratorConfigPage::ResetConfig ( )
private

Definition at line 1110 of file acccfg.cxx.

References m_xEntriesBox.

◆ StartFileDialog()

void SfxAcceleratorConfigPage::StartFileDialog ( StartFileDialogType  nType,
const OUString &  rTitle 
)
private

Member Data Documentation

◆ aFilterAllStr

OUString SfxAcceleratorConfigPage::aFilterAllStr
private

Definition at line 89 of file acccfg.hxx.

Referenced by StartFileDialog().

◆ aFilterCfgStr

OUString SfxAcceleratorConfigPage::aFilterCfgStr
private

Definition at line 90 of file acccfg.hxx.

Referenced by StartFileDialog().

◆ aLoadAccelConfigStr

OUString SfxAcceleratorConfigPage::aLoadAccelConfigStr
private

Definition at line 87 of file acccfg.hxx.

◆ aSaveAccelConfigStr

OUString SfxAcceleratorConfigPage::aSaveAccelConfigStr
private

Definition at line 88 of file acccfg.hxx.

◆ m_aFillGroupIdle

Idle SfxAcceleratorConfigPage::m_aFillGroupIdle
private

Definition at line 108 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage(), and ~SfxAcceleratorConfigPage().

◆ m_aStylesInfo

SfxStylesInfo_Impl SfxAcceleratorConfigPage::m_aStylesInfo
private

Definition at line 91 of file acccfg.hxx.

Referenced by GetLabel4Command(), and Init().

◆ m_aUpdateDataTimer

Timer SfxAcceleratorConfigPage::m_aUpdateDataTimer
private

Definition at line 105 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_bStylesInfoInitialized

bool SfxAcceleratorConfigPage::m_bStylesInfoInitialized
private

Definition at line 92 of file acccfg.hxx.

Referenced by Init().

◆ m_options

i18nutil::SearchOptions2 SfxAcceleratorConfigPage::m_options
private

Definition at line 106 of file acccfg.hxx.

Referenced by applySearchFilter(), and SfxAcceleratorConfigPage().

◆ m_pFileDlg

std::unique_ptr<sfx2::FileDialogHelper> SfxAcceleratorConfigPage::m_pFileDlg
private

Definition at line 85 of file acccfg.hxx.

Referenced by StartFileDialog().

◆ m_sModuleLongName

OUString SfxAcceleratorConfigPage::m_sModuleLongName
private

Definition at line 101 of file acccfg.hxx.

Referenced by GetLabel4Command(), Init(), and InitAccCfg().

◆ m_sModuleUIName

OUString SfxAcceleratorConfigPage::m_sModuleUIName
private

Definition at line 102 of file acccfg.hxx.

Referenced by InitAccCfg(), and Reset().

◆ m_xAct

css::uno::Reference<css::ui::XAcceleratorConfiguration> SfxAcceleratorConfigPage::m_xAct
private

Definition at line 97 of file acccfg.hxx.

Referenced by FillItemSet().

◆ m_xChangeButton

std::unique_ptr<weld::Button> SfxAcceleratorConfigPage::m_xChangeButton
private

Definition at line 113 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> SfxAcceleratorConfigPage::m_xContext
private

Definition at line 94 of file acccfg.hxx.

Referenced by InitAccCfg().

◆ m_xEntriesBox

std::unique_ptr<weld::TreeView> SfxAcceleratorConfigPage::m_xEntriesBox
private

◆ m_xFrame

css::uno::Reference<css::frame::XFrame> SfxAcceleratorConfigPage::m_xFrame
private

Definition at line 99 of file acccfg.hxx.

Referenced by FillItemSet(), Init(), and InitAccCfg().

◆ m_xFunctionBox

std::unique_ptr<CuiConfigFunctionListBox> SfxAcceleratorConfigPage::m_xFunctionBox
private

Definition at line 116 of file acccfg.hxx.

Referenced by applySearchFilter(), and SfxAcceleratorConfigPage().

◆ m_xGlobal

css::uno::Reference<css::ui::XAcceleratorConfiguration> SfxAcceleratorConfigPage::m_xGlobal
private

Definition at line 95 of file acccfg.hxx.

Referenced by InitAccCfg().

◆ m_xGroupLBox

std::unique_ptr<CuiConfigGroupListBox> SfxAcceleratorConfigPage::m_xGroupLBox
private

Definition at line 115 of file acccfg.hxx.

Referenced by Init(), Reset(), and SfxAcceleratorConfigPage().

◆ m_xKeyBox

std::unique_ptr<weld::TreeView> SfxAcceleratorConfigPage::m_xKeyBox
private

Definition at line 117 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_xLoadButton

std::unique_ptr<weld::Button> SfxAcceleratorConfigPage::m_xLoadButton
private

Definition at line 119 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_xModule

css::uno::Reference<css::ui::XAcceleratorConfiguration> SfxAcceleratorConfigPage::m_xModule
private

Definition at line 96 of file acccfg.hxx.

Referenced by InitAccCfg(), and Reset().

◆ m_xModuleButton

std::unique_ptr<weld::RadioButton> SfxAcceleratorConfigPage::m_xModuleButton
private

Definition at line 112 of file acccfg.hxx.

Referenced by Reset().

◆ m_xOfficeButton

std::unique_ptr<weld::RadioButton> SfxAcceleratorConfigPage::m_xOfficeButton
private

Definition at line 111 of file acccfg.hxx.

Referenced by Reset(), and SfxAcceleratorConfigPage().

◆ m_xRemoveButton

std::unique_ptr<weld::Button> SfxAcceleratorConfigPage::m_xRemoveButton
private

Definition at line 114 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_xResetButton

std::unique_ptr<weld::Button> SfxAcceleratorConfigPage::m_xResetButton
private

Definition at line 121 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_xSaveButton

std::unique_ptr<weld::Button> SfxAcceleratorConfigPage::m_xSaveButton
private

Definition at line 120 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_xSearchEdit

std::unique_ptr<weld::Entry> SfxAcceleratorConfigPage::m_xSearchEdit
private

Definition at line 118 of file acccfg.hxx.

Referenced by SfxAcceleratorConfigPage().

◆ m_xUICmdDescription

css::uno::Reference<css::container::XNameAccess> SfxAcceleratorConfigPage::m_xUICmdDescription
private

Definition at line 98 of file acccfg.hxx.

Referenced by GetLabel4Command(), and InitAccCfg().


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