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:
[legend]

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
 
svx::ToolboxButtonColorUpdaterBasempBtnUpdater
 
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)
private

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 )
delete

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 
)
static

◆ 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
inline

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 
)
static

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 )
delete

◆ 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
private

◆ m_pColorDlg

std::unique_ptr<SvColorDialog> PaletteManager::m_pColorDlg
private

Definition at line 52 of file PaletteManager.hxx.

Referenced by PopupColorPicker().

◆ maColorSelectFunction

ColorSelectFunction PaletteManager::maColorSelectFunction
private

Definition at line 50 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetColorSelectFunction().

◆ maRecentColors

std::deque<NamedColor> PaletteManager::maRecentColors
private

Definition at line 47 of file PaletteManager.hxx.

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

◆ mnColorCount

tools::Long PaletteManager::mnColorCount
private

Definition at line 43 of file PaletteManager.hxx.

Referenced by GetColorCount(), and ReloadColorSet().

◆ mnCurrentPalette

sal_uInt16 PaletteManager::mnCurrentPalette
private

◆ mnMaxRecentColors

const sal_uInt16 PaletteManager::mnMaxRecentColors
private

Definition at line 38 of file PaletteManager.hxx.

Referenced by AddRecentColor().

◆ mnNumOfPalettes

sal_uInt16 PaletteManager::mnNumOfPalettes
private

◆ moThemePaletteCollection

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

Definition at line 53 of file PaletteManager.hxx.

Referenced by GetLumModOff(), and ReloadColorSet().

◆ mpBtnUpdater

svx::ToolboxButtonColorUpdaterBase* PaletteManager::mpBtnUpdater
private

Definition at line 44 of file PaletteManager.hxx.

Referenced by SetBtnUpdater(), and SetSplitButtonColor().

◆ pColorList

XColorListRef PaletteManager::pColorList
private

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: