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) |
Public Member Functions inherited from SfxListener | |
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 |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
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 230 of file filtnav.hxx.
|
private |
Definition at line 270 of file filtnav.hxx.
svxform::FmFilterNavigator::FmFilterNavigator | ( | vcl::Window * | pTopLevel, |
std::unique_ptr< weld::TreeView > | xTreeView | ||
) |
Definition at line 1049 of file filtnav.cxx.
References HID_FILTER_NAVIGATOR, LINK, m_pModel, m_xTreeView, and SfxListener::StartListening().
|
overridevirtual |
Definition at line 1074 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 1172 of file filtnav.cxx.
References DND_ACTION_NONE, FindEntry(), svxform::OFilterItemExchange::getFormItem(), svxform::OFilterItemExchange::hasFormat(), m_aControlExchange, m_aDropTargetHelper, m_xTreeView, AcceptDropEvent::maPosPixel, AcceptDropEvent::mnAction, and pData.
Referenced by svxform::FmFilterNavigatorDropTarget::AcceptDrop().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 1696 of file filtnav.cxx.
References i, m_pModel, and m_xTreeView.
void svxform::FmFilterNavigator::EndEditing | ( | ) |
Definition at line 1343 of file filtnav.cxx.
References m_xEditingCurrently, and m_xTreeView.
Referenced by Remove().
sal_Int8 svxform::FmFilterNavigator::ExecuteDrop | ( | const ExecuteDropEvent & | rEvt | ) |
Definition at line 1225 of file filtnav.cxx.
References DND_ACTION_COPY, DND_ACTION_NONE, FindEntry(), svxform::OFilterItemExchange::getDraggedEntries(), insertFilterItem(), m_aControlExchange, m_xTreeView, ExecuteDropEvent::maPosPixel, and ExecuteDropEvent::mnAction.
Referenced by svxform::FmFilterNavigatorDropTarget::ExecuteDrop().
|
private |
Definition at line 1307 of file filtnav.cxx.
References m_xTreeView.
Referenced by AcceptDrop(), ExecuteDrop(), Insert(), Notify(), Remove(), and UpdateContent().
|
inline |
Definition at line 255 of file filtnav.hxx.
References m_xTreeView.
Referenced by svxform::FmFilterNavigatorDropTarget::AcceptDrop().
|
private |
Definition at line 1564 of file filtnav.cxx.
References m_xTreeView.
Referenced by svxform::IMPL_LINK().
|
private |
Definition at line 1581 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 1366 of file filtnav.cxx.
References svxform::FmFilterData::GetParent(), and m_xTreeView.
|
inline |
Definition at line 246 of file filtnav.hxx.
References m_xTreeView.
|
private |
Definition at line 1325 of file filtnav.cxx.
References FindEntry(), svxform::FmFilterData::GetImage(), svxform::FmFilterData::GetParent(), svxform::FmFilterData::GetText(), m_pModel, m_xTreeView, nPos, 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 1401 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 1281 of file filtnav.cxx.
References FindEntry(), Insert(), m_xTreeView, and Remove().
|
private |
Definition at line 1353 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 1082 of file filtnav.cxx.
References FindEntry(), m_pModel, and m_xTreeView.
|
private |
Definition at line 238 of file filtnav.hxx.
Referenced by AcceptDrop(), and ExecuteDrop().
|
private |
Definition at line 234 of file filtnav.hxx.
Referenced by AcceptDrop().
|
private |
Definition at line 240 of file filtnav.hxx.
Referenced by ~FmFilterNavigator().
|
private |
Definition at line 236 of file filtnav.hxx.
Referenced by DeleteSelection(), FmFilterNavigator(), Insert(), insertFilterItem(), UpdateContent(), and ~FmFilterNavigator().
|
private |
Definition at line 237 of file filtnav.hxx.
Referenced by EndEditing(), and Remove().
|
private |
Definition at line 232 of file filtnav.hxx.
|
private |
Definition at line 233 of file filtnav.hxx.
Referenced by AcceptDrop(), DeleteSelection(), EndEditing(), ExecuteDrop(), FindEntry(), FmFilterNavigator(), get_widget(), getNextEntry(), getPrevEntry(), getSelectedFilterItems(), GrabFocus(), Insert(), Notify(), Remove(), and UpdateContent().