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

#include <PaletteManager.hxx>

Collaboration diagram for PaletteManager:

Public Member Functions

 PaletteManager ()
 ~PaletteManager ()
 PaletteManager (const PaletteManager &)=delete
PaletteManageroperator= (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
PaletteManagerClone () 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
XColorListRef pColorList
std::deque< NamedColormaRecentColors
std::vector< std::unique_ptr< Palette > > m_Palettes
ColorSelectFunction maColorSelectFunction
std::unique_ptr< SvColorDialogm_pColorDlg
std::optional< svx::ThemePaletteCollectionmoThemePaletteCollection

Detailed Description

Definition at line 36 of file PaletteManager.hxx.

Constructor & Destructor Documentation

◆ PaletteManager() [1/3]

PaletteManager::PaletteManager ( const PaletteManager pClone)

Definition at line 78 of file PaletteManager.cxx.

References a, and m_Palettes.

◆ PaletteManager() [2/3]

PaletteManager::PaletteManager ( )

◆ ~PaletteManager()

PaletteManager::~PaletteManager ( )

Definition at line 97 of file PaletteManager.cxx.

◆ PaletteManager() [3/3]

PaletteManager::PaletteManager ( const PaletteManager )

Member Function Documentation

◆ AddRecentColor()

void PaletteManager::AddRecentColor ( const Color rRecentColor,
const OUString &  rColorName,
bool  bFront = true 

◆ Clone()

PaletteManager * PaletteManager::Clone ( ) const

Definition at line 92 of file PaletteManager.cxx.

References PaletteManager().

◆ DispatchColorCommand()

void PaletteManager::DispatchColorCommand ( const OUString &  aCommand,
const NamedColor rColor 

◆ GetColorCount()

tools::Long PaletteManager::GetColorCount ( ) const

Definition at line 341 of file PaletteManager.cxx.

References mnColorCount.

◆ GetLumModOff()

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.

◆ GetPalette()

sal_Int32 PaletteManager::GetPalette ( ) const

Definition at line 312 of file PaletteManager.cxx.

References mnCurrentPalette.

◆ GetPaletteCount()

sal_Int32 PaletteManager::GetPaletteCount ( ) const

Definition at line 67 of file PaletteManager.hxx.

◆ GetPaletteList()

std::vector< OUString > PaletteManager::GetPaletteList ( )

Definition at line 267 of file PaletteManager.cxx.

References m_Palettes, and SvxResId().

Referenced by GetPaletteName().

◆ GetPaletteName()

OUString PaletteManager::GetPaletteName ( )

◆ GetRecentColorCount()

tools::Long PaletteManager::GetRecentColorCount ( ) const

Definition at line 346 of file PaletteManager.cxx.

References maRecentColors.

◆ GetSelectedPalettePath()

OUString PaletteManager::GetSelectedPalettePath ( )

Definition at line 333 of file PaletteManager.cxx.

References m_Palettes, and mnCurrentPalette.

Referenced by SetPalette().

◆ GetThemeAndEffectIndex()

bool PaletteManager::GetThemeAndEffectIndex ( sal_uInt16  nItemId,
sal_uInt16 &  rThemeIndex,
sal_uInt16 &  rEffectIndex 

Definition at line 162 of file PaletteManager.cxx.

Referenced by IMPL_LINK().

◆ IsThemePaletteSelected()

bool PaletteManager::IsThemePaletteSelected ( ) const

Definition at line 157 of file PaletteManager.cxx.

References mnCurrentPalette, and mnNumOfPalettes.

Referenced by ReloadColorSet().

◆ LoadPalettes()

void PaletteManager::LoadPalettes ( )

◆ operator=()

PaletteManager & PaletteManager::operator= ( const PaletteManager )

◆ PopupColorPicker()

void PaletteManager::PopupColorPicker ( weld::Window pParent,
const OUString &  aCommand,
const Color rInitialColor 

◆ ReloadColorSet()

void PaletteManager::ReloadColorSet ( SvxColorValueSet rColorSet)

◆ ReloadRecentColorSet()

void PaletteManager::ReloadRecentColorSet ( SvxColorValueSet rColorSet)

◆ SetBtnUpdater()

void PaletteManager::SetBtnUpdater ( svx::ToolboxButtonColorUpdaterBase pBtnUpdater)

Definition at line 387 of file PaletteManager.cxx.

References mpBtnUpdater.

◆ SetColorSelectFunction()

void PaletteManager::SetColorSelectFunction ( const ColorSelectFunction aColorSelectFunction)

Definition at line 392 of file PaletteManager.cxx.

References maColorSelectFunction.

◆ SetPalette()

void PaletteManager::SetPalette ( sal_Int32  nPos)

◆ SetSplitButtonColor()

void PaletteManager::SetSplitButtonColor ( const NamedColor rColor)

Member Data Documentation

◆ m_Palettes

std::vector<std::unique_ptr<Palette> > PaletteManager::m_Palettes

◆ m_pColorDlg

std::unique_ptr<SvColorDialog> PaletteManager::m_pColorDlg

Definition at line 52 of file PaletteManager.hxx.

Referenced by PopupColorPicker().

◆ maColorSelectFunction

ColorSelectFunction PaletteManager::maColorSelectFunction

Definition at line 50 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetColorSelectFunction().

◆ maRecentColors

std::deque<NamedColor> PaletteManager::maRecentColors

Definition at line 47 of file PaletteManager.hxx.

Referenced by AddRecentColor(), GetRecentColorCount(), and ReloadRecentColorSet().

◆ mnColorCount

tools::Long PaletteManager::mnColorCount

Definition at line 43 of file PaletteManager.hxx.

Referenced by GetColorCount(), and ReloadColorSet().

◆ mnCurrentPalette

sal_uInt16 PaletteManager::mnCurrentPalette

◆ mnMaxRecentColors

const sal_uInt16 PaletteManager::mnMaxRecentColors

Definition at line 38 of file PaletteManager.hxx.

Referenced by AddRecentColor().

◆ mnNumOfPalettes

sal_uInt16 PaletteManager::mnNumOfPalettes

◆ moThemePaletteCollection

std::optional<svx::ThemePaletteCollection> PaletteManager::moThemePaletteCollection

Definition at line 53 of file PaletteManager.hxx.

Referenced by GetLumModOff(), and ReloadColorSet().

◆ mpBtnUpdater

svx::ToolboxButtonColorUpdaterBase* PaletteManager::mpBtnUpdater

Definition at line 44 of file PaletteManager.hxx.

Referenced by SetBtnUpdater(), and SetSplitButtonColor().

◆ pColorList

XColorListRef PaletteManager::pColorList

Definition at line 46 of file PaletteManager.hxx.

Referenced by GetPaletteName(), PaletteManager(), and SetPalette().

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