LibreOffice Module cui (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvxColorTabPage Class Reference

#include <cuitabarea.hxx>

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

Public Member Functions

 SvxColorTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
 
virtual ~SvxColorTabPage () override
 
void Construct ()
 
virtual bool FillItemSet (SfxItemSet *) override
 
virtual void Reset (const SfxItemSet *) override
 
virtual void ActivatePage (const SfxItemSet &rSet) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
void SetPropertyList (XPropertyListType t, const XPropertyListRef &xRef)
 
void SetColorList (const XColorListRef &pColList)
 
void SetColorChgd (ChangeType *pIn)
 
void SetCtlPreviewOld (const SfxItemSet &rAttrs)
 
virtual void FillUserData () override
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Private Member Functions

sal_uInt16 ColorToPercent_Impl (sal_uInt16 nColor)
 
sal_uInt16 PercentToColor_Impl (sal_uInt16 nPercent)
 
void ImpColorCountChanged ()
 
void FillPaletteLB ()
 
 DECL_LINK (ClickAddHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ClickWorkOnHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ClickDeleteHdl_Impl, weld::Button &, void)
 
 DECL_LINK (SelectPaletteLBHdl, weld::ComboBox &, void)
 
 DECL_LINK (SelectValSetHdl_Impl, SvtValueSet *, void)
 
 DECL_LINK (SelectColorModeHdl_Impl, weld::ToggleButton &, void)
 
void ChangeColor (const Color &rNewColor, bool bUpdatePreset=true)
 
void SetColorModel (ColorModel eModel)
 
void ChangeColorModel ()
 
void UpdateColorValues (bool bUpdatePreset=true)
 
 DECL_LINK (SpinValueHdl_Impl, weld::SpinButton &, void)
 
 DECL_LINK (MetricSpinValueHdl_Impl, weld::MetricSpinButton &, void)
 
 DECL_LINK (ModifiedHdl_Impl, weld::Entry &, void)
 
void UpdateModified ()
 
sal_Int32 FindInPalette (const Color &rColor)
 

Static Private Member Functions

static void ConvertColorValues (Color &rColor, ColorModel eModell)
 
static void RgbToCmyk_Impl (Color &rColor, sal_uInt16 &rK)
 
static void CmykToRgb_Impl (Color &rColor, const sal_uInt16 nKey)
 
static sal_Int32 FindInCustomColors (OUString const &aColorName)
 

Private Attributes

const SfxItemSetrOutAttrs
 
XColorListRef pColorList
 
ChangeTypepnColorListState
 
XFillAttrSetItem aXFillAttr
 
SfxItemSetrXFSet
 
ColorModel eCM
 
Color aPreviousColor
 
Color aCurrentColor
 
css::uno::Reference< css::uno::XComponentContext > m_context
 
PaletteManager maPaletteManager
 
SvxXRectPreview m_aCtlPreviewOld
 
SvxXRectPreview m_aCtlPreviewNew
 
std::unique_ptr< ColorValueSetm_xValSetColorList
 
std::unique_ptr< ColorValueSetm_xValSetRecentList
 
std::unique_ptr< weld::ComboBoxm_xSelectPalette
 
std::unique_ptr< weld::RadioButtonm_xRbRGB
 
std::unique_ptr< weld::RadioButtonm_xRbCMYK
 
std::unique_ptr< weld::Widgetm_xRGBcustom
 
std::unique_ptr< weld::Widgetm_xRGBpreset
 
std::unique_ptr< weld::Entrym_xRpreset
 
std::unique_ptr< weld::Entrym_xGpreset
 
std::unique_ptr< weld::Entrym_xBpreset
 
std::unique_ptr< weld::SpinButtonm_xRcustom
 
std::unique_ptr< weld::SpinButtonm_xGcustom
 
std::unique_ptr< weld::SpinButtonm_xBcustom
 
std::unique_ptr< weld::HexColorControlm_xHexpreset
 
std::unique_ptr< weld::HexColorControlm_xHexcustom
 
std::unique_ptr< weld::Widgetm_xCMYKcustom
 
std::unique_ptr< weld::Widgetm_xCMYKpreset
 
std::unique_ptr< weld::Entrym_xCpreset
 
std::unique_ptr< weld::Entrym_xYpreset
 
std::unique_ptr< weld::Entrym_xMpreset
 
std::unique_ptr< weld::Entrym_xKpreset
 
std::unique_ptr< weld::MetricSpinButtonm_xCcustom
 
std::unique_ptr< weld::MetricSpinButtonm_xYcustom
 
std::unique_ptr< weld::MetricSpinButtonm_xMcustom
 
std::unique_ptr< weld::MetricSpinButtonm_xKcustom
 
std::unique_ptr< weld::Buttonm_xBtnAdd
 
std::unique_ptr< weld::Buttonm_xBtnDelete
 
std::unique_ptr< weld::Buttonm_xBtnWorkOn
 
std::unique_ptr< weld::CustomWeldm_xCtlPreviewOld
 
std::unique_ptr< weld::CustomWeldm_xCtlPreviewNew
 
std::unique_ptr< weld::CustomWeldm_xValSetColorListWin
 
std::unique_ptr< weld::CustomWeldm_xValSetRecentListWin
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Detailed Description

Definition at line 630 of file cuitabarea.hxx.

Constructor & Destructor Documentation

SvxColorTabPage::SvxColorTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rInAttrs 
)
SvxColorTabPage::~SvxColorTabPage ( )
overridevirtual

