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

#include <templdgi.hxx>

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

Public Member Functions

 SfxTemplateDialog_Impl (SfxBindings *, SfxTemplatePanelControl *pDlgWindow)
 
virtual ~SfxTemplateDialog_Impl () override
 
sal_Int8 AcceptToolbarDrop (const AcceptDropEvent &rEvt, const DropTargetHelper &rHelper)
 
void Initialize ()
 
- Public Member Functions inherited from SfxCommonTemplateDialog_Impl
bool Execute_Impl (sal_uInt16 nId, const OUString &rStr, const OUString &rRefStr, sal_uInt16 nFamily, StyleList &rStyleList, SfxStyleSearchBits nMask=SfxStyleSearchBits::Auto, sal_uInt16 *pIdx=nullptr, const sal_uInt16 *pModifier=nullptr)
 
sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
 
 DECL_LINK (OnAsyncExecuteDrop, void *, void)
 
void FamilySelect (sal_uInt16 nId, StyleList &rStyleList, bool bRefresh=false)
 
 SfxCommonTemplateDialog_Impl (SfxBindings *pB, weld::Container *, weld::Builder *pBuilder)
 
virtual ~SfxCommonTemplateDialog_Impl ()
 
virtual void EnableEdit (bool b, StyleList *rStyleList)
 
void EnableDel (bool b, const StyleList *rStyleList)
 
void EnableNew (bool b, const StyleList *rStyleList)
 
void EnableHide (bool b, const StyleList *rStyleList)
 
void EnableShow (bool b, const StyleList *rStyleList)
 
void EnableTreeDrag (bool b)
 
void EnableExample_Impl (sal_uInt16 nId, bool bEnable)
 
virtual void CheckItem (const OUString &, bool=true)
 
virtual void EnableItem (const OUString &, bool=true)
 
virtual bool IsCheckedItem (const OUString &)
 
void SelectStyle (const OUString &rStyle, bool bIsCallback, StyleList &rStyleList)
 
void IsUpdate (StyleList &)
 
bool GetNotifyUpdate () const
 
void SetNotifyupdate (bool b)
 
void connect_stylelist_read_resource (const Link< void *, size_t > &rLink)
 
void connect_stylelist_clear (const Link< void *, void > &rLink)
 
void connect_stylelist_cleanup (const Link< void *, void > &rLink)
 
void connect_stylelist_execute_drop (const Link< const ExecuteDropEvent &, sal_Int8 > &rLink)
 
void connect_stylelist_execute_new_menu (const Link< void *, void > &rLink)
 
void connect_stylelist_for_watercan (const Link< void *, bool > &rLink)
 
void connect_stylelist_has_selected_style (const Link< void *, bool > &rLink)
 
void connect_stylelist_update_style_dependents (const Link< void *, void > &rLink)
 
void connect_stylelist_enable_tree_drag (const Link< bool, void > rLink)
 
void connect_stylelist_enable_delete (const Link< void *, void > rLink)
 
void connect_stylelist_set_water_can_state (const Link< const SfxBoolItem *, void > rLink)
 
void connect_set_family (const Link< sal_uInt16, void > rLink)
 

Private Member Functions

void FillToolMenu ()
 
 DECL_LINK (ToolBoxLSelect, const OUString &, void)
 
 DECL_LINK (ToolBoxRSelect, const OUString &, void)
 
 DECL_LINK (ToolMenuSelectHdl, const OUString &, void)
 
virtual void EnableEdit (bool, StyleList *rStyleList) override
 
virtual void EnableItem (const OUString &rMesId, bool bCheck=true) override
 
virtual void CheckItem (const OUString &rMesId, bool bCheck=true) override
 
virtual bool IsCheckedItem (const OUString &rMesId) override
 
virtual void InsertFamilyItem (sal_uInt16 nId, const SfxStyleFamilyItem &rItem) override
 
virtual void EnableFamilyItem (sal_uInt16 nId, bool bEnabled) override
 
virtual void ClearFamilyList () override
 
virtual void ReplaceUpdateButtonByMenu () override
 

Private Attributes

std::unique_ptr< ToolbarDropTargetm_xToolbarDropTargetHelper
 
std::unique_ptr< weld::Toolbarm_xActionTbL
 
std::unique_ptr< weld::Toolbarm_xActionTbR
 
std::unique_ptr< weld::Menum_xToolMenu
 
int m_nActionTbLVisible
 

Friends

class SfxTemplateControllerItem
 
