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

#include <colorwindow.hxx>

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

Public Member Functions

 SvxColorWindow (const OUString &rCommand, std::shared_ptr< PaletteManager > const &rPaletteManager, ColorStatus &rColorStatus, sal_uInt16 nSlotId, const css::uno::Reference< css::frame::XFrame > &rFrame, vcl::Window *pParentWindow, bool bReuseParentForPicker, ColorSelectFunction const &rColorSelectFunction)
 
virtual ~SvxColorWindow () override
 
virtual void dispose () override
 
void SetNoSelection ()
 
void SelectEntry (const NamedColor &rColor)
 
void SelectEntry (const Color &rColor)
 
NamedColor GetSelectEntryColor () const
 
virtual void KeyInput (const KeyEvent &rKEvt) override
 
virtual void statusChanged (const css::frame::FeatureStateEvent &rEvent) override
 

Private Member Functions

 DECL_LINK (SelectHdl, ValueSet *, void)
 
 DECL_LINK (SelectPaletteHdl, ListBox &, void)
 
 DECL_LINK (AutoColorClickHdl, Button *, void)
 
 DECL_LINK (OpenPickerClickHdl, 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
 
VclPtr< SvxColorValueSetmpColorSet
 
VclPtr< SvxColorValueSetmpRecentColorSet
 
VclPtr< ListBoxmpPaletteListBox
 
VclPtr< PushButtonmpButtonAutoColor
 
VclPtr< PushButtonmpButtonNoneColor
 
VclPtr< PushButtonmpButtonPicker
 
VclPtr< FixedLinempAutomaticSeparator
 
OUString maCommand
 
Link< const NamedColor &, voidmaSelectedLink
 
VclPtr< vcl::WindowmxParentWindow
 
std::shared_ptr< PaletteManagermxPaletteManager
 
ColorStatusmrColorStatus
 
ColorSelectFunction maColorSelectFunction
 
bool mbReuseParentForPicker
 

Detailed Description

Definition at line 54 of file colorwindow.hxx.

Constructor & Destructor Documentation

SvxColorWindow::SvxColorWindow ( const OUString &  rCommand,
std::shared_ptr< PaletteManager > const &  rPaletteManager,
ColorStatus rColorStatus,
sal_uInt16  nSlotId,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
vcl::Window pParentWindow,
bool  bReuseParentForPicker,
ColorSelectFunction const &  rColorSelectFunction 
)
SvxColorWindow::~SvxColorWindow ( )
overridevirtual

Definition at line 1866 of file tbcontrl.cxx.

Member Function Documentation

SvxColorWindow::DECL_LINK ( SelectHdl  ,
ValueSet ,
void   
)
private
SvxColorWindow::DECL_LINK ( SelectPaletteHdl  ,
ListBox ,
void   
)
private
SvxColorWindow::DECL_LINK ( AutoColorClickHdl  ,
Button ,
void   
)
private
SvxColorWindow::DECL_LINK ( OpenPickerClickHdl  ,
Button ,
void   
)
private
void SvxColorWindow::dispose ( void  )
overridevirtual
NamedColor SvxColorWindow::GetAutoColor ( ) const
private

Definition at line 2036 of file tbcontrl.cxx.

References theSlotId.

Referenced by GetSelectEntryColor().

NamedColor SvxColorWindow::GetSelectEntryColor ( ValueSet const *  pColorSet)
staticprivate
NamedColor SvxColorWindow::GetSelectEntryColor ( ) const
void SvxColorWindow::KeyInput ( const KeyEvent rKEvt)
overridevirtual

Definition at line 1888 of file tbcontrl.cxx.

References ValueSet::KeyInput(), and mpColorSet.

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

Definition at line 2234 of file tbcontrl.cxx.

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

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

Definition at line 2173 of file tbcontrl.cxx.

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

Referenced by SelectEntry().

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

Member Data Documentation

ColorSelectFunction SvxColorWindow::maColorSelectFunction
private

Definition at line 73 of file colorwindow.hxx.

OUString SvxColorWindow::maCommand
private

Definition at line 66 of file colorwindow.hxx.

Referenced by SvxColorWindow().

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

Definition at line 67 of file colorwindow.hxx.

bool SvxColorWindow::mbReuseParentForPicker
private

Definition at line 74 of file colorwindow.hxx.

VclPtr<FixedLine> SvxColorWindow::mpAutomaticSeparator
private

Definition at line 65 of file colorwindow.hxx.

Referenced by dispose(), and SvxColorWindow().

VclPtr<PushButton> SvxColorWindow::mpButtonAutoColor
private

Definition at line 62 of file colorwindow.hxx.

Referenced by dispose(), SelectEntry(), SetNoSelection(), and SvxColorWindow().

VclPtr<PushButton> SvxColorWindow::mpButtonNoneColor
private
VclPtr<PushButton> SvxColorWindow::mpButtonPicker
private

Definition at line 64 of file colorwindow.hxx.

Referenced by dispose(), and SvxColorWindow().

VclPtr<SvxColorValueSet> SvxColorWindow::mpColorSet
private
VclPtr<ListBox> SvxColorWindow::mpPaletteListBox
private

Definition at line 61 of file colorwindow.hxx.

Referenced by dispose(), and SvxColorWindow().

VclPtr<SvxColorValueSet> SvxColorWindow::mpRecentColorSet
private
ColorStatus& SvxColorWindow::mrColorStatus
private

Definition at line 71 of file colorwindow.hxx.

Referenced by statusChanged().

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

Definition at line 70 of file colorwindow.hxx.

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

VclPtr<vcl::Window> SvxColorWindow::mxParentWindow
private

Definition at line 69 of file colorwindow.hxx.

Referenced by dispose().

const sal_uInt16 SvxColorWindow::theSlotId
private

Definition at line 57 of file colorwindow.hxx.

Referenced by GetAutoColor(), and SvxColorWindow().


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