LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ColorListBox Class Reference

#include <colorbox.hxx>

Collaboration diagram for ColorListBox:
[legend]

Public Member Functions

 ColorListBox (std::unique_ptr< weld::MenuButton > pControl, weld::Window *pTopLevelWindow)
 
 ~ColorListBox ()
 
void SetSelectHdl (const Link< ColorListBox &, void > &rLink)
 
void SetSlotId (sal_uInt16 nSlotId, bool bShowNoneButton=false)
 
Color const & GetSelectEntryColor () const
 
NamedColor const & GetSelectedEntry () const
 
void SelectEntry (const NamedColor &rColor)
 
void SelectEntry (const Color &rColor)
 
void SetNoSelection ()
 
bool IsNoSelection () const
 
void SetAutoDisplayColor (const Color &rColor)
 
void ShowPreview (const NamedColor &rColor)
 
void EnsurePaletteManager ()
 
void SaveValue ()
 
bool IsValueChangedFromSaved () const
 
void set_sensitive (bool sensitive)
 
bool get_sensitive () const
 
void show ()
 
void hide ()
 
void set_visible (bool bShow)
 
void set_help_id (const OString &rHelpId)
 
void connect_focus_in (const Link< weld::Widget &, void > &rLink)
 
void connect_focus_out (const Link< weld::Widget &, void > &rLink)
 
weld::MenuButtonget_widget ()
 

Private Member Functions

void Selected (const NamedColor &rNamedColor)
 
void createColorWindow ()
 
void LockWidthRequest ()
 
ColorWindowgetColorWindow () const
 
 DECL_LINK (ToggleHdl, weld::ToggleButton &, void)
 

Private Attributes

std::unique_ptr< ColorWindowm_xColorWindow
 
std::unique_ptr< weld::MenuButtonm_xButton
 
weld::Windowm_pTopLevel
 
Link< ColorListBox &, voidm_aSelectedLink
 
ListBoxColorWrapper m_aColorWrapper
 
Color m_aAutoDisplayColor
 
Color m_aSaveColor
 
NamedColor m_aSelectedColor
 
sal_uInt16 m_nSlotId
 
bool m_bShowNoneButton
 
std::shared_ptr< PaletteManagerm_xPaletteManager
 
ColorStatus m_aColorStatus
 

Friends

class ListBoxColorWrapper
 

Detailed Description

Definition at line 28 of file colorbox.hxx.

Constructor & Destructor Documentation

ColorListBox::ColorListBox ( std::unique_ptr< weld::MenuButton pControl,
weld::Window pTopLevelWindow 
)

Definition at line 3796 of file tbcontrl.cxx.

References LINK, LockWidthRequest(), m_aSelectedColor, m_nSlotId, m_xButton, and ShowPreview().

ColorListBox::~ColorListBox ( )

Definition at line 3816 of file tbcontrl.cxx.

Member Function Documentation

void ColorListBox::connect_focus_in ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 87 of file colorbox.hxx.

void ColorListBox::connect_focus_out ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 88 of file colorbox.hxx.

void ColorListBox::createColorWindow ( )
private
ColorListBox::DECL_LINK ( ToggleHdl  ,
weld::ToggleButton ,
void   
)
private
void ColorListBox::EnsurePaletteManager ( )

Definition at line 3776 of file tbcontrl.cxx.

References m_aColorWrapper, and m_xPaletteManager.

Referenced by createColorWindow().

bool ColorListBox::get_sensitive ( ) const
inline

Definition at line 82 of file colorbox.hxx.

weld::MenuButton& ColorListBox::get_widget ( )
inline

Definition at line 89 of file colorbox.hxx.

ColorWindow * ColorListBox::getColorWindow ( ) const
private

Definition at line 3820 of file tbcontrl.cxx.

References createColorWindow(), and m_xColorWindow.

Referenced by SelectEntry().

NamedColor const& ColorListBox::GetSelectedEntry ( ) const
inline

Definition at line 65 of file colorbox.hxx.

Color const& ColorListBox::GetSelectEntryColor ( ) const
inline

Definition at line 64 of file colorbox.hxx.

