LibreOffice Module sfx2 (master) 1
|
#include <templatedlg.hxx>
Public Member Functions | |
SfxTemplateManagerDlg (weld::Window *parent) | |
virtual | ~SfxTemplateManagerDlg () override |
virtual short | run () override |
void | setDocumentModel (const css::uno::Reference< css::frame::XModel > &rModel) |
void | setTemplateViewMode (TemplateViewMode eViewMode) |
TemplateViewMode | getTemplateViewMode () const |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Protected Member Functions | |
void | getApplicationSpecificSettings () |
void | readSettings () |
void | writeSettings () |
void | fillFolderComboBox () |
DECL_DLLPRIVATE_LINK (SelectApplicationHdl, weld::ComboBox &, void) | |
DECL_DLLPRIVATE_LINK (SelectRegionHdl, weld::ComboBox &, void) | |
DECL_DLLPRIVATE_LINK (OkClickHdl, weld::Button &, void) | |
void | ImportActionHdl () |
DECL_DLLPRIVATE_LINK (TVItemStateHdl, const ThumbnailViewItem *, void) | |
DECL_DLLPRIVATE_LINK (MenuSelectHdl, const OUString &, void) | |
void | DefaultTemplateMenuSelectHdl (std::u16string_view rIdent) |
DECL_DLLPRIVATE_LINK (OpenRegionHdl, void *, void) | |
DECL_DLLPRIVATE_LINK (CreateContextMenuHdl, ThumbnailViewItem *, void) | |
DECL_DLLPRIVATE_LINK (OpenTemplateHdl, ThumbnailViewItem *, void) | |
DECL_DLLPRIVATE_LINK (EditTemplateHdl, ThumbnailViewItem *, void) | |
DECL_DLLPRIVATE_LINK (DeleteTemplateHdl, void *, void) | |
DECL_DLLPRIVATE_LINK (DefaultTemplateHdl, ThumbnailViewItem *, void) | |
DECL_DLLPRIVATE_LINK (MoveTemplateHdl, void *, void) | |
DECL_DLLPRIVATE_LINK (ExportTemplateHdl, void *, void) | |
void | SearchUpdate () |
DECL_DLLPRIVATE_LINK (SearchUpdateHdl, weld::Entry &, void) | |
DECL_DLLPRIVATE_LINK (GetFocusHdl, weld::Widget &, void) | |
DECL_DLLPRIVATE_LINK (LoseFocusHdl, weld::Widget &, void) | |
DECL_DLLPRIVATE_LINK (ImplUpdateDataHdl, Timer *, void) | |
DECL_DLLPRIVATE_LINK (KeyInputHdl, const KeyEvent &, bool) | |
DECL_DLLPRIVATE_LINK (ListViewHdl, weld::Toggleable &, void) | |
DECL_DLLPRIVATE_LINK (ThumbnailViewHdl, weld::Toggleable &, void) | |
DECL_DLLPRIVATE_LINK (FocusRectLocalHdl, weld::Widget &, tools::Rectangle) | |
void | OnTemplateImportCategory (std::u16string_view sCategory) |
void | OnTemplateOpen () |
void | OnTemplateExport () |
void | OnTemplateState (const ThumbnailViewItem *pItem) |
void | OnCategoryNew () |
void | OnCategoryRename () |
void | OnCategoryDelete () |
void | updateMenuItems () |
void | localMoveTo (sal_uInt16 nMenuId) |
Move templates stored in the filesystem to another folder. More... | |
FILTER_APPLICATION | getCurrentApplicationFilter () const |
Return filter according to the currently selected application filter. More... | |
Static Protected Member Functions | |
static void | ExtensionsActionHdl () |
Protected Attributes | |
std::set< const ThumbnailViewItem *, selection_cmp_fn > | maSelTemplates |
css::uno::Reference< css::frame::XModel > | m_xModel |
css::uno::Reference< css::frame::XDesktop2 > | mxDesktop |
Timer | m_aUpdateDataTimer |
std::unique_ptr< weld::Entry > | mxSearchFilter |
std::unique_ptr< weld::ComboBox > | mxCBApp |
std::unique_ptr< weld::ComboBox > | mxCBFolder |
std::unique_ptr< weld::Button > | mxOKButton |
std::unique_ptr< weld::CheckButton > | mxCBXHideDlg |
std::unique_ptr< weld::MenuButton > | mxActionBar |
std::unique_ptr< TemplateDlgLocalView > | mxLocalView |
std::unique_ptr< weld::CustomWeld > | mxLocalViewWeld |
std::unique_ptr< weld::Toggleable > | mxListViewButton |
std::unique_ptr< weld::Toggleable > | mxThumbnailViewButton |
TemplateViewMode | mViewMode |
bool | bMakeSelItemVisible |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Private Types | |
typedef bool(* | selection_cmp_fn) (const ThumbnailViewItem *, const ThumbnailViewItem *) |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Definition at line 36 of file templatedlg.hxx.
|
private |
Definition at line 38 of file templatedlg.hxx.
SfxTemplateManagerDlg::SfxTemplateManagerDlg | ( | weld::Window * | parent | ) |
Definition at line 154 of file templatedlg.cxx.
References bMakeSelItemVisible, create(), EDIT_UPDATEDATA_TIMEOUT, fillFolderComboBox(), SfxModule::GetActiveModule(), getProcessComponentContext(), LINK, m_aUpdateDataTimer, MNI_ACTION_DEFAULT, MNI_ACTION_DEFAULT_CALC, MNI_ACTION_DEFAULT_DRAW, MNI_ACTION_DEFAULT_IMPRESS, MNI_ACTION_DEFAULT_WRITER, MNI_ACTION_DELETE_FOLDER, MNI_ACTION_EXTENSIONS, MNI_ACTION_IMPORT, MNI_ACTION_NEW_FOLDER, MNI_ACTION_RENAME_FOLDER, mxActionBar, mxCBApp, mxCBFolder, mxListViewButton, mxLocalView, mxLocalViewWeld, mxOKButton, mxSearchFilter, mxThumbnailViewButton, NONE, Timer::SetInvokeHandler(), Timer::SetTimeout(), SfxResId(), TEMPLATE_ITEM_MAX_HEIGHT, TEMPLATE_ITEM_MAX_HEIGHT_SUB, TEMPLATE_ITEM_MAX_TEXT_LENGTH, TEMPLATE_ITEM_MAX_WIDTH, TEMPLATE_ITEM_PADDING, and TEMPLATE_ITEM_THUMBNAIL_MAX_HEIGHT.
|
overridevirtual |
Definition at line 249 of file templatedlg.cxx.
References mxLocalView, and writeSettings().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 535 of file templatedlg.cxx.
References SvtModuleOptions::CALC, SvtModuleOptions::DRAW, SvtModuleOptions::GetFactoryEmptyDocumentURL(), SfxObjectShell::GetServiceNameFromFactory(), SfxObjectFactory::GetStandardTemplate(), SvtModuleOptions::IMPRESS, MNI_ACTION_DEFAULT_CALC, MNI_ACTION_DEFAULT_DRAW, MNI_ACTION_DEFAULT_IMPRESS, MNI_ACTION_DEFAULT_WRITER, mxLocalView, SfxObjectFactory::SetStandardTemplate(), updateMenuItems(), and SvtModuleOptions::WRITER.
|
staticprotected |
Definition at line 648 of file templatedlg.cxx.
References comphelper::dispatchCommand(), and comphelper::makePropertyValue().
|
protected |
Definition at line 335 of file templatedlg.cxx.
References i, MNI_ACTION_DELETE_FOLDER, MNI_ACTION_RENAME_FOLDER, mxActionBar, mxCBFolder, mxLocalView, and n.
Referenced by SfxTemplateManagerDlg().
|
protected |
Definition at line 346 of file templatedlg.cxx.
References SvtModuleOptions::CALC, SvtModuleOptions::ClassifyFactoryByModel(), SvtModuleOptions::DRAW, getCurrentApplicationFilter(), SvtModuleOptions::IMPRESS, m_xModel, MNI_ACTION_DELETE_FOLDER, MNI_ACTION_RENAME_FOLDER, MNI_CALC, MNI_DRAW, MNI_IMPRESS, MNI_WRITER, mxActionBar, mxCBApp, mxCBFolder, mxLocalView, SvtModuleOptions::WRITER, SvtModuleOptions::WRITERGLOBAL, and SvtModuleOptions::WRITERWEB.
Referenced by run().
|
protected |
Return filter according to the currently selected application filter.
Definition at line 319 of file templatedlg.cxx.
References CALC, DRAW, IMPRESS, MNI_CALC, MNI_DRAW, MNI_IMPRESS, MNI_WRITER, mxCBApp, NONE, and WRITER.
Referenced by getApplicationSpecificSettings(), readSettings(), SearchUpdate(), and SfxTemplateSelectionDlg::SfxTemplateSelectionDlg().
TemplateViewMode SfxTemplateManagerDlg::getTemplateViewMode | ( | ) | const |
Definition at line 313 of file templatedlg.cxx.
References mViewMode.
Referenced by writeSettings().
|
protected |
Definition at line 606 of file templatedlg.cxx.
References Application::CreateMessageDialog(), SfxTemplateCategoryDialog::GetSelectedCategory(), SfxTemplateCategoryDialog::IsNewCategoryCreated(), weld::GenericDialogController::m_xDialog, mxCBFolder, mxLocalView, OnTemplateImportCategory(), RET_OK, weld::DialogController::run(), SearchUpdate(), SfxTemplateCategoryDialog::SetCategoryLBEntries(), and SfxResId().
|
protected |
Move templates stored in the filesystem to another folder.
Definition at line 1204 of file templatedlg.cxx.
References maSelTemplates, and mxLocalView.
|
protected |
Definition at line 1123 of file templatedlg.cxx.
References Application::CreateMessageDialog(), weld::GenericDialogController::m_xDialog, MNI_ACTION_DELETE_FOLDER, MNI_ACTION_RENAME_FOLDER, mxActionBar, mxCBApp, mxCBFolder, mxLocalView, RET_YES, SearchUpdate(), SfxResId(), and updateMenuItems().
|
protected |
Definition at line 1067 of file templatedlg.cxx.
References aName, Application::CreateMessageDialog(), InputDialog::GetEntryText(), weld::GenericDialogController::m_xDialog, mxCBFolder, mxLocalView, weld::DialogController::run(), weld::DialogController::set_title(), and SfxResId().
|
protected |
Definition at line 1090 of file templatedlg.cxx.
References aName, Application::CreateMessageDialog(), InputDialog::GetEntryText(), weld::GenericDialogController::m_xDialog, mxCBFolder, mxLocalView, nPos, weld::DialogController::run(), SearchUpdate(), weld::DialogController::set_title(), InputDialog::SetEntryText(), and SfxResId().
|
protected |
Definition at line 995 of file templatedlg.cxx.
References INetURLObject::Append(), sfx2::createFolderPicker(), Application::CreateMessageDialog(), INetURLObject::GetMainURL(), INetURLObject::getName(), TemplateViewItem::getPath(), comphelper::getProcessComponentContext(), i, weld::GenericDialogController::m_xDialog, maSelTemplates, ThumbnailViewItem::maTitle, TemplateViewItem::mnDocId, TemplateViewItem::mnRegionId, mxLocalView, nCount, INetURLObject::NONE, INetURLObject::setFinalSlash(), INetURLObject::setName(), and SfxResId().
|
protected |
Definition at line 903 of file templatedlg.cxx.
References sfx2::FileDialogHelper::AddFilter(), SvtModuleOptions::CALC, Application::CreateMessageDialog(), SvtModuleOptions::DRAW, ERRCODE_NONE, sfx2::FileDialogHelper::Execute(), FILEDIALOG_FILTER_ALL, sfx2::FileDialogHelper::GetSelectedFiles(), SvtModuleOptions::IMPRESS, SvtModuleOptions::IsModuleInstalled(), weld::GenericDialogController::m_xDialog, TemplateContainerItem::maTitle, MultiSelection, mxLocalView, sfx2::FileDialogHelper::SetContext(), sfx2::FileDialogHelper::SetCurrentFilter(), SfxResId(), sfx2::FileDialogHelper::TemplateImport, and SvtModuleOptions::WRITER.
Referenced by ImportActionHdl().
|
protected |
Definition at line 1060 of file templatedlg.cxx.
References maSelTemplates.
|
protected |
Definition at line 866 of file templatedlg.cxx.
References ThumbnailViewItem::isSelected(), maSelTemplates, and mxOKButton.
|
protected |
Definition at line 389 of file templatedlg.cxx.
References eListView, eThumbnailView, SvtViewOptions::Exists(), getCurrentApplicationFilter(), SvtViewOptions::GetUserItem(), m_xModel, MNI_ACTION_DELETE_FOLDER, MNI_ACTION_RENAME_FOLDER, MNI_CALC, MNI_DRAW, MNI_IMPRESS, MNI_WRITER, mxActionBar, mxCBApp, mxCBFolder, mxLocalView, setTemplateViewMode(), TM_SETTING_LASTAPPLICATION, TM_SETTING_LASTFOLDER, TM_SETTING_MANAGER, and TM_SETTING_VIEWMODE.
Referenced by run().
|
overridevirtual |
Reimplemented from weld::DialogController.
Reimplemented in SfxTemplateSelectionDlg.
Definition at line 259 of file templatedlg.cxx.
References getApplicationSpecificSettings(), readSettings(), weld::DialogController::run(), and updateMenuItems().
Referenced by SfxApplication::MiscExec_Impl(), and SfxApplication::NewDocExec_Impl().
|
protected |
Definition at line 843 of file templatedlg.cxx.
References getCurrentApplicationFilter(), mxCBFolder, mxLocalView, and mxSearchFilter.
Referenced by ImportActionHdl(), OnCategoryDelete(), and OnCategoryRename().
void SfxTemplateManagerDlg::setDocumentModel | ( | const css::uno::Reference< css::frame::XModel > & | rModel | ) |
Definition at line 286 of file templatedlg.cxx.
References m_xModel.
Referenced by SfxApplication::NewDocExec_Impl().
void SfxTemplateManagerDlg::setTemplateViewMode | ( | TemplateViewMode | eViewMode | ) |
Definition at line 291 of file templatedlg.cxx.
References eListView, eThumbnailView, mViewMode, mxListViewButton, mxLocalView, mxThumbnailViewButton, TRISTATE_FALSE, and TRISTATE_TRUE.
Referenced by readSettings(), and SfxTemplateSelectionDlg::run().
|
protected |
Definition at line 1157 of file templatedlg.cxx.
References SvtModuleOptions::CALC, SvtModuleOptions::DRAW, SvtModuleOptions::GetFactoryStandardTemplate(), SvtModuleOptions::IMPRESS, lcl_getAllFactoryURLs(), MNI_ACTION_DEFAULT, MNI_ACTION_DEFAULT_CALC, MNI_ACTION_DEFAULT_DRAW, MNI_ACTION_DEFAULT_IMPRESS, MNI_ACTION_DEFAULT_WRITER, MNI_ALL_APPLICATIONS, MNI_CALC, MNI_DRAW, MNI_IMPRESS, MNI_WRITER, mxActionBar, mxCBApp, and SvtModuleOptions::WRITER.
Referenced by DefaultTemplateMenuSelectHdl(), OnCategoryDelete(), run(), and SfxTemplateSelectionDlg::SfxTemplateSelectionDlg().
|
protected |
Definition at line 458 of file templatedlg.cxx.
References getTemplateViewMode(), mxCBApp, mxLocalView, SvtViewOptions::SetUserData(), TM_SETTING_LASTAPPLICATION, TM_SETTING_LASTFOLDER, TM_SETTING_MANAGER, and TM_SETTING_VIEWMODE.
Referenced by ~SfxTemplateManagerDlg().
|
protected |
Definition at line 135 of file templatedlg.hxx.
Referenced by SfxTemplateManagerDlg().
|
protected |
Definition at line 121 of file templatedlg.hxx.
Referenced by SfxTemplateManagerDlg().
|
protected |
Definition at line 118 of file templatedlg.hxx.
Referenced by getApplicationSpecificSettings(), readSettings(), and setDocumentModel().
|
protected |
Definition at line 117 of file templatedlg.hxx.
Referenced by localMoveTo(), OnTemplateExport(), OnTemplateOpen(), and OnTemplateState().
|
protected |
Definition at line 134 of file templatedlg.hxx.
Referenced by getTemplateViewMode(), and setTemplateViewMode().
|
protected |
Definition at line 129 of file templatedlg.hxx.
Referenced by fillFolderComboBox(), getApplicationSpecificSettings(), OnCategoryDelete(), readSettings(), SfxTemplateManagerDlg(), SfxTemplateSelectionDlg::SfxTemplateSelectionDlg(), and updateMenuItems().
|
protected |
Definition at line 124 of file templatedlg.hxx.
Referenced by getApplicationSpecificSettings(), getCurrentApplicationFilter(), OnCategoryDelete(), readSettings(), SfxTemplateManagerDlg(), SfxTemplateSelectionDlg::SfxTemplateSelectionDlg(), updateMenuItems(), and writeSettings().
|
protected |
Definition at line 125 of file templatedlg.hxx.
Referenced by fillFolderComboBox(), getApplicationSpecificSettings(), ImportActionHdl(), OnCategoryDelete(), OnCategoryNew(), OnCategoryRename(), readSettings(), SearchUpdate(), SfxTemplateManagerDlg(), and SfxTemplateSelectionDlg::SfxTemplateSelectionDlg().
|
protected |
Definition at line 128 of file templatedlg.hxx.
Referenced by SfxTemplateSelectionDlg::SfxTemplateSelectionDlg().
|
protected |
Definition at line 119 of file templatedlg.hxx.
|
protected |
Definition at line 132 of file templatedlg.hxx.
Referenced by setTemplateViewMode(), and SfxTemplateManagerDlg().
|
protected |
Definition at line 130 of file templatedlg.hxx.
Referenced by DefaultTemplateMenuSelectHdl(), fillFolderComboBox(), getApplicationSpecificSettings(), ImportActionHdl(), localMoveTo(), OnCategoryDelete(), OnCategoryNew(), OnCategoryRename(), OnTemplateExport(), OnTemplateImportCategory(), readSettings(), SearchUpdate(), setTemplateViewMode(), SfxTemplateManagerDlg(), SfxTemplateSelectionDlg::SfxTemplateSelectionDlg(), writeSettings(), and ~SfxTemplateManagerDlg().
|
protected |
Definition at line 131 of file templatedlg.hxx.
Referenced by SfxTemplateManagerDlg().
|
protected |
Definition at line 127 of file templatedlg.hxx.
Referenced by OnTemplateState(), SfxTemplateManagerDlg(), and SfxTemplateSelectionDlg::SfxTemplateSelectionDlg().
|
protected |
Definition at line 123 of file templatedlg.hxx.
Referenced by SearchUpdate(), and SfxTemplateManagerDlg().
|
protected |
Definition at line 133 of file templatedlg.hxx.
Referenced by setTemplateViewMode(), and SfxTemplateManagerDlg().