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 ()
tools::Long GetColorCount () const
tools::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 ColorSelectFunction &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
tools::Long mnColorCount
XColorListRef pColorList
std::deque< NamedColormaRecentColors
std::vector< std::unique_ptr< Palette > > m_Palettes
ColorSelectFunction maColorSelectFunction
css::uno::Reference< css::uno::XComponentContext > m_context
std::unique_ptr< SvColorDialogm_pColorDlg

Detailed Description

Definition at line 35 of file PaletteManager.hxx.

Constructor & Destructor Documentation

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

Definition at line 67 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 
tools::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 64 of file PaletteManager.hxx.

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

Definition at line 179 of file PaletteManager.cxx.

References m_Palettes, and SvxResId().

Referenced by GetPaletteName().

OUString PaletteManager::GetPaletteName ( )
tools::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 ColorSelectFunction 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 50 of file PaletteManager.hxx.

Referenced by AddRecentColor(), and SetPalette().

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

Definition at line 52 of file PaletteManager.hxx.

Referenced by PopupColorPicker().

ColorSelectFunction PaletteManager::maColorSelectFunction

Definition at line 49 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetColorSelectFunction().

std::deque<NamedColor> PaletteManager::maRecentColors

Definition at line 46 of file PaletteManager.hxx.

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

tools::Long PaletteManager::mnColorCount

Definition at line 42 of file PaletteManager.hxx.

Referenced by GetColorCount(), and ReloadColorSet().

sal_uInt16 PaletteManager::mnCurrentPalette
const sal_uInt16 PaletteManager::mnMaxRecentColors

Definition at line 37 of file PaletteManager.hxx.

Referenced by AddRecentColor().

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

Definition at line 43 of file PaletteManager.hxx.

Referenced by PopupColorPicker(), and SetBtnUpdater().

XColorListRef PaletteManager::pColorList

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: