LibreOffice Module sfx2 (master) 1
|
#include <templdgi.hxx>
Classes | |
class | DeletionWatcher |
Public Member Functions | |
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) |
Protected Member Functions | |
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) | |
Private Member Functions | |
DeletionWatcher * | impl_setDeletionWatcher (DeletionWatcher *pNewWatcher) |
Friends | |
class | DeletionWatcher |
class | SfxTemplateControllerItem |
Definition at line 51 of file templdgi.hxx.
SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl | ( | SfxBindings * | pB, |
weld::Container * | pC, | ||
weld::Builder * | pBuilder | ||
) |
Definition at line 194 of file templdlg.cxx.
References create(), getProcessComponentContext(), HID_TEMPLATE_FILTER, mxFilterLb, and mxPreviewCheckbox.
|
virtual |
Definition at line 349 of file templdlg.cxx.
References bIsWater, Link< typename Arg, typename Ret >::Call(), Execute_Impl(), m_aStyleList, m_aStyleListCleanup, m_aStyleListClear, m_pDeletionWatcher, mxFilterLb, mxPreviewCheckbox, and SfxCommonTemplateDialog_Impl::DeletionWatcher::signal().
|
protected |
Definition at line 571 of file templdlg.cxx.
References Link< typename Arg, typename Ret >::Call(), CheckItem(), SfxDispatcher::Execute(), Execute_Impl(), SfxApplication::GetDispatcher_Impl(), SfxStyleFamilyItem::GetFamily(), StyleList::GetFamilyItem(), StyleList::GetSelectedEntry(), IsCheckedItem(), m_aStyleList, m_aStyleListHasSelectedStyle, m_aStyleListNewMenu, SAL_WARN, SfxBoolItem::SetValue(), SetWaterCanState(), and SfxGetpApp().
|
inlinevirtual |
Reimplemented in SfxTemplateDialog_Impl.
Definition at line 165 of file templdgi.hxx.
Referenced by ActionSelect(), FamilySelect(), SetWaterCanState(), and StyleList::Update().
|
protectedpure virtual |
Implemented in SfxTemplateDialog_Impl.
|
inline |
Definition at line 195 of file templdgi.hxx.
References m_aStyleListSetFamily.
Referenced by StyleList::Initialize().
|
inline |
Definition at line 186 of file templdgi.hxx.
References m_aStyleListCleanup.
Referenced by StyleList::Initialize().
|
inline |
Definition at line 185 of file templdgi.hxx.
References m_aStyleListClear.
Referenced by StyleList::Initialize().
void SfxCommonTemplateDialog_Impl::connect_stylelist_enable_delete | ( | const Link< void *, void > | rLink | ) |
Definition at line 181 of file templdlg.cxx.
References m_aStyleListEnableDelete.
Referenced by StyleList::Initialize().
void SfxCommonTemplateDialog_Impl::connect_stylelist_enable_tree_drag | ( | const Link< bool, void > | rLink | ) |
Definition at line 176 of file templdlg.cxx.
References m_aStyleListEnableTreeDrag.
Referenced by StyleList::Initialize().
void SfxCommonTemplateDialog_Impl::connect_stylelist_execute_drop | ( | const Link< const ExecuteDropEvent &, sal_Int8 > & | rLink | ) |
Definition at line 160 of file templdlg.cxx.
References m_aStyleListExecuteDrop.
Referenced by StyleList::Initialize().
|
inline |
Definition at line 188 of file templdgi.hxx.
References m_aStyleListNewMenu.
Referenced by StyleList::Initialize().
|
inline |
Definition at line 189 of file templdgi.hxx.
References m_aStyleListWaterCan.
Referenced by StyleList::Initialize().
void SfxCommonTemplateDialog_Impl::connect_stylelist_has_selected_style | ( | const Link< void *, bool > & | rLink | ) |
Definition at line 166 of file templdlg.cxx.
References m_aStyleListHasSelectedStyle.
Referenced by StyleList::Initialize().
|
inline |
Definition at line 184 of file templdgi.hxx.
References m_aStyleListReadResource.
Referenced by StyleList::Initialize().
void SfxCommonTemplateDialog_Impl::connect_stylelist_set_water_can_state | ( | const Link< const SfxBoolItem *, void > | rLink | ) |
Definition at line 186 of file templdlg.cxx.
References m_aStyleListSetWaterCanState.
Referenced by StyleList::Initialize().
void SfxCommonTemplateDialog_Impl::connect_stylelist_update_style_dependents | ( | const Link< void *, void > & | rLink | ) |
Definition at line 171 of file templdlg.cxx.
References m_aStyleListUpdateStyleDependents.
Referenced by StyleList::Initialize().
|
protected |
|
protected |
|
protected |
|
protected |
SfxCommonTemplateDialog_Impl::DECL_LINK | ( | OnAsyncExecuteDrop | , |
void * | , | ||
void | |||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void SfxCommonTemplateDialog_Impl::EnableDel | ( | bool | b, |
const StyleList * | rStyleList | ||
) |
Definition at line 937 of file templdlg.cxx.
References StyleList::Enabledel(), and m_aStyleList.
Referenced by SfxTemplateControllerItem::StateChangedAtToolBoxControl().
|
virtual |
Reimplemented in SfxTemplateDialog_Impl.
Definition at line 932 of file templdlg.cxx.
References StyleList::Enableedit(), and m_aStyleList.
Referenced by SfxTemplateDialog_Impl::EnableEdit(), StyleList::Notify(), StyleList::SelectStyle(), and SfxTemplateControllerItem::StateChangedAtToolBoxControl().
void SfxCommonTemplateDialog_Impl::EnableExample_Impl | ( | sal_uInt16 | nId, |
bool | bEnable | ||
) |
Definition at line 696 of file templdlg.cxx.
References bNewByExampleDisabled, bUpdateByExampleDisabled, EnableItem(), StyleList::EnableNewByExample(), IsSafeForWaterCan(), m_aStyleList, and nId.
Referenced by SfxTemplateControllerItem::StateChangedAtToolBoxControl().
|
protectedpure virtual |
Implemented in SfxTemplateDialog_Impl.
Referenced by SfxTemplateControllerItem::StateChangedAtToolBoxControl().
void SfxCommonTemplateDialog_Impl::EnableHide | ( | bool | b, |
const StyleList * | rStyleList | ||
) |
Definition at line 947 of file templdlg.cxx.
References StyleList::Enablehide(), and m_aStyleList.
Referenced by StyleList::Notify(), StyleList::SelectStyle(), and SfxTemplateControllerItem::StateChangedAtToolBoxControl().
|
protected |
Definition at line 489 of file templdlg.cxx.
References FilterSelect(), StyleList::GetSelectedEntry(), StyleList::IsHierarchical(), m_aStyleList, m_bWantHierarchical, mxFilterLb, SelectStyle(), StyleList::SetFilterControlsHandle(), and StyleList::SetHierarchical().
|
inlinevirtual |
Reimplemented in SfxTemplateDialog_Impl.
Definition at line 167 of file templdgi.hxx.
Referenced by EnableExample_Impl(), StyleList::FillTreeBox(), and SetWaterCanState().
void SfxCommonTemplateDialog_Impl::EnableNew | ( | bool | b, |
const StyleList * | rStyleList | ||
) |
Definition at line 942 of file templdlg.cxx.
References StyleList::Enablenew(), and m_aStyleList.
Referenced by SfxTemplateControllerItem::StateChangedAtToolBoxControl(), StyleList::Update(), and StyleList::UpdateFamily().
void SfxCommonTemplateDialog_Impl::EnableShow | ( | bool | b, |
const StyleList * | rStyleList | ||
) |
Definition at line 952 of file templdlg.cxx.
References StyleList::Enableshow(), and m_aStyleList.
Referenced by StyleList::Notify(), StyleList::SelectStyle(), and SfxTemplateControllerItem::StateChangedAtToolBoxControl().
void SfxCommonTemplateDialog_Impl::EnableTreeDrag | ( | bool | b | ) |
Definition at line 382 of file templdlg.cxx.
References Link< typename Arg, typename Ret >::Call(), and m_aStyleListEnableTreeDrag.
Referenced by SfxTemplateControllerItem::StateChangedAtToolBoxControl().
bool SfxCommonTemplateDialog_Impl::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 |
||
) |
Definition at line 424 of file templdlg.cxx.
References StyleList::EnableExecute(), SfxDispatcher::Execute(), SfxApplication::GetDispatcher_Impl(), StyleList::GetFamilyItem(), SfxStyleFamilyItem::GetFilterList(), StyleList::GetSelectedEntry(), CntUInt16Item::GetValue(), i, nCount, SfxFilterTuple::nFlags, nId, RECORD, CntUnencodedStringItem::SetValue(), SfxGetpApp(), and SYNCHRON.
Referenced by ActionSelect(), StyleList::DeleteHdl(), StyleList::EditHdl(), SfxTemplateDialog_Impl::EnableItem(), StyleList::HideHdl(), StyleList::NewHdl(), StyleList::ShowHdl(), and ~SfxCommonTemplateDialog_Impl().
sal_Int8 SfxCommonTemplateDialog_Impl::ExecuteDrop | ( | const ExecuteDropEvent & | rEvt | ) |
Definition at line 96 of file templdlg.cxx.
References Link< typename Arg, typename Ret >::Call(), DND_ACTION_NONE, and m_aStyleListExecuteDrop.
Referenced by ToolbarDropTarget::ExecuteDrop().
void SfxCommonTemplateDialog_Impl::FamilySelect | ( | sal_uInt16 | nId, |
StyleList & | rStyleList, | ||
bool | bRefresh = false |
||
) |
Definition at line 547 of file templdlg.cxx.
References CheckItem(), StyleList::FamilySelect(), StyleList::HasStylesHighlighterFeature(), StyleList::IsHighlightCharStyles(), StyleList::IsHighlightParaStyles(), m_aStyleList, MAX_FAMILIES, mxHighlightCheckbox, nActFamily, and SfxTemplate::NIdToSfxFamilyId().
Referenced by StyleList::Update(), and StyleList::UpdateStyles().
|
protected |
Definition at line 515 of file templdlg.cxx.
References StyleList::FilterSelect(), m_aStyleList, and nActFilter.
Referenced by EnableHierarchical().
|
inline |
|
private |
Definition at line 268 of file templdlg.cxx.
References m_pDeletionWatcher.
Referenced by SfxCommonTemplateDialog_Impl::DeletionWatcher::~DeletionWatcher().
|
protected |
Definition at line 276 of file templdlg.cxx.
References StyleList::connect_ClearResource(), StyleList::connect_LoadFactoryStyleFilter(), StyleList::connect_ReadResource(), StyleList::connect_SaveSelection(), StyleList::connect_UpdateFamily(), StyleList::connect_UpdateStyles(), StyleList::HasStylesHighlighterFeature(), StyleList::Initialize(), LINK, m_aStyleList, mxFilterLb, mxHighlightCheckbox, mxPreviewCheckbox, nActFamily, and SfxTemplate::NIdToSfxFamilyId().
Referenced by SfxTemplateDialog_Impl::Initialize().
|
protectedpure virtual |
Implemented in SfxTemplateDialog_Impl.
|
inlinevirtual |
Reimplemented in SfxTemplateDialog_Impl.
Definition at line 169 of file templdgi.hxx.
Referenced by ActionSelect(), and StyleList::Notify().
|
protected |
Is it safe to show the water-can / fill icon.
If we've a hierarchical widget - we have only single select, otherwise we need to check if we have a multi-selection. We either have a mxTreeBox showing or an mxFmtLb (which we hide when not shown)
Definition at line 367 of file templdlg.cxx.
References Link< typename Arg, typename Ret >::Call(), and m_aStyleListWaterCan.
Referenced by EnableExample_Impl(), SelectStyle(), and SetWaterCanState().
void SfxCommonTemplateDialog_Impl::IsUpdate | ( | StyleList & | ) |
Definition at line 523 of file templdlg.cxx.
References SfxObjectShell::GetAutoStyleFilterIndex(), SfxBindings::GetDispatcher_Impl(), SfxDispatcher::GetFrame(), SfxViewFrame::GetObjectShell(), nActFilter, and pBindings.
Referenced by StyleList::Update().
|
protectedvirtual |
Reimplemented in SfxTemplateDialog_Impl.
Definition at line 903 of file templdlg.cxx.
|
protected |
Definition at line 648 of file templdlg.cxx.
References Any, getModuleIdentifier(), m_bWantHierarchical, comphelper::makePropertyValue(), and xModuleManager.
void SfxCommonTemplateDialog_Impl::SelectStyle | ( | const OUString & | rStyle, |
bool | bIsCallback, | ||
StyleList & | rStyleList | ||
) |
Definition at line 372 of file templdlg.cxx.
References bWaterDisabled, IsSafeForWaterCan(), and StyleList::SelectStyle().
Referenced by EnableHierarchical(), StyleList::FillTreeBox(), StyleList::SetHierarchical(), StyleList::Update(), and StyleList::UpdateStyles().
|
protected |
Definition at line 878 of file templdlg.cxx.
References Link< typename Arg, typename Ret >::Call(), m_aStyleListSetFamily, MAX_FAMILIES, nActFamily, nId, and SfxTemplate::SfxFamilyIdToNId().
Referenced by SfxTemplateControllerItem::StateChangedAtToolBoxControl().
|
protected |
Definition at line 417 of file templdlg.cxx.
References bUpdate, m_aStyleList, and StyleList::SetFamilyState().
Referenced by SfxTemplateControllerItem::StateChangedAtToolBoxControl().
|
inline |
|
protected |
Definition at line 388 of file templdlg.cxx.
References bWaterDisabled, Link< typename Arg, typename Ret >::Call(), CheckItem(), EnableItem(), SfxBoolItem::GetValue(), IsSafeForWaterCan(), and m_aStyleListSetWaterCanState.
Referenced by ActionSelect().
|
friend |
Definition at line 55 of file templdgi.hxx.
|
friend |
Definition at line 63 of file templdgi.hxx.
|
protected |
Definition at line 78 of file templdgi.hxx.
Referenced by SfxTemplateDialog_Impl::CheckItem(), and ~SfxCommonTemplateDialog_Impl().
|
protected |
Definition at line 81 of file templdgi.hxx.
Referenced by SfxTemplateDialog_Impl::AcceptToolbarDrop(), and EnableExample_Impl().
|
protected |
Definition at line 79 of file templdgi.hxx.
Referenced by GetNotifyUpdate(), SetFamilyState(), and SetNotifyupdate().
|
protected |
Definition at line 82 of file templdgi.hxx.
Referenced by SfxTemplateDialog_Impl::EnableEdit(), and EnableExample_Impl().
|
protected |
Definition at line 80 of file templdgi.hxx.
Referenced by SelectStyle(), and SetWaterCanState().
|
protected |
Definition at line 70 of file templdgi.hxx.
Referenced by ActionSelect(), EnableDel(), EnableEdit(), SfxTemplateDialog_Impl::EnableEdit(), EnableExample_Impl(), EnableHide(), EnableHierarchical(), SfxTemplateDialog_Impl::EnableItem(), EnableNew(), EnableShow(), FamilySelect(), FilterSelect(), Initialize(), SetFamilyState(), and ~SfxCommonTemplateDialog_Impl().
|
protected |
Definition at line 87 of file templdgi.hxx.
Referenced by connect_stylelist_cleanup(), and ~SfxCommonTemplateDialog_Impl().
|
protected |
Definition at line 86 of file templdgi.hxx.
Referenced by connect_stylelist_clear(), and ~SfxCommonTemplateDialog_Impl().
|
protected |
Definition at line 95 of file templdgi.hxx.
Referenced by connect_stylelist_enable_delete().
|
protected |
Definition at line 94 of file templdgi.hxx.
Referenced by connect_stylelist_enable_tree_drag(), and EnableTreeDrag().
|
protected |
Definition at line 88 of file templdgi.hxx.
Referenced by connect_stylelist_execute_drop(), and ExecuteDrop().
|
protected |
Definition at line 91 of file templdgi.hxx.
Referenced by ActionSelect(), and connect_stylelist_has_selected_style().
|
protected |
Definition at line 89 of file templdgi.hxx.
Referenced by ActionSelect(), and connect_stylelist_execute_new_menu().
|
protected |
Definition at line 85 of file templdgi.hxx.
Referenced by connect_stylelist_read_resource().
|
protected |
Definition at line 97 of file templdgi.hxx.
Referenced by connect_set_family(), and SetFamily().
|
protected |
Definition at line 96 of file templdgi.hxx.
Referenced by connect_stylelist_set_water_can_state(), and SetWaterCanState().
|
protected |
Definition at line 92 of file templdgi.hxx.
|
protected |
Definition at line 93 of file templdgi.hxx.
Referenced by connect_stylelist_update_style_dependents().
|
protected |
Definition at line 90 of file templdgi.hxx.
Referenced by connect_stylelist_for_watercan(), and IsSafeForWaterCan().
|
protected |
Definition at line 83 of file templdgi.hxx.
Referenced by EnableHierarchical(), and SaveFactoryStyleFilter().
|
protected |
Definition at line 68 of file templdgi.hxx.
Referenced by impl_setDeletionWatcher(), and ~SfxCommonTemplateDialog_Impl().
|
protected |
Definition at line 73 of file templdgi.hxx.
Referenced by EnableHierarchical(), Initialize(), SfxCommonTemplateDialog_Impl(), and ~SfxCommonTemplateDialog_Impl().
|
protected |
Definition at line 72 of file templdgi.hxx.
Referenced by FamilySelect(), and Initialize().
|
protected |
Definition at line 71 of file templdgi.hxx.
Referenced by Initialize(), SfxCommonTemplateDialog_Impl(), and ~SfxCommonTemplateDialog_Impl().
|
protected |
Definition at line 75 of file templdgi.hxx.
Referenced by FamilySelect(), Initialize(), and SetFamily().
|
protected |
Definition at line 76 of file templdgi.hxx.
Referenced by FilterSelect(), and IsUpdate().
|
protected |
Definition at line 65 of file templdgi.hxx.
Referenced by IsUpdate().
|
protected |
Definition at line 67 of file templdgi.hxx.
Referenced by SaveFactoryStyleFilter().