LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ColorWindow Class Referencefinal

#include <colorwindow.hxx>

Inheritance diagram for ColorWindow:
[legend]
Collaboration diagram for ColorWindow:
[legend]

Public Member Functions

 ColorWindow (OUString rCommand, std::shared_ptr< PaletteManager > xPaletteManager, ColorStatus &rColorStatus, sal_uInt16 nSlotId, const css::uno::Reference< css::frame::XFrame > &rFrame, const MenuOrToolMenuButton &rMenuButton, TopLevelParentFunction aTopLevelParentFunction, ColorSelectFunction aColorSelectFunction)
 
virtual ~ColorWindow () override
 
void ShowNoneButton ()
 
void SetNoSelection ()
 
bool IsNoSelection () const
 
void SelectEntry (const NamedColor &rColor)
 
void SelectEntry (const Color &rColor)
 
NamedColor GetSelectEntryColor () const
 
virtual void statusChanged (const css::frame::FeatureStateEvent &rEvent) override
 
void SetSelectedHdl (const Link< const NamedColor &, void > &rLink)
 
virtual void GrabFocus () override
 
- Public Member Functions inherited from WeldToolbarPopup
 WeldToolbarPopup (css::uno::Reference< css::frame::XFrame > xFrame, weld::Widget *pParent, const OUString &rUIFile, const OString &rId)
 
virtual ~WeldToolbarPopup ()
 
weld::ContainergetTopLevel ()
 
weld::ContainergetContainer ()
 
void AddStatusListener (const OUString &rCommandURL)
 
virtual void statusChanged (const css::frame::FeatureStateEvent &Event)
 
virtual void GrabFocus ()=0
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (SelectHdl, ValueSet *, void)
 
 DECL_DLLPRIVATE_LINK (SelectPaletteHdl, weld::ComboBox &, void)
 
 DECL_DLLPRIVATE_LINK (AutoColorClickHdl, weld::Button &, void)
 
 DECL_DLLPRIVATE_LINK (OpenPickerClickHdl, weld::Button &, void)
 
NamedColor GetAutoColor () const
 

Static Private Member Functions

static bool SelectValueSetEntry (SvxColorValueSet *pColorSet, const Color &rColor)
 
static NamedColor GetSelectEntryColor (ValueSet const *pColorSet)
 

Private Attributes

const sal_uInt16 theSlotId
 
OUString maCommand
 
MenuOrToolMenuButton maMenuButton
 
std::shared_ptr< PaletteManagermxPaletteManager
 
ColorStatusmrColorStatus
 
TopLevelParentFunction maTopLevelParentFunction
 
ColorSelectFunction maColorSelectFunction
 
std::unique_ptr< SvxColorValueSetmxColorSet
 
std::unique_ptr< SvxColorValueSetmxRecentColorSet
 
std::unique_ptr< weld::ComboBoxmxPaletteListBox
 
std::unique_ptr< weld::ButtonmxButtonAutoColor
 
std::unique_ptr< weld::ButtonmxButtonNoneColor
 
std::unique_ptr< weld::ButtonmxButtonPicker
 
std::unique_ptr< weld::WidgetmxAutomaticSeparator
 
std::unique_ptr< weld::CustomWeldmxColorSetWin
 
std::unique_ptr< weld::CustomWeldmxRecentColorSetWin
 
weld::ButtonmpDefaultButton
 
Link< const NamedColor &, void > maSelectedLink
 

Additional Inherited Members

- Protected Attributes inherited from WeldToolbarPopup
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xTopLevel
 
std::unique_ptr< weld::Containerm_xContainer
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
rtl::Reference< svt::FrameStatusListenerm_xStatusListener
 

Detailed Description

Definition at line 80 of file colorwindow.hxx.

Constructor & Destructor Documentation

◆ ColorWindow()

ColorWindow::ColorWindow ( OUString  rCommand,
std::shared_ptr< PaletteManager xPaletteManager,
ColorStatus rColorStatus,
sal_uInt16  nSlotId,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
const MenuOrToolMenuButton rMenuButton,
TopLevelParentFunction  aTopLevelParentFunction,
ColorSelectFunction  aColorSelectFunction 
)

◆ ~ColorWindow()

ColorWindow::~ColorWindow ( )
overridevirtual

Definition at line 2142 of file tbcontrl.cxx.

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK() [1/4]

ColorWindow::DECL_DLLPRIVATE_LINK ( AutoColorClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/4]

ColorWindow::DECL_DLLPRIVATE_LINK ( OpenPickerClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/4]

ColorWindow::DECL_DLLPRIVATE_LINK ( SelectHdl  ,
ValueSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [4/4]

ColorWindow::DECL_DLLPRIVATE_LINK ( SelectPaletteHdl  ,
weld::ComboBox ,
void   
)
private

◆ GetAutoColor()

NamedColor ColorWindow::GetAutoColor ( ) const
private

Definition at line 2251 of file tbcontrl.cxx.

References theSlotId.

Referenced by GetSelectEntryColor().

◆ GetSelectEntryColor() [1/2]

NamedColor ColorWindow::GetSelectEntryColor ( ) const

◆ GetSelectEntryColor() [2/2]

NamedColor ColorWindow::GetSelectEntryColor ( ValueSet const *  pColorSet)
staticprivate

◆ GrabFocus()

void ColorWindow::GrabFocus ( )
overridevirtual

Implements WeldToolbarPopup.

Definition at line 2129 of file tbcontrl.cxx.

References weld::Widget::grab_focus(), mpDefaultButton, and mxColorSet.

Referenced by IMPL_LINK().

◆ IsNoSelection()

bool ColorWindow::IsNoSelection ( ) const

Definition at line 2296 of file tbcontrl.cxx.

References mxButtonAutoColor, mxButtonNoneColor, mxColorSet, and mxRecentColorSet.

◆ SelectEntry() [1/2]

void ColorWindow::SelectEntry ( const Color rColor)

Definition at line 2370 of file tbcontrl.cxx.

References Color::AsRGBHexString(), and SelectEntry().

◆ SelectEntry() [2/2]

void ColorWindow::SelectEntry ( const NamedColor rColor)

◆ SelectValueSetEntry()

bool ColorWindow::SelectValueSetEntry ( SvxColorValueSet pColorSet,
const Color rColor 
)
staticprivate

Definition at line 2322 of file tbcontrl.cxx.

References ValueSet::GetItemColor(), ValueSet::GetItemCount(), i, and ValueSet::SelectItem().

Referenced by SelectEntry().

◆ SetNoSelection()

void ColorWindow::SetNoSelection ( )

Definition at line 2289 of file tbcontrl.cxx.

References mpDefaultButton, mxColorSet, and mxRecentColorSet.

Referenced by SelectEntry().

◆ SetSelectedHdl()

void ColorWindow::SetSelectedHdl ( const Link< const NamedColor &, void > &  rLink)
inline

Definition at line 131 of file colorwindow.hxx.

◆ ShowNoneButton()

void ColorWindow::ShowNoneButton ( )

Definition at line 2137 of file tbcontrl.cxx.

References mxButtonNoneColor.

◆ statusChanged()

void ColorWindow::statusChanged ( const css::frame::FeatureStateEvent &  rEvent)
overridevirtual

Member Data Documentation

◆ maColorSelectFunction

ColorSelectFunction ColorWindow::maColorSelectFunction
private

Definition at line 89 of file colorwindow.hxx.

◆ maCommand

OUString ColorWindow::maCommand
private

Definition at line 84 of file colorwindow.hxx.

Referenced by ColorWindow().

◆ maMenuButton

MenuOrToolMenuButton ColorWindow::maMenuButton
private

Definition at line 85 of file colorwindow.hxx.

◆ maSelectedLink

Link<const NamedColor&, void> ColorWindow::maSelectedLink
private

Definition at line 102 of file colorwindow.hxx.

◆ maTopLevelParentFunction

TopLevelParentFunction ColorWindow::maTopLevelParentFunction
private

Definition at line 88 of file colorwindow.hxx.

◆ mpDefaultButton

weld::Button* ColorWindow::mpDefaultButton
private

Definition at line 100 of file colorwindow.hxx.

Referenced by GetSelectEntryColor(), GrabFocus(), SelectEntry(), and SetNoSelection().

◆ mrColorStatus

ColorStatus& ColorWindow::mrColorStatus
private

Definition at line 87 of file colorwindow.hxx.

Referenced by statusChanged().

◆ mxAutomaticSeparator

std::unique_ptr<weld::Widget> ColorWindow::mxAutomaticSeparator
private

Definition at line 97 of file colorwindow.hxx.

Referenced by ColorWindow().

◆ mxButtonAutoColor

std::unique_ptr<weld::Button> ColorWindow::mxButtonAutoColor
private

Definition at line 94 of file colorwindow.hxx.

Referenced by ColorWindow(), IsNoSelection(), and SelectEntry().

◆ mxButtonNoneColor

std::unique_ptr<weld::Button> ColorWindow::mxButtonNoneColor
private

◆ mxButtonPicker

std::unique_ptr<weld::Button> ColorWindow::mxButtonPicker
private

Definition at line 96 of file colorwindow.hxx.

Referenced by ColorWindow().

◆ mxColorSet

std::unique_ptr<SvxColorValueSet> ColorWindow::mxColorSet
private

◆ mxColorSetWin

std::unique_ptr<weld::CustomWeld> ColorWindow::mxColorSetWin
private

Definition at line 98 of file colorwindow.hxx.

◆ mxPaletteListBox

std::unique_ptr<weld::ComboBox> ColorWindow::mxPaletteListBox
private

Definition at line 93 of file colorwindow.hxx.

Referenced by ColorWindow().

◆ mxPaletteManager

std::shared_ptr<PaletteManager> ColorWindow::mxPaletteManager
private

Definition at line 86 of file colorwindow.hxx.

Referenced by ColorWindow(), SelectEntry(), and statusChanged().

◆ mxRecentColorSet

std::unique_ptr<SvxColorValueSet> ColorWindow::mxRecentColorSet
private

◆ mxRecentColorSetWin

std::unique_ptr<weld::CustomWeld> ColorWindow::mxRecentColorSetWin
private

Definition at line 99 of file colorwindow.hxx.

◆ theSlotId

const sal_uInt16 ColorWindow::theSlotId
private

Definition at line 83 of file colorwindow.hxx.

Referenced by ColorWindow(), and GetAutoColor().


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