LibreOffice Module sfx2 (master) 1
|
#include <templdgi.hxx>
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< ToolbarDropTarget > | m_xToolbarDropTargetHelper |
std::unique_ptr< weld::Toolbar > | m_xActionTbL |
std::unique_ptr< weld::Toolbar > | m_xActionTbR |
std::unique_ptr< weld::Menu > | m_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 | |
SfxBindings * | pBindings |
css::uno::Reference< css::frame::XModuleManager2 > | xModuleManager |
DeletionWatcher * | m_pDeletionWatcher |
StyleList | m_aStyleList |
std::unique_ptr< weld::CheckButton > | mxPreviewCheckbox |
std::unique_ptr< weld::CheckButton > | mxHighlightCheckbox |
std::unique_ptr< weld::ComboBox > | mxFilterLb |
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_Int8 > | m_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 |
Definition at line 201 of file templdgi.hxx.
SfxTemplateDialog_Impl::SfxTemplateDialog_Impl | ( | SfxBindings * | pB, |
SfxTemplatePanelControl * | pDlgWindow | ||
) |
Definition at line 736 of file templdlg.cxx.
References HID_TEMPLDLG_NEWBYEXAMPLE, HID_TEMPLDLG_UPDATEBYEXAMPLE, HID_TEMPLDLG_WATERCAN, Initialize(), LINK, m_xActionTbR, and m_xToolMenu.
|
overridevirtual |
Definition at line 808 of file templdlg.cxx.
References m_xActionTbL, m_xActionTbR, and m_xToolbarDropTargetHelper.
sal_Int8 SfxTemplateDialog_Impl::AcceptToolbarDrop | ( | const AcceptDropEvent & | rEvt, |
const DropTargetHelper & | rHelper | ||
) |
Definition at line 908 of file templdlg.cxx.
References SfxCommonTemplateDialog_Impl::bNewByExampleDisabled, DND_ACTION_COPY, DND_ACTION_NONE, m_nActionTbLVisible, m_xActionTbL, AcceptDropEvent::maPosPixel, nIndex, and SfxTemplate::SfxFamilyIdToNId().
Referenced by ToolbarDropTarget::AcceptDrop().
|
overrideprivatevirtual |
Reimplemented from SfxCommonTemplateDialog_Impl.
Definition at line 822 of file templdlg.cxx.
References SfxCommonTemplateDialog_Impl::bIsWater, m_xActionTbL, and m_xActionTbR.
|
overrideprivatevirtual |
Implements SfxCommonTemplateDialog_Impl.
Definition at line 801 of file templdlg.cxx.
References i, m_xActionTbL, and nCount.
|
private |
|
private |
|
private |
|
overrideprivatevirtual |
Reimplemented from SfxCommonTemplateDialog_Impl.
Definition at line 215 of file templdlg.cxx.
References SfxCommonTemplateDialog_Impl::bUpdateByExampleDisabled, SfxCommonTemplateDialog_Impl::EnableEdit(), EnableItem(), and SfxCommonTemplateDialog_Impl::m_aStyleList.
|
overrideprivatevirtual |
Implements SfxCommonTemplateDialog_Impl.
Definition at line 765 of file templdlg.cxx.
References m_xActionTbL, and nId.
|
overrideprivatevirtual |
Reimplemented from SfxCommonTemplateDialog_Impl.
Definition at line 815 of file templdlg.cxx.
References SfxCommonTemplateDialog_Impl::Execute_Impl(), IsCheckedItem(), SfxCommonTemplateDialog_Impl::m_aStyleList, and m_xActionTbR.
Referenced by EnableEdit().
|
private |
Definition at line 853 of file templdlg.cxx.
References aProperties, vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetPopupLabelForCommand(), and m_xToolMenu.
Referenced by ReplaceUpdateButtonByMenu().
void SfxTemplateDialog_Impl::Initialize | ( | ) |
Definition at line 754 of file templdlg.cxx.
References HID_TEMPLDLG_TOOLBOX_LEFT, SfxCommonTemplateDialog_Impl::Initialize(), LINK, m_xActionTbL, m_xActionTbR, and m_xToolbarDropTargetHelper.
Referenced by SfxTemplateDialog_Impl().
|
overrideprivatevirtual |
Implements SfxCommonTemplateDialog_Impl.
Definition at line 771 of file templdlg.cxx.
References SfxStyleFamilyItem::GetFamily(), SfxStyleFamilyItem::GetImage(), SfxStyleFamilyItem::GetText(), m_nActionTbLVisible, m_xActionTbL, nId, and sId.
|
overrideprivatevirtual |
Reimplemented from SfxCommonTemplateDialog_Impl.
Definition at line 833 of file templdlg.cxx.
References m_xActionTbL, and m_xActionTbR.
Referenced by EnableItem().
|
overrideprivatevirtual |
Reimplemented from SfxCommonTemplateDialog_Impl.
Definition at line 793 of file templdlg.cxx.
References FillToolMenu(), and m_xActionTbR.
|
friend |
Definition at line 204 of file templdgi.hxx.
|
friend |
Definition at line 229 of file templdgi.hxx.
|
friend |
Definition at line 205 of file templdgi.hxx.
|
private |
Definition at line 211 of file templdgi.hxx.
Referenced by AcceptToolbarDrop(), and InsertFamilyItem().
|
private |
Definition at line 208 of file templdgi.hxx.
Referenced by AcceptToolbarDrop(), CheckItem(), ClearFamilyList(), EnableFamilyItem(), Initialize(), InsertFamilyItem(), IsCheckedItem(), and ~SfxTemplateDialog_Impl().
|
private |
Definition at line 209 of file templdgi.hxx.
Referenced by CheckItem(), EnableItem(), Initialize(), IsCheckedItem(), ReplaceUpdateButtonByMenu(), SfxTemplateDialog_Impl(), and ~SfxTemplateDialog_Impl().
|
private |
Definition at line 207 of file templdgi.hxx.
Referenced by Initialize(), and ~SfxTemplateDialog_Impl().
|
private |
Definition at line 210 of file templdgi.hxx.
Referenced by FillToolMenu(), and SfxTemplateDialog_Impl().