LibreOffice Module sfx2 (master) 1
|
#include <saveastemplatedlg.hxx>
Public Member Functions | |
DECL_LINK (OkClickHdl, weld::Button &, void) | |
DECL_LINK (TemplateNameEditHdl, weld::Entry &, void) | |
DECL_LINK (SelectCategoryHdl, weld::TreeView &, void) | |
void | initialize () |
void | SetCategoryLBEntries (const std::vector< OUString > &names) |
bool | IsTemplateNameUnique () |
bool | SaveTemplate () |
SfxSaveAsTemplateDialog (weld::Window *pParent, css::uno::Reference< css::frame::XModel > xModel) | |
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 |
Private Attributes | |
std::unique_ptr< weld::TreeView > | m_xLBCategory |
std::unique_ptr< weld::CheckButton > | m_xCBXDefault |
std::unique_ptr< weld::Entry > | m_xTemplateNameEdit |
std::unique_ptr< weld::Button > | m_xOKButton |
OUString | msSelectedCategory |
OUString | msTemplateName |
sal_uInt16 | mnRegionPos |
std::vector< OUString > | msCategories |
SfxDocumentTemplates | maDocTemplates |
css::uno::Reference< css::frame::XModel > | m_xModel |
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)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 20 of file saveastemplatedlg.hxx.
SfxSaveAsTemplateDialog::SfxSaveAsTemplateDialog | ( | weld::Window * | pParent, |
css::uno::Reference< css::frame::XModel > | xModel | ||
) |
Definition at line 36 of file saveastemplatedlg.cxx.
References initialize(), LINK, m_xLBCategory, m_xModel, m_xOKButton, m_xTemplateNameEdit, msCategories, SetCategoryLBEntries(), SfxResId(), and xModel.
SfxSaveAsTemplateDialog::DECL_LINK | ( | OkClickHdl | , |
weld::Button & | , | ||
void | |||
) |
SfxSaveAsTemplateDialog::DECL_LINK | ( | SelectCategoryHdl | , |
weld::TreeView & | , | ||
void | |||
) |
SfxSaveAsTemplateDialog::DECL_LINK | ( | TemplateNameEditHdl | , |
weld::Entry & | , | ||
void | |||
) |
void SfxSaveAsTemplateDialog::initialize | ( | ) |
Definition at line 104 of file saveastemplatedlg.cxx.
References SfxDocumentTemplates::GetFullRegionName(), SfxDocumentTemplates::GetRegionCount(), i, maDocTemplates, msCategories, and nCount.
Referenced by SfxSaveAsTemplateDialog().
bool SfxSaveAsTemplateDialog::IsTemplateNameUnique | ( | ) |
Definition at line 121 of file saveastemplatedlg.cxx.
References aName, find(), SfxDocumentTemplates::GetCount(), SfxDocumentTemplates::GetName(), i, maDocTemplates, mnRegionPos, msCategories, msSelectedCategory, and msTemplateName.
bool SfxSaveAsTemplateDialog::SaveTemplate | ( | ) |
Definition at line 137 of file saveastemplatedlg.cxx.
References SfxDocumentTemplates::GetCount(), SfxFilterMatcher::GetFilter4ClipBoardId(), SfxApplication::GetFilterMatcher(), SotStorage::GetFormatID(), comphelper::getProcessComponentContext(), comphelper::OStorageHelper::GetStorageFromURL(), SfxDocumentTemplates::GetTemplateTargetURLFromComponent(), SfxDocumentTemplates::InsertTemplate(), m_xCBXDefault, m_xModel, maDocTemplates, mnRegionPos, msSelectedCategory, msTemplateName, SfxObjectFactory::SetStandardTemplate(), SfxGetpApp(), and SfxDocumentTemplates::Update().
void SfxSaveAsTemplateDialog::SetCategoryLBEntries | ( | const std::vector< OUString > & | names | ) |
Definition at line 114 of file saveastemplatedlg.cxx.
References i, m_xLBCategory, and n.
Referenced by SfxSaveAsTemplateDialog().
|
private |
Definition at line 24 of file saveastemplatedlg.hxx.
Referenced by SaveTemplate().
|
private |
Definition at line 23 of file saveastemplatedlg.hxx.
Referenced by SetCategoryLBEntries(), and SfxSaveAsTemplateDialog().
|
private |
Definition at line 36 of file saveastemplatedlg.hxx.
Referenced by SaveTemplate().
|
private |
Definition at line 26 of file saveastemplatedlg.hxx.
Referenced by SfxSaveAsTemplateDialog().
|
private |
Definition at line 25 of file saveastemplatedlg.hxx.
Referenced by SfxSaveAsTemplateDialog().
|
private |
Definition at line 34 of file saveastemplatedlg.hxx.
Referenced by initialize(), IsTemplateNameUnique(), and SaveTemplate().
|
private |
Definition at line 30 of file saveastemplatedlg.hxx.
Referenced by IsTemplateNameUnique(), and SaveTemplate().
|
private |
Definition at line 32 of file saveastemplatedlg.hxx.
Referenced by initialize(), IsTemplateNameUnique(), and SfxSaveAsTemplateDialog().
|
private |
Definition at line 28 of file saveastemplatedlg.hxx.
Referenced by IsTemplateNameUnique(), and SaveTemplate().
|
private |
Definition at line 29 of file saveastemplatedlg.hxx.
Referenced by IsTemplateNameUnique(), and SaveTemplate().