LibreOffice Module cui (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
SvxConfigPage Class Referenceabstract

#include <cfg.hxx>

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

Public Member Functions

virtual ~SvxConfigPage () override
 
SaveInDataGetSaveInData ()
 
int AddFunction (int nTarget, bool bAllowDuplicates)
 
virtual void MoveEntry (bool bMoveUp)
 
bool MoveEntryData (int SourceEntry, int nTargetEntry)
 
bool FillItemSet (SfxItemSet *) override
 
void Reset (const SfxItemSet *) override
 
virtual void DeleteSelectedContent ()=0
 
virtual void DeleteSelectedTopLevel ()=0
 
SvxConfigEntryGetTopLevelSelection ()
 
OUString GetScriptURL () const
 
OUString GetSelectedDisplayName () const
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
virtual void dispose () override
 
const SfxItemSetGetItemSet () const
 
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
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static bool CanConfig (const OUString &rModuleId)
 
static OUString GetFrameWithDefaultAndIdentify (css::uno::Reference< css::frame::XFrame > &_inout_rxFrame)
 identifies the module in the given frame. More...
 
- 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

 SvxConfigPage (TabPageParent, const SfxItemSet &)
 
 DECL_LINK (MoveHdl, weld::Button &, void)
 
 DECL_LINK (SelectFunctionHdl, weld::TreeView &, void)
 
 DECL_LINK (FunctionDoubleClickHdl, weld::TreeView &, void)
 
 DECL_LINK (SelectSaveInLocation, weld::ComboBox &, void)
 
 DECL_LINK (SelectElementHdl, weld::ComboBox &, void)
 
 DECL_LINK (ImplUpdateDataHdl, Timer *, void)
 
 DECL_LINK (FocusOut_Impl, weld::Widget &, void)
 
virtual SaveInDataCreateSaveInData (const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig)=0
 
virtual void Init ()=0
 
virtual void UpdateButtonStates ()=0
 
virtual short QueryReset ()=0
 
virtual void SelectElement ()=0
 
int InsertEntry (SvxConfigEntry *pNewEntryData, int nTarget, bool bFront=false)
 
void AddSubMenusToUI (const OUString &rBaseTitle, SvxConfigEntry const *pParentData)
 
void InsertEntryIntoUI (SvxConfigEntry *pNewEntryData, int nPos, int nStartCol)
 
void InsertEntryIntoNotebookbarTabUI (const OUString &sClassId, const OUString &sUIItemId, const OUString &sUIItemCommand, int nPos, int nStartCol)
 
SvxEntriesFindParentForChild (SvxEntries *pParentEntries, SvxConfigEntry *pChildData)
 
void ReloadTopLevelListBox (SvxConfigEntry const *pSelection=nullptr)
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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
 

Protected Attributes

OUString m_aURLToSelect
 the ResourceURL to select when opening the dialog More...
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
std::unique_ptr< CommandCategoryListBoxm_xCommandCategoryListBox
 
std::unique_ptr< CuiConfigFunctionListBoxm_xFunctions
 
std::unique_ptr< weld::Labelm_xCategoryLabel
 
std::unique_ptr< weld::ComboBoxm_xCategoryListBox
 
std::unique_ptr< weld::Labelm_xDescriptionFieldLb
 
std::unique_ptr< weld::TextViewm_xDescriptionField
 
std::unique_ptr< weld::Labelm_xLeftFunctionLabel
 
std::unique_ptr< weld::Entrym_xSearchEdit
 
std::unique_ptr< weld::Labelm_xSearchLabel
 
std::unique_ptr< weld::Labelm_xCustomizeLabel
 
std::unique_ptr< weld::ComboBoxm_xTopLevelListBox
 
std::unique_ptr< weld::MenuButtonm_xGearBtn
 
std::unique_ptr< SvxMenuEntriesListBoxm_xContentsListBox
 
std::unique_ptr< weld::Buttonm_xMoveUpButton
 
std::unique_ptr< weld::Buttonm_xMoveDownButton
 
std::unique_ptr< weld::ComboBoxm_xSaveInListBox
 
std::unique_ptr< weld::MenuButtonm_xInsertBtn
 
std::unique_ptr< weld::MenuButtonm_xModifyBtn
 
std::unique_ptr< weld::Buttonm_xResetBtn
 
std::unique_ptr< weld::Buttonm_xAddCommandButton
 
std::unique_ptr< weld::Buttonm_xRemoveCommandButton
 
- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Private Member Functions

 DECL_LINK (SearchUpdateHdl, weld::Entry &, void)
 

Private Attributes

Timer m_aUpdateDataTimer
 
bool bInitialised
 
SaveInDatapCurrentSaveInData
 

Detailed Description

Definition at line 353 of file cfg.hxx.

Constructor & Destructor Documentation

SvxConfigPage::SvxConfigPage ( TabPageParent  pParent,
const SfxItemSet rSet 
)
protected
SvxConfigPage::~SvxConfigPage ( )
overridevirtual

Definition at line 1020 of file cfg.cxx.

Member Function Documentation

int SvxConfigPage::AddFunction ( int  nTarget,
bool  bAllowDuplicates 
)
void SvxConfigPage::AddSubMenusToUI ( const OUString &  rBaseTitle,
SvxConfigEntry const *  pParentData 
)
protected
bool SvxConfigPage::CanConfig ( const OUString &  rModuleId)
static

Definition at line 159 of file cfg.cxx.

Referenced by SvxEventConfigPage::ImplInitDocument(), and Reset().

virtual SaveInData* SvxConfigPage::CreateSaveInData ( const css::uno::Reference< css::ui::XUIConfigurationManager > &  ,
const css::uno::Reference< css::ui::XUIConfigurationManager > &  ,
const OUString &  aModuleId,
bool  docConfig 
)
protectedpure virtual
SvxConfigPage::DECL_LINK ( SearchUpdateHdl  ,
weld::Entry ,
void   
)
private
SvxConfigPage::DECL_LINK ( MoveHdl  ,
weld::Button ,
void   
)
protected
SvxConfigPage::DECL_LINK ( SelectFunctionHdl  ,
weld::TreeView ,
void   
)
protected
SvxConfigPage::DECL_LINK ( FunctionDoubleClickHdl  ,
weld::TreeView ,
void   
)
protected
SvxConfigPage::DECL_LINK ( SelectSaveInLocation  ,
weld::ComboBox ,
void   
)
protected
SvxConfigPage::DECL_LINK ( SelectElementHdl  ,
weld::ComboBox ,
void   
)
protected
SvxConfigPage::DECL_LINK ( ImplUpdateDataHdl  ,
Timer ,
void   
)
protected
SvxConfigPage::DECL_LINK ( FocusOut_Impl  ,
weld::Widget ,
void   
)
protected
virtual void SvxConfigPage::DeleteSelectedContent ( )
pure virtual
virtual void SvxConfigPage::DeleteSelectedTopLevel ( )
pure virtual
bool SvxConfigPage::FillItemSet ( SfxItemSet )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1313 of file cfg.cxx.

References SaveInData::Apply(), i, m_xSaveInListBox, notebookbarTabScope, and result.

SvxEntries * SvxConfigPage::FindParentForChild ( SvxEntries pParentEntries,
SvxConfigEntry pChildData 
)
protected

Definition at line 1384 of file cfg.cxx.

References result.

Referenced by SvxMenuConfigPage::DeleteSelectedTopLevel().

OUString SvxConfigPage::GetFrameWithDefaultAndIdentify ( css::uno::Reference< css::frame::XFrame > &  _inout_rxFrame)
static

identifies the module in the given frame.

If the frame is <NULL>, a default frame will be determined beforehand.

If the given frame is <NULL>, a default frame will be used: The method the active frame of the desktop, then the current frame. If both are <NULL>, the SfxViewFrame::Current's XFrame is used. If this is <NULL>, too, an empty string is returned.

If the given frame is not <NULL>, or a default frame could be successfully determined, then the ModuleManager is asked for the module ID of the component in the frame.

Definition at line 1242 of file cfg.cxx.

References SfxViewFrame::Current(), DBG_UNHANDLED_EXCEPTION, SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), comphelper::getProcessComponentContext(), and SAL_WARN.