Member Function Documentation

void SvxColorTabPage::ActivatePage ( const SfxItemSet rSet)
overridevirtual
void SvxColorTabPage::ChangeColor ( const Color rNewColor,
bool  bUpdatePreset = true 
)
private
void SvxColorTabPage::ChangeColorModel ( )
private

Definition at line 540 of file tpcolor.cxx.

References CMYK, eCM, m_xCMYKcustom, m_xCMYKpreset, m_xRGBcustom, m_xRGBpreset, and RGB.

Referenced by ActivatePage(), Reset(), and SvxColorTabPage().

void SvxColorTabPage::CmykToRgb_Impl ( Color rColor,
const sal_uInt16  nKey 
)
staticprivate
sal_uInt16 SvxColorTabPage::ColorToPercent_Impl ( sal_uInt16  nColor)
private

Definition at line 678 of file tpcolor.cxx.

References CMYK, eCM, and RGB.

Referenced by UpdateColorValues().

void SvxColorTabPage::Construct ( )

Definition at line 177 of file tpcolor.cxx.

References FillPaletteLB(), ImpColorCountChanged(), and pColorList.

void SvxColorTabPage::ConvertColorValues ( Color rColor,
ColorModel  eModell 
)
staticprivate
std::unique_ptr< SfxTabPage > SvxColorTabPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rOutAttrs 
)
static

Definition at line 265 of file tpcolor.cxx.

References rOutAttrs.

Referenced by SvxAreaTabPage::SetOptimalSize().

DeactivateRC SvxColorTabPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 213 of file tpcolor.cxx.

References FillItemSet().

SvxColorTabPage::DECL_LINK ( ClickAddHdl_Impl  ,
weld::Button ,
void   
)
private
SvxColorTabPage::DECL_LINK ( ClickWorkOnHdl_Impl  ,
weld::Button ,
void   
)
private
SvxColorTabPage::DECL_LINK ( ClickDeleteHdl_Impl  ,
weld::Button ,
void   
)
private
SvxColorTabPage::DECL_LINK ( SelectPaletteLBHdl  ,
weld::ComboBox ,
void   
)
private
SvxColorTabPage::DECL_LINK ( SelectValSetHdl_Impl  ,
SvtValueSet ,
void   
)
private
SvxColorTabPage::DECL_LINK ( SelectColorModeHdl_Impl  ,
weld::ToggleButton ,
void   
)
private
SvxColorTabPage::DECL_LINK ( SpinValueHdl_Impl  ,
weld::SpinButton ,
void   
)
private
SvxColorTabPage::DECL_LINK ( MetricSpinValueHdl_Impl  ,
weld::MetricSpinButton ,
void   
)
private
SvxColorTabPage::DECL_LINK ( ModifiedHdl_Impl  ,
weld::Entry ,
void   
)
private
bool SvxColorTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
void SvxColorTabPage::FillPaletteLB ( )
private

Definition at line 161 of file tpcolor.cxx.

References PaletteManager::GetPaletteList(), m_xSelectPalette, and maPaletteManager.

Referenced by Construct().

void SvxColorTabPage::FillUserData ( )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 716 of file tpcolor.cxx.

References eCM, and SfxTabPage::SetUserData().

sal_Int32 SvxColorTabPage::FindInCustomColors ( OUString const &  aColorName)
staticprivate

Definition at line 608 of file tpcolor.cxx.

References i, LISTBOX_ENTRY_NOTFOUND, and nPos.

sal_Int32 SvxColorTabPage::FindInPalette ( const Color rColor)
private

