LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Attributes | List of all members
SfxSaveAsTemplateDialog Class Referencefinal

#include <saveastemplatedlg.hxx>

Inheritance diagram for SfxSaveAsTemplateDialog:
[legend]
Collaboration diagram for SfxSaveAsTemplateDialog:
[legend]

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 DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () 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::TreeViewm_xLBCategory
 
std::unique_ptr< weld::CheckButtonm_xCBXDefault
 
std::unique_ptr< weld::Entrym_xTemplateNameEdit
 
std::unique_ptr< weld::Buttonm_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::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 20 of file saveastemplatedlg.hxx.

Constructor & Destructor Documentation

◆ SfxSaveAsTemplateDialog()

SfxSaveAsTemplateDialog::SfxSaveAsTemplateDialog ( weld::Window pParent,
css::uno::Reference< css::frame::XModel >  xModel 
)

Member Function Documentation

◆ DECL_LINK() [1/3]

SfxSaveAsTemplateDialog::DECL_LINK ( OkClickHdl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [2/3]

SfxSaveAsTemplateDialog::DECL_LINK ( SelectCategoryHdl  ,
weld::TreeView ,
void   
)

◆ DECL_LINK() [3/3]

SfxSaveAsTemplateDialog::DECL_LINK ( TemplateNameEditHdl  ,
weld::Entry ,
void   
)

◆ initialize()

void SfxSaveAsTemplateDialog::initialize ( )

◆ IsTemplateNameUnique()

bool SfxSaveAsTemplateDialog::IsTemplateNameUnique ( )

◆ SaveTemplate()

bool SfxSaveAsTemplateDialog::SaveTemplate ( )

◆ SetCategoryLBEntries()

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().

Member Data Documentation

◆ m_xCBXDefault

std::unique_ptr<weld::CheckButton> SfxSaveAsTemplateDialog::m_xCBXDefault
private

Definition at line 24 of file saveastemplatedlg.hxx.

Referenced by SaveTemplate().

◆ m_xLBCategory

std::unique_ptr<weld::TreeView> SfxSaveAsTemplateDialog::m_xLBCategory
private

Definition at line 23 of file saveastemplatedlg.hxx.

Referenced by SetCategoryLBEntries(), and SfxSaveAsTemplateDialog().

◆ m_xModel

css::uno::Reference<css::frame::XModel> SfxSaveAsTemplateDialog::m_xModel
private

Definition at line 36 of file saveastemplatedlg.hxx.

Referenced by SaveTemplate().

◆ m_xOKButton

std::unique_ptr<weld::Button> SfxSaveAsTemplateDialog::m_xOKButton
private

Definition at line 26 of file saveastemplatedlg.hxx.

Referenced by SfxSaveAsTemplateDialog().

◆ m_xTemplateNameEdit

std::unique_ptr<weld::Entry> SfxSaveAsTemplateDialog::m_xTemplateNameEdit
private

Definition at line 25 of file saveastemplatedlg.hxx.

Referenced by SfxSaveAsTemplateDialog().

◆ maDocTemplates

SfxDocumentTemplates SfxSaveAsTemplateDialog::maDocTemplates
private

Definition at line 34 of file saveastemplatedlg.hxx.

Referenced by initialize(), IsTemplateNameUnique(), and SaveTemplate().

◆ mnRegionPos

sal_uInt16 SfxSaveAsTemplateDialog::mnRegionPos
private

Definition at line 30 of file saveastemplatedlg.hxx.

Referenced by IsTemplateNameUnique(), and SaveTemplate().

◆ msCategories

std::vector<OUString> SfxSaveAsTemplateDialog::msCategories
private

Definition at line 32 of file saveastemplatedlg.hxx.

Referenced by initialize(), IsTemplateNameUnique(), and SfxSaveAsTemplateDialog().

◆ msSelectedCategory

OUString SfxSaveAsTemplateDialog::msSelectedCategory
private

Definition at line 28 of file saveastemplatedlg.hxx.

Referenced by IsTemplateNameUnique(), and SaveTemplate().

◆ msTemplateName

OUString SfxSaveAsTemplateDialog::msTemplateName
private

Definition at line 29 of file saveastemplatedlg.hxx.

Referenced by IsTemplateNameUnique(), and SaveTemplate().


The documentation for this class was generated from the following files: