LibreOffice Module svtools (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvColorDialog Class Referencefinal

#include <colrdlg.hxx>

Collaboration diagram for SvColorDialog:
[legend]

Public Member Functions

 SvColorDialog ()
 
 ~SvColorDialog ()
 
void SetColor (const Color &rColor)
 
const ColorGetColor () const
 
void SetMode (svtools::ColorPickerMode eMode)
 
short Execute (weld::Window *pParent)
 
void ExecuteAsync (weld::Window *pParent, const std::function< void(sal_Int32)> &func)
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (DialogClosedHdl, css::ui::dialogs::DialogClosedEvent *, void)
 

Private Attributes

Color maColor
 
svtools::ColorPickerMode meMode
 
::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XAsynchronousExecutableDialog > mxDialog
 
std::function< void(sal_Int32)> m_aResultFunc
 

Detailed Description

Definition at line 38 of file colrdlg.hxx.

Constructor & Destructor Documentation

◆ SvColorDialog()

SvColorDialog::SvColorDialog ( )

Definition at line 44 of file colrdlg.cxx.

References meMode, and Select.

◆ ~SvColorDialog()

SvColorDialog::~SvColorDialog ( )

Definition at line 49 of file colrdlg.cxx.

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK()

SvColorDialog::DECL_DLLPRIVATE_LINK ( DialogClosedHdl  ,
css::ui::dialogs::DialogClosedEvent *  ,
void   
)
private

◆ Execute()

short SvColorDialog::Execute ( weld::Window pParent)

◆ ExecuteAsync()

void SvColorDialog::ExecuteAsync ( weld::Window pParent,
const std::function< void(sal_Int32)> &  func 
)

◆ GetColor()

const Color & SvColorDialog::GetColor ( ) const
inline

Definition at line 45 of file colrdlg.hxx.

References maColor.

◆ SetColor()

void SvColorDialog::SetColor ( const Color rColor)

Definition at line 52 of file colrdlg.cxx.

References maColor.

◆ SetMode()

void SvColorDialog::SetMode ( svtools::ColorPickerMode  eMode)

Definition at line 57 of file colrdlg.cxx.

References eMode, and meMode.

Member Data Documentation

◆ m_aResultFunc

std::function<void(sal_Int32)> SvColorDialog::m_aResultFunc
private

Definition at line 56 of file colrdlg.hxx.

Referenced by ExecuteAsync().

◆ maColor

Color SvColorDialog::maColor
private

Definition at line 53 of file colrdlg.hxx.

Referenced by Execute(), ExecuteAsync(), and SetColor().

◆ meMode

svtools::ColorPickerMode SvColorDialog::meMode
private

Definition at line 54 of file colrdlg.hxx.

Referenced by Execute(), ExecuteAsync(), and SetMode().

◆ mxDialog

::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XAsynchronousExecutableDialog > SvColorDialog::mxDialog
private

Definition at line 55 of file colrdlg.hxx.

Referenced by ExecuteAsync().


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