Referenced by Svx3DWin::ClickLight(), IMPL_LINK(), and Svx3DWin::Update().

void ColorListBox::hide ( )
inline

Definition at line 84 of file colorbox.hxx.

bool ColorListBox::IsNoSelection ( ) const
inline

Definition at line 71 of file colorbox.hxx.

bool ColorListBox::IsValueChangedFromSaved ( ) const
inline

Definition at line 79 of file colorbox.hxx.

void ColorListBox::LockWidthRequest ( )
private
void ColorListBox::SaveValue ( )
inline

Definition at line 78 of file colorbox.hxx.

void ColorListBox::Selected ( const NamedColor rNamedColor)
private
void ColorListBox::SelectEntry ( const NamedColor rColor)
void ColorListBox::SelectEntry ( const Color rColor)
void ColorListBox::set_help_id ( const OString &  rHelpId)
inline

Definition at line 86 of file colorbox.hxx.

void ColorListBox::set_sensitive ( bool  sensitive)
inline

Definition at line 81 of file colorbox.hxx.

Referenced by IMPL_LINK().

void ColorListBox::set_visible ( bool  bShow)
inline

Definition at line 85 of file colorbox.hxx.

void ColorListBox::SetAutoDisplayColor ( const Color rColor)
inline

Definition at line 73 of file colorbox.hxx.

void ColorListBox::SetNoSelection ( )
inline

Definition at line 70 of file colorbox.hxx.

Referenced by createColorWindow(), and Svx3DWin::LBSelectColor().

void ColorListBox::SetSelectHdl ( const Link< ColorListBox &, void > &  rLink)
inline

Definition at line 57 of file colorbox.hxx.

void ColorListBox::SetSlotId ( sal_uInt16  nSlotId,
bool  bShowNoneButton = false 
)
void ColorListBox::show ( )
inline

Definition at line 83 of file colorbox.hxx.

Referenced by IMPL_LINK().

void ColorListBox::ShowPreview ( const NamedColor rColor)

Friends And Related Function Documentation

friend class ListBoxColorWrapper
friend

Definition at line 31 of file colorbox.hxx.

Member Data Documentation

Color ColorListBox::m_aAutoDisplayColor
private

Definition at line 37 of file colorbox.hxx.

Referenced by ShowPreview().

ColorStatus ColorListBox::m_aColorStatus
private

Definition at line 43 of file colorbox.hxx.

Referenced by createColorWindow().

ListBoxColorWrapper ColorListBox::m_aColorWrapper
private

Definition at line 36 of file colorbox.hxx.

Referenced by createColorWindow(), and EnsurePaletteManager().

Color ColorListBox::m_aSaveColor
private

Definition at line 38 of file colorbox.hxx.

NamedColor ColorListBox::m_aSelectedColor
private

Definition at line 39 of file colorbox.hxx.

Referenced by ColorListBox(), createColorWindow(), Selected(), SelectEntry(), and SetSlotId().

Link<ColorListBox&, void> ColorListBox::m_aSelectedLink
private

Definition at line 35 of file colorbox.hxx.

Referenced by Selected().

bool ColorListBox::m_bShowNoneButton
private

Definition at line 41 of file colorbox.hxx.

Referenced by createColorWindow(), SetSlotId(), and ShowPreview().

sal_uInt16 ColorListBox::m_nSlotId
private

Definition at line 40 of file colorbox.hxx.

Referenced by ColorListBox(), createColorWindow(), and SetSlotId().

weld::Window* ColorListBox::m_pTopLevel
private

Definition at line 34 of file colorbox.hxx.

Referenced by createColorWindow().

std::unique_ptr<weld::MenuButton> ColorListBox::m_xButton
private
std::unique_ptr<ColorWindow> ColorListBox::m_xColorWindow
private

Definition at line 32 of file colorbox.hxx.

Referenced by createColorWindow(), getColorWindow(), and SetSlotId().

std::shared_ptr<PaletteManager> ColorListBox::m_xPaletteManager
private

Definition at line 42 of file colorbox.hxx.

Referenced by createColorWindow(), and EnsurePaletteManager().


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