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

#include <weld.hxx>

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

Public Member Functions

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 OString get_buildable_name () const =0
 
virtual void set_buildable_name (const OString &rName)=0
 
virtual OString get_help_id () const =0
 
virtual void set_help_id (const OString &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 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 OString &)> &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 Attributes

Link< Widget &, void > m_aFocusInHdl
 
Link< Widget &, void > m_aFocusOutHdl
 
Link< Widget &, bool > m_aMnemonicActivateHdl
 
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
 

Friends

class ::LOKTrigger
 

Detailed Description

Definition at line 82 of file weld.hxx.

Constructor & Destructor Documentation

◆ ~Widget()

virtual weld::Widget::~Widget ( )
inlinevirtual

Definition at line 353 of file weld.hxx.

Member Function Documentation

◆ call_attention_to()

virtual void weld::Widget::call_attention_to ( )
pure virtual

◆ connect_focus_in()

virtual void weld::Widget::connect_focus_in ( const Link< Widget &, void > &  rLink)
inlinevirtual

◆ connect_focus_out()

virtual void weld::Widget::connect_focus_out ( const Link< Widget &, void > &  rLink)
inlinevirtual

◆ connect_get_property_tree()

virtual void weld::Widget::connect_get_property_tree ( const Link< tools::JsonWriter &, void > &  rLink)
pure virtual

Implemented in SalInstanceWidget.

◆ connect_key_press()

virtual void weld::Widget::connect_key_press ( const Link< const KeyEvent &, bool > &  rLink)
inlinevirtual

◆ connect_key_release()

virtual void weld::Widget::connect_key_release ( const Link< const KeyEvent &, bool > &  rLink)
inlinevirtual

◆ connect_mnemonic_activate()

virtual void weld::Widget::connect_mnemonic_activate ( const Link< Widget &, bool > &  rLink)
inlinevirtual

◆ connect_mouse_move()

virtual void weld::Widget::connect_mouse_move ( const Link< const MouseEvent &, bool > &  rLink)
inlinevirtual

Reimplemented in SalInstanceWidget.

Definition at line 270 of file weld.hxx.

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

Referenced by SalInstanceWidget::connect_mouse_move().

◆ connect_mouse_press()

virtual void weld::Widget::connect_mouse_press ( const Link< const MouseEvent &, bool > &  rLink)
inlinevirtual

◆ connect_mouse_release()

virtual void weld::Widget::connect_mouse_release ( const Link< const MouseEvent &, bool > &  rLink)
inlinevirtual

◆ connect_size_allocate()

virtual void weld::Widget::connect_size_allocate ( const Link< const Size &, void > &  rLink)
inlinevirtual

◆ create_virtual_device()

virtual VclPtr< VirtualDevice > weld::Widget::create_virtual_device ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ draw()

virtual void weld::Widget::draw ( OutputDevice rOutput,
const Point &  rPos,
const Size rSizePixel 
)
pure virtual

Implemented in SalInstanceWidget.

◆ freeze()

virtual void weld::Widget::freeze ( )
pure virtual

◆ get_accessible_description()

virtual OUString weld::Widget::get_accessible_description ( ) const
pure virtual

◆ get_accessible_name()

virtual OUString weld::Widget::get_accessible_name ( ) const
pure virtual

◆ get_approximate_digit_width()

virtual float weld::Widget::get_approximate_digit_width ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_buildable_name()

virtual OString weld::Widget::get_buildable_name ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_clipboard()

virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > weld::Widget::get_clipboard ( ) const
pure virtual

◆ get_direction()

virtual bool weld::Widget::get_direction ( ) const
pure virtual

◆ get_drop_target()

virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > weld::Widget::get_drop_target ( )
pure virtual

◆ get_extents_relative_to()

virtual bool weld::Widget::get_extents_relative_to ( const Widget rRelative,
int x,
int y,
int width,
int height 
) const
pure virtual

◆ get_font()

virtual vcl::Font weld::Widget::get_font ( )
pure virtual

Implemented in SalInstanceWidget.

◆ get_grid_left_attach()

virtual int weld::Widget::get_grid_left_attach ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_grid_top_attach()

virtual int weld::Widget::get_grid_top_attach ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_help_id()

virtual OString weld::Widget::get_help_id ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_hexpand()

virtual bool weld::Widget::get_hexpand ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_margin_bottom()

virtual int weld::Widget::get_margin_bottom ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_margin_end()

virtual int weld::Widget::get_margin_end ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_margin_start()

virtual int weld::Widget::get_margin_start ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_margin_top()

virtual int weld::Widget::get_margin_top ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_pixel_size()

virtual Size weld::Widget::get_pixel_size ( const OUString &  rText) const
pure virtual

◆ get_preferred_size()

virtual Size weld::Widget::get_preferred_size ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_property_tree()

virtual void weld::Widget::get_property_tree ( tools::JsonWriter rJsonWriter)
pure virtual

Implemented in SalInstanceWidget.

◆ get_sensitive()

virtual bool weld::Widget::get_sensitive ( ) const
pure virtual

◆ get_size_request()

virtual Size weld::Widget::get_size_request ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_text_height()

virtual int weld::Widget::get_text_height ( ) const
pure virtual

◆ get_tooltip_text()

virtual OUString weld::Widget::get_tooltip_text ( ) const
pure virtual

◆ get_vexpand()

virtual bool weld::Widget::get_vexpand ( ) const
pure virtual

Implemented in SalInstanceWidget.

◆ get_visible()

virtual bool weld::Widget::get_visible ( ) const
pure virtual

◆ grab_add()

virtual void weld::Widget::grab_add ( )
pure virtual

◆ grab_focus()

virtual void weld::Widget::grab_focus ( )
pure virtual

◆ grab_remove()

virtual void weld::Widget::grab_remove ( )
pure virtual

◆ has_child_focus()

virtual bool weld::Widget::has_child_focus ( ) const
pure virtual

◆ has_focus()

virtual bool weld::Widget::has_focus ( ) const
pure virtual

◆ has_grab()

virtual bool weld::Widget::has_grab ( ) const
pure virtual

◆ help_hierarchy_foreach()

virtual void weld::Widget::help_hierarchy_foreach ( const std::function< bool(const OString &)> &  func)
pure virtual

Implemented in SalInstanceWidget.

◆ hide()

virtual void weld::Widget::hide ( )
pure virtual

◆ is_active()

virtual bool weld::Widget::is_active ( ) const
pure virtual

◆ is_visible()

virtual bool weld::Widget::is_visible ( ) const
pure virtual

◆ queue_resize()

virtual void weld::Widget::queue_resize ( )
pure virtual

◆ set_accessible_description()

virtual void weld::Widget::set_accessible_description ( const OUString &  rDescription)
pure virtual

Implemented in SalInstanceWidget.

◆ set_accessible_name()

virtual void weld::Widget::set_accessible_name ( const OUString &  rName)
pure virtual

◆ set_accessible_relation_labeled_by()

virtual void weld::Widget::set_accessible_relation_labeled_by ( weld::Widget pLabel)
pure virtual

Implemented in SalInstanceWidget.

◆ set_background()

virtual void weld::Widget::set_background ( const Color rBackColor)
pure virtual

Implemented in SalInstanceWidget.

◆ set_buildable_name()

virtual void weld::Widget::set_buildable_name ( const OString &  rName)
pure virtual

Implemented in SalInstanceWidget.

◆ set_busy_cursor()

virtual void weld::Widget::set_busy_cursor ( bool  bBusy)
pure virtual

◆ set_can_focus()

virtual void weld::Widget::set_can_focus ( bool  bCanFocus)
pure virtual

Implemented in SalInstanceWidget.

◆ set_cursor_data()

virtual void weld::Widget::set_cursor_data ( void *  pData)
pure virtual

◆ set_direction()

virtual void weld::Widget::set_direction ( bool  bRTL)
pure virtual

◆ set_grid_left_attach()

virtual void weld::Widget::set_grid_left_attach ( int  nAttach)
pure virtual

Implemented in SalInstanceWidget.

◆ set_grid_top_attach()

virtual void weld::Widget::set_grid_top_attach ( int  nAttach)
pure virtual

Implemented in SalInstanceWidget.

◆ set_grid_width()

virtual void weld::Widget::set_grid_width ( int  nCols)
pure virtual

Implemented in SalInstanceWidget.

◆ set_help_id()

virtual void weld::Widget::set_help_id ( const OString &  rName)
pure virtual

◆ set_hexpand()

virtual void weld::Widget::set_hexpand ( bool  bExpand)
pure virtual

Implemented in SalInstanceWidget.

◆ set_highlight_background()

virtual void weld::Widget::set_highlight_background ( )
pure virtual