Referenced by SvxEventConfigPage::ImplInitDocument(), Reset(), and SvxConfigDialog::SetFrame().

SaveInData* SvxConfigPage::GetSaveInData ( )
inline
OUString SvxConfigPage::GetScriptURL ( ) const
OUString SvxConfigPage::GetSelectedDisplayName ( ) const

Definition at line 1308 of file cfg.cxx.

References m_xFunctions.

Referenced by AddFunction().

SvxConfigEntry* SvxConfigPage::GetTopLevelSelection ( )
inline
virtual void SvxConfigPage::Init ( )
protectedpure virtual
int SvxConfigPage::InsertEntry ( SvxConfigEntry pNewEntryData,
int  nTarget,
bool  bFront = false 
)
protected
void SvxConfigPage::InsertEntryIntoNotebookbarTabUI ( const OUString &  sClassId,
const OUString &  sUIItemId,
const OUString &  sUIItemCommand,
int  nPos,
int  nStartCol 
)
protected
void SvxConfigPage::InsertEntryIntoUI ( SvxConfigEntry pNewEntryData,
int  nPos,
int  nStartCol 
)
protected
void SvxConfigPage::MoveEntry ( bool  bMoveUp)
virtual
bool SvxConfigPage::MoveEntryData ( int  SourceEntry,
int  nTargetEntry 
)
virtual short SvxConfigPage::QueryReset ( )
protectedpure virtual
void SvxConfigPage::ReloadTopLevelListBox ( SvxConfigEntry const *  pSelection = nullptr)
protected
void SvxConfigPage::Reset ( const SfxItemSet )
overridevirtual
virtual void SvxConfigPage::SelectElement ( )
protectedpure virtual
virtual void SvxConfigPage::UpdateButtonStates ( )
protectedpure virtual

