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, std::u16string_view 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)
 
virtual weld::ButtonGetOKButton () const=0
 
virtual const SfxItemSetGetExampleSet () const=0
 
- 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 (int nResponse)
 

Static Public Member Functions

static void ApplyLanguageOptions (const SfxItemSet &rSet)
 

Private Member Functions

std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId)
 
void InitTreeAndHandler ()
 
void Initialize (const css::uno::Reference< css::frame::XFrame > &_xFrame)
 
void InitWidgets ()
 
void LoadExtensionOptions (std::u16string_view rExtensionId)
 
void InsertNodes (const VectorOfNodes &rNodeList)
 
void ApplyOptions ()
 
 DECL_LINK (ShowPageHdl_Impl, weld::TreeView &, void)
 
 DECL_LINK (BackHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ApplyHdl_Impl, weld::Button &, void)
 
 DECL_LINK (HelpHdl_Impl, weld::Widget &, bool)
 
void ResetCurrentPageFromConfig ()
 
void SelectHdl_Impl ()
 
void InitItemSets (OptionsGroupInfo &rGroupInfo)
 
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 (std::u16string_view rModuleIdentifier)
 
static VectorOfNodes LoadNodes (Module *pModule, std::u16string_view 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 118 of file treeopt.hxx.

Constructor & Destructor Documentation

◆ OfaTreeOptionsDialog() [1/2]

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

◆ OfaTreeOptionsDialog() [2/2]

OfaTreeOptionsDialog::OfaTreeOptionsDialog ( weld::Window pParent,
std::u16string_view  rExtensionId 
)

◆ ~OfaTreeOptionsDialog()

OfaTreeOptionsDialog::~OfaTreeOptionsDialog ( )
overridevirtual

Member Function Documentation

◆ ActivateLastSelection()

void OfaTreeOptionsDialog::ActivateLastSelection ( )

◆ ActivatePage() [1/2]

void OfaTreeOptionsDialog::ActivatePage ( const OUString &  rPageURL)

◆ ActivatePage() [2/2]

void OfaTreeOptionsDialog::ActivatePage ( sal_uInt16  nResId)

◆ AddGroup()

sal_uInt16 OfaTreeOptionsDialog::AddGroup ( const OUString &  rGroupName,
SfxShell pCreateShell,
SfxModule pCreateModule,
sal_uInt16  nDialogId 
)

Definition at line 593 of file treeopt.cxx.

References sId, weld::toId(), and xTreeLB.

Referenced by Initialize(), and lcl_insertLeaf().

◆ AddTabPage()

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

Definition at line 578 of file treeopt.cxx.

References nId, sId, weld::toId(), and xTreeLB.

Referenced by Initialize(), and lcl_insertLeaf().

◆ ApplyItemSet()

void OfaTreeOptionsDialog::ApplyItemSet ( sal_uInt16  nId,
const SfxItemSet rSet 
)
staticprivate

◆ ApplyItemSets()

void OfaTreeOptionsDialog::ApplyItemSets ( )

◆ ApplyLanguageOptions()

void OfaTreeOptionsDialog::ApplyLanguageOptions ( const SfxItemSet rSet)
static

◆ ApplyOptions()

void OfaTreeOptionsDialog::ApplyOptions ( )
private

◆ CreateItemSet()

std::optional< SfxItemSet > OfaTreeOptionsDialog::CreateItemSet ( sal_uInt16  nId)
private

◆ DECL_LINK() [1/4]

OfaTreeOptionsDialog::DECL_LINK ( ApplyHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/4]

OfaTreeOptionsDialog::DECL_LINK ( BackHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/4]

OfaTreeOptionsDialog::DECL_LINK ( HelpHdl_Impl  ,
weld::Widget ,
bool   
)
private

◆ DECL_LINK() [4/4]

OfaTreeOptionsDialog::DECL_LINK ( ShowPageHdl_Impl  ,
weld::TreeView ,
void   
)
private

◆ GetExampleSet()

virtual const SfxItemSet * OfaTreeOptionsDialog::GetExampleSet ( ) const
inlineoverrideprivatevirtual

Implements SfxOkDialogController.

Definition at line 175 of file treeopt.hxx.

◆ GetModuleIdentifier()

OUString OfaTreeOptionsDialog::GetModuleIdentifier ( const css::uno::Reference< css::frame::XFrame > &  xFrame)
staticprivate

◆ GetOKButton()

virtual weld::Button & OfaTreeOptionsDialog::GetOKButton ( ) const
inlineoverrideprivatevirtual

Implements SfxOkDialogController.

Definition at line 174 of file treeopt.hxx.

References xOkPB.

◆ Initialize()

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

◆ InitItemSets()

void OfaTreeOptionsDialog::InitItemSets ( OptionsGroupInfo rGroupInfo)
private

◆ InitTreeAndHandler()

void OfaTreeOptionsDialog::InitTreeAndHandler ( )
private

Definition at line 791 of file treeopt.cxx.

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

Referenced by OfaTreeOptionsDialog().

◆ InitWidgets()

void OfaTreeOptionsDialog::InitWidgets ( )
private

◆ InsertNodes()

void OfaTreeOptionsDialog::InsertNodes ( const VectorOfNodes rNodeList)
private

Definition at line 1917 of file treeopt.cxx.

References lcl_insertLeaf(), and xTreeLB.

Referenced by LoadExtensionOptions().

◆ LoadExtensionOptions()

void OfaTreeOptionsDialog::LoadExtensionOptions ( std::u16string_view  rExtensionId)
private

Definition at line 1644 of file treeopt.cxx.

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

Referenced by OfaTreeOptionsDialog().

◆ LoadModule()

std::unique_ptr< Module > OfaTreeOptionsDialog::LoadModule ( std::u16string_view  rModuleIdentifier)
staticprivate

Definition at line 1689 of file treeopt.cxx.

References nIndex, and y.

Referenced by LoadExtensionOptions().

◆ LoadNodes()

VectorOfNodes OfaTreeOptionsDialog::LoadNodes ( Module pModule,
std::u16string_view  rExtensionId 
)
staticprivate

Definition at line 1752 of file treeopt.cxx.

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

Referenced by LoadExtensionOptions().

◆ ResetCurrentPageFromConfig()

void OfaTreeOptionsDialog::ResetCurrentPageFromConfig ( )
private

◆ run()

short OfaTreeOptionsDialog::run ( )
overrideprivatevirtual

Definition at line 1945 of file treeopt.cxx.

References bIsFromExtensionManager, and LinguMgr::GetDictionaryList().

◆ SelectHdl_Impl()

void OfaTreeOptionsDialog::SelectHdl_Impl ( )
private

◆ SetNeedsRestart()

void OfaTreeOptionsDialog::SetNeedsRestart ( svtools::RestartReason  eReason)

Definition at line 1939 of file treeopt.cxx.

References bNeedsRestart, and eRestartReason.

Referenced by SvxSaveTabPage::FillItemSet(), and SvxJavaOptionsPage::RequestRestart().

Member Data Documentation

◆ bForgetSelection

bool OfaTreeOptionsDialog::bForgetSelection
private

Definition at line 134 of file treeopt.hxx.

Referenced by ActivatePage(), and SelectHdl_Impl().

◆ bIsForSetDocumentLanguage

bool OfaTreeOptionsDialog::bIsForSetDocumentLanguage
private

Definition at line 138 of file treeopt.hxx.

Referenced by ActivatePage(), and CreateItemSet().

◆ bIsFromExtensionManager

bool OfaTreeOptionsDialog::bIsFromExtensionManager
private

◆ bNeedsRestart

bool OfaTreeOptionsDialog::bNeedsRestart
private

Definition at line 140 of file treeopt.hxx.

Referenced by SetNeedsRestart().

◆ eRestartReason

svtools::RestartReason OfaTreeOptionsDialog::eRestartReason
private

Definition at line 141 of file treeopt.hxx.

Referenced by SetNeedsRestart().

◆ m_pParent

weld::Window* OfaTreeOptionsDialog::m_pParent
private

Definition at line 128 of file treeopt.hxx.

◆ m_xContainerWinProvider

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

Definition at line 144 of file treeopt.hxx.

Referenced by SelectHdl_Impl().

◆ pLastPageSaver

LastPageSaver * OfaTreeOptionsDialog::pLastPageSaver = nullptr
staticprivate

Definition at line 146 of file treeopt.hxx.

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

◆ sTitle

OUString OfaTreeOptionsDialog::sTitle
private

Definition at line 132 of file treeopt.hxx.

Referenced by SelectHdl_Impl().

◆ xApplyPB

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

Definition at line 122 of file treeopt.hxx.

Referenced by InitTreeAndHandler(), and InitWidgets().

◆ xBackPB

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

Definition at line 123 of file treeopt.hxx.

Referenced by InitTreeAndHandler(), and InitWidgets().

◆ xCurrentPageEntry

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

Definition at line 130 of file treeopt.hxx.

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

◆ xOkPB

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

Definition at line 121 of file treeopt.hxx.

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

◆ xTabBox

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

Definition at line 126 of file treeopt.hxx.

Referenced by InitWidgets(), and SelectHdl_Impl().

◆ xTreeLB

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

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