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 (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)
 
weld::ContainerGetWidget ()
 
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
 
- 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)
 
 DECL_LINK (FocusHdl, weld::Widget &, void)
 
NamedColor GetAutoColor () const
 

Static Private Member Functions

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

Private Attributes

std::unique_ptr< weld::Builderm_xBuilder
 
const sal_uInt16 theSlotId
 
weld::Window *const mpParentWindow
 
MenuOrToolMenuButton maMenuButton
 
std::shared_ptr< PaletteManagermxPaletteManager
 
ColorStatusmrColorStatus
 
ColorSelectFunction const maColorSelectFunction
 
std::unique_ptr< ColorValueSetmxColorSet
 
std::unique_ptr< ColorValueSetmxRecentColorSet
 
std::unique_ptr< weld::ContainermxTopLevel
 
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
 

Additional Inherited Members

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

Detailed Description

Definition at line 130 of file colorwindow.hxx.

Constructor & Destructor Documentation

ColorWindow::ColorWindow ( 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 1893 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
ColorWindow::DECL_LINK ( FocusHdl  ,
weld::Widget ,
void   
)
private
NamedColor ColorWindow::GetAutoColor ( ) const
private

Definition at line 2056 of file tbcontrl.cxx.

References theSlotId.

Referenced by GetSelectEntryColor().

NamedColor ColorWindow::GetSelectEntryColor ( SvtValueSet const *  pColorSet)
staticprivate
NamedColor ColorWindow::GetSelectEntryColor ( ) const
weld::Container* ColorWindow::GetWidget ( )
inline

Definition at line 171 of file colorwindow.hxx.

bool ColorWindow::IsNoSelection ( ) const

Definition at line 2146 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 2293 of file tbcontrl.cxx.

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

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

Definition at line 2130 of file tbcontrl.cxx.

References mpDefaultButton, mxColorSet, and mxRecentColorSet.

Referenced by SelectEntry().

void ColorWindow::ShowNoneButton ( )

Definition at line 1883 of file tbcontrl.cxx.

References mxButtonNoneColor.

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

Member Data Documentation

std::unique_ptr<weld::Builder> ColorWindow::m_xBuilder
private

Definition at line 133 of file colorwindow.hxx.

ColorSelectFunction const ColorWindow::maColorSelectFunction
private

Definition at line 140 of file colorwindow.hxx.

MenuOrToolMenuButton ColorWindow::maMenuButton
private

Definition at line 137 of file colorwindow.hxx.

weld::Button* ColorWindow::mpDefaultButton
private

Definition at line 152 of file colorwindow.hxx.

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

weld::Window* const ColorWindow::mpParentWindow
private

Definition at line 136 of file colorwindow.hxx.

ColorStatus& ColorWindow::mrColorStatus
private

Definition at line 139 of file colorwindow.hxx.

Referenced by statusChanged().

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

Definition at line 149 of file colorwindow.hxx.

Referenced by ColorWindow().

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

Definition at line 146 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 148 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 150 of file colorwindow.hxx.

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

Definition at line 145 of file colorwindow.hxx.

Referenced by ColorWindow().

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

Definition at line 138 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 151 of file colorwindow.hxx.

std::unique_ptr<weld::Container> ColorWindow::mxTopLevel
private

Definition at line 144 of file colorwindow.hxx.

Referenced by ColorWindow().

const sal_uInt16 ColorWindow::theSlotId
private

Definition at line 135 of file colorwindow.hxx.

Referenced by ColorWindow(), and GetAutoColor().


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