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 *pWindow)
 
 ~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)
 
weld::MenuButtonget_widget ()
 

Private Member Functions

void Selected (const NamedColor &rNamedColor)
 
void createColorWindow ()
 
void LockWidthRequest ()
 
ColorWindowgetColorWindow () const
 

Private Attributes

std::unique_ptr< ColorWindowm_xColorWindow
 
std::unique_ptr< weld::MenuButtonm_xButton
 
weld::Window *const m_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 85 of file colorbox.hxx.

Constructor & Destructor Documentation

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

Definition at line 4107 of file tbcontrl.cxx.

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

ColorListBox::~ColorListBox ( )

Definition at line 4120 of file tbcontrl.cxx.

Member Function Documentation

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

Definition at line 140 of file colorbox.hxx.

void ColorListBox::createColorWindow ( )
private
void ColorListBox::EnsurePaletteManager ( )

Definition at line 3929 of file tbcontrl.cxx.

References m_aColorWrapper, and m_xPaletteManager.

Referenced by createColorWindow().

bool ColorListBox::get_sensitive ( ) const
inline

Definition at line 135 of file colorbox.hxx.

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

Definition at line 141 of file colorbox.hxx.

ColorWindow * ColorListBox::getColorWindow ( ) const
private

Definition at line 4124 of file tbcontrl.cxx.

References createColorWindow(), and m_xColorWindow.

Referenced by SelectEntry().

NamedColor const& ColorListBox::GetSelectedEntry ( ) const
inline

Definition at line 118 of file colorbox.hxx.

Color const& ColorListBox::GetSelectEntryColor ( ) const
inline

Definition at line 117 of file colorbox.hxx.

void ColorListBox::hide ( )
inline

Definition at line 137 of file colorbox.hxx.

bool ColorListBox::IsNoSelection ( ) const
inline

Definition at line 124 of file colorbox.hxx.

bool ColorListBox::IsValueChangedFromSaved ( ) const
inline

Definition at line 132 of file colorbox.hxx.

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

Definition at line 131 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 139 of file colorbox.hxx.

void ColorListBox::set_sensitive ( bool  sensitive)
inline

Definition at line 134 of file colorbox.hxx.

void ColorListBox::set_visible ( bool  bShow)
inline

Definition at line 138 of file colorbox.hxx.

void ColorListBox::SetAutoDisplayColor ( const Color rColor)
inline

Definition at line 126 of file colorbox.hxx.

void ColorListBox::SetNoSelection ( )
inline

Definition at line 123 of file colorbox.hxx.

Referenced by createColorWindow().

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

Definition at line 110 of file colorbox.hxx.

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

Definition at line 136 of file colorbox.hxx.

void ColorListBox::ShowPreview ( const NamedColor rColor)

Friends And Related Function Documentation

friend class ListBoxColorWrapper
friend

Definition at line 88 of file colorbox.hxx.

Member Data Documentation

Color ColorListBox::m_aAutoDisplayColor
private

Definition at line 94 of file colorbox.hxx.

Referenced by ShowPreview().

ColorStatus ColorListBox::m_aColorStatus
private

Definition at line 100 of file colorbox.hxx.

Referenced by createColorWindow().

ListBoxColorWrapper ColorListBox::m_aColorWrapper
private

Definition at line 93 of file colorbox.hxx.

Referenced by createColorWindow(), and EnsurePaletteManager().

Color ColorListBox::m_aSaveColor
private

Definition at line 95 of file colorbox.hxx.

NamedColor ColorListBox::m_aSelectedColor
private

Definition at line 96 of file colorbox.hxx.

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

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

Definition at line 92 of file colorbox.hxx.

Referenced by Selected().

bool ColorListBox::m_bShowNoneButton
private

Definition at line 98 of file colorbox.hxx.

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

sal_uInt16 ColorListBox::m_nSlotId
private

Definition at line 97 of file colorbox.hxx.

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

weld::Window* const ColorListBox::m_pTopLevel
private

Definition at line 91 of file colorbox.hxx.

Referenced by createColorWindow().

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

Definition at line 90 of file colorbox.hxx.

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

std::unique_ptr<ColorWindow> ColorListBox::m_xColorWindow
private

Definition at line 89 of file colorbox.hxx.

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

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

Definition at line 99 of file colorbox.hxx.

Referenced by createColorWindow(), and EnsurePaletteManager().


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