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, TopLevelParentFunction aTopLevelParentFunction, const ColorListBox *pCache=nullptr)
 
 ~ColorListBox ()
 
void SetSelectHdl (const Link< ColorListBox &, void > &rLink)
 
void SetSlotId (sal_uInt16 nSlotId, bool bShowNoneButton=false)
 
Color const & GetSelectEntryColor () const
 
NamedColor GetSelectedEntry () const
 
const NamedColorGetSelectedEntryThemedColor () 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 OUString &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 (int nWidthRequest)
 
int CalcBestWidthRequest ()
 
ColorWindowgetColorWindow () const
 
 DECL_DLLPRIVATE_LINK (ToggleHdl, weld::Toggleable &, void)
 

Private Attributes

std::unique_ptr< ColorWindowm_xColorWindow
 
std::unique_ptr< weld::MenuButtonm_xButton
 
Link< ColorListBox &, void > m_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
 
TopLevelParentFunction m_aTopLevelParentFunction
 
ColorStatus m_aColorStatus
 

Friends

class ListBoxColorWrapper
 

Detailed Description

Definition at line 29 of file colorbox.hxx.

Constructor & Destructor Documentation

◆ ColorListBox()

ColorListBox::ColorListBox ( std::unique_ptr< weld::MenuButton pControl,
TopLevelParentFunction  aTopLevelParentFunction,
const ColorListBox pCache = nullptr 
)

◆ ~ColorListBox()

ColorListBox::~ColorListBox ( )

Definition at line 4301 of file tbcontrl.cxx.

Member Function Documentation

◆ CalcBestWidthRequest()

int ColorListBox::CalcBestWidthRequest ( )
private

◆ connect_focus_in()

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

Definition at line 89 of file colorbox.hxx.

◆ connect_focus_out()

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

Definition at line 93 of file colorbox.hxx.

◆ createColorWindow()

void ColorListBox::createColorWindow ( )
private

◆ DECL_DLLPRIVATE_LINK()

ColorListBox::DECL_DLLPRIVATE_LINK ( ToggleHdl  ,
weld::Toggleable ,
void   
)
private

◆ EnsurePaletteManager()

void ColorListBox::EnsurePaletteManager ( )

Definition at line 4248 of file tbcontrl.cxx.

References m_aColorWrapper, and m_xPaletteManager.

Referenced by createColorWindow().

◆ get_sensitive()

bool ColorListBox::get_sensitive ( ) const
inline

Definition at line 84 of file colorbox.hxx.

◆ get_widget()

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

Definition at line 97 of file colorbox.hxx.

◆ getColorWindow()

ColorWindow * ColorListBox::getColorWindow ( ) const
private

Definition at line 4305 of file tbcontrl.cxx.

References createColorWindow(), and m_xColorWindow.

Referenced by SelectEntry().

◆ GetSelectedEntry()

NamedColor ColorListBox::GetSelectedEntry ( ) const
inline

Definition at line 66 of file colorbox.hxx.

◆ GetSelectedEntryThemedColor()

const NamedColor & ColorListBox::GetSelectedEntryThemedColor ( ) const
inline

Definition at line 67 of file colorbox.hxx.

◆ GetSelectEntryColor()

Color const & ColorListBox::GetSelectEntryColor ( ) const
inline

Definition at line 65 of file colorbox.hxx.

References NamedColor::m_aColor.

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

◆ hide()

void ColorListBox::hide ( )
inline

Definition at line 86 of file colorbox.hxx.

◆ IsNoSelection()

bool ColorListBox::IsNoSelection ( ) const
inline

Definition at line 73 of file colorbox.hxx.

◆ IsValueChangedFromSaved()

bool ColorListBox::IsValueChangedFromSaved ( ) const
inline

Definition at line 81 of file colorbox.hxx.

◆ LockWidthRequest()

void ColorListBox::LockWidthRequest ( int  nWidthRequest)
private

Definition at line 4388 of file tbcontrl.cxx.

References m_xButton.

Referenced by ColorListBox().

◆ SaveValue()

void ColorListBox::SaveValue ( )
inline

Definition at line 80 of file colorbox.hxx.

◆ Selected()

void ColorListBox::Selected ( const NamedColor rNamedColor)
private

◆ SelectEntry() [1/2]

void ColorListBox::SelectEntry ( const Color rColor)

◆ SelectEntry() [2/2]

void ColorListBox::SelectEntry ( const NamedColor rColor)

◆ set_help_id()

void ColorListBox::set_help_id ( const OUString &  rHelpId)
inline

Definition at line 88 of file colorbox.hxx.

◆ set_sensitive()

void ColorListBox::set_sensitive ( bool  sensitive)
inline

Definition at line 83 of file colorbox.hxx.

Referenced by IMPL_LINK().

◆ set_visible()

void ColorListBox::set_visible ( bool  bShow)
inline

Definition at line 87 of file colorbox.hxx.

◆ SetAutoDisplayColor()

void ColorListBox::SetAutoDisplayColor ( const Color rColor)
inline

Definition at line 75 of file colorbox.hxx.

◆ SetNoSelection()

void ColorListBox::SetNoSelection ( )
inline

Definition at line 72 of file colorbox.hxx.

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

◆ SetSelectHdl()

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

Definition at line 61 of file colorbox.hxx.

◆ SetSlotId()

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

◆ show()

void ColorListBox::show ( )
inline

Definition at line 85 of file colorbox.hxx.

Referenced by IMPL_LINK().

◆ ShowPreview()

void ColorListBox::ShowPreview ( const NamedColor rColor)

Friends And Related Function Documentation

◆ ListBoxColorWrapper

friend class ListBoxColorWrapper
friend

Definition at line 32 of file colorbox.hxx.

Member Data Documentation

◆ m_aAutoDisplayColor

Color ColorListBox::m_aAutoDisplayColor
private

Definition at line 37 of file colorbox.hxx.

Referenced by ShowPreview().

◆ m_aColorStatus

ColorStatus ColorListBox::m_aColorStatus
private

Definition at line 44 of file colorbox.hxx.

Referenced by createColorWindow().

◆ m_aColorWrapper

ListBoxColorWrapper ColorListBox::m_aColorWrapper
private

Definition at line 36 of file colorbox.hxx.

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

◆ m_aSaveColor

Color ColorListBox::m_aSaveColor
private

Definition at line 38 of file colorbox.hxx.

◆ m_aSelectedColor

NamedColor ColorListBox::m_aSelectedColor
private

Definition at line 39 of file colorbox.hxx.

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

◆ m_aSelectedLink

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

Definition at line 35 of file colorbox.hxx.

Referenced by Selected().

◆ m_aTopLevelParentFunction

TopLevelParentFunction ColorListBox::m_aTopLevelParentFunction
private

Definition at line 43 of file colorbox.hxx.

Referenced by createColorWindow().

◆ m_bShowNoneButton

bool ColorListBox::m_bShowNoneButton
private

Definition at line 41 of file colorbox.hxx.

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

◆ m_nSlotId

sal_uInt16 ColorListBox::m_nSlotId
private

Definition at line 40 of file colorbox.hxx.

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

◆ m_xButton

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

◆ m_xColorWindow

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

Definition at line 33 of file colorbox.hxx.

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

◆ m_xPaletteManager

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

Definition at line 42 of file colorbox.hxx.

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


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