LibreOffice Module vcl (master) 1
Public Member Functions | List of all members
JSTreeView Class Referencefinal

#include <jsdialogbuilder.hxx>

Inheritance diagram for JSTreeView:
[legend]
Collaboration diagram for JSTreeView:
[legend]

Public Member Functions

 JSTreeView (JSDialogSender *pSender, ::SvTabListBox *pTextView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
 
virtual void set_toggle (int pos, TriState eState, int col=-1) override
 pos is used differently here, it defines how many steps of iterator we need to perform to take entry More...
 
virtual void set_toggle (const weld::TreeIter &rIter, TriState bOn, int col=-1) override
 
virtual void select (int pos) override
 pos is used differently here, it defines how many steps of iterator we need to perform to take entry More...
 
virtual weld::TreeViewget_drag_source () const override
 
virtual void insert (const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet) override
 
virtual void set_text (int row, const OUString &rText, int col=-1) override
 
virtual void set_text (const weld::TreeIter &rIter, const OUString &rStr, int col=-1) override
 
virtual void expand_row (const weld::TreeIter &rIter) override
 
virtual void collapse_row (const weld::TreeIter &rIter) override
 
virtual void set_cursor (const weld::TreeIter &rIter) override
 
void set_cursor_without_notify (const weld::TreeIter &rIter)
 
virtual void set_cursor (int pos) override
 
virtual void remove (int pos) override
 
virtual void remove (const weld::TreeIter &rIter) override
 
virtual void clear () override
 
void drag_start ()
 
void drag_end ()
 
void set_toggle (SvTreeListEntry *pEntry, TriState eState, int col)
 
virtual void set_toggle (int pos, TriState eState, int col=-1) override
 
virtual void set_toggle (const weld::TreeIter &rIter, TriState eState, int col=-1) override
 
virtual void select (int pos) override
 
virtual void select (const weld::TreeIter &rIter) override
 
virtual void insert (const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet) override
 
virtual void remove (int pos) override
 
virtual void remove (const weld::TreeIter &rIter) override
 
- Public Member Functions inherited from JSWidget< SalInstanceTreeView, ::SvTabListBox >
 JSWidget (JSDialogSender *pSender, ::SvTabListBox *pObject, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
 
 JSWidget (JSDialogSender *pSender, ::SvTabListBox *pObject, SalInstanceBuilder *pBuilder, bool bTakeOwnership, bool bUserManagedScrolling)
 
 JSWidget (JSDialogSender *pSender, ::SvTabListBox *pObject, SalInstanceBuilder *pBuilder, const a11yref &rAlly, FactoryFunction pUITestFactoryFunction, void *pUserData, bool bTakeOwnership)
 
virtual void show () override
 
virtual void hide () override
 
virtual void set_sensitive (bool sensitive) override
 
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > get_drop_target () override
 
virtual void freeze () override
 
virtual void thaw () override
 
virtual void grab_focus () override
 
virtual void sendClose () override
 
virtual void sendUpdate (bool bForce=false) override
 
virtual void sendFullUpdate (bool bForce=false) override
 
virtual void sendAction (std::unique_ptr< jsdialog::ActionDataMap > pData) override
 
virtual void sendPopup (vcl::Window *pPopup, OUString sParentId, OUString sCloseId) override
 
virtual void sendClosePopup (vcl::LOKWindowId nWindowId) override
 
virtual void set_buildable_name (const OUString &rName) override
 
- Public Member Functions inherited from SalInstanceTreeView
 SalInstanceTreeView (SvTabListBox *pTreeView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
 
virtual void connect_query_tooltip (const Link< const weld::TreeIter &, OUString > &rLink) override
 
virtual void columns_autosize () override
 
virtual void freeze () override
 
virtual void thaw () override
 
virtual void set_column_fixed_widths (const std::vector< int > &rWidths) override
 
virtual void set_column_editables (const std::vector< bool > &rEditables) override
 
virtual void set_centered_column (int nCol) override
 
virtual int get_column_width (int nColumn) const override
 
virtual OUString get_column_title (int nColumn) const override
 
virtual void set_column_title (int nColumn, const OUString &rTitle) override
 
virtual void set_column_custom_renderer (int nColumn, bool bEnable) override
 
virtual void queue_draw () override
 
virtual void show () override
 
virtual void hide () override
 
virtual void insert (const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet) override
 
virtual void insert_separator (int pos, const OUString &) override
 
virtual void bulk_insert_for_each (int nSourceCount, const std::function< void(weld::TreeIter &, int nSourceIndex)> &func, const weld::TreeIter *pParent=nullptr, const std::vector< int > *pFixedWidths=nullptr) override
 
virtual void set_font_color (int pos, const Color &rColor) override
 
virtual void set_font_color (const weld::TreeIter &rIter, const Color &rColor) override
 
virtual void remove (int pos) override
 
virtual int find_text (const OUString &rText) const override
 
virtual int find_id (const OUString &rId) const override
 
virtual void swap (int pos1, int pos2) override
 
virtual void clear () override
 
virtual int n_children () const override
 
virtual int iter_n_children (const weld::TreeIter &rIter) const override
 
virtual void select (int pos) override
 
virtual int get_cursor_index () const override
 
virtual void set_cursor (int pos) override
 
virtual void scroll_to_row (int pos) override
 
virtual bool is_selected (int pos) const override
 
virtual void unselect (int pos) override
 
virtual std::vector< intget_selected_rows () const override
 
OUString get_text (SvTreeListEntry *pEntry, int col) const
 
virtual OUString get_text (int pos, int col=-1) const override
 
void set_text (SvTreeListEntry *pEntry, const OUString &rText, int col)
 
virtual void set_text (int pos, const OUString &rText, int col=-1) override
 
void set_sensitive (SvTreeListEntry *pEntry, bool bSensitive, int col)
 
bool get_sensitive (SvTreeListEntry *pEntry, int col) const
 
virtual void set_sensitive (int pos, bool bSensitive, int col=-1) override
 
virtual void set_sensitive (const weld::TreeIter &rIter, bool bSensitive, int col=-1) override
 
virtual bool get_sensitive (int pos, int col) const override
 
virtual bool get_sensitive (const weld::TreeIter &rIter, int col) const override
 
virtual TriState get_toggle (int pos, int col=-1) const override
 
virtual TriState get_toggle (const weld::TreeIter &rIter, int col=-1) const override
 
virtual void enable_toggle_buttons (weld::ColumnToggleType eType) override
 
virtual void set_toggle (int pos, TriState eState, int col=-1) override
 
virtual void set_toggle (const weld::TreeIter &rIter, TriState eState, int col=-1) override
 
virtual void set_clicks_to_toggle (int nToggleBehavior) override
 
virtual void set_extra_row_indent (const weld::TreeIter &rIter, int nIndentLevel) override
 
void set_text_emphasis (SvTreeListEntry *pEntry, bool bOn, int col=-1)
 
virtual void set_text_emphasis (const weld::TreeIter &rIter, bool bOn, int col) override
 
virtual void set_text_emphasis (int pos, bool bOn, int col) override
 
virtual bool get_text_emphasis (const weld::TreeIter &rIter, int col) const override
 
virtual bool get_text_emphasis (int pos, int col) const override
 
void set_text_align (SvTreeListEntry *pEntry, double fAlign, int col)
 
virtual void set_text_align (const weld::TreeIter &rIter, double fAlign, int col) override
 
virtual void set_text_align (int pos, double fAlign, int col) override
 
virtual void connect_editing (const Link< const weld::TreeIter &, bool > &rStartLink, const Link< const iter_string &, bool > &rEndLink) override
 
virtual void start_editing (const weld::TreeIter &rIter) override
 
virtual void end_editing () override
 
void set_image (SvTreeListEntry *pEntry, const Image &rImage, int col)
 
virtual void set_image (int pos, const OUString &rImage, int col=-1) override
 
virtual void set_image (int pos, const css::uno::Reference< css::graphic::XGraphic > &rImage, int col=-1) override
 
virtual void set_image (int pos, VirtualDevice &rImage, int col=-1) override
 
virtual void set_image (const weld::TreeIter &rIter, const OUString &rImage, int col=-1) override
 
virtual void set_image (const weld::TreeIter &rIter, const css::uno::Reference< css::graphic::XGraphic > &rImage, int col=-1) override
 
virtual void set_image (const weld::TreeIter &rIter, VirtualDevice &rImage, int col=-1) override
 
const OUString * getEntryData (int index) const
 
virtual OUString get_id (int pos) const override
 
void set_id (SvTreeListEntry *pEntry, const OUString &rId)
 
virtual void set_id (int pos, const OUString &rId) override
 
virtual int get_selected_index () const override
 
virtual OUString get_selected_text () const override
 
virtual OUString get_selected_id () const override
 
virtual std::unique_ptr< weld::TreeItermake_iterator (const weld::TreeIter *pOrig=nullptr) const override
 
virtual void copy_iterator (const weld::TreeIter &rSource, weld::TreeIter &rDest) const override
 
virtual bool get_selected (weld::TreeIter *pIter) const override
 
virtual bool get_cursor (weld::TreeIter *pIter) const override
 
virtual void set_cursor (const weld::TreeIter &rIter) override
 
virtual bool get_iter_first (weld::TreeIter &rIter) const override
 
virtual bool get_iter_abs_pos (weld::TreeIter &rIter, int nPos) const
 
virtual bool iter_next_sibling (weld::TreeIter &rIter) const override
 
virtual bool iter_previous_sibling (weld::TreeIter &rIter) const override
 
virtual bool iter_next (weld::TreeIter &rIter) const override
 
virtual bool iter_previous (weld::TreeIter &rIter) const override
 
virtual bool iter_children (weld::TreeIter &rIter) const override
 
virtual bool iter_parent (weld::TreeIter &rIter) const override
 
virtual void remove (const weld::TreeIter &rIter) override
 
virtual void select (const weld::TreeIter &rIter) override
 
virtual void scroll_to_row (const weld::TreeIter &rIter) override
 
virtual void unselect (const weld::TreeIter &rIter) override
 
virtual int get_iter_depth (const weld::TreeIter &rIter) const override
 
virtual bool iter_has_child (const weld::TreeIter &rIter) const override
 
virtual bool get_row_expanded (const weld::TreeIter &rIter) const override
 
virtual bool get_children_on_demand (const weld::TreeIter &rIter) const override
 
virtual void set_children_on_demand (const weld::TreeIter &rIter, bool bChildrenOnDemand) override
 
virtual void expand_row (const weld::TreeIter &rIter) override
 
virtual void collapse_row (const weld::TreeIter &rIter) override
 
virtual OUString get_text (const weld::TreeIter &rIter, int col=-1) const override
 
virtual void set_text (const weld::TreeIter &rIter, const OUString &rText, int col=-1) override
 
virtual OUString get_id (const weld::TreeIter &rIter) const override
 
virtual void set_id (const weld::TreeIter &rIter, const OUString &rId) override
 
virtual void enable_drag_source (rtl::Reference< TransferDataContainer > &rHelper, sal_uInt8 eDNDConstants) override
 
virtual void set_selection_mode (SelectionMode eMode) override
 
virtual void all_foreach (const std::function< bool(weld::TreeIter &)> &func) override
 
virtual void selected_foreach (const std::function< bool(weld::TreeIter &)> &func) override
 
virtual void visible_foreach (const std::function< bool(weld::TreeIter &)> &func) override
 
virtual void connect_visible_range_changed (const Link< weld::TreeView &, void > &rLink) override
 
virtual void remove_selection () override
 
virtual bool is_selected (const weld::TreeIter &rIter) const override
 
virtual int get_iter_index_in_parent (const weld::TreeIter &rIter) const override
 
virtual int iter_compare (const weld::TreeIter &a, const weld::TreeIter &b) const override
 
virtual void move_subtree (weld::TreeIter &rNode, const weld::TreeIter *pNewParent, int nIndexInNewParent) override
 
virtual int count_selected_rows () const override
 
virtual int get_height_rows (int nRows) const override
 
virtual void make_sorted () override
 
virtual void set_sort_func (const std::function< int(const weld::TreeIter &, const weld::TreeIter &)> &func) override
 
virtual void make_unsorted () override
 
virtual void set_sort_order (bool bAscending) override
 
virtual bool get_sort_order () const override
 
virtual void set_sort_indicator (TriState eState, int col) override
 
virtual TriState get_sort_indicator (int col) const override
 
virtual int get_sort_column () const override
 
virtual void set_sort_column (int nColumn) override
 
SvTabListBoxgetTreeView ()
 
virtual bool get_dest_row_at_pos (const Point &rPos, weld::TreeIter *pResult, bool bDnDMode, bool bAutoScroll=true) override
 
virtual void unset_drag_dest_row () override
 
virtual tools::Rectangle get_row_area (const weld::TreeIter &rIter) const override
 
virtual TreeView * get_drag_source () const override
 
virtual int vadjustment_get_value () const override
 
virtual void vadjustment_set_value (int nValue) override
 
virtual void set_show_expanders (bool bShow) override
 
virtual bool changed_by_hover () const override
 
virtual ~SalInstanceTreeView () override
 
virtual void set_sensitive (bool sensitive) override
 
virtual bool get_sensitive () const override
 
- Public Member Functions inherited from SalInstanceWidget
 SalInstanceWidget (vcl::Window *pWidget, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
 
virtual void set_sensitive (bool sensitive) override
 
virtual bool get_sensitive () const override
 
virtual bool get_visible () const override
 
virtual bool is_visible () const override
 
virtual void set_can_focus (bool bCanFocus) override
 
virtual void grab_focus () override
 
virtual bool has_focus () const override
 
virtual bool is_active () const override
 
virtual bool has_child_focus () const override
 
virtual void show () override
 
virtual void hide () override
 
virtual void set_size_request (int nWidth, int nHeight) override
 
virtual Size get_size_request () const override
 
virtual Size get_preferred_size () const override
 
virtual float get_approximate_digit_width () const override
 
virtual int get_text_height () const override
 
virtual Size get_pixel_size (const OUString &rText) const override
 
virtual vcl::Font get_font () override
 
virtual OUString get_buildable_name () const override
 
virtual void set_buildable_name (const OUString &rId) override
 
virtual void set_help_id (const OUString &rId) override
 
virtual OUString get_help_id () const override
 
virtual void set_grid_left_attach (int nAttach) override
 
virtual int get_grid_left_attach () const override
 
virtual void set_grid_width (int nCols) override
 
virtual void set_grid_top_attach (int nAttach) override
 
virtual int get_grid_top_attach () const override
 
virtual void set_hexpand (bool bExpand) override
 
virtual bool get_hexpand () const override
 
virtual void set_vexpand (bool bExpand) override
 
virtual bool get_vexpand () const override
 
virtual void set_margin_top (int nMargin) override
 
virtual void set_margin_bottom (int nMargin) override
 
virtual void set_margin_start (int nMargin) override
 
virtual void set_margin_end (int nMargin) override
 
virtual int get_margin_top () const override
 
virtual int get_margin_bottom () const override
 
virtual int get_margin_start () const override
 
virtual int get_margin_end () const override
 
virtual void set_accessible_name (const OUString &rName) override
 
virtual void set_accessible_description (const OUString &rDescription) override
 
virtual OUString get_accessible_name () const override
 
virtual OUString get_accessible_description () const override
 
virtual void set_accessible_relation_labeled_by (weld::Widget *pLabel) override
 
virtual void set_tooltip_text (const OUString &rTip) override
 
virtual OUString get_tooltip_text () const override
 
virtual void set_cursor_data (void *pData) override
 
virtual void connect_focus_in (const Link< Widget &, void > &rLink) override
 
virtual void connect_mnemonic_activate (const Link< Widget &, bool > &rLink) override
 
virtual void connect_focus_out (const Link< Widget &, void > &rLink) override
 
virtual void connect_size_allocate (const Link< const Size &, void > &rLink) override
 
virtual void connect_mouse_press (const Link< const MouseEvent &, bool > &rLink) override
 
virtual void connect_mouse_move (const Link< const MouseEvent &, bool > &rLink) override
 
virtual void connect_mouse_release (const Link< const MouseEvent &, bool > &rLink) override
 
virtual void connect_key_press (const Link< const KeyEvent &, bool > &rLink) override
 
virtual void connect_key_release (const Link< const KeyEvent &, bool > &rLink) override
 
virtual void connect_style_updated (const Link< Widget &, void > &rLink) override
 
virtual bool get_extents_relative_to (const Widget &rRelative, int &x, int &y, int &width, int &height) const override
 
virtual void grab_add () override
 
virtual bool has_grab () const override
 
virtual void grab_remove () override
 
virtual bool get_direction () const override
 
virtual void set_direction (bool bRTL) override
 
virtual void freeze () override
 
virtual void thaw () override
 
virtual void set_busy_cursor (bool bBusy) override
 
virtual std::unique_ptr< weld::Containerweld_parent () const override
 
virtual ~SalInstanceWidget () override
 
vcl::WindowgetWidget () const
 
void disable_notify_events ()
 
bool notify_events_disabled () const
 
void enable_notify_events ()
 
virtual void queue_resize () override
 
virtual void help_hierarchy_foreach (const std::function< bool(const OUString &)> &func) override
 
virtual OUString strip_mnemonic (const OUString &rLabel) const override
 
virtual VclPtr< VirtualDevicecreate_virtual_device () const override
 
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > get_drop_target () override
 
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > get_clipboard () const override
 
virtual void connect_get_property_tree (const Link< tools::JsonWriter &, void > &rLink) override
 
virtual void get_property_tree (tools::JsonWriter &rJsonWriter) override
 
virtual void call_attention_to () override
 
virtual void set_stack_background () override
 
virtual void set_title_background () override
 
virtual void set_toolbar_background () override
 
virtual void set_highlight_background () override
 
virtual void set_background (const Color &rColor) override
 
virtual void draw (OutputDevice &rOutput, const Point &rPos, const Size &rSizePixel) override
 
SystemWindowgetSystemWindow ()
 
- Public Member Functions inherited from weld::Widget
virtual void set_sensitive (bool sensitive)=0
 
virtual bool get_sensitive () const =0
 
virtual void show ()=0
 
virtual void hide ()=0
 
virtual void set_visible (bool visible)
 
virtual bool get_visible () const =0
 
virtual bool is_visible () const =0
 
virtual void set_can_focus (bool bCanFocus)=0
 
virtual void grab_focus ()=0
 
virtual bool has_focus () const =0
 
virtual bool has_child_focus () const =0
 
virtual bool is_active () const =0
 
virtual void set_size_request (int nWidth, int nHeight)=0
 
virtual Size get_size_request () const =0
 
virtual Size get_preferred_size () const =0
 
virtual float get_approximate_digit_width () const =0
 
virtual int get_text_height () const =0
 
virtual Size get_pixel_size (const OUString &rText) const =0
 
virtual OUString get_buildable_name () const =0
 
virtual void set_buildable_name (const OUString &rName)=0
 
virtual OUString get_help_id () const =0
 
virtual void set_help_id (const OUString &rName)=0
 
virtual void set_grid_left_attach (int nAttach)=0
 
virtual int get_grid_left_attach () const =0
 
virtual void set_grid_width (int nCols)=0
 
virtual void set_grid_top_attach (int nAttach)=0
 
virtual int get_grid_top_attach () const =0
 
virtual void set_hexpand (bool bExpand)=0
 
virtual bool get_hexpand () const =0
 
virtual void set_vexpand (bool bExpand)=0
 
virtual bool get_vexpand () const =0
 
virtual void set_margin_top (int nMargin)=0
 
virtual void set_margin_bottom (int nMargin)=0
 
virtual void set_margin_start (int nMargin)=0
 
virtual void set_margin_end (int nMargin)=0
 
virtual int get_margin_top () const =0
 
virtual int get_margin_bottom () const =0
 
virtual int get_margin_start () const =0
 
virtual int get_margin_end () const =0
 
virtual bool get_extents_relative_to (const Widget &rRelative, int &x, int &y, int &width, int &height) const =0
 
virtual void set_accessible_name (const OUString &rName)=0
 
virtual void set_accessible_description (const OUString &rDescription)=0
 
virtual OUString get_accessible_name () const =0
 
virtual OUString get_accessible_description () const =0
 
virtual void set_accessible_relation_labeled_by (weld::Widget *pLabel)=0
 
virtual void set_tooltip_text (const OUString &rTip)=0
 
virtual OUString get_tooltip_text () const =0
 
virtual void set_cursor_data (void *pData)=0
 
virtual void connect_focus_in (const Link< Widget &, void > &rLink)
 
virtual void connect_focus_out (const Link< Widget &, void > &rLink)
 
virtual void connect_mnemonic_activate (const Link< Widget &, bool > &rLink)
 
virtual void connect_size_allocate (const Link< const Size &, void > &rLink)
 
virtual void connect_key_press (const Link< const KeyEvent &, bool > &rLink)
 
virtual void connect_key_release (const Link< const KeyEvent &, bool > &rLink)
 
virtual void connect_mouse_press (const Link< const MouseEvent &, bool > &rLink)
 
virtual void connect_mouse_move (const Link< const MouseEvent &, bool > &rLink)
 
virtual void connect_mouse_release (const Link< const MouseEvent &, bool > &rLink)
 
virtual void connect_style_updated (const Link< Widget &, void > &rLink)
 
virtual void grab_add ()=0
 
virtual bool has_grab () const =0
 
virtual void grab_remove ()=0
 
virtual vcl::Font get_font ()=0
 
virtual bool get_direction () const =0
 
virtual void set_direction (bool bRTL)=0
 
virtual void freeze ()=0
 
virtual void thaw ()=0
 
virtual void set_busy_cursor (bool bBusy)=0
 
virtual void queue_resize ()=0
 
virtual std::unique_ptr< Containerweld_parent () const =0
 
virtual void help_hierarchy_foreach (const std::function< bool(const OUString &)> &func)=0
 
virtual OUString strip_mnemonic (const OUString &rLabel) const =0
 
virtual VclPtr< VirtualDevicecreate_virtual_device () const =0
 
virtual void call_attention_to ()=0
 
virtual void set_stack_background ()=0
 
virtual void set_highlight_background ()=0
 
virtual void set_title_background ()=0
 
virtual void set_toolbar_background ()=0
 
virtual void set_background (const Color &rBackColor)=0
 
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > get_drop_target ()=0
 
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > get_clipboard () const =0
 
virtual void connect_get_property_tree (const Link< tools::JsonWriter &, void > &rLink)=0
 
virtual void get_property_tree (tools::JsonWriter &rJsonWriter)=0
 
virtual void draw (OutputDevice &rOutput, const Point &rPos, const Size &rSizePixel)=0
 
virtual ~Widget ()
 
- Public Member Functions inherited from weld::TreeView
virtual void connect_query_tooltip (const Link< const TreeIter &, OUString > &rLink)
 
virtual void insert (const TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface, bool bChildrenOnDemand, TreeIter *pRet)=0
 
void insert (int nRow, TreeIter *pRet=nullptr)
 
void append (TreeIter *pRet=nullptr)
 
void insert (int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface)
 
void insert_text (int pos, const OUString &rStr)
 
void append_text (const OUString &rStr)
 
void append (const OUString &rId, const OUString &rStr)
 
void append (const OUString &rId, const OUString &rStr, const OUString &rImage)
 
void append (const TreeIter *pParent, const OUString &rStr)
 
virtual void insert_separator (int pos, const OUString &rId)=0
 
void append_separator (const OUString &rId)
 
void connect_changed (const Link< TreeView &, void > &rLink)
 
void connect_row_activated (const Link< TreeView &, bool > &rLink)
 
void connect_toggled (const Link< const iter_col &, void > &rLink)
 
void connect_column_clicked (const Link< int, void > &rLink)
 
void connect_model_changed (const Link< TreeView &, void > &rLink)
 
virtual OUString get_selected_text () const =0
 
virtual OUString get_selected_id () const =0
 
virtual void enable_toggle_buttons (ColumnToggleType eType)=0
 
virtual void set_clicks_to_toggle (int nToggleBehavior)=0
 
virtual int get_selected_index () const =0
 
virtual void select (int pos)=0
 
virtual void unselect (int pos)=0
 
virtual void remove (int pos)=0
 
virtual OUString get_text (int row, int col=-1) const =0
 
virtual void set_text (int row, const OUString &rText, int col=-1)=0
 
virtual void set_sensitive (int row, bool bSensitive, int col=-1)=0
 
virtual bool get_sensitive (int row, int col) const =0
 
virtual void set_id (int row, const OUString &rId)=0
 
virtual void set_toggle (int row, TriState eState, int col=-1)=0
 
virtual TriState get_toggle (int row, int col=-1) const =0
 
virtual void set_image (int row, const OUString &rImage, int col=-1)=0
 
virtual void set_image (int row, VirtualDevice &rImage, int col=-1)=0
 
virtual void set_image (int row, const css::uno::Reference< css::graphic::XGraphic > &rImage, int col=-1)=0
 
virtual void set_text_emphasis (int row, bool bOn, int col)=0
 
virtual bool get_text_emphasis (int row, int col) const =0
 
virtual void set_text_align (int row, double fAlign, int col)=0
 
virtual void swap (int pos1, int pos2)=0
 
virtual std::vector< intget_selected_rows () const =0
 
virtual void set_font_color (int pos, const Color &rColor)=0
 
virtual void scroll_to_row (int row)=0
 
virtual bool is_selected (int pos) const =0
 
virtual int get_cursor_index () const =0
 
virtual void set_cursor (int pos)=0
 
virtual int find_text (const OUString &rText) const =0
 
void select_text (const OUString &rText)
 
void remove_text (const OUString &rText)
 
std::vector< OUString > get_selected_rows_text () const
 
virtual OUString get_id (int pos) const =0
 
virtual int find_id (const OUString &rId) const =0
 
void select_id (const OUString &rId)
 
void remove_id (const OUString &rText)
 
virtual std::unique_ptr< TreeItermake_iterator (const TreeIter *pOrig=nullptr) const =0
 
virtual void copy_iterator (const TreeIter &rSource, TreeIter &rDest) const =0
 
virtual bool get_selected (TreeIter *pIter) const =0
 
virtual bool get_cursor (TreeIter *pIter) const =0
 
virtual void set_cursor (const TreeIter &rIter)=0
 
virtual bool get_iter_first (TreeIter &rIter) const =0
 
virtual bool iter_next_sibling (TreeIter &rIter) const =0
 
virtual bool iter_previous_sibling (TreeIter &rIter) const =0
 
virtual bool iter_next (TreeIter &rIter) const =0
 
virtual bool iter_previous (TreeIter &rIter) const =0
 
virtual bool iter_children (TreeIter &rIter) const =0
 
bool iter_nth_sibling (TreeIter &rIter, int nChild) const
 
bool iter_nth_child (TreeIter &rIter, int nChild) const
 
virtual bool iter_parent (TreeIter &rIter) const =0
 
virtual int get_iter_depth (const TreeIter &rIter) const =0
 
virtual int get_iter_index_in_parent (const TreeIter &rIter) const =0
 
virtual int iter_compare (const TreeIter &a, const TreeIter &b) const =0
 
virtual bool iter_has_child (const TreeIter &rIter) const =0
 
virtual int iter_n_children (const TreeIter &rIter) const =0
 
virtual void remove (const TreeIter &rIter)=0
 
virtual void select (const TreeIter &rIter)=0
 
virtual void unselect (const TreeIter &rIter)=0
 
virtual void set_extra_row_indent (const TreeIter &rIter, int nIndentLevel)=0
 
virtual void set_text (const TreeIter &rIter, const OUString &rStr, int col=-1)=0
 
virtual void set_sensitive (const TreeIter &rIter, bool bSensitive, int col=-1)=0
 
virtual bool get_sensitive (const TreeIter &rIter, int col) const =0
 
virtual void set_text_emphasis (const TreeIter &rIter, bool bOn, int col)=0
 
virtual bool get_text_emphasis (const TreeIter &rIter, int col) const =0
 
virtual void set_text_align (const TreeIter &rIter, double fAlign, int col)=0
 
virtual void set_toggle (const TreeIter &rIter, TriState bOn, int col=-1)=0
 
virtual TriState get_toggle (const TreeIter &rIter, int col=-1) const =0
 
virtual OUString get_text (const TreeIter &rIter, int col=-1) const =0
 
virtual void set_id (const TreeIter &rIter, const OUString &rId)=0
 
virtual OUString get_id (const TreeIter &rIter) const =0
 
virtual void set_image (const TreeIter &rIter, const OUString &rImage, int col=-1)=0
 
virtual void set_image (const TreeIter &rIter, VirtualDevice &rImage, int col=-1)=0
 
virtual void set_image (const TreeIter &rIter, const css::uno::Reference< css::graphic::XGraphic > &rImage, int col=-1)=0
 
virtual void set_font_color (const TreeIter &rIter, const Color &rColor)=0
 
virtual void scroll_to_row (const TreeIter &rIter)=0
 
virtual bool is_selected (const TreeIter &rIter) const =0
 
virtual void move_subtree (TreeIter &rNode, const TreeIter *pNewParent, int nIndexInNewParent)=0
 
virtual void all_foreach (const std::function< bool(TreeIter &)> &func)=0
 
virtual void selected_foreach (const std::function< bool(TreeIter &)> &func)=0
 
virtual void visible_foreach (const std::function< bool(TreeIter &)> &func)=0
 
virtual void bulk_insert_for_each (int nSourceCount, const std::function< void(TreeIter &, int nSourceIndex)> &func, const weld::TreeIter *pParent=nullptr, const std::vector< int > *pFixedWidths=nullptr)=0
 
virtual bool get_row_expanded (const TreeIter &rIter) const =0
 
virtual void expand_row (const TreeIter &rIter)=0
 
virtual void collapse_row (const TreeIter &rIter)=0
 
virtual void set_children_on_demand (const TreeIter &rIter, bool bChildrenOnDemand)=0
 
virtual bool get_children_on_demand (const TreeIter &rIter) const =0
 
virtual void set_show_expanders (bool bShow)=0
 
void connect_expanding (const Link< const TreeIter &, bool > &rLink)
 
void connect_collapsing (const Link< const TreeIter &, bool > &rLink)
 
virtual void connect_editing (const Link< const TreeIter &, bool > &rStartLink, const Link< const iter_string &, bool > &rEndLink)
 
virtual void start_editing (const weld::TreeIter &rEntry)=0
 
virtual void end_editing ()=0
 
virtual void connect_visible_range_changed (const Link< TreeView &, void > &rLink)
 
virtual void connect_popup_menu (const Link< const CommandEvent &, bool > &rLink)
 
virtual void enable_drag_source (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants)=0
 
void connect_drag_begin (const Link< bool &, bool > &rLink)
 
void select_all ()
 
void unselect_all ()
 
virtual int n_children () const =0
 
virtual void make_sorted ()=0
 
virtual void make_unsorted ()=0
 
virtual bool get_sort_order () const =0
 
virtual void set_sort_order (bool bAscending)=0
 
virtual void set_sort_indicator (TriState eState, int nColumn)=0
 
virtual TriState get_sort_indicator (int nColumn) const =0
 
virtual int get_sort_column () const =0
 
virtual void set_sort_column (int nColumn)=0
 
virtual void set_sort_func (const std::function< int(const weld::TreeIter &, const weld::TreeIter &)> &func)
 
virtual void clear ()=0
 
virtual int get_height_rows (int nRows) const =0
 
virtual void columns_autosize ()=0
 
virtual void set_column_fixed_widths (const std::vector< int > &rWidths)=0
 
virtual void set_column_editables (const std::vector< bool > &rEditables)=0
 
virtual int get_column_width (int nCol) const =0
 
virtual void set_centered_column (int nCol)=0
 
virtual OUString get_column_title (int nColumn) const =0
 
virtual void set_column_title (int nColumn, const OUString &rTitle)=0
 
int get_checkbox_column_width () const
 
virtual void set_selection_mode (SelectionMode eMode)=0
 
virtual int count_selected_rows () const =0
 
virtual void remove_selection ()=0
 
virtual bool changed_by_hover () const =0
 
virtual void vadjustment_set_value (int value)=0
 
virtual int vadjustment_get_value () const =0
 
void save_value ()
 
OUString const & get_saved_value () const
 
bool get_value_changed_from_saved () const
 
void connect_custom_get_size (const Link< get_size_args, Size > &rLink)
 
void connect_custom_render (const Link< render_args, void > &rLink)
 
virtual void set_column_custom_renderer (int nColumn, bool bEnable)=0
 
virtual void queue_draw ()=0
 
virtual bool get_dest_row_at_pos (const Point &rPos, weld::TreeIter *pResult, bool bDnDMode, bool bAutoScroll=true)=0
 
virtual void unset_drag_dest_row ()=0
 
virtual tools::Rectangle get_row_area (const weld::TreeIter &rIter) const =0
 
virtual TreeViewget_drag_source () const =0
 
virtual void set_sensitive (bool sensitive)=0
 
virtual bool get_sensitive () const=0
 

Additional Inherited Members

- Public Types inherited from weld::TreeView
typedef std::pair< const TreeIter &, intiter_col
 
typedef std::pair< const TreeIter &, OUString > iter_string
 
typedef std::pair< vcl::RenderContext &, const OUString & > get_size_args
 
typedef std::tuple< vcl::RenderContext &, const tools::Rectangle &, bool, const OUString & > render_args
 
- Protected Types inherited from SalInstanceTreeView
typedef std::pair< SvTreeListEntry *, OUString > IterString
 
- Protected Member Functions inherited from SalInstanceTreeView
 DECL_LINK (SelectHdl, SvTreeListBox *, void)
 
 DECL_LINK (DeSelectHdl, SvTreeListBox *, void)
 
 DECL_LINK (DoubleClickHdl, SvTreeListBox *, bool)
 
 DECL_LINK (ExpandingHdl, SvTreeListBox *, bool)
 
 DECL_LINK (EndDragHdl, HeaderBar *, void)
 
 DECL_LINK (HeaderBarClickedHdl, HeaderBar *, void)
 
 DECL_LINK (ToggleHdl, SvLBoxButtonData *, void)
 
 DECL_LINK (ModelChangedHdl, SvTreeListBox *, void)
 
 DECL_LINK (StartDragHdl, SvTreeListBox *, bool)
 
 DECL_STATIC_LINK (SalInstanceTreeView, FinishDragHdl, SvTreeListBox *, void)
 
 DECL_LINK (EditingEntryHdl, SvTreeListEntry *, bool)
 
 DECL_LINK (EditedEntryHdl, IterString, bool)
 
 DECL_LINK (VisibleRangeChangedHdl, SvTreeListBox *, void)
 
 DECL_LINK (CompareHdl, const SvSortData &, sal_Int32)
 
 DECL_LINK (PopupMenuHdl, const CommandEvent &, bool)
 
 DECL_LINK (TooltipHdl, SvTreeListEntry *, OUString)
 
 DECL_LINK (CustomRenderHdl, svtree_render_args, void)
 
 DECL_LINK (CustomMeasureHdl, svtree_measure_args, Size)
 
bool ExpandRow (const SalInstanceTreeIter &rIter)
 
int to_internal_model (int col) const
 
int to_external_model (int col) const
 
bool IsDummyEntry (SvTreeListEntry *pEntry) const
 
SvTreeListEntryGetPlaceHolderChild (SvTreeListEntry *pEntry) const
 
void AddStringItem (SvTreeListEntry *pEntry, const OUString &rStr, int nCol)
 
void do_insert (const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, const VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet, bool bIsSeparator)
 
void update_checkbutton_column_width (SvTreeListEntry *pEntry)
 
void InvalidateModelEntry (SvTreeListEntry *pEntry)
 
void do_set_toggle (SvTreeListEntry *pEntry, TriState eState, int col)
 
TriState get_toggle (SvTreeListEntry *pEntry, int col) const
 
void set_toggle (SvTreeListEntry *pEntry, TriState eState, int col)
 
bool get_text_emphasis (SvTreeListEntry *pEntry, int col) const
 
void set_header_item_width (const std::vector< int > &rWidths)
 
- Protected Member Functions inherited from SalInstanceWidget
void ensure_event_listener ()
 
void ensure_key_listener ()
 
void ensure_mouse_listener ()
 
bool IsFirstFreeze () const
 
bool IsLastThaw () const
 
virtual void HandleEventListener (VclWindowEvent &rEvent)
 
virtual bool HandleKeyEventListener (VclWindowEvent &rEvent)
 
virtual void HandleMouseEventListener (VclWindowEvent &rEvent)
 
- Protected Member Functions inherited from weld::TreeView
void signal_changed ()
 
bool signal_row_activated ()
 
void signal_column_clicked (int nColumn)
 
bool signal_expanding (const TreeIter &rIter)
 
bool signal_collapsing (const TreeIter &rIter)
 
void signal_visible_range_changed ()
 
void signal_model_changed ()
 
void signal_toggled (const iter_col &rIterCol)
 
bool signal_editing_started (const TreeIter &rIter)
 
bool signal_editing_done (const iter_string &rIterText)
 
OUString signal_query_tooltip (const TreeIter &rIter)
 
void signal_custom_render (vcl::RenderContext &rDevice, const tools::Rectangle &rRect, bool bSelected, const OUString &rId)
 
Size signal_custom_get_size (vcl::RenderContext &rDevice, const OUString &rId)
 
- Static Protected Member Functions inherited from SalInstanceTreeView
static void set_font_color (SvTreeListEntry *pEntry, const Color &rColor)
 
static TriState do_get_toggle (SvTreeListEntry *pEntry, int col)
 
static bool do_get_sensitive (SvTreeListEntry *pEntry, int col)
 
- Protected Attributes inherited from JSWidget< SalInstanceTreeView, ::SvTabListBox >
rtl::Reference< JSDropTargetm_xDropTarget
 
bool m_bIsFreezed
 
JSDialogSenderm_pSender
 
- Protected Attributes inherited from SalInstanceTreeView
std::vector< std::unique_ptr< OUString > > m_aUserData
 
VclPtr< SvTabListBoxm_xTreeView
 
SvLBoxButtonData m_aCheckButtonData
 
SvLBoxButtonData m_aRadioButtonData
 
o3tl::sorted_vector< SvTreeListEntry * > m_aExpandingPlaceHolderParents
 
o3tl::sorted_vector< intm_aCustomRenders
 
bool m_bTogglesAsRadio
 
int m_nSortColumn
 
- Protected Attributes inherited from SalInstanceWidget
VclPtr< vcl::Windowm_xWidget
 
std::unique_ptr< SalFlashAttentionm_xFlashAttention
 
SalInstanceBuilderm_pBuilder
 
- Protected Attributes inherited from weld::Widget
Link< Widget &, void > m_aFocusInHdl
 
Link< Widget &, void > m_aFocusOutHdl
 
Link< Widget &, bool > m_aMnemonicActivateHdl
 
Link< Widget &, void > m_aStyleUpdatedHdl
 
Link< const Size &, void > m_aSizeAllocateHdl
 
Link< const KeyEvent &, bool > m_aKeyPressHdl
 
Link< const KeyEvent &, bool > m_aKeyReleaseHdl
 
Link< const MouseEvent &, bool > m_aMousePressHdl
 
Link< const MouseEvent &, bool > m_aMouseMotionHdl
 
Link< const MouseEvent &, bool > m_aMouseReleaseHdl
 
- Protected Attributes inherited from weld::TreeView
Link< TreeView &, void > m_aChangeHdl
 
Link< TreeView &, bool > m_aRowActivatedHdl
 
Link< int, void > m_aColumnClickedHdl
 
Link< const iter_col &, void > m_aRadioToggleHdl
 
Link< const TreeIter &, bool > m_aEditingStartedHdl
 
Link< const iter_string &, bool > m_aEditingDoneHdl
 
Link< const TreeIter &, bool > m_aExpandingHdl
 
Link< const TreeIter &, bool > m_aCollapsingHdl
 
Link< TreeView &, void > m_aVisibleRangeChangedHdl
 
Link< TreeView &, void > m_aModelChangedHdl
 
Link< const CommandEvent &, bool > m_aPopupMenuHdl
 
Link< bool &, bool > m_aDragBeginHdl
 
std::function< int(const weld::TreeIter &, const weld::TreeIter &)> m_aCustomSort
 
Link< const TreeIter &, OUString > m_aQueryTooltipHdl
 
Link< render_args, void > m_aRenderHdl
 
Link< get_size_args, Sizem_aGetSizeHdl
 

Detailed Description

Definition at line 737 of file jsdialogbuilder.hxx.

Constructor & Destructor Documentation

◆ JSTreeView()

JSTreeView::JSTreeView ( JSDialogSender pSender,
::SvTabListBox pTextView,
SalInstanceBuilder pBuilder,
bool  bTakeOwnership 
)

Member Function Documentation

◆ clear()

virtual void JSTreeView::clear ( )
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ collapse_row()

virtual void JSTreeView::collapse_row ( const weld::TreeIter rIter)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ drag_end()

void JSTreeView::drag_end ( )

◆ drag_start()

void JSTreeView::drag_start ( )

◆ expand_row()

virtual void JSTreeView::expand_row ( const weld::TreeIter rIter)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ get_drag_source()

virtual weld::TreeView * JSTreeView::get_drag_source ( ) const
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ insert() [1/2]

void SalInstanceTreeView::insert ( const weld::TreeIter pParent,
int  pos,
const OUString *  pStr,
const OUString *  pId,
const OUString *  pIconName,
VirtualDevice pImageSurface,
bool  bChildrenOnDemand,
weld::TreeIter pRet 
)
overridevirtual

Reimplemented from SalInstanceTreeView.

Definition at line 1622 of file salvtables.cxx.

◆ insert() [2/2]

virtual void JSTreeView::insert ( const weld::TreeIter pParent,
int  pos,
const OUString *  pStr,
const OUString *  pId,
const OUString *  pIconName,
VirtualDevice pImageSurface,
bool  bChildrenOnDemand,
weld::TreeIter pRet 
)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ remove() [1/4]

void SalInstanceTreeView::remove ( const weld::TreeIter rIter)
overridevirtual

Reimplemented from SalInstanceTreeView.

Definition at line 1786 of file salvtables.cxx.

◆ remove() [2/4]

virtual void JSTreeView::remove ( const weld::TreeIter rIter)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ remove() [3/4]

void SalInstanceTreeView::remove ( int  pos)
overridevirtual

Reimplemented from SalInstanceTreeView.

Definition at line 1639 of file salvtables.cxx.

References eType.

◆ remove() [4/4]

virtual void JSTreeView::remove ( int  pos)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ select() [1/3]

void SalInstanceTreeView::select ( const weld::TreeIter rIter)
overridevirtual

◆ select() [2/3]

void SalInstanceTreeView::select ( int  pos)
overridevirtual

Reimplemented from SalInstanceTreeView.

Definition at line 1653 of file salvtables.cxx.

◆ select() [3/3]

virtual void JSTreeView::select ( int  pos)
overridevirtual

pos is used differently here, it defines how many steps of iterator we need to perform to take entry

Reimplemented from SalInstanceTreeView.

◆ set_cursor() [1/2]

virtual void JSTreeView::set_cursor ( const weld::TreeIter rIter)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ set_cursor() [2/2]

virtual void JSTreeView::set_cursor ( int  pos)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ set_cursor_without_notify()

void JSTreeView::set_cursor_without_notify ( const weld::TreeIter rIter)

◆ set_text() [1/2]

virtual void JSTreeView::set_text ( const weld::TreeIter rIter,
const OUString &  rStr,
int  col = -1 
)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ set_text() [2/2]

virtual void JSTreeView::set_text ( int  row,
const OUString &  rText,
int  col = -1 
)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ set_toggle() [1/5]

virtual void JSTreeView::set_toggle ( const weld::TreeIter rIter,
TriState  bOn,
int  col = -1 
)
overridevirtual

Reimplemented from SalInstanceTreeView.

◆ set_toggle() [2/5]

void SalInstanceTreeView::set_toggle ( const weld::TreeIter rIter,
TriState  eState,
int  col = -1 
)
overridevirtual

◆ set_toggle() [3/5]

void SalInstanceTreeView::set_toggle ( int  pos,
TriState  eState,
int  col = -1 
)
overridevirtual

Reimplemented from SalInstanceTreeView.

Definition at line 1695 of file salvtables.cxx.

◆ set_toggle() [4/5]

virtual void JSTreeView::set_toggle ( int  pos,
TriState  eState,
int  col = -1 
)
overridevirtual

pos is used differently here, it defines how many steps of iterator we need to perform to take entry

Reimplemented from SalInstanceTreeView.

◆ set_toggle() [5/5]

void SalInstanceTreeView::set_toggle ( SvTreeListEntry pEntry,
TriState  eState,
int  col 
)

Definition at line 1585 of file salvtables.cxx.


The documentation for this class was generated from the following file: