|
LibreOffice Module svx (master) 1
|
#include <PaletteManager.hxx>
Public Member Functions | |
| PaletteManager () | |
| ~PaletteManager () | |
| PaletteManager (const PaletteManager &)=delete | |
| PaletteManager & | operator= (const PaletteManager &)=delete |
| void | LoadPalettes () |
| void | ReloadColorSet (SvxColorValueSet &rColorSet) |
| void | ReloadRecentColorSet (SvxColorValueSet &rColorSet) |
| std::vector< OUString > | GetPaletteList () |
| void | SetPalette (sal_Int32 nPos) |
| sal_Int32 | GetPalette () const |
| sal_Int32 | GetPaletteCount () const |
| OUString | GetPaletteName () |
| OUString | GetSelectedPalettePath () |
| tools::Long | GetColorCount () const |
| tools::Long | GetRecentColorCount () const |
| void | AddRecentColor (const Color &rRecentColor, const OUString &rColorName, bool bFront=true) |
| void | SetSplitButtonColor (const NamedColor &rColor) |
| void | SetBtnUpdater (svx::ToolboxButtonColorUpdaterBase *pBtnUpdater) |
| void | PopupColorPicker (weld::Window *pParent, const OUString &aCommand, const Color &rInitialColor) |
| void | SetColorSelectFunction (const ColorSelectFunction &aColorSelectFunction) |
| bool | IsThemePaletteSelected () const |
| PaletteManager * | Clone () const |
| bool | GetLumModOff (sal_uInt16 nThemeIndex, sal_uInt16 nEffect, sal_Int16 &rLumMod, sal_Int16 &rLumOff) |
Static Public Member Functions | |
| static bool | GetThemeAndEffectIndex (sal_uInt16 nItemId, sal_uInt16 &rThemeIndex, sal_uInt16 &rEffectIndex) |
| static void | DispatchColorCommand (const OUString &aCommand, const NamedColor &rColor) |
Private Member Functions | |
| PaletteManager (const PaletteManager *pClone) | |
Private Attributes | |
| const sal_uInt16 | mnMaxRecentColors |
| sal_uInt16 | mnNumOfPalettes |
| sal_uInt16 | mnCurrentPalette |
| tools::Long | mnColorCount |
| svx::ToolboxButtonColorUpdaterBase * | mpBtnUpdater |
| XColorListRef | pColorList |
| std::deque< NamedColor > | maRecentColors |
| std::vector< std::unique_ptr< Palette > > | m_Palettes |
| ColorSelectFunction | maColorSelectFunction |
| std::unique_ptr< SvColorDialog > | m_pColorDlg |
| std::optional< svx::ThemePaletteCollection > | moThemePaletteCollection |
Definition at line 36 of file PaletteManager.hxx.
|
private |
Definition at line 78 of file PaletteManager.cxx.
References a, and m_Palettes.
| PaletteManager::PaletteManager | ( | ) |
Definition at line 55 of file PaletteManager.cxx.
References XColorList::CreateStdColorList(), SfxObjectShell::Current(), SfxShell::GetItem(), LoadPalettes(), m_Palettes, mnNumOfPalettes, and pColorList.
Referenced by Clone().
| PaletteManager::~PaletteManager | ( | ) |
Definition at line 97 of file PaletteManager.cxx.
|
delete |
| void PaletteManager::AddRecentColor | ( | const Color & | rRecentColor, |
| const OUString & | rColorName, | ||
| bool | bFront = true |
||
| ) |
Definition at line 351 of file PaletteManager.cxx.
References comphelper::ConfigurationChanges::create(), i, maRecentColors, and mnMaxRecentColors.
Referenced by PopupColorPicker().
| PaletteManager * PaletteManager::Clone | ( | ) | const |
Definition at line 92 of file PaletteManager.cxx.
References PaletteManager().
|
static |
Definition at line 417 of file PaletteManager.cxx.
References aCommand, model::ComplexColor::addTransformation(), aTargetURL, comphelper::containerToSequence(), model::color::convertToJSON(), model::convertToThemeColorType(), comphelper::getProcessComponentContext(), INetURLObject::GetURLPath(), model::LumMod, model::LumOff, NamedColor::m_aColor, NamedColor::m_nLumMod, NamedColor::m_nLumOff, NamedColor::m_nThemeIndex, comphelper::makePropertyValue(), model::ComplexColor::setSchemeColor(), URL, xDispatch, and xFrame.
| tools::Long PaletteManager::GetColorCount | ( | ) | const |
Definition at line 341 of file PaletteManager.cxx.
References mnColorCount.
| bool PaletteManager::GetLumModOff | ( | sal_uInt16 | nThemeIndex, |
| sal_uInt16 | nEffect, | ||
| sal_Int16 & | rLumMod, | ||
| sal_Int16 & | rLumOff | ||
| ) |
Definition at line 173 of file PaletteManager.cxx.
References moThemePaletteCollection.
| sal_Int32 PaletteManager::GetPalette | ( | ) | const |
Definition at line 312 of file PaletteManager.cxx.
References mnCurrentPalette.
|
inline |
Definition at line 67 of file PaletteManager.hxx.
| std::vector< OUString > PaletteManager::GetPaletteList | ( | ) |
Definition at line 267 of file PaletteManager.cxx.
References m_Palettes, and SvxResId().
Referenced by GetPaletteName().
| OUString PaletteManager::GetPaletteName | ( | ) |
Definition at line 317 of file PaletteManager.cxx.
References SfxObjectShell::Current(), SfxShell::GetItem(), GetPaletteList(), mnCurrentPalette, mnNumOfPalettes, and pColorList.
Referenced by SetPalette().
| tools::Long PaletteManager::GetRecentColorCount | ( | ) | const |
Definition at line 346 of file PaletteManager.cxx.
References maRecentColors.
| OUString PaletteManager::GetSelectedPalettePath | ( | ) |
Definition at line 333 of file PaletteManager.cxx.
References m_Palettes, and mnCurrentPalette.
Referenced by SetPalette().
|
static |
Definition at line 162 of file PaletteManager.cxx.
Referenced by IMPL_LINK().
| bool PaletteManager::IsThemePaletteSelected | ( | ) | const |
Definition at line 157 of file PaletteManager.cxx.
References mnCurrentPalette, and mnNumOfPalettes.
Referenced by ReloadColorSet().
| void PaletteManager::LoadPalettes | ( | ) |
Definition at line 101 of file PaletteManager.cxx.
References INetURLObject::GetBase(), SvtPathOptions::GetPalettePath(), m_Palettes, and nIndex.
Referenced by PaletteManager().
|
delete |
| void PaletteManager::PopupColorPicker | ( | weld::Window * | pParent, |
| const OUString & | aCommand, | ||
| const Color & | rInitialColor | ||
| ) |
Definition at line 397 of file PaletteManager.cxx.
References aCommand, AddRecentColor(), Color::AsRGBHexString(), m_pColorDlg, maColorSelectFunction, svtools::Modify, RET_OK, and SetSplitButtonColor().
| void PaletteManager::ReloadColorSet | ( | SvxColorValueSet & | rColorSet | ) |
Definition at line 186 of file PaletteManager.cxx.
References SvxColorValueSet::addEntriesForColorSet(), ValueSet::Clear(), ColorTransparency, SfxObjectShell::Current(), svx::ThemeColorPaletteManager::generate(), SfxObjectShell::GetDocColors(), ValueSet::GetItemCount(), SfxObjectShell::GetThemeColors(), i, ValueSet::InsertItem(), IsThemePaletteSelected(), m_Palettes, mnColorCount, mnCurrentPalette, mnNumOfPalettes, moThemePaletteCollection, and SvxResId().
| void PaletteManager::ReloadRecentColorSet | ( | SvxColorValueSet & | rColorSet | ) |
Definition at line 249 of file PaletteManager.cxx.
References Color::AsRGBHexString(), ValueSet::Clear(), ColorTransparency, i, ValueSet::InsertItem(), and maRecentColors.
| void PaletteManager::SetBtnUpdater | ( | svx::ToolboxButtonColorUpdaterBase * | pBtnUpdater | ) |
Definition at line 387 of file PaletteManager.cxx.
References mpBtnUpdater.
| void PaletteManager::SetColorSelectFunction | ( | const ColorSelectFunction & | aColorSelectFunction | ) |
Definition at line 392 of file PaletteManager.cxx.
References maColorSelectFunction.
| void PaletteManager::SetPalette | ( | sal_Int32 | nPos | ) |
Definition at line 283 of file PaletteManager.cxx.
References XPropertyList::AsColorList(), Color, comphelper::ConfigurationChanges::create(), XPropertyList::CreatePropertyListFromURL(), SfxObjectShell::Current(), GetPaletteName(), GetSelectedPalettePath(), mnCurrentPalette, mnNumOfPalettes, name, nPos, pColorList, and SfxShell::PutItem().
| void PaletteManager::SetSplitButtonColor | ( | const NamedColor & | rColor | ) |
Definition at line 381 of file PaletteManager.cxx.
References mpBtnUpdater, and svx::ToolboxButtonColorUpdaterBase::SetRecentColor().
Referenced by PopupColorPicker().
|
private |
Definition at line 48 of file PaletteManager.hxx.
Referenced by GetPaletteList(), GetSelectedPalettePath(), LoadPalettes(), PaletteManager(), and ReloadColorSet().
|
private |
Definition at line 52 of file PaletteManager.hxx.
Referenced by PopupColorPicker().
|
private |
Definition at line 50 of file PaletteManager.hxx.
Referenced by PopupColorPicker(), and SetColorSelectFunction().
|
private |
Definition at line 47 of file PaletteManager.hxx.
Referenced by AddRecentColor(), GetRecentColorCount(), and ReloadRecentColorSet().
|
private |
Definition at line 43 of file PaletteManager.hxx.
Referenced by GetColorCount(), and ReloadColorSet().
|
private |
Definition at line 41 of file PaletteManager.hxx.
Referenced by GetPalette(), GetPaletteName(), GetSelectedPalettePath(), IsThemePaletteSelected(), ReloadColorSet(), and SetPalette().
|
private |
Definition at line 38 of file PaletteManager.hxx.
Referenced by AddRecentColor().
|
private |
Definition at line 40 of file PaletteManager.hxx.
Referenced by GetPaletteName(), IsThemePaletteSelected(), PaletteManager(), ReloadColorSet(), and SetPalette().
|
private |
Definition at line 53 of file PaletteManager.hxx.
Referenced by GetLumModOff(), and ReloadColorSet().
|
private |
Definition at line 44 of file PaletteManager.hxx.
Referenced by SetBtnUpdater(), and SetSplitButtonColor().
|
private |
Definition at line 46 of file PaletteManager.hxx.
Referenced by GetPaletteName(), PaletteManager(), and SetPalette().