LibreOffice Module cui (master) 1
|
#include <treeopt.hxx>
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 |
OptionsPageInfo * | AddTabPage (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::Button & | GetOKButton () const=0 |
virtual const SfxItemSet * | GetExampleSet () 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< SfxItemSet > | CreateItemSet (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::Button & | GetOKButton () const override |
virtual const SfxItemSet * | GetExampleSet () 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< Module > | LoadModule (std::u16string_view rModuleIdentifier) |
static VectorOfNodes | LoadNodes (Module *pModule, std::u16string_view rExtensionId) |
Private Attributes | |
std::unique_ptr< weld::Button > | xOkPB |
std::unique_ptr< weld::Button > | xApplyPB |
std::unique_ptr< weld::Button > | xBackPB |
std::unique_ptr< weld::TreeView > | xTreeLB |
std::unique_ptr< weld::Container > | xTabBox |
weld::Window * | m_pParent |
std::unique_ptr< weld::TreeIter > | xCurrentPageEntry |
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 LastPageSaver * | pLastPageSaver = nullptr |
Definition at line 118 of file treeopt.hxx.
|
private |
Definition at line 442 of file treeopt.cxx.
References weld::GetMinimumEditHeight(), Size::Height(), HID_OFADLG_TREELISTBOX, LINK, m_xDialog, RESTART_REASON_NONE, Size::setHeight(), sTitle, Size::Width(), xApplyPB, xBackPB, xOkPB, xTabBox, and xTreeLB.
OfaTreeOptionsDialog::OfaTreeOptionsDialog | ( | weld::Window * | pParent, |
const css::uno::Reference< css::frame::XFrame > & | _xFrame, | ||
bool | bActivateLastSelection | ||
) |
OfaTreeOptionsDialog::OfaTreeOptionsDialog | ( | weld::Window * | pParent, |
std::u16string_view | rExtensionId | ||
) |
Definition at line 487 of file treeopt.cxx.
References ActivateLastSelection(), and LoadExtensionOptions().
|
overridevirtual |
Definition at line 494 of file treeopt.cxx.
References deleteGroupNames(), LinguMgr::GetDictionaryList(), OptionsPageInfo::m_nPageId, OptionsPageInfo::m_xExtPage, OptionsPageInfo::m_xPage, RID_SFXPAGE_LINGU, linguistic::SaveDictionaries(), SetViewOptUserItem(), xCurrentPageEntry, and xTreeLB.
void OfaTreeOptionsDialog::ActivateLastSelection | ( | ) |
Definition at line 793 of file treeopt.cxx.
References bIsFromExtensionManager, comphelper::getExpandedUri(), comphelper::getProcessComponentContext(), INetURLObject::GetProtocol(), LastPageSaver::m_nLastPageId, OptionsPageInfo::m_nPageId, LastPageSaver::m_sLastPageURL_ExtMgr, LastPageSaver::m_sLastPageURL_Tools, OptionsPageInfo::m_sPageURL, pLastPageSaver, SelectHdl_Impl(), and xTreeLB.
Referenced by ActivatePage(), and OfaTreeOptionsDialog().
void OfaTreeOptionsDialog::ActivatePage | ( | const OUString & | rPageURL | ) |
Definition at line 782 of file treeopt.cxx.
References ActivateLastSelection(), bForgetSelection, bIsFromExtensionManager, DBG_ASSERT, LastPageSaver::m_nLastPageId, LastPageSaver::m_sLastPageURL_Tools, and pLastPageSaver.
void OfaTreeOptionsDialog::ActivatePage | ( | sal_uInt16 | nResId | ) |
Definition at line 763 of file treeopt.cxx.
References ActivateLastSelection(), bForgetSelection, bIsForSetDocumentLanguage, bIsFromExtensionManager, DBG_ASSERT, LastPageSaver::m_nLastPageId, OFA_TP_LANGUAGES, OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE, and pLastPageSaver.
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().
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().
|
staticprivate |
Definition at line 1135 of file treeopt.cxx.
References ApplyLanguageOptions(), SfxItemSet::Count(), comphelper::ConfigurationChanges::create(), SfxViewFrame::Current(), Help::DisableBalloonHelp(), Help::DisableQuickHelp(), Help::EnableBalloonHelp(), Help::EnableQuickHelp(), SfxDispatcher::ExecuteList(), SfxViewFrame::GetDispatcher(), SfxItemSet::GetItemIfSet(), CntUInt16Item::GetValue(), Help::IsBalloonHelpEnabled(), Help::IsQuickHelpEnabled(), nId, SfxItemSet::Put(), rSet, SAL_WARN, SfxApplication::SetOptions(), offapp::ConnectionPoolConfig::SetOptions(), svx::DbRegisteredNamesConfig::SetOptions(), and SfxGetpApp().
Referenced by ApplyItemSets().
void OfaTreeOptionsDialog::ApplyItemSets | ( | ) |
Definition at line 742 of file treeopt.cxx.
References ApplyItemSet(), SfxShell::ApplyItemSet(), OptionsGroupInfo::m_nDialogId, OptionsGroupInfo::m_pOutItemSet, OptionsGroupInfo::m_pShell, and xTreeLB.
|
static |
the config item has changed since we modified the property set it uses
Definition at line 1216 of file treeopt.cxx.
References SfxViewFrame::Current(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), SfxViewFrame::GetDispatcher(), SfxViewFrame::GetFirst(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SfxViewFrame::GetNext(), GetValue(), rSet, and SfxPoolItem::Which().
Referenced by ApplyItemSet(), and svx::SpellDialog::StartSpellOptDlg_Impl().
|
private |
Definition at line 615 of file treeopt.cxx.
References OptionsPageInfo::m_nPageId, OptionsGroupInfo::m_pOutItemSet, OptionsPageInfo::m_xExtPage, OptionsPageInfo::m_xPage, RID_OPTPAGE_CHART_DEFCOLORS, SvxDefaultColorOptPage::SaveChartOptions(), and xTreeLB.
|
private |
Definition at line 995 of file treeopt.cxx.
References bIsForSetDocumentLanguage, SfxPoolItem::Clone(), SfxViewFrame::Current(), SvxChartOptions::GetDefaultColors(), SfxViewFrame::GetDispatcher(), LinguMgr::GetLinguPropertySet(), SfxHyphenRegionItem::GetMinLead(), SfxHyphenRegionItem::GetMinTrail(), SfxApplication::GetOptions(), offapp::ConnectionPoolConfig::GetOptions(), svx::DbRegisteredNamesConfig::GetOptions(), CntUInt16Item::GetValue(), svl::Items, nId, and SfxGetpApp().
Referenced by InitItemSets().
|
private |
|
private |
|
private |
|
private |
|
static |
Definition at line 1280 of file treeopt.cxx.
References Exception, SAL_INFO, and TOOLS_WARN_EXCEPTION.
Referenced by Initialize(), and SvxSaveTabPage::Reset().
|
inlineoverrideprivatevirtual |
Implements SfxOkDialogController.
Definition at line 174 of file treeopt.hxx.
|
staticprivate |
Definition at line 1628 of file treeopt.cxx.
References Exception, comphelper::getProcessComponentContext(), SAL_INFO, and TOOLS_WARN_EXCEPTION.
Referenced by Initialize(), and LoadExtensionOptions().
|
inlineoverrideprivatevirtual |
|
private |
Definition at line 1310 of file treeopt.cxx.
References AddGroup(), AddTabPage(), SvtModuleOptions::CALC, CuiResId(), SvtModuleOptions::DATABASE, DBG_ASSERT, SvtModuleOptions::DRAW, first, getCurrentFactory_Impl(), SfxApplication::GetModule(), GetModuleIdentifier(), i, SvtModuleOptions::IMPRESS, SvtCJKOptions::IsAsianTypographyEnabled(), SvtCJKOptions::IsCJKFontEnabled(), SvtCTLOptions::IsCTLFontEnabled(), SvtCJKOptions::IsJapaneseFindEnabled(), SvtModuleOptions::IsModuleInstalled(), lcl_isOptionHidden(), m_xFrame, SvtModuleOptions::MATH, nCount, nPageId, RID_SVXPAGE_ASIAN_LAYOUT, RID_SVXPAGE_BASICIDE_OPTIONS, RID_SVXPAGE_DEEPL_OPTIONS, RID_SVXPAGE_INET_MAIL, RID_SVXPAGE_JSEARCH_OPTIONS, RID_SVXPAGE_ONLINEUPDATE, RID_SVXPAGE_OPTIONS_CTL, setGroupName(), u, and SvtModuleOptions::WRITER.
|
private |
Definition at line 857 of file treeopt.cxx.
References CreateItemSet(), SfxShell::CreateItemSet(), OptionsGroupInfo::m_nDialogId, OptionsGroupInfo::m_pInItemSet, OptionsGroupInfo::m_pOutItemSet, and OptionsGroupInfo::m_pShell.
Referenced by SelectHdl_Impl().
|
private |
Definition at line 1887 of file treeopt.cxx.
References lcl_insertLeaf(), and xTreeLB.
Referenced by LoadExtensionOptions().
|
private |
Definition at line 1614 of file treeopt.cxx.
References GetModuleIdentifier(), InsertNodes(), LoadModule(), and LoadNodes().
Referenced by OfaTreeOptionsDialog().
|
staticprivate |
Definition at line 1659 of file treeopt.cxx.
Referenced by LoadExtensionOptions().
|
staticprivate |
Definition at line 1722 of file treeopt.cxx.
References getGroupName(), i, isNodeActive(), Module::m_aNodeList, and sId.
Referenced by LoadExtensionOptions().
|
private |
Definition at line 592 of file treeopt.cxx.
References OptionsGroupInfo::m_pInItemSet, OptionsPageInfo::m_xExtPage, OptionsPageInfo::m_xPage, xCurrentPageEntry, and xTreeLB.
|
overrideprivatevirtual |
Definition at line 1915 of file treeopt.cxx.
References bIsFromExtensionManager, and LinguMgr::GetDictionaryList().
|
private |
Definition at line 869 of file treeopt.cxx.
References bForgetSelection, bIsFromExtensionManager, CreateGeneralTabPage(), SfxModule::CreateTabPage(), DBG_ASSERT, BuilderPage::GetHelpId(), GetViewOptUserItem(), HID_OFADLG_TREELISTBOX, InitItemSets(), LastPageSaver::m_nLastPageId, OptionsPageInfo::m_nPageId, OptionsGroupInfo::m_pInItemSet, OptionsGroupInfo::m_pModule, OptionsGroupInfo::m_pOutItemSet, OptionsPageInfo::m_sEventHdl, LastPageSaver::m_sLastPageURL_ExtMgr, LastPageSaver::m_sLastPageURL_Tools, OptionsPageInfo::m_sPageURL, m_xContainerWinProvider, m_xDialog, OptionsPageInfo::m_xExtPage, m_xFrame, OptionsPageInfo::m_xPage, pLastPageSaver, RID_SVXPAGE_COLOR, sTitle, xCurrentPageEntry, xTabBox, and xTreeLB.
Referenced by ActivateLastSelection().
void OfaTreeOptionsDialog::SetNeedsRestart | ( | svtools::RestartReason | eReason | ) |
Definition at line 1909 of file treeopt.cxx.
References bNeedsRestart, and eRestartReason.
Referenced by SvxJavaOptionsPage::RequestRestart().
|
private |
Definition at line 134 of file treeopt.hxx.
Referenced by ActivatePage(), and SelectHdl_Impl().
|
private |
Definition at line 138 of file treeopt.hxx.
Referenced by ActivatePage(), and CreateItemSet().
|
private |
Definition at line 135 of file treeopt.hxx.
Referenced by ActivateLastSelection(), ActivatePage(), run(), and SelectHdl_Impl().
|
private |
Definition at line 140 of file treeopt.hxx.
Referenced by SetNeedsRestart().
|
private |
Definition at line 141 of file treeopt.hxx.
Referenced by SetNeedsRestart().
|
private |
Definition at line 128 of file treeopt.hxx.
|
private |
Definition at line 144 of file treeopt.hxx.
Referenced by SelectHdl_Impl().
|
private |
Definition at line 145 of file treeopt.hxx.
Referenced by Initialize(), and SelectHdl_Impl().
|
staticprivate |
Definition at line 147 of file treeopt.hxx.
Referenced by ActivateLastSelection(), ActivatePage(), and SelectHdl_Impl().
|
private |
Definition at line 132 of file treeopt.hxx.
Referenced by OfaTreeOptionsDialog(), and SelectHdl_Impl().
|
private |
Definition at line 122 of file treeopt.hxx.
Referenced by OfaTreeOptionsDialog().
|
private |
Definition at line 123 of file treeopt.hxx.
Referenced by OfaTreeOptionsDialog().
|
private |
Definition at line 130 of file treeopt.hxx.
Referenced by ResetCurrentPageFromConfig(), SelectHdl_Impl(), and ~OfaTreeOptionsDialog().
|
private |
Definition at line 121 of file treeopt.hxx.
Referenced by GetOKButton(), and OfaTreeOptionsDialog().
|
private |
Definition at line 126 of file treeopt.hxx.
Referenced by OfaTreeOptionsDialog(), and SelectHdl_Impl().
|
private |
Definition at line 125 of file treeopt.hxx.
Referenced by ActivateLastSelection(), AddGroup(), AddTabPage(), ApplyItemSets(), ApplyOptions(), InsertNodes(), OfaTreeOptionsDialog(), ResetCurrentPageFromConfig(), SelectHdl_Impl(), and ~OfaTreeOptionsDialog().