LibreOffice Module vcl (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
weld::IconView Class Referenceabstract

#include <weld.hxx>

Inheritance diagram for weld::IconView:
[legend]
Collaboration diagram for weld::IconView:
[legend]

Public Member Functions

virtual int get_item_width () const =0
 
virtual void set_item_width (int width)=0
 
virtual void insert (int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, TreeIter *pRet)=0
 
virtual void insert (int pos, const OUString *pStr, const OUString *pId, const VirtualDevice *pIcon, TreeIter *pRet)=0
 
virtual void insert_separator (int pos, const OUString *pId)=0
 
void append (const OUString &rId, const OUString &rStr, const OUString &rImage)
 
void append (const OUString &rId, const OUString &rStr, const VirtualDevice *pImage)
 
void append_separator (const OUString &rId)
 
void connect_selection_changed (const Link< IconView &, void > &rLink)
 
void connect_item_activated (const Link< IconView &, bool > &rLink)
 
void connect_command (const Link< const CommandEvent &, bool > &rLink)
 
virtual void connect_query_tooltip (const Link< const TreeIter &, OUString > &rLink)
 
virtual void connect_get_property_tree_elem (const Link< const json_prop_query &, bool > &rLink)
 
virtual OUString get_selected_id () const =0
 
virtual void clear ()=0
 
virtual int count_selected_items () const =0
 
virtual OUString get_selected_text () const =0
 
virtual void select (int pos)=0
 
virtual void unselect (int pos)=0
 
virtual std::unique_ptr< TreeItermake_iterator (const TreeIter *pOrig=nullptr) 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 OUString get_id (const TreeIter &rIter) const =0
 
virtual OUString get_text (const TreeIter &rIter) const =0
 
virtual void scroll_to_item (const TreeIter &rIter)=0
 
virtual void selected_foreach (const std::function< bool(TreeIter &)> &func)=0
 
void select_all ()
 
void unselect_all ()
 
virtual int n_children () const =0
 
void save_value ()
 
OUString const & get_saved_value () const
 
bool get_value_changed_from_saved () const
 
- 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 ()
 

Protected Member Functions

void signal_selection_changed ()
 
bool signal_item_activated ()
 
OUString signal_query_tooltip (const TreeIter &rIter) const
 

Protected Attributes

Link< IconView &, void > m_aSelectionChangeHdl
 
Link< IconView &, bool > m_aItemActivatedHdl
 
Link< const CommandEvent &, bool > m_aCommandHdl
 
Link< const TreeIter &, OUString > m_aQueryTooltipHdl
 
Link< const json_prop_query &, bool > m_aGetPropertyTreeElemHdl
 
- 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
 

Private Attributes

OUString m_sSavedValue
 

Friends

class ::LOKTrigger
 

Detailed Description

Definition at line 1387 of file weld.hxx.

Member Function Documentation

◆ append() [1/2]

void weld::IconView::append ( const OUString &  rId,
const OUString &  rStr,
const OUString &  rImage 
)
inline

Definition at line 1422 of file weld.hxx.

◆ append() [2/2]

void weld::IconView::append ( const OUString &  rId,
const OUString &  rStr,
const VirtualDevice pImage 
)
inline

Definition at line 1427 of file weld.hxx.

◆ append_separator()

void weld::IconView::append_separator ( const OUString &  rId)
inline

Definition at line 1432 of file weld.hxx.

◆ clear()

virtual void weld::IconView::clear ( )
pure virtual

Implemented in JSIconView, and SalInstanceIconView.

◆ connect_command()

void weld::IconView::connect_command ( const Link< const CommandEvent &, bool > &  rLink)
inline

Definition at line 1447 of file weld.hxx.

◆ connect_get_property_tree_elem()

virtual void weld::IconView::connect_get_property_tree_elem ( const Link< const json_prop_query &, bool > &  rLink)
inlinevirtual

Reimplemented in SalInstanceIconView.

Definition at line 1455 of file weld.hxx.

Referenced by SalInstanceIconView::connect_get_property_tree_elem().

◆ connect_item_activated()

void weld::IconView::connect_item_activated ( const Link< IconView &, bool > &  rLink)
inline

Definition at line 1445 of file weld.hxx.

◆ connect_query_tooltip()

virtual void weld::IconView::connect_query_tooltip ( const Link< const TreeIter &, OUString > &  rLink)
inlinevirtual

Reimplemented in SalInstanceIconView.

Definition at line 1449 of file weld.hxx.

Referenced by SalInstanceIconView::connect_query_tooltip().

◆ connect_selection_changed()

void weld::IconView::connect_selection_changed ( const Link< IconView &, void > &  rLink)
inline

Definition at line 1434 of file weld.hxx.

◆ count_selected_items()

virtual int weld::IconView::count_selected_items ( ) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_cursor()

virtual bool weld::IconView::get_cursor ( TreeIter pIter) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_id()

virtual OUString weld::IconView::get_id ( const TreeIter rIter) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_item_width()

virtual int weld::IconView::get_item_width ( ) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_iter_first()

virtual bool weld::IconView::get_iter_first ( TreeIter rIter) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_saved_value()

OUString const & weld::IconView::get_saved_value ( ) const
inline

Definition at line 1493 of file weld.hxx.

◆ get_selected()

virtual bool weld::IconView::get_selected ( TreeIter pIter) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_selected_id()

virtual OUString weld::IconView::get_selected_id ( ) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_selected_text()

virtual OUString weld::IconView::get_selected_text ( ) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_text()

virtual OUString weld::IconView::get_text ( const TreeIter rIter) const
pure virtual

Implemented in SalInstanceIconView.

◆ get_value_changed_from_saved()

bool weld::IconView::get_value_changed_from_saved ( ) const
inline

Definition at line 1494 of file weld.hxx.

◆ insert() [1/2]

virtual void weld::IconView::insert ( int  pos,
const OUString *  pStr,
const OUString *  pId,
const OUString *  pIconName,
TreeIter pRet 
)
pure virtual

Implemented in JSIconView, and SalInstanceIconView.

◆ insert() [2/2]

virtual void weld::IconView::insert ( int  pos,
const OUString *  pStr,
const OUString *  pId,
const VirtualDevice pIcon,
TreeIter pRet 
)
pure virtual

Implemented in JSIconView, and SalInstanceIconView.

◆ insert_separator()

virtual void weld::IconView::insert_separator ( int  pos,
const OUString *  pId 
)
pure virtual

Implemented in JSIconView, and SalInstanceIconView.

◆ make_iterator()

virtual std::unique_ptr< TreeIter > weld::IconView::make_iterator ( const TreeIter pOrig = nullptr) const
pure virtual

Implemented in SalInstanceIconView.

◆ n_children()

virtual int weld::IconView::n_children ( ) const
pure virtual

Implemented in SalInstanceIconView.

◆ save_value()

void weld::IconView::save_value ( )
inline

Definition at line 1492 of file weld.hxx.

◆ scroll_to_item()

virtual void weld::IconView::scroll_to_item ( const TreeIter rIter)
pure virtual

Implemented in SalInstanceIconView.

◆ select()

virtual void weld::IconView::select ( int  pos)
pure virtual

Implemented in JSIconView, and SalInstanceIconView.

◆ select_all()

void weld::IconView::select_all ( )
inline

Definition at line 1486 of file weld.hxx.

◆ selected_foreach()

virtual void weld::IconView::selected_foreach ( const std::function< bool(TreeIter &)> &  func)
pure virtual

Implemented in SalInstanceIconView.

◆ set_cursor()

virtual void weld::IconView::set_cursor ( const TreeIter rIter)
pure virtual

Implemented in SalInstanceIconView.

◆ set_item_width()

virtual void weld::IconView::set_item_width ( int  width)
pure virtual

Implemented in SalInstanceIconView.

◆ signal_item_activated()

bool weld::IconView::signal_item_activated ( )
inlineprotected

Definition at line 1402 of file weld.hxx.

References Link< typename Arg, typename Ret >::Call().

Referenced by LOKTrigger::trigger_item_activated().

◆ signal_query_tooltip()

OUString weld::IconView::signal_query_tooltip ( const TreeIter rIter) const
inlineprotected

Definition at line 1403 of file weld.hxx.

References Link< typename Arg, typename Ret >::Call().

◆ signal_selection_changed()

void weld::IconView::signal_selection_changed ( )
inlineprotected

Definition at line 1401 of file weld.hxx.

References Link< typename Arg, typename Ret >::Call().

Referenced by LOKTrigger::trigger_changed().

◆ unselect()

virtual void weld::IconView::unselect ( int  pos)
pure virtual

Implemented in JSIconView, and SalInstanceIconView.

◆ unselect_all()

void weld::IconView::unselect_all ( )
inline

Definition at line 1487 of file weld.hxx.

Friends And Related Function Documentation

◆ ::LOKTrigger

friend class ::LOKTrigger
friend

Definition at line 1389 of file weld.hxx.

Member Data Documentation

◆ m_aCommandHdl

Link<const CommandEvent&, bool> weld::IconView::m_aCommandHdl
protected

Definition at line 1397 of file weld.hxx.

◆ m_aGetPropertyTreeElemHdl

Link<const json_prop_query&, bool> weld::IconView::m_aGetPropertyTreeElemHdl
protected

Definition at line 1399 of file weld.hxx.

◆ m_aItemActivatedHdl

Link<IconView&, bool> weld::IconView::m_aItemActivatedHdl
protected

Definition at line 1396 of file weld.hxx.

◆ m_aQueryTooltipHdl

Link<const TreeIter&, OUString> weld::IconView::m_aQueryTooltipHdl
protected

Definition at line 1398 of file weld.hxx.

◆ m_aSelectionChangeHdl

Link<IconView&, void> weld::IconView::m_aSelectionChangeHdl
protected

Definition at line 1395 of file weld.hxx.

◆ m_sSavedValue

OUString weld::IconView::m_sSavedValue
private

Definition at line 1392 of file weld.hxx.


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