Member Data Documentation

bool SvxConfigPage::bInitialised
private

Definition at line 358 of file cfg.hxx.

Referenced by Reset().

Timer SvxConfigPage::m_aUpdateDataTimer
private

Definition at line 357 of file cfg.hxx.

Referenced by SvxConfigPage().

OUString SvxConfigPage::m_aURLToSelect
protected

the ResourceURL to select when opening the dialog

Definition at line 366 of file cfg.hxx.

Referenced by SvxToolbarConfigPage::Init(), Reset(), and SvxToolbarConfigPage::SvxToolbarConfigPage().

std::unique_ptr<weld::Button> SvxConfigPage::m_xAddCommandButton
protected
std::unique_ptr<weld::Label> SvxConfigPage::m_xCategoryLabel
protected

Definition at line 375 of file cfg.hxx.

Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().

std::unique_ptr<weld::ComboBox> SvxConfigPage::m_xCategoryListBox
protected

Definition at line 376 of file cfg.hxx.

Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().

std::unique_ptr<CommandCategoryListBox> SvxConfigPage::m_xCommandCategoryListBox
protected
std::unique_ptr<SvxMenuEntriesListBox> SvxConfigPage::m_xContentsListBox
protected
std::unique_ptr<weld::Label> SvxConfigPage::m_xCustomizeLabel
protected

Definition at line 386 of file cfg.hxx.

Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().

std::unique_ptr<weld::TextView> SvxConfigPage::m_xDescriptionField
protected
std::unique_ptr<weld::Label> SvxConfigPage::m_xDescriptionFieldLb
protected

Definition at line 377 of file cfg.hxx.

Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().

css::uno::Reference< css::frame::XFrame > SvxConfigPage::m_xFrame
protected

Definition at line 368 of file cfg.hxx.

Referenced by AddFunction(), SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), and Reset().

std::unique_ptr<CuiConfigFunctionListBox> SvxConfigPage::m_xFunctions
protected
std::unique_ptr<weld::MenuButton> SvxConfigPage::m_xGearBtn
protected
std::unique_ptr<weld::MenuButton> SvxConfigPage::m_xInsertBtn
protected
std::unique_ptr<weld::Label> SvxConfigPage::m_xLeftFunctionLabel
protected

Definition at line 379 of file cfg.hxx.

Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().

std::unique_ptr<weld::MenuButton> SvxConfigPage::m_xModifyBtn
protected
std::unique_ptr<weld::Button> SvxConfigPage::m_xMoveDownButton
protected
std::unique_ptr<weld::Button> SvxConfigPage::m_xMoveUpButton
protected
std::unique_ptr<weld::Button> SvxConfigPage::m_xRemoveCommandButton
protected
std::unique_ptr<weld::Button> SvxConfigPage::m_xResetBtn
protected
std::unique_ptr<weld::ComboBox> SvxConfigPage::m_xSaveInListBox
protected
std::unique_ptr<weld::Entry> SvxConfigPage::m_xSearchEdit
protected

Definition at line 380 of file cfg.hxx.

Referenced by SvxConfigPage(), and SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().

std::unique_ptr<weld::Label> SvxConfigPage::m_xSearchLabel
protected

Definition at line 381 of file cfg.hxx.

Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().

std::unique_ptr<weld::ComboBox> SvxConfigPage::m_xTopLevelListBox
protected
SaveInData* SvxConfigPage::pCurrentSaveInData
private

Definition at line 359 of file cfg.hxx.

Referenced by AddFunction(), GetSaveInData(), and Reset().


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