19#ifndef INCLUDED_SFX2_SOURCE_INC_TEMPLDGI_HXX
20#define INCLUDED_SFX2_SOURCE_INC_TEMPLDGI_HXX
44class StyleTreeListBox_Impl;
48 class XModuleManager2;
61#define COUNT_BOUND_FUNC 14
132 bool Execute_Impl(sal_uInt16
nId,
const OUString& rStr,
const OUString& rRefStr,
134 sal_uInt16* pIdx =
nullptr,
const sal_uInt16* pModifier =
nullptr);
165 virtual void CheckItem(
const OUString& ,
bool =
true) {}
199class DropTargetHelper;
220 virtual void EnableItem(
const OUString& rMesId,
bool bCheck =
true)
override;
221 virtual void CheckItem(
const OUString& rMesId,
bool bCheck =
true)
override;
bool GetNotifyUpdate() const
void SetFamilyState(sal_uInt16 nSlotId, const SfxTemplateItem *)
bool bUpdateByExampleDisabled
Link< void *, void > m_aStyleListNewMenu
Link< bool, void > m_aStyleListEnableTreeDrag
DECL_LINK(SaveSelection_Hdl, StyleList &, SfxObjectShell *)
void SetFamily(SfxStyleFamily nFamily)
Link< void *, void > m_aStyleListUpdateFamily
sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt)
void EnableHierarchical(bool, StyleList &rStyleList)
void SelectStyle(const OUString &rStyle, bool bIsCallback, StyleList &rStyleList)
Link< void *, bool > m_aStyleListHasSelectedStyle
Link< void *, void > m_aStyleListEnableDelete
void SetNotifyupdate(bool b)
virtual void EnableItem(const OUString &, bool=true)
void EnableDel(bool b, const StyleList *rStyleList)
DeletionWatcher * m_pDeletionWatcher
virtual void ReplaceUpdateButtonByMenu()
Link< const ExecuteDropEvent &, sal_Int8 > m_aStyleListExecuteDrop
virtual void EnableFamilyItem(sal_uInt16 nId, bool bEnabled)=0
Link< void *, void > m_aStyleListClear
DECL_LINK(ReadResource_Hdl, StyleList &, void)
DECL_LINK(ClearResource_Hdl, void *, void)
void FamilySelect(sal_uInt16 nId, StyleList &rStyleList, bool bRefresh=false)
DECL_LINK(HighlightHdl, weld::Toggleable &, void)
void IsUpdate(StyleList &)
void ActionSelect(const OUString &rId, StyleList &rStyleList)
void connect_stylelist_enable_delete(const Link< void *, void > rLink)
void connect_stylelist_cleanup(const Link< void *, void > &rLink)
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)
void FilterSelect(sal_uInt16 nFilterIdx)
DECL_LINK(FilterSelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > mxFilterLb
void EnableShow(bool b, const StyleList *rStyleList)
void connect_stylelist_execute_new_menu(const Link< void *, void > &rLink)
Link< const SfxBoolItem *, void > m_aStyleListSetWaterCanState
void EnableExample_Impl(sal_uInt16 nId, bool bEnable)
DeletionWatcher * impl_setDeletionWatcher(DeletionWatcher *pNewWatcher)
void EnableTreeDrag(bool b)
SfxCommonTemplateDialog_Impl(SfxBindings *pB, weld::Container *, weld::Builder *pBuilder)
void connect_stylelist_execute_drop(const Link< const ExecuteDropEvent &, sal_Int8 > &rLink)
void SaveFactoryStyleFilter(SfxObjectShell const *i_pObjSh, sal_Int32 i_nFilter)
Link< void *, size_t > m_aStyleListReadResource
virtual void EnableEdit(bool b, StyleList *rStyleList)
void EnableHide(bool b, const StyleList *rStyleList)
void connect_stylelist_set_water_can_state(const Link< const SfxBoolItem *, void > rLink)
void connect_stylelist_update_style_dependents(const Link< void *, void > &rLink)
css::uno::Reference< css::frame::XModuleManager2 > xModuleManager
void connect_stylelist_for_watercan(const Link< void *, bool > &rLink)
void connect_stylelist_enable_tree_drag(const Link< bool, void > rLink)
DECL_LINK(PreviewHdl, weld::Toggleable &, void)
bool IsSafeForWaterCan() const
Is it safe to show the water-can / fill icon.
Link< void *, void > m_aStyleListCleanup
void connect_stylelist_has_selected_style(const Link< void *, bool > &rLink)
DECL_LINK(UpdateStyleDependents_Hdl, void *, void)
void EnableNew(bool b, const StyleList *rStyleList)
Link< sal_uInt16, void > m_aStyleListSetFamily
DECL_LINK(UpdateFamily_Hdl, StyleList &, void)
virtual bool IsCheckedItem(const OUString &)
virtual void InsertFamilyItem(sal_uInt16 nId, const SfxStyleFamilyItem &rItem)=0
DECL_LINK(LoadFactoryStyleFilter_Hdl, SfxObjectShell const *, sal_Int32)
void SetWaterCanState(const SfxBoolItem *pItem)
void connect_set_family(const Link< sal_uInt16, void > rLink)
void connect_stylelist_read_resource(const Link< void *, size_t > &rLink)
virtual void CheckItem(const OUString &, bool=true)
Link< void *, void > m_aStyleListUpdateStyleDependents
bool bNewByExampleDisabled
virtual void ClearFamilyList()=0
void connect_stylelist_clear(const Link< void *, void > &rLink)
Link< void *, bool > m_aStyleListWaterCan
std::unique_ptr< weld::CheckButton > mxPreviewCheckbox
DECL_LINK(OnAsyncExecuteDrop, void *, void)
DECL_LINK(UpdateStyles_Hdl, StyleFlags, void)
virtual ~SfxCommonTemplateDialog_Impl()
std::unique_ptr< weld::CheckButton > mxHighlightCheckbox
virtual void EnableItem(const OUString &rMesId, bool bCheck=true) override
std::unique_ptr< weld::Toolbar > m_xActionTbR
SfxTemplateDialog_Impl(SfxBindings *, SfxTemplatePanelControl *pDlgWindow)
friend class SfxTemplatePanelControl
virtual void EnableEdit(bool, StyleList *rStyleList) override
sal_Int8 AcceptToolbarDrop(const AcceptDropEvent &rEvt, const DropTargetHelper &rHelper)
virtual bool IsCheckedItem(const OUString &rMesId) override
virtual void CheckItem(const OUString &rMesId, bool bCheck=true) override
virtual void ReplaceUpdateButtonByMenu() override
std::unique_ptr< weld::Menu > m_xToolMenu
friend class SfxTemplateDialog
std::unique_ptr< ToolbarDropTarget > m_xToolbarDropTargetHelper
virtual void EnableFamilyItem(sal_uInt16 nId, bool bEnabled) override
virtual void InsertFamilyItem(sal_uInt16 nId, const SfxStyleFamilyItem &rItem) override
virtual ~SfxTemplateDialog_Impl() override
DECL_LINK(ToolBoxLSelect, const OUString &, void)
DECL_LINK(ToolMenuSelectHdl, const OUString &, void)
std::unique_ptr< weld::Toolbar > m_xActionTbL
DECL_LINK(ToolBoxRSelect, const OUString &, void)
virtual void ClearFamilyList() override