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 (const OUString &rCommand, std::shared_ptr< PaletteManager > const &rPaletteManager, ColorStatus &rColorStatus, sal_uInt16 nSlotId, const css::uno::Reference< css::frame::XFrame > &rFrame, weld::Window *pParentWindow, const MenuOrToolMenuButton &rMenuButton, ColorSelectFunction const &rColorSelectFunction)
 
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 (const css::uno::Reference< css::frame::XFrame > &rFrame, weld::Widget *pParent, const OUString &rUIFile, const OString &rId)
 
virtual ~WeldToolbarPopup () override
 
weld::ContainergetTopLevel ()
 
weld::ContainergetContainer ()
 
- Public Member Functions inherited from svtools::ToolbarPopupBase
 ToolbarPopupBase (const css::uno::Reference< css::frame::XFrame > &rFrame)
 
virtual ~ToolbarPopupBase ()
 

Private Member Functions

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

Static Private Member Functions

static bool SelectValueSetEntry (ColorValueSet *pColorSet, const Color &rColor)
 
static NamedColor GetSelectEntryColor (SvtValueSet const *pColorSet)
 

Private Attributes

const sal_uInt16 theSlotId
 
OUString maCommand
 
weld::WindowmpParentWindow
 
MenuOrToolMenuButton maMenuButton
 
std::shared_ptr< PaletteManagermxPaletteManager
 
ColorStatusmrColorStatus
 
ColorSelectFunction maColorSelectFunction
 
std::unique_ptr< ColorValueSetmxColorSet
 
std::unique_ptr< ColorValueSetmxRecentColorSet
 
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 &, voidmaSelectedLink
 

Additional Inherited Members

- Protected Member Functions inherited from svtools::ToolbarPopupBase
void AddStatusListener (const OUString &rCommandURL)
 
- Protected Attributes inherited from WeldToolbarPopup
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xTopLevel
 
std::unique_ptr< weld::Containerm_xContainer
 
- Protected Attributes inherited from svtools::ToolbarPopupBase
css::uno::Reference< css::frame::XFrame > mxFrame
 
rtl::Reference< svt::FrameStatusListenermxStatusListener
 

Detailed Description

Definition at line 82 of file colorwindow.hxx.

Constructor & Destructor Documentation

ColorWindow::ColorWindow ( const OUString &  rCommand,
std::shared_ptr< PaletteManager > const &  rPaletteManager,
ColorStatus rColorStatus,
sal_uInt16  nSlotId,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
weld::Window pParentWindow,
const MenuOrToolMenuButton rMenuButton,
ColorSelectFunction const &  rColorSelectFunction 
)
ColorWindow::~ColorWindow ( )
overridevirtual

Definition at line 1752 of file tbcontrl.cxx.

Member Function Documentation

ColorWindow::DECL_LINK ( SelectHdl  ,
SvtValueSet ,
void   
)
private
ColorWindow::DECL_LINK ( SelectPaletteHdl  ,
weld::ComboBox ,
void   
)
private
ColorWindow::DECL_LINK ( AutoColorClickHdl  ,
weld::Button ,
void   
)
private
ColorWindow::DECL_LINK ( OpenPickerClickHdl  ,
weld::Button ,
void   
)
private
NamedColor ColorWindow::GetAutoColor ( ) const
private

Definition at line 1851 of file tbcontrl.cxx.

References theSlotId.

Referenced by GetSelectEntryColor().

NamedColor ColorWindow::GetSelectEntryColor ( SvtValueSet const *  pColorSet)
staticprivate
NamedColor ColorWindow::GetSelectEntryColor ( ) const
void ColorWindow::GrabFocus ( )
overridevirtual

Implements WeldToolbarPopup.

Definition at line 1739 of file tbcontrl.cxx.

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

bool ColorWindow::IsNoSelection ( ) const

Definition at line 1896 of file tbcontrl.cxx.

References mxButtonAutoColor, mxButtonNoneColor, mxColorSet, and mxRecentColorSet.

void ColorWindow::SelectEntry ( const NamedColor rColor)
void ColorWindow::SelectEntry ( const Color rColor)

Definition at line 1970 of file tbcontrl.cxx.

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

bool ColorWindow::SelectValueSetEntry ( ColorValueSet pColorSet,
const Color rColor 
)
staticprivate
void ColorWindow::SetNoSelection ( )

Definition at line 1889 of file tbcontrl.cxx.

References mpDefaultButton, mxColorSet, and mxRecentColorSet.

Referenced by SelectEntry().

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

Definition at line 132 of file colorwindow.hxx.

void ColorWindow::ShowNoneButton ( )

Definition at line 1747 of file tbcontrl.cxx.

References mxButtonNoneColor.

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

Member Data Documentation

ColorSelectFunction ColorWindow::maColorSelectFunction
private

Definition at line 91 of file colorwindow.hxx.

OUString ColorWindow::maCommand
private

Definition at line 86 of file colorwindow.hxx.

Referenced by ColorWindow().

MenuOrToolMenuButton ColorWindow::maMenuButton
private

Definition at line 88 of file colorwindow.hxx.

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

Definition at line 104 of file colorwindow.hxx.

weld::Button* ColorWindow::mpDefaultButton
private

Definition at line 102 of file colorwindow.hxx.

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

weld::Window* ColorWindow::mpParentWindow
private

Definition at line 87 of file colorwindow.hxx.

ColorStatus& ColorWindow::mrColorStatus
private

Definition at line 90 of file colorwindow.hxx.

Referenced by statusChanged().

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

Definition at line 99 of file colorwindow.hxx.

Referenced by ColorWindow().

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

Definition at line 96 of file colorwindow.hxx.

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

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

Definition at line 98 of file colorwindow.hxx.

Referenced by ColorWindow().

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

Definition at line 100 of file colorwindow.hxx.

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

Definition at line 95 of file colorwindow.hxx.

Referenced by ColorWindow().

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

Definition at line 89 of file colorwindow.hxx.

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

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

Definition at line 101 of file colorwindow.hxx.

const sal_uInt16 ColorWindow::theSlotId
private

Definition at line 85 of file colorwindow.hxx.

Referenced by ColorWindow(), and GetAutoColor().


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