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

#include <treeopt.hxx>

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

Public Member Functions

 OfaTreeOptionsDialog (weld::Window *pParent, const css::uno::Reference< css::frame::XFrame > &_xFrame, bool bActivateLastSelection)
 
 OfaTreeOptionsDialog (weld::Window *pParent, const OUString &rExtensionId)
 
virtual ~OfaTreeOptionsDialog () override
 
OptionsPageInfoAddTabPage (sal_uInt16 nId, const OUString &rPageName, sal_uInt16 nGroup)
 
sal_uInt16 AddGroup (const OUString &rGroupName, SfxShell *pCreateShell, SfxModule *pCreateModule, sal_uInt16 nDialogId)
 
void ActivateLastSelection ()
 
void ActivatePage (sal_uInt16 nResId)
 
void ActivatePage (const OUString &rPageURL)
 
void ApplyItemSets ()
 
void SetNeedsRestart (svtools::RestartReason eReason)
 
- Public Member Functions inherited from SfxOkDialogController
 SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog ()
 

Static Public Member Functions

static void ApplyLanguageOptions (const SfxItemSet &rSet)
 

Private Member Functions

std::unique_ptr< SfxItemSetCreateItemSet (sal_uInt16 nId)
 
void InitTreeAndHandler ()
 
void Initialize (const css::uno::Reference< css::frame::XFrame > &_xFrame)
 
void InitWidgets ()
 
void LoadExtensionOptions (const OUString &rExtensionId)
 
void InsertNodes (const VectorOfNodes &rNodeList)
 
void ApplyOptions (bool deactivate)
 
 DECL_LINK (ShowPageHdl_Impl, weld::TreeView &, void)
 
 DECL_LINK (BackHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ApplyHdl_Impl, weld::Button &, void)
 
 DECL_LINK (OKHdl_Impl, weld::Button &, void)
 
void SelectHdl_Impl ()
 
virtual short run () override
 
virtual weld::ButtonGetOKButton () const override
 
virtual const SfxItemSetGetExampleSet () const override
 

Static Private Member Functions

static void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet)
 
