LibreOffice Module sfx2 (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | List of all members
SfxTemplateManagerDlg Class Reference

#include <templatedlg.hxx>

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

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 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
 

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_fnmaSelTemplates
 
css::uno::Reference< css::frame::XModel > m_xModel
 
css::uno::Reference< css::frame::XDesktop2 > mxDesktop
 
Timer m_aUpdateDataTimer
 
std::unique_ptr< weld::EntrymxSearchFilter
 
std::unique_ptr< weld::ComboBoxmxCBApp
 
std::unique_ptr< weld::ComboBoxmxCBFolder
 
std::unique_ptr< weld::ButtonmxOKButton
 
std::unique_ptr< weld::CheckButtonmxCBXHideDlg
 
std::unique_ptr< weld::MenuButtonmxActionBar
 
std::unique_ptr< TemplateDlgLocalViewmxLocalView
 
std::unique_ptr< weld::CustomWeldmxLocalViewWeld
 
std::unique_ptr< weld::ToggleablemxListViewButton
 
std::unique_ptr< weld::ToggleablemxThumbnailViewButton
 
TemplateViewMode mViewMode
 
bool bMakeSelItemVisible
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_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)> &)
 

Detailed Description

Definition at line 36 of file templatedlg.hxx.

Member Typedef Documentation

◆ selection_cmp_fn

typedef bool(* SfxTemplateManagerDlg::selection_cmp_fn) (const ThumbnailViewItem *, const ThumbnailViewItem *)
private

Definition at line 38 of file templatedlg.hxx.

Constructor & Destructor Documentation

◆ SfxTemplateManagerDlg()

SfxTemplateManagerDlg::SfxTemplateManagerDlg ( weld::Window parent)

◆ ~SfxTemplateManagerDlg()

SfxTemplateManagerDlg::~SfxTemplateManagerDlg ( )
overridevirtual

Definition at line 249 of file templatedlg.cxx.