Definition at line 626 of file tpcolor.cxx.

References LISTBOX_ENTRY_NOTFOUND, nPos, and pColorList.

Referenced by ActivatePage().

void SvxColorTabPage::ImpColorCountChanged ( )
private
sal_uInt16 SvxColorTabPage::PercentToColor_Impl ( sal_uInt16  nPercent)
private

Definition at line 697 of file tpcolor.cxx.

References CMYK, eCM, and RGB.

void SvxColorTabPage::Reset ( const SfxItemSet rSet)
overridevirtual
void SvxColorTabPage::RgbToCmyk_Impl ( Color rColor,
sal_uInt16 &  rK 
)
staticprivate
void SvxColorTabPage::SetColorChgd ( ChangeType pIn)
inline

Definition at line 731 of file cuitabarea.hxx.

void SvxColorTabPage::SetColorList ( const XColorListRef pColList)

Definition at line 729 of file tpcolor.cxx.

References SetPropertyList().

Referenced by SvxAreaTabPage::CreatePage().

void SvxColorTabPage::SetColorModel ( ColorModel  eModel)
private

Definition at line 532 of file tpcolor.cxx.

References CMYK, m_xRbCMYK, m_xRbRGB, and RGB.

Referenced by ActivatePage(), Reset(), and SvxColorTabPage().

void SvxColorTabPage::SetCtlPreviewOld ( const SfxItemSet rAttrs)
inline

Definition at line 733 of file cuitabarea.hxx.

References SvxXRectPreview::SetAttributes().

void SvxColorTabPage::SetPropertyList ( XPropertyListType  t,
const XPropertyListRef xRef 
)

Definition at line 723 of file tpcolor.cxx.

References pColorList.

Referenced by SetColorList().

void SvxColorTabPage::UpdateColorValues ( bool  bUpdatePreset = true)
private
void SvxColorTabPage::UpdateModified ( )
private

Definition at line 235 of file tpcolor.cxx.

References m_xBtnWorkOn, and pColorList.

Referenced by Reset().

Member Data Documentation

Color SvxColorTabPage::aCurrentColor
private

Definition at line 645 of file cuitabarea.hxx.

Referenced by ChangeColor(), FillItemSet(), and UpdateColorValues().

Color SvxColorTabPage::aPreviousColor
private

Definition at line 644 of file cuitabarea.hxx.

Referenced by ChangeColor(), Reset(), and UpdateColorValues().

XFillAttrSetItem SvxColorTabPage::aXFillAttr
private

Definition at line 639 of file cuitabarea.hxx.

Referenced by ActivatePage(), ChangeColor(), and SvxColorTabPage().

ColorModel SvxColorTabPage::eCM
private
SvxXRectPreview SvxColorTabPage::m_aCtlPreviewNew
private

Definition at line 651 of file cuitabarea.hxx.

Referenced by ChangeColor(), and SvxColorTabPage().

SvxXRectPreview SvxColorTabPage::m_aCtlPreviewOld
private

Definition at line 650 of file cuitabarea.hxx.

Referenced by ActivatePage(), and SvxColorTabPage().

css::uno::Reference< css::uno::XComponentContext > SvxColorTabPage::m_context
private

Definition at line 647 of file cuitabarea.hxx.

std::unique_ptr<weld::SpinButton> SvxColorTabPage::m_xBcustom
private

Definition at line 664 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::Entry> SvxColorTabPage::m_xBpreset
private

Definition at line 661 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

std::unique_ptr<weld::Button> SvxColorTabPage::m_xBtnAdd
private

Definition at line 677 of file cuitabarea.hxx.

Referenced by SvxColorTabPage().

std::unique_ptr<weld::Button> SvxColorTabPage::m_xBtnDelete
private

Definition at line 678 of file cuitabarea.hxx.

Referenced by SvxColorTabPage().

std::unique_ptr<weld::Button> SvxColorTabPage::m_xBtnWorkOn
private

Definition at line 679 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateModified().

std::unique_ptr<weld::MetricSpinButton> SvxColorTabPage::m_xCcustom
private

Definition at line 673 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::Widget> SvxColorTabPage::m_xCMYKcustom
private

Definition at line 667 of file cuitabarea.hxx.

Referenced by ChangeColorModel().

std::unique_ptr<weld::Widget> SvxColorTabPage::m_xCMYKpreset
private

Definition at line 668 of file cuitabarea.hxx.

Referenced by ChangeColorModel(), and SvxColorTabPage().

