10#ifndef INCLUDED_SFX2_INC_TEMPLATEDLG_HXX
11#define INCLUDED_SFX2_INC_TEMPLATEDLG_HXX
29namespace sun::star::frame
44 virtual short run()
override;
46 void setDocumentModel(
const css::uno::Reference<css::frame::XModel>& rModel);
51 void getApplicationSpecificSettings();
57 void fillFolderComboBox();
63 void ImportActionHdl();
64 static void ExtensionsActionHdl();
69 void DefaultTemplateMenuSelectHdl(std::u16string_view rIdent);
92 void OnTemplateImportCategory(std::u16string_view sCategory);
94 void OnTemplateOpen();
95 void OnTemplateExport();
100 void OnCategoryRename();
101 void OnCategoryDelete();
103 void updateMenuItems();
111 void localMoveTo(sal_uInt16 nMenuId);
174 virtual short run()
override;
OUString msSelectedCategory
std::unique_ptr< weld::TreeView > mxLBCategory
std::unique_ptr< weld::Entry > mxNewCategoryEdit
DECL_LINK(NewCategoryEditHdl, weld::Entry &, void)
virtual ~SfxTemplateCategoryDialog() override
const OUString & GetSelectedCategory() const
bool IsNewCategoryCreated() const
DECL_LINK(SelectCategoryHdl, weld::TreeView &, void)
void SetCategoryLBEntries(std::vector< OUString > names)
SfxTemplateCategoryDialog(weld::Window *pParent)
std::unique_ptr< weld::Button > mxOKButton
DECL_DLLPRIVATE_LINK(SearchUpdateHdl, weld::Entry &, void)
DECL_DLLPRIVATE_LINK(KeyInputHdl, const KeyEvent &, bool)
DECL_DLLPRIVATE_LINK(CreateContextMenuHdl, ThumbnailViewItem *, void)
DECL_DLLPRIVATE_LINK(DefaultTemplateHdl, ThumbnailViewItem *, void)
css::uno::Reference< css::frame::XDesktop2 > mxDesktop
std::unique_ptr< weld::Entry > mxSearchFilter
TemplateViewMode mViewMode
std::unique_ptr< weld::MenuButton > mxActionBar
DECL_DLLPRIVATE_LINK(OpenRegionHdl, void *, void)
DECL_DLLPRIVATE_LINK(ThumbnailViewHdl, weld::Toggleable &, void)
DECL_DLLPRIVATE_LINK(GetFocusHdl, weld::Widget &, void)
DECL_DLLPRIVATE_LINK(EditTemplateHdl, ThumbnailViewItem *, void)
std::set< const ThumbnailViewItem *, selection_cmp_fn > maSelTemplates
DECL_DLLPRIVATE_LINK(FocusRectLocalHdl, weld::Widget &, tools::Rectangle)
DECL_DLLPRIVATE_LINK(ExportTemplateHdl, void *, void)
std::unique_ptr< weld::CheckButton > mxCBXHideDlg
DECL_DLLPRIVATE_LINK(OkClickHdl, weld::Button &, void)
std::unique_ptr< weld::Toggleable > mxThumbnailViewButton
DECL_DLLPRIVATE_LINK(ListViewHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CustomWeld > mxLocalViewWeld
DECL_DLLPRIVATE_LINK(SelectApplicationHdl, weld::ComboBox &, void)
DECL_DLLPRIVATE_LINK(OpenTemplateHdl, ThumbnailViewItem *, void)
css::uno::Reference< css::frame::XModel > m_xModel
DECL_DLLPRIVATE_LINK(SelectRegionHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > mxCBApp
std::unique_ptr< weld::Button > mxOKButton
std::unique_ptr< TemplateDlgLocalView > mxLocalView
DECL_DLLPRIVATE_LINK(MoveTemplateHdl, void *, void)
std::unique_ptr< weld::Toggleable > mxListViewButton
DECL_DLLPRIVATE_LINK(DeleteTemplateHdl, void *, void)
DECL_DLLPRIVATE_LINK(MenuSelectHdl, const OUString &, void)
DECL_DLLPRIVATE_LINK(ImplUpdateDataHdl, Timer *, void)
DECL_DLLPRIVATE_LINK(TVItemStateHdl, const ThumbnailViewItem *, void)
std::unique_ptr< weld::ComboBox > mxCBFolder
DECL_DLLPRIVATE_LINK(LoseFocusHdl, weld::Widget &, void)
DECL_DLLPRIVATE_LINK(OkClickHdl, weld::Button &, void)
DECL_DLLPRIVATE_LINK(OpenTemplateHdl, ThumbnailViewItem *, void)
DECL_DLLPRIVATE_LINK(TimeOut, Timer *, void)
OUString const & getTemplatePath() const
bool IsStartWithTemplate() const