LibreOffice Module cui (master) 1
|
#include <cuitabarea.hxx>
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 SfxItemSet & | GetItemSet () const |
virtual bool | FillItemSet (SfxItemSet *) |
virtual void | Reset (const SfxItemSet *) |
virtual bool | DeferResetToFirstActivation () |
bool | HasExchangeSupport () const |
void | SetExchangeSupport () |
virtual void | ActivatePage (const SfxItemSet &) |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) |
void | SetUserData (const OUString &rString) |
const OUString & | GetUserData () const |
virtual void | FillUserData () |
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 SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *) |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (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_STATIC_LINK (SvxColorTabPage, OnMoreColorsClick, weld::Button &, void) | |
DECL_LINK (SelectPaletteLBHdl, weld::ComboBox &, void) | |
DECL_LINK (SelectValSetHdl_Impl, ValueSet *, void) | |
DECL_LINK (SelectColorModeHdl_Impl, weld::Toggleable &, void) | |
void | ChangeColor (const NamedColor &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 (std::u16string_view aColorName) |
Additional Inherited Members | |
Protected Member Functions inherited from SfxTabPage | |
SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet) | |
sal_uInt16 | GetWhich (sal_uInt16 nSlot, bool bDeep=true) const |
TypedWhichId< T > | GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const |
const SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Definition at line 646 of file cuitabarea.hxx.
SvxColorTabPage::SvxColorTabPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rInAttrs | ||
) |
Definition at line 44 of file tpcolor.cxx.
References aXFillAttr, ChangeColorModel(), COL_BLACK(), CuiResId(), eCM, GetItemSet(), PaletteManager::GetRecentColorCount(), Size::Height(), comphelper::LibreOfficeKit::isActive(), LINK, m_aCtlPreviewNew, m_aCtlPreviewOld, m_xBcustom, m_xBtnAdd, m_xBtnDelete, m_xBtnWorkOn, m_xCcustom, m_xCMYKpreset, m_xGcustom, m_xHexcustom, m_xKcustom, m_xMcustom, m_xMoreColors, m_xRbCMYK, m_xRbRGB, m_xRcustom, m_xRGBpreset, m_xSelectPalette, m_xValSetColorList, m_xValSetRecentList, m_xYcustom, maPaletteManager, PERCENT(), SfxItemSet::Put(), PaletteManager::ReloadRecentColorSet(), RGB, rXFSet, SvxXRectPreview::SetAttributes(), SetColorModel(), SfxTabPage::SetExchangeSupport(), WB_FLATVALUESET, WB_ITEMBORDER, WB_NO_DIRECTSELECT, WB_TABSTOP, and Size::Width().
|
overridevirtual |
Definition at line 160 of file tpcolor.cxx.
References m_xValSetColorList, m_xValSetColorListWin, m_xValSetRecentList, and m_xValSetRecentListWin.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 201 of file tpcolor.cxx.
References aXFillAttr, ChangeColor(), ChangeColorModel(), FindInPalette(), SfxItemSet::GetItemIfSet(), SfxTabPage::GetWhich(), NamedColor::m_aColor, m_aCtlPreviewOld, m_xValSetColorList, nPos, pColorList, RGB, rOutAttrs, SvxXRectPreview::SetAttributes(), SetColorModel(), and XATTR_FILLCOLOR().
|
private |
Definition at line 581 of file tpcolor.cxx.
References aXFillAttr, NamedColor::getComplexColor(), NamedColor::m_aColor, m_aCtlPreviewNew, m_aCurrentColor, m_aPreviousColor, SfxItemSet::Put(), rXFSet, SvxXRectPreview::SetAttributes(), XColorItem::setComplexColor(), and UpdateColorValues().
Referenced by ActivatePage(), and Reset().
|
private |
Definition at line 603 of file tpcolor.cxx.
References CMYK, eCM, m_xCMYKcustom, m_xCMYKpreset, m_xRGBcustom, m_xRGBpreset, and RGB.
Referenced by ActivatePage(), Reset(), and SvxColorTabPage().
|
staticprivate |
Definition at line 715 of file tpcolor.cxx.
References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by ConvertColorValues().
|
private |
Definition at line 739 of file tpcolor.cxx.
References CMYK, eCM, nValue, and RGB.
Referenced by UpdateColorValues().
void SvxColorTabPage::Construct | ( | ) |
Definition at line 192 of file tpcolor.cxx.
References FillPaletteLB(), ImpColorCountChanged(), and pColorList.
|
staticprivate |
Definition at line 542 of file tpcolor.cxx.
References CMYK, CmykToRgb_Impl(), Color::GetAlpha(), RGB, RgbToCmyk_Impl(), and Color::SetAlpha().
Referenced by UpdateColorValues().
|
static |
Definition at line 286 of file tpcolor.cxx.
References rOutAttrs.
Referenced by SvxAreaTabPage::SetOptimalSize().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 229 of file tpcolor.cxx.
References FillItemSet().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 237 of file tpcolor.cxx.
References PaletteManager::AddRecentColor(), Color::AsRGBHexString(), NamedColor::getComplexColor(), NamedColor::m_aColor, m_aCurrentColor, m_xValSetColorList, maPaletteManager, SfxItemSet::Put(), rSet, and XColorItem::setComplexColor().
Referenced by DeactivatePage().
|
private |
Definition at line 176 of file tpcolor.cxx.
References PaletteManager::GetPaletteList(), m_xSelectPalette, and maPaletteManager.
Referenced by Construct().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 777 of file tpcolor.cxx.
References eCM, and SfxTabPage::SetUserData().
|
staticprivate |
Definition at line 671 of file tpcolor.cxx.
|
private |
|
private |
Definition at line 168 of file tpcolor.cxx.
References SvxColorValueSet::getColumnCount(), m_xValSetColorList, m_xValSetRecentList, and pColorList.
Referenced by Construct().
|
private |
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 260 of file tpcolor.cxx.
References aStr, ChangeColor(), ChangeColorModel(), eCM, SfxItemSet::Get(), XColorItem::GetColorValue(), SfxItemSet::GetItemState(), SfxTabPage::GetUserData(), NamedColor::m_aColor, m_aPreviousColor, nState, rSet, SetColorModel(), UpdateModified(), and XATTR_FILLCOLOR().
|
staticprivate |
Definition at line 699 of file tpcolor.cxx.
References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by ConvertColorValues().
|
inline |
Definition at line 747 of file cuitabarea.hxx.
References pnColorListState.
void SvxColorTabPage::SetColorList | ( | const XColorListRef & | pColList | ) |
Definition at line 790 of file tpcolor.cxx.
References SetPropertyList().
Referenced by SvxAreaTabPage::CreatePage().
|
private |
Definition at line 595 of file tpcolor.cxx.
References CMYK, m_xRbCMYK, m_xRbRGB, and RGB.
Referenced by ActivatePage(), Reset(), and SvxColorTabPage().
|
inline |
Definition at line 749 of file cuitabarea.hxx.
References m_aCtlPreviewOld, and SvxXRectPreview::SetAttributes().
void SvxColorTabPage::SetPropertyList | ( | XPropertyListType | t, |
const XPropertyListRef & | xRef | ||
) |
Definition at line 784 of file tpcolor.cxx.
References pColorList, and t.
Referenced by SetColorList().
|
private |
Definition at line 627 of file tpcolor.cxx.
References ColorToPercent_Impl(), ConvertColorValues(), eCM, unicode::formatPercent(), Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), Application::GetSettings(), AllSettings::GetUILanguageTag(), NamedColor::m_aColor, m_aCurrentColor, m_aPreviousColor, m_xBcustom, m_xBpreset, m_xCcustom, m_xCpreset, m_xGcustom, m_xGpreset, m_xHexcustom, m_xHexpreset, m_xKcustom, m_xKpreset, m_xMcustom, m_xMpreset, m_xRcustom, m_xRpreset, m_xYcustom, m_xYpreset, and RGB.
Referenced by ChangeColor().
|
private |
Definition at line 254 of file tpcolor.cxx.
References m_xBtnWorkOn, and pColorList.
Referenced by Reset().
|
private |
Definition at line 655 of file cuitabarea.hxx.
Referenced by ActivatePage(), ChangeColor(), and SvxColorTabPage().
|
private |
Definition at line 658 of file cuitabarea.hxx.
Referenced by ChangeColorModel(), ColorToPercent_Impl(), FillUserData(), PercentToColor_Impl(), Reset(), SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 665 of file cuitabarea.hxx.
Referenced by ChangeColor(), and SvxColorTabPage().
|
private |
Definition at line 664 of file cuitabarea.hxx.
Referenced by ActivatePage(), SetCtlPreviewOld(), and SvxColorTabPage().
|
private |
Definition at line 661 of file cuitabarea.hxx.
Referenced by ChangeColor(), FillItemSet(), and UpdateColorValues().
|
private |
Definition at line 660 of file cuitabarea.hxx.
Referenced by ChangeColor(), Reset(), and UpdateColorValues().
|
private |
Definition at line 678 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 675 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 691 of file cuitabarea.hxx.
Referenced by SvxColorTabPage().
|
private |
Definition at line 692 of file cuitabarea.hxx.
Referenced by SvxColorTabPage().
|
private |
Definition at line 693 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateModified().
|
private |
Definition at line 687 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 681 of file cuitabarea.hxx.
Referenced by ChangeColorModel().
|
private |
Definition at line 682 of file cuitabarea.hxx.
Referenced by ChangeColorModel(), and SvxColorTabPage().
|
private |
Definition at line 683 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 696 of file cuitabarea.hxx.
|
private |
Definition at line 695 of file cuitabarea.hxx.
|
private |
Definition at line 677 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 674 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 680 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 679 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 690 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 686 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 689 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 694 of file cuitabarea.hxx.
Referenced by SvxColorTabPage().
|
private |
Definition at line 685 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 670 of file cuitabarea.hxx.
Referenced by SetColorModel(), and SvxColorTabPage().
|
private |
Definition at line 669 of file cuitabarea.hxx.
Referenced by SetColorModel(), and SvxColorTabPage().
|
private |
Definition at line 676 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 671 of file cuitabarea.hxx.
Referenced by ChangeColorModel().
|
private |
Definition at line 672 of file cuitabarea.hxx.
Referenced by ChangeColorModel(), and SvxColorTabPage().
|
private |
Definition at line 673 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 668 of file cuitabarea.hxx.
Referenced by FillPaletteLB(), and SvxColorTabPage().
|
private |
Definition at line 666 of file cuitabarea.hxx.
Referenced by ActivatePage(), FillItemSet(), ImpColorCountChanged(), SvxColorTabPage(), and ~SvxColorTabPage().
|
private |
Definition at line 697 of file cuitabarea.hxx.
Referenced by ~SvxColorTabPage().
|
private |
Definition at line 667 of file cuitabarea.hxx.
Referenced by ImpColorCountChanged(), SvxColorTabPage(), and ~SvxColorTabPage().
|
private |
Definition at line 698 of file cuitabarea.hxx.
Referenced by ~SvxColorTabPage().
|
private |
Definition at line 688 of file cuitabarea.hxx.
Referenced by SvxColorTabPage(), and UpdateColorValues().
|
private |
Definition at line 684 of file cuitabarea.hxx.
Referenced by UpdateColorValues().
|
private |
Definition at line 663 of file cuitabarea.hxx.
Referenced by FillItemSet(), FillPaletteLB(), and SvxColorTabPage().
|
private |
Definition at line 651 of file cuitabarea.hxx.
Referenced by ActivatePage(), Construct(), FindInPalette(), ImpColorCountChanged(), SetPropertyList(), and UpdateModified().
|
private |
Definition at line 653 of file cuitabarea.hxx.
Referenced by SetColorChgd().
|
private |
Definition at line 649 of file cuitabarea.hxx.
Referenced by ActivatePage(), and Create().
|
private |
Definition at line 656 of file cuitabarea.hxx.
Referenced by ChangeColor(), and SvxColorTabPage().