LibreOffice Module svx (master)
1
|
#include <filtnav.hxx>
Public Member Functions | |
FmFilterNavigator (vcl::Window *pTopLevel, std::unique_ptr< weld::TreeView > xTreeView) | |
virtual | ~FmFilterNavigator () override |
void | GrabFocus () |
void | EndEditing () |
void | UpdateContent (const css::uno::Reference< css::container::XIndexAccess > &xControllers, const css::uno::Reference< css::form::runtime::XFormController > &xCurrent) |
weld::TreeView & | get_widget () |
sal_Int8 | AcceptDrop (const AcceptDropEvent &rEvt) |
sal_Int8 | ExecuteDrop (const ExecuteDropEvent &rEvt) |
![]() | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
Private Types | |
typedef std::pair< const weld::TreeIter &, OUString > | IterString |
Private Member Functions | |
DECL_LINK (KeyInputHdl, const KeyEvent &, bool) | |
DECL_LINK (PopupMenuHdl, const CommandEvent &, bool) | |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
DECL_STATIC_LINK (FmFilterNavigator, CustomGetSizeHdl, weld::TreeView::get_size_args, Size) | |
DECL_STATIC_LINK (FmFilterNavigator, CustomRenderHdl, weld::TreeView::render_args, void) | |
DECL_LINK (SelectHdl, weld::TreeView &, void) | |
DECL_LINK (EditingEntryHdl, const weld::TreeIter &, bool) | |
DECL_LINK (EditedEntryHdl, const IterString &, bool) | |
DECL_LINK (DragBeginHdl, bool &, bool) | |
void | DeleteSelection () |
std::unique_ptr< weld::TreeIter > | FindEntry (const FmFilterData *pItem) const |
void | Insert (const FmFilterData *pItem, int nPos) |
void | Remove (FmFilterData const *pItem) |
DECL_LINK (OnRemove, void *, void) | |
FmFormItem * | getSelectedFilterItems (::std::vector< FmFilterItem * > &_rItemList) |
returns the first form item and the selected FilterItems in the vector More... | |
void | insertFilterItem (const ::std::vector< FmFilterItem * > &_rFilterList, FmFilterItems *_pTargetItems, bool _bCopy) |
inserts the filter items into the tree model and creates new FilterItems if needed. More... | |
bool | getPrevEntry (weld::TreeIter &rEntry) |
bool | getNextEntry (weld::TreeIter &rEntry) |
Private Attributes | |
VclPtr< vcl::Window > | m_xTopLevel |
std::unique_ptr< weld::TreeView > | m_xTreeView |
FmFilterNavigatorDropTarget | m_aDropTargetHelper |
std::unique_ptr< FmFilterModel > | m_pModel |
std::unique_ptr< weld::TreeIter > | m_xEditingCurrently |
OFilterExchangeHelper | m_aControlExchange |
ImplSVEvent * | m_nAsyncRemoveEvent |
Definition at line 229 of file filtnav.hxx.
|
private |
Definition at line 269 of file filtnav.hxx.
svxform::FmFilterNavigator::FmFilterNavigator | ( | vcl::Window * | pTopLevel, |
std::unique_ptr< weld::TreeView > | xTreeView | ||
) |
Definition at line 1048 of file filtnav.cxx.
References HID_FILTER_NAVIGATOR, LINK, m_pModel, m_xTreeView, m_xTreeView, and SfxListener::StartListening().
|
overridevirtual |
Definition at line 1073 of file filtnav.cxx.
References SfxListener::EndListening(), m_nAsyncRemoveEvent, m_pModel, and Application::RemoveUserEvent().
sal_Int8 svxform::FmFilterNavigator::AcceptDrop | ( | const AcceptDropEvent & | rEvt | ) |
Definition at line 1171 of file filtnav.cxx.
References DND_ACTION_NONE, FindEntry(), DropTargetHelper::GetDataFlavorExVector(), svxform::OFilterItemExchange::getFormItem(), svxform::FmFilterData::GetParent(), svxform::OFilterItemExchange::hasFormat(), m_aControlExchange, m_aDropTargetHelper, m_xTreeView, AcceptDropEvent::maPosPixel, AcceptDropEvent::mnAction, pData, and Point.
Referenced by svxform::FmFilterNavigatorDropTarget::AcceptDrop().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 1695 of file filtnav.cxx.
References i, m_pModel, and m_xTreeView.
void svxform::FmFilterNavigator::EndEditing | ( | ) |
Definition at line 1342 of file filtnav.cxx.
References m_xEditingCurrently, and m_xTreeView.
Referenced by Remove().
sal_Int8 svxform::FmFilterNavigator::ExecuteDrop | ( | const ExecuteDropEvent & | rEvt | ) |
Definition at line 1224 of file filtnav.cxx.
References DND_ACTION_COPY, DND_ACTION_NONE, FindEntry(), svxform::OFilterItemExchange::getDraggedEntries(), insertFilterItem(), m_aControlExchange, m_xTreeView, ExecuteDropEvent::maPosPixel, ExecuteDropEvent::mnAction, and Point.
Referenced by svxform::FmFilterNavigatorDropTarget::ExecuteDrop().
|
private |
Definition at line 1306 of file filtnav.cxx.
References m_xTreeView.
Referenced by AcceptDrop(), ExecuteDrop(), Insert(), Notify(), Remove(), and UpdateContent().
|
inline |
Definition at line 254 of file filtnav.hxx.
References m_xTreeView.
Referenced by svxform::FmFilterNavigatorDropTarget::AcceptDrop().
|
private |
Definition at line 1563 of file filtnav.cxx.
References m_xTreeView.
Referenced by svxform::IMPL_LINK().
|
private |
Definition at line 1580 of file filtnav.cxx.
References m_xTreeView.
Referenced by svxform::IMPL_LINK().
|
private |
returns the first form item and the selected FilterItems in the vector
_rItemList | Is filled inside. <OUT> |
Definition at line 1365 of file filtnav.cxx.
References m_xTreeView.
|
inline |
Definition at line 245 of file filtnav.hxx.
|
private |
Definition at line 1324 of file filtnav.cxx.
References FindEntry(), svxform::FmFilterData::GetImage(), svxform::FmFilterData::GetParent(), svxform::FmFilterData::GetText(), m_pModel, m_xTreeView, sId, and weld::toId().
Referenced by Notify().
|
private |
inserts the filter items into the tree model and creates new FilterItems if needed.
_rFilterList | The items which should be inserted. |
_pTargetItems | The target where to insert the items. |
_bCopy | If <TRUE> the items will not be removed from the model, otherwise they will. |
Definition at line 1400 of file filtnav.cxx.
References svxform::FmFilterItems::Find(), svxform::FmFilterData::GetParent(), svxform::FmFilterData::GetText(), and m_pModel.
Referenced by ExecuteDrop().
|
overrideprivatevirtual |
Reimplemented from SfxListener.
Definition at line 1280 of file filtnav.cxx.
References FindEntry(), Insert(), m_xTreeView, and Remove().
|
private |
Definition at line 1352 of file filtnav.cxx.
References EndEditing(), FindEntry(), m_xEditingCurrently, and m_xTreeView.
Referenced by Notify().
void svxform::FmFilterNavigator::UpdateContent | ( | const css::uno::Reference< css::container::XIndexAccess > & | xControllers, |
const css::uno::Reference< css::form::runtime::XFormController > & | xCurrent | ||
) |
Definition at line 1081 of file filtnav.cxx.
References FindEntry(), m_pModel, and m_xTreeView.
|
private |
Definition at line 237 of file filtnav.hxx.
Referenced by AcceptDrop(), and ExecuteDrop().
|
private |
Definition at line 233 of file filtnav.hxx.
Referenced by AcceptDrop().
|
private |
Definition at line 239 of file filtnav.hxx.
Referenced by ~FmFilterNavigator().
|
private |
Definition at line 235 of file filtnav.hxx.
Referenced by DeleteSelection(), FmFilterNavigator(), Insert(), insertFilterItem(), UpdateContent(), and ~FmFilterNavigator().
|
private |
Definition at line 236 of file filtnav.hxx.
Referenced by EndEditing(), and Remove().
|
private |
Definition at line 231 of file filtnav.hxx.
|
private |
Definition at line 232 of file filtnav.hxx.
Referenced by AcceptDrop(), DeleteSelection(), EndEditing(), ExecuteDrop(), FindEntry(), FmFilterNavigator(), get_widget(), getNextEntry(), getPrevEntry(), getSelectedFilterItems(), Insert(), Notify(), Remove(), and UpdateContent().