static OUString GetModuleIdentifier (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
static std::unique_ptr< ModuleLoadModule (const OUString &rModuleIdentifier)
 
static VectorOfNodes LoadNodes (Module *pModule, const OUString &rExtensionId)
 

Private Attributes

std::unique_ptr< weld::ButtonxOkPB
 
std::unique_ptr< weld::ButtonxApplyPB
 
std::unique_ptr< weld::ButtonxBackPB
 
std::unique_ptr< weld::TreeViewxTreeLB
 
std::unique_ptr< weld::ContainerxTabBox
 
weld::Windowm_pParent
 
std::unique_ptr< weld::TreeIterxCurrentPageEntry
 
OUString sTitle
 
bool bForgetSelection
 
bool bIsFromExtensionManager
 
bool bIsForSetDocumentLanguage
 
bool bNeedsRestart
 
svtools::RestartReason eRestartReason
 
css::uno::Reference< css::awt::XContainerWindowProvider > m_xContainerWinProvider
 

Static Private Attributes

static LastPageSaverpLastPageSaver = nullptr
 

Detailed Description

Definition at line 119 of file treeopt.hxx.

Constructor & Destructor Documentation

OfaTreeOptionsDialog::OfaTreeOptionsDialog ( weld::Window pParent,
const css::uno::Reference< css::frame::XFrame > &  _xFrame,
bool  bActivateLastSelection 
)
OfaTreeOptionsDialog::OfaTreeOptionsDialog ( weld::Window pParent,
const OUString &  rExtensionId 
)
OfaTreeOptionsDialog::~OfaTreeOptionsDialog ( )
overridevirtual

Member Function Documentation

void OfaTreeOptionsDialog::ActivateLastSelection ( )
void OfaTreeOptionsDialog::ActivatePage ( sal_uInt16  nResId)
void OfaTreeOptionsDialog::ActivatePage ( const OUString &  rPageURL)
sal_uInt16 OfaTreeOptionsDialog::AddGroup ( const OUString &  rGroupName,
SfxShell pCreateShell,
SfxModule pCreateModule,
sal_uInt16  nDialogId 
)

Definition at line 594 of file treeopt.cxx.

References sId, and xTreeLB.

Referenced by Initialize(), and lcl_insertLeaf().

OptionsPageInfo * OfaTreeOptionsDialog::AddTabPage ( sal_uInt16  nId,
const OUString &  rPageName,
sal_uInt16  nGroup 
)

Definition at line 578 of file treeopt.cxx.

References sId, and xTreeLB.

Referenced by Initialize(), and lcl_insertLeaf().

void OfaTreeOptionsDialog::ApplyItemSet ( sal_uInt16  nId,
const SfxItemSet rSet 
)
staticprivate
void OfaTreeOptionsDialog::ApplyItemSets ( )
void OfaTreeOptionsDialog::ApplyLanguageOptions ( const SfxItemSet rSet)
static
void OfaTreeOptionsDialog::ApplyOptions ( bool  deactivate)
private
std::unique_ptr< SfxItemSet > OfaTreeOptionsDialog::CreateItemSet ( sal_uInt16  nId)
private
OfaTreeOptionsDialog::DECL_LINK ( ShowPageHdl_Impl  ,
weld::TreeView ,
void   
)
private
OfaTreeOptionsDialog::DECL_LINK ( BackHdl_Impl  ,
weld::Button ,
void   
)
private
OfaTreeOptionsDialog::DECL_LINK ( ApplyHdl_Impl  ,
weld::Button ,
void   
)
private
OfaTreeOptionsDialog::DECL_LINK ( OKHdl_Impl  ,
weld::Button ,
void   
)
private
virtual const SfxItemSet* OfaTreeOptionsDialog::GetExampleSet ( ) const
inlineoverrideprivatevirtual

Implements SfxOkDialogController.

Definition at line 173 of file treeopt.hxx.

OUString OfaTreeOptionsDialog::GetModuleIdentifier ( const css::uno::Reference< css::frame::XFrame > &  xFrame)
staticprivate
virtual weld::Button& OfaTreeOptionsDialog::GetOKButton ( ) const
inlineoverrideprivatevirtual

Implements SfxOkDialogController.

Definition at line 172 of file treeopt.hxx.

References xOkPB.

void OfaTreeOptionsDialog::Initialize ( const css::uno::Reference< css::frame::XFrame > &  _xFrame)
private
void OfaTreeOptionsDialog::InitTreeAndHandler ( )
private

Definition at line 746 of file treeopt.cxx.

References HID_OFADLG_TREELISTBOX, LINK, xApplyPB, xBackPB, xOkPB, and xTreeLB.

Referenced by OfaTreeOptionsDialog().

void OfaTreeOptionsDialog::InitWidgets ( )
private
void OfaTreeOptionsDialog::InsertNodes ( const VectorOfNodes rNodeList)
private

Definition at line 1895 of file treeopt.cxx.

References lcl_insertLeaf(), and xTreeLB.

Referenced by LoadExtensionOptions().

void OfaTreeOptionsDialog::LoadExtensionOptions ( const OUString &  rExtensionId)
private

Definition at line 1620 of file treeopt.cxx.

References GetModuleIdentifier(), InsertNodes(), LoadModule(), and LoadNodes().

Referenced by OfaTreeOptionsDialog().

std::unique_ptr< Module > OfaTreeOptionsDialog::LoadModule ( const OUString &  rModuleIdentifier)
staticprivate

Definition at line 1665 of file treeopt.cxx.

References i, x, and y.

Referenced by LoadExtensionOptions().

VectorOfNodes OfaTreeOptionsDialog::LoadNodes ( Module pModule,
const OUString &  rExtensionId 
)
staticprivate

Definition at line 1729 of file treeopt.cxx.

References getGroupName(), i, isNodeActive(), Module::m_aNodeList, and sId.

Referenced by LoadExtensionOptions().

short OfaTreeOptionsDialog::run ( )
overrideprivatevirtual
void OfaTreeOptionsDialog::SelectHdl_Impl ( )
private
void OfaTreeOptionsDialog::SetNeedsRestart ( svtools::RestartReason  eReason)

Definition at line 1917 of file treeopt.cxx.

References bNeedsRestart, and eRestartReason.

Referenced by SvxJavaOptionsPage::RequestRestart().

Member Data Documentation

bool OfaTreeOptionsDialog::bForgetSelection
private

Definition at line 135 of file treeopt.hxx.

Referenced by ActivatePage(), and SelectHdl_Impl().

bool OfaTreeOptionsDialog::bIsForSetDocumentLanguage
private

Definition at line 139 of file treeopt.hxx.

Referenced by ActivatePage(), and CreateItemSet().

bool OfaTreeOptionsDialog::bIsFromExtensionManager
private
bool OfaTreeOptionsDialog::bNeedsRestart
private

Definition at line 141 of file treeopt.hxx.

Referenced by SetNeedsRestart().

svtools::RestartReason OfaTreeOptionsDialog::eRestartReason
private

Definition at line 142 of file treeopt.hxx.

Referenced by SetNeedsRestart().

weld::Window* OfaTreeOptionsDialog::m_pParent
private

Definition at line 129 of file treeopt.hxx.

css::uno::Reference< css::awt::XContainerWindowProvider > OfaTreeOptionsDialog::m_xContainerWinProvider
private

Definition at line 145 of file treeopt.hxx.

Referenced by SelectHdl_Impl().

LastPageSaver * OfaTreeOptionsDialog::pLastPageSaver = nullptr
staticprivate

Definition at line 147 of file treeopt.hxx.

Referenced by ActivateLastSelection(), ActivatePage(), and SelectHdl_Impl().

OUString OfaTreeOptionsDialog::sTitle
private

Definition at line 133 of file treeopt.hxx.

Referenced by SelectHdl_Impl().

std::unique_ptr<weld::Button> OfaTreeOptionsDialog::xApplyPB
private

Definition at line 123 of file treeopt.hxx.

Referenced by InitTreeAndHandler(), and InitWidgets().

std::unique_ptr<weld::Button> OfaTreeOptionsDialog::xBackPB
private

Definition at line 124 of file treeopt.hxx.

Referenced by InitTreeAndHandler(), and InitWidgets().

std::unique_ptr<weld::TreeIter> OfaTreeOptionsDialog::xCurrentPageEntry
private

Definition at line 131 of file treeopt.hxx.

Referenced by SelectHdl_Impl(), and ~OfaTreeOptionsDialog().

std::unique_ptr<weld::Button> OfaTreeOptionsDialog::xOkPB
private

Definition at line 122 of file treeopt.hxx.

Referenced by GetOKButton(), InitTreeAndHandler(), and InitWidgets().

std::unique_ptr<weld::Container> OfaTreeOptionsDialog::xTabBox
private

Definition at line 127 of file treeopt.hxx.

Referenced by InitWidgets(), and SelectHdl_Impl().

std::unique_ptr<weld::TreeView> OfaTreeOptionsDialog::xTreeLB
private

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