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 OUString &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 OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 

Static Public Member Functions

static void ApplyLanguageOptions (const SfxItemSet &rSet)
 
static OUString getCurrentFactory_Impl (const css::uno::Reference< css::frame::XFrame > &_xFrame)
 

Private Member Functions

std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId)
 
void Initialize (const css::uno::Reference< css::frame::XFrame > &_xFrame)
 
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
 
 OfaTreeOptionsDialog (weld::Window *pParent, bool fromExtensionManager)
 

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
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 

Static Private Attributes

static LastPageSaverpLastPageSaver = nullptr
 

Detailed Description

Definition at line 118 of file treeopt.hxx.

Constructor & Destructor Documentation

◆ OfaTreeOptionsDialog() [1/3]

OfaTreeOptionsDialog::OfaTreeOptionsDialog ( weld::Window pParent,
bool  fromExtensionManager 
)
private

◆ OfaTreeOptionsDialog() [2/3]

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

◆ OfaTreeOptionsDialog() [3/3]

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

Definition at line 487 of file treeopt.cxx.

References ActivateLastSelection(), and LoadExtensionOptions().

◆ ~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 565 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 550 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

◆ getCurrentFactory_Impl()

OUString OfaTreeOptionsDialog::getCurrentFactory_Impl ( const css::uno::Reference< css::frame::XFrame > &  _xFrame)
static

Definition at line 1280 of file treeopt.cxx.

References Exception, SAL_INFO, and TOOLS_WARN_EXCEPTION.

Referenced by Initialize(), and SvxSaveTabPage::Reset().

◆ GetExampleSet()

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

Implements SfxOkDialogController.

Definition at line 174 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 173 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

◆ InsertNodes()

void OfaTreeOptionsDialog::InsertNodes ( const VectorOfNodes rNodeList)
private

Definition at line 1887 of file treeopt.cxx.

References lcl_insertLeaf(), and xTreeLB.

Referenced by LoadExtensionOptions().

◆ LoadExtensionOptions()

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

Definition at line 1614 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 1659 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 1722 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 1915 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 1909 of file treeopt.cxx.

References bNeedsRestart, and eRestartReason.

Referenced by 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

Definition at line 135 of file treeopt.hxx.

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

◆ 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().

◆ m_xFrame

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

Definition at line 145 of file treeopt.hxx.

Referenced by Initialize(), and SelectHdl_Impl().

◆ pLastPageSaver

LastPageSaver * OfaTreeOptionsDialog::pLastPageSaver = nullptr
staticprivate

Definition at line 147 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 OfaTreeOptionsDialog(), and SelectHdl_Impl().

◆ xApplyPB

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

Definition at line 122 of file treeopt.hxx.

Referenced by OfaTreeOptionsDialog().

◆ xBackPB

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

Definition at line 123 of file treeopt.hxx.

Referenced by OfaTreeOptionsDialog().

◆ 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(), and OfaTreeOptionsDialog().

◆ xTabBox

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

Definition at line 126 of file treeopt.hxx.

Referenced by OfaTreeOptionsDialog(), and SelectHdl_Impl().

◆ xTreeLB

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

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