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 ShowNoneButton ()
 
void StartSelection ()
 
void SetNoSelection ()
 
bool IsNoSelection () const
 
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
 
void SetSelectedHdl (const Link< const NamedColor &, void > &rLink)
 
- Public Member Functions inherited from svtools::ToolbarPopup
 ToolbarPopup (const css::uno::Reference< css::frame::XFrame > &rFrame, vcl::Window *pParentWindow, WinBits nBits)
 
 ToolbarPopup (const css::uno::Reference< css::frame::XFrame > &rFrame, vcl::Window *pParentWindow, const OString &rID, const OUString &rUIXMLDescription)
 
virtual ~ToolbarPopup () 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, 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 const maCommand
 
Link< const NamedColor &, voidmaSelectedLink
 
VclPtr< vcl::WindowmxParentWindow
 
std::shared_ptr< PaletteManagermxPaletteManager
 
ColorStatusmrColorStatus
 
ColorSelectFunction const maColorSelectFunction
 
bool const mbReuseParentForPicker
 

Additional Inherited Members

- Protected Member Functions inherited from svtools::ToolbarPopup
bool IsInPopupMode () const
 
void EndPopupMode ()
 
- 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 53 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 1888 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 2051 of file tbcontrl.cxx.

References theSlotId.

Referenced by GetSelectEntryColor().

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

Definition at line 1910 of file tbcontrl.cxx.

References ValueSet::KeyInput(), and mpColorSet.

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

Definition at line 2250 of file tbcontrl.cxx.

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

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

Definition at line 2189 of file tbcontrl.cxx.

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

Referenced by SelectEntry().

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

Definition at line 110 of file colorwindow.hxx.

Referenced by SvxColorToolBoxControl::createPopupWindow().

void SvxColorWindow::ShowNoneButton ( )

Definition at line 1878 of file tbcontrl.cxx.

References mpButtonNoneColor, and vcl::Window::Show().

Referenced by SvxColorListBox::createColorWindow().

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

Member Data Documentation

ColorSelectFunction const SvxColorWindow::maColorSelectFunction
private

Definition at line 72 of file colorwindow.hxx.

OUString const SvxColorWindow::maCommand
private

Definition at line 65 of file colorwindow.hxx.

Referenced by SvxColorWindow().

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

Definition at line 66 of file colorwindow.hxx.

bool const SvxColorWindow::mbReuseParentForPicker
private

Definition at line 73 of file colorwindow.hxx.

VclPtr<FixedLine> SvxColorWindow::mpAutomaticSeparator
private

Definition at line 64 of file colorwindow.hxx.

Referenced by dispose(), and SvxColorWindow().

VclPtr<PushButton> SvxColorWindow::mpButtonAutoColor
private

Definition at line 61 of file colorwindow.hxx.

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

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

Definition at line 63 of file colorwindow.hxx.

Referenced by dispose(), and SvxColorWindow().

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

Definition at line 60 of file colorwindow.hxx.

Referenced by dispose(), and SvxColorWindow().

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

Definition at line 70 of file colorwindow.hxx.

Referenced by statusChanged().

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

Definition at line 69 of file colorwindow.hxx.

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

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

Definition at line 68 of file colorwindow.hxx.

Referenced by dispose().

const sal_uInt16 SvxColorWindow::theSlotId
private

Definition at line 56 of file colorwindow.hxx.

Referenced by GetAutoColor(), and SvxColorWindow().


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