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

Public Member Functions

 PaletteManager ()
 
 ~PaletteManager ()
 
 PaletteManager (const PaletteManager &)=delete
 
PaletteManageroperator= (const PaletteManager &)=delete
 
void LoadPalettes ()
 
void ReloadColorSet (SvxColorValueSet &rColorSet)
 
void ReloadColorSet (ColorValueSet &rColorSet)
 
void ReloadRecentColorSet (SvxColorValueSet &rColorSet)
 
void ReloadRecentColorSet (ColorValueSet &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::ToolboxButtonColorUpdater *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
 
svx::ToolboxButtonColorUpdatermpBtnUpdater
 
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 35 of file PaletteManager.hxx.

Constructor & Destructor Documentation

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

Definition at line 70 of file PaletteManager.cxx.

PaletteManager::PaletteManager ( const PaletteManager )
delete

Member Function Documentation

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

Definition at line 306 of file PaletteManager.cxx.

References mnColorCount.

sal_Int32 PaletteManager::GetPalette ( ) const

Definition at line 277 of file PaletteManager.cxx.

References mnCurrentPalette.

sal_Int32 PaletteManager::GetPaletteCount ( ) const
inline

Definition at line 64 of file PaletteManager.hxx.

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

Definition at line 234 of file PaletteManager.cxx.

References m_Palettes, and SvxResId().

Referenced by GetPaletteName().

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

Definition at line 311 of file PaletteManager.cxx.

References maRecentColors.

OUString PaletteManager::GetSelectedPalettePath ( )

Definition at line 298 of file PaletteManager.cxx.

References m_Palettes, mnCurrentPalette, and mnNumOfPalettes.

Referenced by SetPalette().

void PaletteManager::LoadPalettes ( )

Definition at line 74 of file PaletteManager.cxx.

References INetURLObject::GetBase(), SvtPathOptions::GetPalettePath(), and m_Palettes.

Referenced by PaletteManager().

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

Definition at line 344 of file PaletteManager.cxx.

References mpBtnUpdater.

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

Definition at line 349 of file PaletteManager.cxx.

References maColorSelectFunction.

void PaletteManager::SetPalette ( sal_Int32  nPos)

Member Data Documentation

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

Definition at line 50 of file PaletteManager.hxx.

Referenced by AddRecentColor(), and SetPalette().

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

Definition at line 49 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetColorSelectFunction().

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

Definition at line 46 of file PaletteManager.hxx.

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

long PaletteManager::mnColorCount
private

Definition at line 42 of file PaletteManager.hxx.

Referenced by GetColorCount(), and ReloadColorSet().

sal_uInt16 PaletteManager::mnCurrentPalette
private
const sal_uInt16 PaletteManager::mnMaxRecentColors
private

Definition at line 37 of file PaletteManager.hxx.

Referenced by AddRecentColor().

sal_uInt16 PaletteManager::mnNumOfPalettes
private
svx::ToolboxButtonColorUpdater* PaletteManager::mpBtnUpdater
private

Definition at line 43 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetBtnUpdater().

XColorListRef PaletteManager::pColorList
private

Definition at line 45 of file PaletteManager.hxx.

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


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