std::unique_ptr<weld::Entry> SvxColorTabPage::m_xCpreset
private

Definition at line 669 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

std::unique_ptr<weld::CustomWeld> SvxColorTabPage::m_xCtlPreviewNew
private

Definition at line 681 of file cuitabarea.hxx.

std::unique_ptr<weld::CustomWeld> SvxColorTabPage::m_xCtlPreviewOld
private

Definition at line 680 of file cuitabarea.hxx.

std::unique_ptr<weld::SpinButton> SvxColorTabPage::m_xGcustom
private

Definition at line 663 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::Entry> SvxColorTabPage::m_xGpreset
private

Definition at line 660 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

std::unique_ptr<weld::HexColorControl> SvxColorTabPage::m_xHexcustom
private

Definition at line 666 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::HexColorControl> SvxColorTabPage::m_xHexpreset
private

Definition at line 665 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

std::unique_ptr<weld::MetricSpinButton> SvxColorTabPage::m_xKcustom
private

Definition at line 676 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::Entry> SvxColorTabPage::m_xKpreset
private

Definition at line 672 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

std::unique_ptr<weld::MetricSpinButton> SvxColorTabPage::m_xMcustom
private

Definition at line 675 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::Entry> SvxColorTabPage::m_xMpreset
private

Definition at line 671 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

std::unique_ptr<weld::RadioButton> SvxColorTabPage::m_xRbCMYK
private

Definition at line 656 of file cuitabarea.hxx.

Referenced by SetColorModel(), and SvxColorTabPage().

std::unique_ptr<weld::RadioButton> SvxColorTabPage::m_xRbRGB
private

Definition at line 655 of file cuitabarea.hxx.

Referenced by SetColorModel(), and SvxColorTabPage().

std::unique_ptr<weld::SpinButton> SvxColorTabPage::m_xRcustom
private

Definition at line 662 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::Widget> SvxColorTabPage::m_xRGBcustom
private

Definition at line 657 of file cuitabarea.hxx.

Referenced by ChangeColorModel().

std::unique_ptr<weld::Widget> SvxColorTabPage::m_xRGBpreset
private

Definition at line 658 of file cuitabarea.hxx.

Referenced by ChangeColorModel(), and SvxColorTabPage().

std::unique_ptr<weld::Entry> SvxColorTabPage::m_xRpreset
private

Definition at line 659 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

std::unique_ptr<weld::ComboBox> SvxColorTabPage::m_xSelectPalette
private

Definition at line 654 of file cuitabarea.hxx.

Referenced by FillPaletteLB(), and SvxColorTabPage().

std::unique_ptr<ColorValueSet> SvxColorTabPage::m_xValSetColorList
private
std::unique_ptr<weld::CustomWeld> SvxColorTabPage::m_xValSetColorListWin
private

Definition at line 682 of file cuitabarea.hxx.

Referenced by ~SvxColorTabPage().

std::unique_ptr<ColorValueSet> SvxColorTabPage::m_xValSetRecentList
private

Definition at line 653 of file cuitabarea.hxx.

Referenced by ImpColorCountChanged(), SvxColorTabPage(), and ~SvxColorTabPage().

std::unique_ptr<weld::CustomWeld> SvxColorTabPage::m_xValSetRecentListWin
private

Definition at line 683 of file cuitabarea.hxx.

Referenced by ~SvxColorTabPage().

std::unique_ptr<weld::MetricSpinButton> SvxColorTabPage::m_xYcustom
private

Definition at line 674 of file cuitabarea.hxx.

Referenced by SvxColorTabPage(), and UpdateColorValues().

std::unique_ptr<weld::Entry> SvxColorTabPage::m_xYpreset
private

Definition at line 670 of file cuitabarea.hxx.

Referenced by UpdateColorValues().

PaletteManager SvxColorTabPage::maPaletteManager
private

Definition at line 649 of file cuitabarea.hxx.

Referenced by FillItemSet(), FillPaletteLB(), and SvxColorTabPage().

XColorListRef SvxColorTabPage::pColorList
private
ChangeType* SvxColorTabPage::pnColorListState
private

Definition at line 637 of file cuitabarea.hxx.

const SfxItemSet& SvxColorTabPage::rOutAttrs
private

Definition at line 633 of file cuitabarea.hxx.

Referenced by ActivatePage(), and Create().

SfxItemSet& SvxColorTabPage::rXFSet
private

Definition at line 640 of file cuitabarea.hxx.

Referenced by ChangeColor(), and SvxColorTabPage().


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