LibreOffice Module cui (master)
1
|
#include <cfg.hxx>
Public Member Functions | |
virtual | ~SvxConfigPage () override |
SaveInData * | GetSaveInData () |
const OUString & | GetAppName () const |
const OUString & | GetFileName () const |
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 |
virtual void | ListModified () |
SvxConfigEntry * | GetTopLevelSelection () |
OUString | GetScriptURL () const |
OUString | GetSelectedDisplayName () const |
![]() | |
void | SetDialogController (SfxOkDialogController *pDialog) |
virtual | ~SfxTabPage () override |
void | set_visible (bool bVisible) |
const SfxItemSet & | GetItemSet () 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 SfxItemSet * | GetDialogExampleSet () const |
OString | GetHelpId () const |
OString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
Static Public Member Functions | |
static bool | CanConfig (std::u16string_view rModuleId) |
static OUString | GetFrameWithDefaultAndIdentify (css::uno::Reference< css::frame::XFrame > &_inout_rxFrame) |
identifies the module in the given frame. More... | |
![]() | |
static const SfxPoolItem * | GetItem (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 (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &) | |
DECL_LINK (MoveHdl, weld::Button &, void) | |
DECL_LINK (SelectFunctionHdl, weld::TreeView &, void) | |
DECL_LINK (FunctionDoubleClickHdl, weld::TreeView &, bool) | |
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 SaveInData * | CreateSaveInData (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 | AppendEntry (SvxConfigEntry *pNewEntryData, int nTarget) |
void | AddSubMenusToUI (std::u16string_view rBaseTitle, SvxConfigEntry const *pParentData) |
void | InsertEntryIntoUI (SvxConfigEntry *pNewEntryData, weld::TreeView &rTreeView, int nPos, bool bMenu=false) |
void | InsertEntryIntoUI (SvxConfigEntry *pNewEntryData, weld::TreeView &rTreeView, weld::TreeIter &rIter, bool bMenu=false) |
void | InsertEntryIntoNotebookbarTabUI (std::u16string_view sClassId, const OUString &sUIItemId, const OUString &sUIItemCommand, weld::TreeView &rTreeView, const weld::TreeIter &rIter) |
SvxEntries * | FindParentForChild (SvxEntries *pParentEntries, SvxConfigEntry *pChildData) |
void | ReloadTopLevelListBox (SvxConfigEntry const *pSelection=nullptr) |
![]() | |
SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet) | |
sal_uInt16 | GetWhich (sal_uInt16 nSlot, bool bDeep=true) const |
const SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Private Member Functions | |
DECL_LINK (SearchUpdateHdl, weld::Entry &, void) | |
Private Attributes | |
Timer | m_aUpdateDataTimer |
bool | bInitialised |
SaveInData * | pCurrentSaveInData |
|
protected |
Definition at line 970 of file cfg.cxx.
References weld::TreeView::connect_changed(), weld::TreeView::connect_row_activated(), EDIT_UPDATEDATA_TIMEOUT, weld::Widget::get_approximate_digit_width(), weld::TreeView::get_height_rows(), CustomNotebookbarGenerator::getFileNameAndAppName(), LINK, m_aUpdateDataTimer, m_sAppName, m_sFileName, m_xDescriptionField, m_xFunctions, m_xSearchEdit, m_xTopLevelListBox, Task::SetDebugName(), Timer::SetInvokeHandler(), and Timer::SetTimeout().
Definition at line 1398 of file cfg.cxx.
References AppendEntry(), aProperties, aURL, Application::CreateMessageDialog(), CuiResId(), SvxConfigEntry::GetCommand(), vcl::CommandInfoProvider::GetCommandProperties(), SvxConfigEntry::GetEntries(), SfxTabPage::GetFrameWeld(), vcl::CommandInfoProvider::GetLabelForCommand(), vcl::CommandInfoProvider::GetMenuLabelForCommand(), vcl::CommandInfoProvider::GetPopupLabelForCommand(), GetScriptURL(), GetSelectedDisplayName(), GetTopLevelSelection(), m_aModuleId, pCurrentSaveInData, SvxConfigEntry::SetName(), and SvxConfigEntry::SetUserDefined().
Referenced by SvxToolbarConfigPage::AddFunction().
|
protected |
Definition at line 1357 of file cfg.cxx.
References aMenuSeparatorStr, SvxConfigEntry::GetEntries(), m_xTopLevelListBox, sId, and SvxConfigPageHelper::stripHotKey().
Referenced by ReloadTopLevelListBox().
|
protected |
Definition at line 1445 of file cfg.cxx.
References end, SvxConfigEntry::GetEntries(), GetSaveInData(), GetTopLevelSelection(), m_xContentsListBox, nPos, SaveInData::SetModified(), SvxConfigEntry::SetModified(), and sId.
Referenced by AddFunction().
|
static |
Definition at line 160 of file cfg.cxx.
References u.
Referenced by SvxEventConfigPage::ImplInitDocument(), and Reset().
|
protectedpure virtual |
Implemented in SvxToolbarConfigPage, SvxMenuConfigPage, and SvxNotebookbarConfigPage.
Referenced by Reset().
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
pure virtual |
Implemented in SvxMenuConfigPage, SvxToolbarConfigPage, and SvxNotebookbarConfigPage.
|
pure virtual |
Implemented in SvxMenuConfigPage, SvxToolbarConfigPage, and SvxNotebookbarConfigPage.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 1299 of file cfg.cxx.
References SaveInData::Apply(), i, m_xSaveInListBox, nCount, notebookbarTabScope, pData, result, and sId.
|
protected |
Definition at line 1374 of file cfg.cxx.
References result.
Referenced by SvxMenuConfigPage::DeleteSelectedTopLevel().
|
inline |
Definition at line 476 of file cfg.hxx.
References m_sAppName.
Referenced by SvxNotebookbarEntriesListBox::ChangedVisibility().
|
inline |
Definition at line 477 of file cfg.hxx.
References m_sFileName.
Referenced by SvxNotebookbarEntriesListBox::ChangedVisibility().
|
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 1238 of file cfg.cxx.
References SfxViewFrame::Current(), DBG_UNHANDLED_EXCEPTION, SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), vcl::CommandInfoProvider::GetModuleIdentifier(), comphelper::getProcessComponentContext(), and SAL_WARN.
Referenced by SvxEventConfigPage::ImplInitDocument(), Reset(), and SvxConfigDialog::SetFrame().
|
inline |
Definition at line 475 of file cfg.hxx.
References pCurrentSaveInData.
Referenced by SvxToolbarConfigPage::AddFunction(), AppendEntry(), SvxToolbarEntriesListBox::ChangedVisibility(), SvxMenuConfigPage::DeleteSelectedContent(), SvxToolbarConfigPage::DeleteSelectedContent(), SvxMenuConfigPage::DeleteSelectedTopLevel(), SvxToolbarConfigPage::DeleteSelectedTopLevel(), SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), InsertEntryIntoNotebookbarTabUI(), InsertEntryIntoUI(), SvxMenuConfigPage::ListModified(), SvxToolbarConfigPage::ListModified(), SvxToolbarConfigPage::MoveEntry(), MoveEntryData(), ReloadTopLevelListBox(), and Reset().
OUString SvxConfigPage::GetScriptURL | ( | ) | const |
Definition at line 1276 of file cfg.cxx.
References FUNCTION_SCRIPT, FUNCTION_SLOT, GROUP_STYLES, m_xFunctions, SfxGroupInfo_Impl::nKind, pData, result, and SfxGroupInfo_Impl::sCommand.
Referenced by AddFunction().
OUString SvxConfigPage::GetSelectedDisplayName | ( | ) | const |
|
inline |
Definition at line 494 of file cfg.hxx.
Referenced by SvxToolbarConfigPage::AddFunction(), AddFunction(), AppendEntry(), SvxToolbarEntriesListBox::ChangedVisibility(), SvxToolbarConfigPage::DeleteSelectedContent(), SvxMenuConfigPage::DeleteSelectedContent(), SvxToolbarConfigPage::DeleteSelectedTopLevel(), SvxMenuConfigPage::DeleteSelectedTopLevel(), SvxMenuConfigPage::ListModified(), SvxToolbarConfigPage::ListModified(), SvxToolbarConfigPage::MoveEntry(), MoveEntryData(), SvxToolbarConfigPage::SelectElement(), SvxMenuConfigPage::SelectElement(), SvxToolbarConfigPage::UpdateButtonStates(), and SvxMenuConfigPage::UpdateButtonStates().
|
protectedpure virtual |
Implemented in SvxToolbarConfigPage, SvxMenuConfigPage, and SvxNotebookbarConfigPage.
Referenced by Reset().
|
protected |
Definition at line 198 of file SvxNotebookbarConfigPage.cxx.
References aLabel, aName, SaveInData::GetImage(), getModuleId(), GetSaveInData(), m_sAppName, weld::TreeView::set_id(), weld::TreeView::set_image(), weld::TreeView::set_text(), SvxConfigPageHelper::stripHotKey(), and u.
Referenced by SvxNotebookbarConfigPage::SelectElement().
|
protected |
Definition at line 1541 of file cfg.cxx.
References GetSaveInData(), and m_xContentsListBox.
Referenced by SvxToolbarConfigPage::AddFunction(), SvxToolbarConfigPage::SelectElement(), and SvxMenuConfigPage::SelectElement().
|
protected |
Definition at line 1547 of file cfg.cxx.
References GetSaveInData(), and m_xContentsListBox.
|
inlinevirtual |
Reimplemented in SvxMenuConfigPage, and SvxToolbarConfigPage.
Definition at line 492 of file cfg.hxx.
Referenced by SvxConfigPageFunctionDropTarget::ExecuteDrop().
|
virtual |
Reimplemented in SvxToolbarConfigPage.
Definition at line 1625 of file cfg.cxx.
References weld::TreeView::get_selected_index(), m_xContentsListBox, MoveEntryData(), weld::TreeView::scroll_to_row(), weld::TreeView::select(), weld::TreeView::swap(), and UpdateButtonStates().
Referenced by SvxToolbarConfigPage::MoveEntry().
Definition at line 1661 of file cfg.cxx.
References end, SvxConfigEntry::GetEntries(), GetSaveInData(), GetTopLevelSelection(), m_xContentsListBox, SvxConfigPageHelper::RemoveEntry(), SaveInData::SetModified(), and SvxConfigEntry::SetModified().
Referenced by MoveEntry().
|
protectedpure virtual |
Implemented in SvxMenuConfigPage, SvxToolbarConfigPage, and SvxNotebookbarConfigPage.
Referenced by Reset().
|
protected |
Definition at line 1323 of file cfg.cxx.
References AddSubMenusToUI(), DBG_ASSERT, GetSaveInData(), m_xTopLevelListBox, SelectElement(), sId, and SvxConfigPageHelper::stripHotKey().
Referenced by SvxMenuConfigPage::DeleteSelectedContent(), SvxToolbarConfigPage::DeleteSelectedTopLevel(), SvxMenuConfigPage::DeleteSelectedTopLevel(), SvxMenuConfigPage::Init(), and SvxToolbarConfigPage::Init().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 1023 of file cfg.cxx.
References bInitialised, CanConfig(), CreateSaveInData(), DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, SfxTabPage::GetFrame(), GetFrameWithDefaultAndIdentify(), comphelper::getProcessComponentContext(), utl::ConfigManager::getProductName(), GetSaveInData(), SvxConfigPageHelper::GetUIModuleName(), SaveInData::HasSettings(), SaveInData::HasURL(), Init(), SaveInData::IsReadOnly(), LINK, m_aModuleId, m_aURLToSelect, m_xFrame, m_xSaveInListBox, nPos, pCurrentSaveInData, pData, QueryReset(), SaveInData::Reset(), RET_YES, sId, xController, and xModel.
|
protectedpure virtual |
Implemented in SvxMenuConfigPage, SvxToolbarConfigPage, and SvxNotebookbarConfigPage.
Referenced by ReloadTopLevelListBox().
|
protectedpure virtual |
Implemented in SvxMenuConfigPage, SvxToolbarConfigPage, and SvxNotebookbarConfigPage.
Referenced by MoveEntry().
|
private |
|
protected |
Definition at line 384 of file cfg.hxx.
Referenced by AddFunction(), SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), and Reset().
|
private |
Definition at line 372 of file cfg.hxx.
Referenced by SvxConfigPage().
|
protected |
the ResourceURL to select when opening the dialog
Definition at line 381 of file cfg.hxx.
Referenced by SvxToolbarConfigPage::Init(), Reset(), and SvxToolbarConfigPage::SvxToolbarConfigPage().
|
protected |
Definition at line 422 of file cfg.hxx.
Referenced by GetAppName(), SvxNotebookbarConfigPage::Init(), InsertEntryIntoNotebookbarTabUI(), SvxNotebookbarConfigPage::QueryReset(), and SvxConfigPage().
|
protected |
Definition at line 423 of file cfg.hxx.
Referenced by GetFileName(), SvxNotebookbarConfigPage::Init(), SvxNotebookbarConfigPage::QueryReset(), and SvxConfigPage().
|
protected |
Definition at line 419 of file cfg.hxx.
Referenced by SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 391 of file cfg.hxx.
Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().
|
protected |
Definition at line 388 of file cfg.hxx.
Referenced by SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), and SvxToolbarConfigPage::SvxToolbarConfigPage().
|
protected |
Definition at line 405 of file cfg.hxx.
Referenced by SvxToolbarConfigPage::AddFunction(), AppendEntry(), SvxToolbarConfigPage::DeleteSelectedContent(), SvxMenuConfigPage::DeleteSelectedContent(), SvxNotebookbarConfigPage::Init(), SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), InsertEntryIntoUI(), SvxMenuConfigPage::ListModified(), SvxToolbarConfigPage::ListModified(), MoveEntry(), MoveEntryData(), SvxNotebookbarConfigPage::SelectElement(), SvxToolbarConfigPage::SelectElement(), SvxMenuConfigPage::SelectElement(), SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), SvxToolbarConfigPage::UpdateButtonStates(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 401 of file cfg.hxx.
Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().
|
protected |
Definition at line 393 of file cfg.hxx.
Referenced by SvxConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), and SvxToolbarConfigPage::SvxToolbarConfigPage().
|
protected |
Definition at line 392 of file cfg.hxx.
Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().
|
protected |
Definition at line 406 of file cfg.hxx.
Referenced by SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), and SvxToolbarConfigPage::SvxToolbarConfigPage().
|
protected |
Definition at line 383 of file cfg.hxx.
Referenced by SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), and Reset().
|
protected |
Definition at line 389 of file cfg.hxx.
Referenced by GetScriptURL(), GetSelectedDisplayName(), SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), SvxConfigPage(), SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), and SvxToolbarConfigPage::SvxToolbarConfigPage().
|
protected |
Definition at line 404 of file cfg.hxx.
Referenced by SvxToolbarConfigPage::SelectElement(), SvxMenuConfigPage::SvxMenuConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), SvxToolbarConfigPage::UpdateButtonStates(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 413 of file cfg.hxx.
Referenced by SvxToolbarConfigPage::SelectElement(), SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 394 of file cfg.hxx.
Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().
|
protected |
Definition at line 414 of file cfg.hxx.
Referenced by SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), SvxToolbarConfigPage::UpdateButtonStates(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 409 of file cfg.hxx.
Referenced by SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), SvxToolbarConfigPage::UpdateButtonStates(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 408 of file cfg.hxx.
Referenced by SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), SvxToolbarConfigPage::UpdateButtonStates(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 420 of file cfg.hxx.
Referenced by SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), SvxToolbarConfigPage::SvxToolbarConfigPage(), SvxToolbarConfigPage::UpdateButtonStates(), and SvxMenuConfigPage::UpdateButtonStates().
|
protected |
Definition at line 416 of file cfg.hxx.
Referenced by SvxToolbarConfigPage::SelectElement(), SvxMenuConfigPage::SvxMenuConfigPage(), SvxNotebookbarConfigPage::SvxNotebookbarConfigPage(), and SvxToolbarConfigPage::SvxToolbarConfigPage().
|
protected |
Definition at line 411 of file cfg.hxx.
Referenced by FillItemSet(), SvxNotebookbarConfigPage::Init(), SvxNotebookbarConfigPage::QueryReset(), SvxToolbarConfigPage::QueryReset(), SvxMenuConfigPage::QueryReset(), Reset(), SvxToolbarConfigPage::SvxToolbarConfigPage(), SvxMenuConfigPage::~SvxMenuConfigPage(), and SvxToolbarConfigPage::~SvxToolbarConfigPage().
|
protected |
Definition at line 395 of file cfg.hxx.
Referenced by SvxConfigPage(), and SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().
|
protected |
Definition at line 396 of file cfg.hxx.
Referenced by SvxNotebookbarConfigPage::SvxNotebookbarConfigPage().
|
protected |
Definition at line 402 of file cfg.hxx.
Referenced by AddSubMenusToUI(), SvxToolbarConfigPage::DeleteSelectedTopLevel(), SvxNotebookbarConfigPage::Init(), SvxMenuConfigPage::Init(), SvxToolbarConfigPage::Init(), ReloadTopLevelListBox(), SvxNotebookbarConfigPage::SelectElement(), SvxConfigPage(), and SvxToolbarConfigPage::SvxToolbarConfigPage().
|
private |
Definition at line 374 of file cfg.hxx.
Referenced by AddFunction(), GetSaveInData(), and Reset().