LibreOffice Module svx (master)  1
Public Member Functions | Static Public 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 ()
long GetColorCount () const
long GetRecentColorCount () const
void AddRecentColor (const Color &rRecentColor, const OUString &rColorName, bool bFront=true)
void SetBtnUpdater (svx::ToolboxButtonColorUpdaterBase *pBtnUpdater)
void PopupColorPicker (weld::Window *pParent, const OUString &aCommand, const Color &rInitialColor)
void SetColorSelectFunction (const std::function< void(const OUString &, const NamedColor &)> &aColorSelectFunction)

Static Public Member Functions

static void DispatchColorCommand (const OUString &aCommand, const NamedColor &rColor)

Private Attributes

const sal_uInt16 mnMaxRecentColors
sal_uInt16 mnNumOfPalettes
sal_uInt16 mnCurrentPalette
long mnColorCount
XColorListRef pColorList
std::deque< NamedColormaRecentColors
std::vector< std::unique_ptr< Palette > > m_Palettes
std::function< void(const OUString &, const NamedColor &)> maColorSelectFunction
css::uno::Reference< css::uno::XComponentContext > m_context

Detailed Description

Definition at line 34 of file PaletteManager.hxx.

Constructor & Destructor Documentation

PaletteManager::PaletteManager ( )
PaletteManager::~PaletteManager ( )

Definition at line 68 of file PaletteManager.cxx.

PaletteManager::PaletteManager ( const PaletteManager )

Member Function Documentation

void PaletteManager::AddRecentColor ( const Color rRecentColor,
const OUString &  rColorName,
bool  bFront = true 
void PaletteManager::DispatchColorCommand ( const OUString &  aCommand,
const NamedColor rColor 
long PaletteManager::GetColorCount ( ) const

Definition at line 252 of file PaletteManager.cxx.

References mnColorCount.

sal_Int32 PaletteManager::GetPalette ( ) const

Definition at line 223 of file PaletteManager.cxx.

References mnCurrentPalette.

sal_Int32 PaletteManager::GetPaletteCount ( ) const

Definition at line 61 of file PaletteManager.hxx.

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

Definition at line 180 of file PaletteManager.cxx.

References m_Palettes, and SvxResId().

Referenced by GetPaletteName().

OUString PaletteManager::GetPaletteName ( )
long PaletteManager::GetRecentColorCount ( ) const

Definition at line 257 of file PaletteManager.cxx.

References maRecentColors.

OUString PaletteManager::GetSelectedPalettePath ( )

Definition at line 244 of file PaletteManager.cxx.

References m_Palettes, mnCurrentPalette, and mnNumOfPalettes.

Referenced by SetPalette().

void PaletteManager::LoadPalettes ( )
PaletteManager& PaletteManager::operator= ( const PaletteManager )
void PaletteManager::PopupColorPicker ( weld::Window pParent,
const OUString &  aCommand,
const Color rInitialColor 
void PaletteManager::ReloadColorSet ( SvxColorValueSet rColorSet)
void PaletteManager::ReloadRecentColorSet ( SvxColorValueSet rColorSet)
void PaletteManager::SetBtnUpdater ( svx::ToolboxButtonColorUpdaterBase pBtnUpdater)

Definition at line 290 of file PaletteManager.cxx.

References mpBtnUpdater.

void PaletteManager::SetColorSelectFunction ( const std::function< void(const OUString &, const NamedColor &)> &  aColorSelectFunction)

Definition at line 295 of file PaletteManager.cxx.

References maColorSelectFunction.

void PaletteManager::SetPalette ( sal_Int32  nPos)

Member Data Documentation

css::uno::Reference< css::uno::XComponentContext > PaletteManager::m_context

Definition at line 49 of file PaletteManager.hxx.

Referenced by AddRecentColor(), and SetPalette().

std::vector<std::unique_ptr<Palette> > PaletteManager::m_Palettes
std::function<void(const OUString&, const NamedColor&)> PaletteManager::maColorSelectFunction

Definition at line 48 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetColorSelectFunction().

std::deque<NamedColor> PaletteManager::maRecentColors

Definition at line 45 of file PaletteManager.hxx.

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

long PaletteManager::mnColorCount

Definition at line 41 of file PaletteManager.hxx.

Referenced by GetColorCount(), and ReloadColorSet().

sal_uInt16 PaletteManager::mnCurrentPalette
const sal_uInt16 PaletteManager::mnMaxRecentColors

Definition at line 36 of file PaletteManager.hxx.

Referenced by AddRecentColor().

sal_uInt16 PaletteManager::mnNumOfPalettes
svx::ToolboxButtonColorUpdaterBase* PaletteManager::mpBtnUpdater

Definition at line 42 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetBtnUpdater().

XColorListRef PaletteManager::pColorList

Definition at line 44 of file PaletteManager.hxx.

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

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