References mxLocalView, and writeSettings().

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK() [1/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( CreateContextMenuHdl  ,
ThumbnailViewItem ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [2/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( DefaultTemplateHdl  ,
ThumbnailViewItem ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [3/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( DeleteTemplateHdl  ,
void *  ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [4/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( EditTemplateHdl  ,
ThumbnailViewItem ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [5/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( ExportTemplateHdl  ,
void *  ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [6/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( FocusRectLocalHdl  ,
weld::Widget ,
tools::Rectangle   
)
protected

◆ DECL_DLLPRIVATE_LINK() [7/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( GetFocusHdl  ,
weld::Widget ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [8/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( ImplUpdateDataHdl  ,
Timer ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [9/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
protected

◆ DECL_DLLPRIVATE_LINK() [10/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( ListViewHdl  ,
weld::Toggleable ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [11/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( LoseFocusHdl  ,
weld::Widget ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [12/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( MenuSelectHdl  ,
const OUString &  ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [13/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( MoveTemplateHdl  ,
void *  ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [14/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( OkClickHdl  ,
weld::Button ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [15/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( OpenRegionHdl  ,
void *  ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [16/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( OpenTemplateHdl  ,
ThumbnailViewItem ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [17/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( SearchUpdateHdl  ,
weld::Entry ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [18/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( SelectApplicationHdl  ,
weld::ComboBox ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [19/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( SelectRegionHdl  ,
weld::ComboBox ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [20/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( ThumbnailViewHdl  ,
weld::Toggleable ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [21/21]

SfxTemplateManagerDlg::DECL_DLLPRIVATE_LINK ( TVItemStateHdl  ,
const ThumbnailViewItem ,
void   
)
protected

◆ DefaultTemplateMenuSelectHdl()

void SfxTemplateManagerDlg::DefaultTemplateMenuSelectHdl ( std::u16string_view  rIdent)
protected

◆ ExtensionsActionHdl()

void SfxTemplateManagerDlg::ExtensionsActionHdl ( )
staticprotected

◆ fillFolderComboBox()

void SfxTemplateManagerDlg::fillFolderComboBox ( )
protected

◆ getApplicationSpecificSettings()

void SfxTemplateManagerDlg::getApplicationSpecificSettings ( )
protected

◆ getCurrentApplicationFilter()

FILTER_APPLICATION SfxTemplateManagerDlg::getCurrentApplicationFilter ( ) const
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().

◆ getTemplateViewMode()

TemplateViewMode SfxTemplateManagerDlg::getTemplateViewMode ( ) const

Definition at line 313 of file templatedlg.cxx.

References mViewMode.

Referenced by writeSettings().

◆ ImportActionHdl()

void SfxTemplateManagerDlg::ImportActionHdl ( )
protected

◆ localMoveTo()

void SfxTemplateManagerDlg::localMoveTo ( sal_uInt16  nMenuId)
protected

Move templates stored in the filesystem to another folder.

Definition at line 1204 of file templatedlg.cxx.

References maSelTemplates, and mxLocalView.

◆ OnCategoryDelete()

void SfxTemplateManagerDlg::OnCategoryDelete ( )
protected

◆ OnCategoryNew()

void SfxTemplateManagerDlg::OnCategoryNew ( )
protected

◆ OnCategoryRename()

void SfxTemplateManagerDlg::OnCategoryRename ( )
protected

◆ OnTemplateExport()

void SfxTemplateManagerDlg::OnTemplateExport ( )
protected

◆ OnTemplateImportCategory()

void SfxTemplateManagerDlg::OnTemplateImportCategory ( std::u16string_view  sCategory)
protected

◆ OnTemplateOpen()

void SfxTemplateManagerDlg::OnTemplateOpen ( )
protected

Definition at line 1060 of file templatedlg.cxx.

References maSelTemplates.

◆ OnTemplateState()

void SfxTemplateManagerDlg::OnTemplateState ( const ThumbnailViewItem pItem)
protected

Definition at line 866 of file templatedlg.cxx.

References ThumbnailViewItem::isSelected(), maSelTemplates, and mxOKButton.

◆ readSettings()

void SfxTemplateManagerDlg::readSettings ( )
protected

◆ run()

short SfxTemplateManagerDlg::run ( )
overridevirtual

◆ SearchUpdate()

void SfxTemplateManagerDlg::SearchUpdate ( )
protected

◆ setDocumentModel()

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

◆ setTemplateViewMode()

void SfxTemplateManagerDlg::setTemplateViewMode ( TemplateViewMode  eViewMode)

◆ updateMenuItems()

void SfxTemplateManagerDlg::updateMenuItems ( )
protected

◆ writeSettings()

void SfxTemplateManagerDlg::writeSettings ( )
protected

Member Data Documentation

◆ bMakeSelItemVisible

bool SfxTemplateManagerDlg::bMakeSelItemVisible
protected

Definition at line 135 of file templatedlg.hxx.

Referenced by SfxTemplateManagerDlg().

◆ m_aUpdateDataTimer

Timer SfxTemplateManagerDlg::m_aUpdateDataTimer
protected

Definition at line 121 of file templatedlg.hxx.

Referenced by SfxTemplateManagerDlg().

◆ m_xModel

css::uno::Reference<css::frame::XModel> SfxTemplateManagerDlg::m_xModel
protected

Definition at line 118 of file templatedlg.hxx.

Referenced by getApplicationSpecificSettings(), readSettings(), and setDocumentModel().

◆ maSelTemplates

std::set<const ThumbnailViewItem*, selection_cmp_fn> SfxTemplateManagerDlg::maSelTemplates
protected

Definition at line 117 of file templatedlg.hxx.

Referenced by localMoveTo(), OnTemplateExport(), OnTemplateOpen(), and OnTemplateState().

◆ mViewMode

TemplateViewMode SfxTemplateManagerDlg::mViewMode
protected

Definition at line 134 of file templatedlg.hxx.

Referenced by getTemplateViewMode(), and setTemplateViewMode().

◆ mxActionBar

std::unique_ptr<weld::MenuButton> SfxTemplateManagerDlg::mxActionBar
protected

◆ mxCBApp

std::unique_ptr<weld::ComboBox> SfxTemplateManagerDlg::mxCBApp
protected

◆ mxCBFolder

std::unique_ptr<weld::ComboBox> SfxTemplateManagerDlg::mxCBFolder
protected

◆ mxCBXHideDlg

std::unique_ptr<weld::CheckButton> SfxTemplateManagerDlg::mxCBXHideDlg
protected

Definition at line 128 of file templatedlg.hxx.

Referenced by SfxTemplateSelectionDlg::SfxTemplateSelectionDlg().

◆ mxDesktop

css::uno::Reference<css::frame::XDesktop2> SfxTemplateManagerDlg::mxDesktop
protected

Definition at line 119 of file templatedlg.hxx.

◆ mxListViewButton

std::unique_ptr<weld::Toggleable> SfxTemplateManagerDlg::mxListViewButton
protected

Definition at line 132 of file templatedlg.hxx.

Referenced by setTemplateViewMode(), and SfxTemplateManagerDlg().

◆ mxLocalView

std::unique_ptr<TemplateDlgLocalView> SfxTemplateManagerDlg::mxLocalView
protected

◆ mxLocalViewWeld

std::unique_ptr<weld::CustomWeld> SfxTemplateManagerDlg::mxLocalViewWeld
protected

Definition at line 131 of file templatedlg.hxx.

Referenced by SfxTemplateManagerDlg().

◆ mxOKButton

std::unique_ptr<weld::Button> SfxTemplateManagerDlg::mxOKButton
protected

◆ mxSearchFilter

std::unique_ptr<weld::Entry> SfxTemplateManagerDlg::mxSearchFilter
protected

Definition at line 123 of file templatedlg.hxx.

Referenced by SearchUpdate(), and SfxTemplateManagerDlg().

◆ mxThumbnailViewButton

std::unique_ptr<weld::Toggleable> SfxTemplateManagerDlg::mxThumbnailViewButton
protected

Definition at line 133 of file templatedlg.hxx.

Referenced by setTemplateViewMode(), and SfxTemplateManagerDlg().


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