class SfxTemplatePanelControl
 
class SfxTemplateDialog
 

Additional Inherited Members

- Protected Member Functions inherited from SfxCommonTemplateDialog_Impl
 DECL_LINK (FilterSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (PreviewHdl, weld::Toggleable &, void)
 
 DECL_LINK (HighlightHdl, weld::Toggleable &, void)
 
virtual void InsertFamilyItem (sal_uInt16 nId, const SfxStyleFamilyItem &rItem)=0
 
virtual void EnableFamilyItem (sal_uInt16 nId, bool bEnabled)=0
 
virtual void ClearFamilyList ()=0
 
virtual void ReplaceUpdateButtonByMenu ()
 
void Initialize ()
 
void EnableHierarchical (bool, StyleList &rStyleList)
 
void FilterSelect (sal_uInt16 nFilterIdx)
 
void SetFamilyState (sal_uInt16 nSlotId, const SfxTemplateItem *)
 
void SetWaterCanState (const SfxBoolItem *pItem)
 
bool IsSafeForWaterCan () const
 Is it safe to show the water-can / fill icon. More...
 
void SetFamily (SfxStyleFamily nFamily)
 
void ActionSelect (const OUString &rId, StyleList &rStyleList)
 
void SaveFactoryStyleFilter (SfxObjectShell const *i_pObjSh, sal_Int32 i_nFilter)
 
 DECL_LINK (ReadResource_Hdl, StyleList &, void)
 
 DECL_LINK (ClearResource_Hdl, void *, void)
 
 DECL_LINK (SaveSelection_Hdl, StyleList &, SfxObjectShell *)
 
 DECL_LINK (LoadFactoryStyleFilter_Hdl, SfxObjectShell const *, sal_Int32)
 
 DECL_LINK (UpdateStyles_Hdl, StyleFlags, void)
 
 DECL_LINK (UpdateFamily_Hdl, StyleList &, void)
 
 DECL_LINK (UpdateStyleDependents_Hdl, void *, void)
 
- Protected Attributes inherited from SfxCommonTemplateDialog_Impl
SfxBindingspBindings
 
css::uno::Reference< css::frame::XModuleManager2 > xModuleManager
 
DeletionWatcherm_pDeletionWatcher
 
StyleList m_aStyleList
 
std::unique_ptr< weld::CheckButtonmxPreviewCheckbox
 
std::unique_ptr< weld::CheckButtonmxHighlightCheckbox
 
std::unique_ptr< weld::ComboBoxmxFilterLb
 
sal_uInt16 nActFamily
 
sal_uInt16 nActFilter
 
bool bIsWater:1
 
bool bUpdate:1
 
bool bWaterDisabled:1
 
bool bNewByExampleDisabled:1
 
bool bUpdateByExampleDisabled:1
 
bool m_bWantHierarchical:1
 
Link< void *, size_t > m_aStyleListReadResource
 
Link< void *, void > m_aStyleListClear
 
Link< void *, void > m_aStyleListCleanup
 
Link< const ExecuteDropEvent &, sal_Int8m_aStyleListExecuteDrop
 
Link< void *, void > m_aStyleListNewMenu
 
Link< void *, bool > m_aStyleListWaterCan
 
Link< void *, bool > m_aStyleListHasSelectedStyle
 
Link< void *, void > m_aStyleListUpdateFamily
 
Link< void *, void > m_aStyleListUpdateStyleDependents
 
Link< bool, void > m_aStyleListEnableTreeDrag
 
Link< void *, void > m_aStyleListEnableDelete
 
Link< const SfxBoolItem *, void > m_aStyleListSetWaterCanState
 
Link< sal_uInt16, void > m_aStyleListSetFamily
 

Detailed Description

Definition at line 201 of file templdgi.hxx.

Constructor & Destructor Documentation

◆ SfxTemplateDialog_Impl()

SfxTemplateDialog_Impl::SfxTemplateDialog_Impl ( SfxBindings pB,
SfxTemplatePanelControl pDlgWindow 
)

◆ ~SfxTemplateDialog_Impl()

SfxTemplateDialog_Impl::~SfxTemplateDialog_Impl ( )
overridevirtual

Definition at line 808 of file templdlg.cxx.

References m_xActionTbL, m_xActionTbR, and m_xToolbarDropTargetHelper.

Member Function Documentation

◆ AcceptToolbarDrop()

sal_Int8 SfxTemplateDialog_Impl::AcceptToolbarDrop ( const AcceptDropEvent rEvt,
const DropTargetHelper &  rHelper 
)

◆ CheckItem()

void SfxTemplateDialog_Impl::CheckItem ( const OUString &  rMesId,
bool  bCheck = true 
)
overrideprivatevirtual

Reimplemented from SfxCommonTemplateDialog_Impl.

Definition at line 822 of file templdlg.cxx.

References SfxCommonTemplateDialog_Impl::bIsWater, m_xActionTbL, and m_xActionTbR.

◆ ClearFamilyList()

void SfxTemplateDialog_Impl::ClearFamilyList ( )
overrideprivatevirtual

Implements SfxCommonTemplateDialog_Impl.

Definition at line 801 of file templdlg.cxx.

References i, m_xActionTbL, and nCount.

◆ DECL_LINK() [1/3]

SfxTemplateDialog_Impl::DECL_LINK ( ToolBoxLSelect  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [2/3]

SfxTemplateDialog_Impl::DECL_LINK ( ToolBoxRSelect  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [3/3]

SfxTemplateDialog_Impl::DECL_LINK ( ToolMenuSelectHdl  ,
const OUString &  ,
void   
)
private

◆ EnableEdit()

void SfxTemplateDialog_Impl::EnableEdit ( bool  bEnable,
StyleList rStyleList 
)
overrideprivatevirtual

◆ EnableFamilyItem()

void SfxTemplateDialog_Impl::EnableFamilyItem ( sal_uInt16  nId,
bool  bEnabled 
)
overrideprivatevirtual

Implements SfxCommonTemplateDialog_Impl.

Definition at line 765 of file templdlg.cxx.

References m_xActionTbL, and nId.

◆ EnableItem()

void SfxTemplateDialog_Impl::EnableItem ( const OUString &  rMesId,
bool  bCheck = true 
)
overrideprivatevirtual

◆ FillToolMenu()

void SfxTemplateDialog_Impl::FillToolMenu ( )
private

◆ Initialize()

void SfxTemplateDialog_Impl::Initialize ( )

◆ InsertFamilyItem()

void SfxTemplateDialog_Impl::InsertFamilyItem ( sal_uInt16  nId,
const SfxStyleFamilyItem rItem 
)
overrideprivatevirtual

◆ IsCheckedItem()

bool SfxTemplateDialog_Impl::IsCheckedItem ( const OUString &  rMesId)
overrideprivatevirtual

Reimplemented from SfxCommonTemplateDialog_Impl.

Definition at line 833 of file templdlg.cxx.

References m_xActionTbL, and m_xActionTbR.

Referenced by EnableItem().

◆ ReplaceUpdateButtonByMenu()

void SfxTemplateDialog_Impl::ReplaceUpdateButtonByMenu ( )
overrideprivatevirtual

Reimplemented from SfxCommonTemplateDialog_Impl.

Definition at line 793 of file templdlg.cxx.

References FillToolMenu(), and m_xActionTbR.

Friends And Related Function Documentation

◆ SfxTemplateControllerItem

friend class SfxTemplateControllerItem
friend

Definition at line 204 of file templdgi.hxx.

◆ SfxTemplateDialog

friend class SfxTemplateDialog
friend

Definition at line 229 of file templdgi.hxx.

◆ SfxTemplatePanelControl

friend class SfxTemplatePanelControl
friend

Definition at line 205 of file templdgi.hxx.

Member Data Documentation

◆ m_nActionTbLVisible

int SfxTemplateDialog_Impl::m_nActionTbLVisible
private

Definition at line 211 of file templdgi.hxx.

Referenced by AcceptToolbarDrop(), and InsertFamilyItem().

◆ m_xActionTbL

std::unique_ptr<weld::Toolbar> SfxTemplateDialog_Impl::m_xActionTbL
private

◆ m_xActionTbR

std::unique_ptr<weld::Toolbar> SfxTemplateDialog_Impl::m_xActionTbR
private

◆ m_xToolbarDropTargetHelper

std::unique_ptr<ToolbarDropTarget> SfxTemplateDialog_Impl::m_xToolbarDropTargetHelper
private

Definition at line 207 of file templdgi.hxx.

Referenced by Initialize(), and ~SfxTemplateDialog_Impl().

◆ m_xToolMenu

std::unique_ptr<weld::Menu> SfxTemplateDialog_Impl::m_xToolMenu
private

Definition at line 210 of file templdgi.hxx.

Referenced by FillToolMenu(), and SfxTemplateDialog_Impl().


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