Implemented in SalInstanceWidget.

◆ set_margin_bottom()

virtual void weld::Widget::set_margin_bottom ( int  nMargin)
pure virtual

Implemented in SalInstanceWidget.

◆ set_margin_end()

virtual void weld::Widget::set_margin_end ( int  nMargin)
pure virtual

Implemented in SalInstanceWidget.

◆ set_margin_start()

virtual void weld::Widget::set_margin_start ( int  nMargin)
pure virtual

Implemented in SalInstanceWidget.

◆ set_margin_top()

virtual void weld::Widget::set_margin_top ( int  nMargin)
pure virtual

Implemented in SalInstanceWidget.

◆ set_sensitive()

virtual void weld::Widget::set_sensitive ( bool  sensitive)
pure virtual

◆ set_size_request()

virtual void weld::Widget::set_size_request ( int  nWidth,
int  nHeight 
)
pure virtual

◆ set_stack_background()

virtual void weld::Widget::set_stack_background ( )
pure virtual

Implemented in SalInstanceWidget.

◆ set_title_background()

virtual void weld::Widget::set_title_background ( )
pure virtual

Implemented in SalInstanceWidget.

◆ set_toolbar_background()

virtual void weld::Widget::set_toolbar_background ( )
pure virtual

Implemented in SalInstanceWidget.

◆ set_tooltip_text()

virtual void weld::Widget::set_tooltip_text ( const OUString &  rTip)
pure virtual

◆ set_vexpand()

virtual void weld::Widget::set_vexpand ( bool  bExpand)
pure virtual

Implemented in SalInstanceWidget.

◆ set_visible()

virtual void weld::Widget::set_visible ( bool  visible)
inlinevirtual

Definition at line 108 of file weld.hxx.

References visible.

Referenced by weld::TransportAsXWindow::setVisible().

◆ show()

virtual void weld::Widget::show ( )
pure virtual

◆ strip_mnemonic()

virtual OUString weld::Widget::strip_mnemonic ( const OUString &  rLabel) const
pure virtual

Implemented in SalInstanceWidget.

◆ thaw()

virtual void weld::Widget::thaw ( )
pure virtual

◆ weld_parent()

virtual std::unique_ptr< Container > weld::Widget::weld_parent ( ) const
pure virtual

Implemented in SalInstanceWidget.

Friends And Related Function Documentation

◆ ::LOKTrigger

friend class ::LOKTrigger
friend

Definition at line 84 of file weld.hxx.

Member Data Documentation

◆ m_aFocusInHdl

Link<Widget&, void> weld::Widget::m_aFocusInHdl
protected

Definition at line 87 of file weld.hxx.

Referenced by SalInstanceWidget::HandleEventListener().

◆ m_aFocusOutHdl

Link<Widget&, void> weld::Widget::m_aFocusOutHdl
protected

Definition at line 88 of file weld.hxx.

Referenced by SalInstanceWidget::HandleEventListener().

◆ m_aKeyPressHdl

Link<const KeyEvent&, bool> weld::Widget::m_aKeyPressHdl
protected

◆ m_aKeyReleaseHdl

Link<const KeyEvent&, bool> weld::Widget::m_aKeyReleaseHdl
protected

◆ m_aMnemonicActivateHdl

Link<Widget&, bool> weld::Widget::m_aMnemonicActivateHdl
protected

Definition at line 89 of file weld.hxx.

Referenced by SalInstanceWidget::~SalInstanceWidget().

◆ m_aMouseMotionHdl

Link<const MouseEvent&, bool> weld::Widget::m_aMouseMotionHdl
protected

Definition at line 94 of file weld.hxx.

Referenced by SalInstanceWidget::HandleMouseEventListener().

◆ m_aMousePressHdl

Link<const MouseEvent&, bool> weld::Widget::m_aMousePressHdl
protected

Definition at line 93 of file weld.hxx.

Referenced by SalInstanceWidget::HandleMouseEventListener().

◆ m_aMouseReleaseHdl

Link<const MouseEvent&, bool> weld::Widget::m_aMouseReleaseHdl
protected

Definition at line 95 of file weld.hxx.

Referenced by SalInstanceWidget::HandleMouseEventListener().

◆ m_aSizeAllocateHdl

Link<const Size&, void> weld::Widget::m_aSizeAllocateHdl
protected

Definition at line 90 of file weld.hxx.

Referenced by SalInstanceWidget::HandleEventListener().


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