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

#include <SvxPresetListBox.hxx>

Inheritance diagram for SvxPresetListBox:
[legend]
Collaboration diagram for SvxPresetListBox:
[legend]

Public Member Functions

 SvxPresetListBox (std::unique_ptr< weld::ScrolledWindow > pWindow)
 
virtual void Resize () override
 
virtual bool Command (const CommandEvent &rEvent) override
 
Size const & GetIconSize () const
 
void SetRenameHdl (const Link< SvxPresetListBox *, void > &rLink)
 
void SetDeleteHdl (const Link< SvxPresetListBox *, void > &rLink)
 
void FillPresetListBox (XGradientList &pList, sal_uInt32 nStartIndex=1)
 
void FillPresetListBox (XHatchList &pList, sal_uInt32 nStartIndex=1)
 
void FillPresetListBox (XBitmapList &pList, sal_uInt32 nStartIndex=1)
 
void FillPresetListBox (XPatternList &pList, sal_uInt32 nStartIndex=1)
 
void DrawLayout ()
 
- Public Member Functions inherited from SvtValueSet
 SvtValueSet (std::unique_ptr< weld::ScrolledWindow > pScrolledWindow)
 
virtual ~SvtValueSet () override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void StyleUpdated () override
 
virtual OUString RequestHelp (tools::Rectangle &rHelpRect) override
 
void Select ()
 
virtual void UserDraw (const UserDrawEvent &rUDEvt)
 
OUString const & GetText () const
 
void SetText (const OUString &rText)
 
void SetStyle (WinBits nStyle)
 
WinBits GetStyle () const
 
void SetOptimalSize ()
 
void InsertItem (sal_uInt16 nItemId, const Image &rImage)
 
void InsertItem (sal_uInt16 nItemId, const Image &rImage, const OUString &rStr, size_t nPos=VALUESET_APPEND)
 
void InsertItem (sal_uInt16 nItemId, const Color &rColor, const OUString &rStr)
 
void InsertItem (sal_uInt16 nItemId, size_t nPos=VALUESET_APPEND)
 
void InsertItem (sal_uInt16 nItemId, const OUString &rStr, size_t nPos)
 
void RemoveItem (sal_uInt16 nItemId)
 
void Clear ()
 
size_t GetItemCount () const
 
size_t GetItemPos (sal_uInt16 nItemId) const
 
sal_uInt16 GetItemId (size_t nPos) const
 
sal_uInt16 GetItemId (const Point &rPos) const
 
tools::Rectangle GetItemRect (sal_uInt16 nItemId) const
 
void SetColCount (sal_uInt16 nNewCols=1)
 
void SetLineCount (sal_uInt16 nNewLines=0)
 
void SetItemWidth (long nItemWidth)
 
void SetItemHeight (long nLineHeight)
 
void SelectItem (sal_uInt16 nItemId)
 
sal_uInt16 GetSelectedItemId () const
 
size_t GetSelectItemPos () const
 
bool IsItemSelected (sal_uInt16 nItemId) const
 
void SetNoSelection ()
 
bool IsNoSelection () const
 
void SetItemImage (sal_uInt16 nItemId, const Image &rImage)
 
Image GetItemImage (sal_uInt16 nItemId) const
 
Color GetItemColor (sal_uInt16 nItemId) const
 
void SetItemData (sal_uInt16 nItemId, void *pData)
 
voidGetItemData (sal_uInt16 nItemId) const
 
void SetItemText (sal_uInt16 nItemId, const OUString &rStr)
 
OUString GetItemText (sal_uInt16 nItemId) const
 
bool IsColor () const
 
void SetExtraSpacing (sal_uInt16 nNewSpacing)
 
void Format (vcl::RenderContext const &rRenderContext)
 
void SetFormat ()
 
Size CalcWindowSizePixel (const Size &rItemSize, sal_uInt16 nCalcCols=0, sal_uInt16 nCalcLines=0) const
 
Size CalcItemSizePixel (const Size &rSize) const
 
int GetScrollWidth () const
 
void SetSelectHdl (const Link< SvtValueSet *, void > &rLink)
 
void SetDoubleClickHdl (const Link< SvtValueSet *, void > &rLink)
 
bool GetEdgeBlending () const
 
void SetEdgeBlending (bool bNew)
 
void SaveValue ()
 
bool IsValueChangedFromSaved () const
 

Static Public Member Functions

static sal_uInt32 getColumnCount ()
 

Private Member Functions

void OnMenuItemSelected (const OString &rIdent)
 
template<typename ListType , typename EntryType >
void FillPresetListBoxImpl (ListType &pList, sal_uInt32 nStartIndex)
 

Private Attributes

Size const aIconSize
 
Link< SvxPresetListBox *, voidmaRenameHdl
 
Link< SvxPresetListBox *, voidmaDeleteHdl
 

Static Private Attributes

static constexpr sal_uInt32 nColCount = 3
 

Additional Inherited Members

- Protected Member Functions inherited from SvtValueSet
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 

Detailed Description

Definition at line 27 of file SvxPresetListBox.hxx.

Constructor & Destructor Documentation

SvxPresetListBox::SvxPresetListBox ( std::unique_ptr< weld::ScrolledWindow pWindow)

Member Function Documentation

bool SvxPresetListBox::Command ( const CommandEvent rEvent)
overridevirtual
void SvxPresetListBox::DrawLayout ( )

Definition at line 61 of file SvxPresetListBox.cxx.

References getColumnCount(), SvtValueSet::SetColCount(), and SvtValueSet::SetLineCount().

Referenced by Resize().

void SvxPresetListBox::FillPresetListBox ( XGradientList pList,
sal_uInt32  nStartIndex = 1 
)

Definition at line 80 of file SvxPresetListBox.cxx.

void SvxPresetListBox::FillPresetListBox ( XHatchList pList,
sal_uInt32  nStartIndex = 1 
)

Definition at line 85 of file SvxPresetListBox.cxx.

void SvxPresetListBox::FillPresetListBox ( XBitmapList pList,
sal_uInt32  nStartIndex = 1 
)

Definition at line 90 of file SvxPresetListBox.cxx.

void SvxPresetListBox::FillPresetListBox ( XPatternList pList,
sal_uInt32  nStartIndex = 1 
)

Definition at line 95 of file SvxPresetListBox.cxx.

template<typename ListType , typename EntryType >
void SvxPresetListBox::FillPresetListBoxImpl ( ListType &  pList,
sal_uInt32  nStartIndex 
)
private

Definition at line 68 of file SvxPresetListBox.cxx.

References GetIconSize(), and SvtValueSet::InsertItem().

static sal_uInt32 SvxPresetListBox::getColumnCount ( )
inlinestatic

Definition at line 45 of file SvxPresetListBox.hxx.

References svx::nColCount.

Referenced by DrawLayout().

Size const& SvxPresetListBox::GetIconSize ( ) const
inline

Definition at line 46 of file SvxPresetListBox.hxx.

Referenced by FillPresetListBoxImpl().

void SvxPresetListBox::OnMenuItemSelected ( const OString &  rIdent)
private

Definition at line 100 of file SvxPresetListBox.cxx.

References Link< class, class >::Call(), maDeleteHdl, and maRenameHdl.

Referenced by Command().

void SvxPresetListBox::Resize ( )
overridevirtual
void SvxPresetListBox::SetDeleteHdl ( const Link< SvxPresetListBox *, void > &  rLink)
inline

Definition at line 52 of file SvxPresetListBox.hxx.

void SvxPresetListBox::SetRenameHdl ( const Link< SvxPresetListBox *, void > &  rLink)
inline

Definition at line 48 of file SvxPresetListBox.hxx.

Member Data Documentation

Size const SvxPresetListBox::aIconSize
private

Definition at line 31 of file SvxPresetListBox.hxx.

Link<SvxPresetListBox*,void> SvxPresetListBox::maDeleteHdl
private

Definition at line 33 of file SvxPresetListBox.hxx.

Referenced by OnMenuItemSelected().

Link<SvxPresetListBox*,void> SvxPresetListBox::maRenameHdl
private

Definition at line 32 of file SvxPresetListBox.hxx.

Referenced by OnMenuItemSelected().

constexpr sal_uInt32 SvxPresetListBox::nColCount = 3
staticprivate

Definition at line 30 of file SvxPresetListBox.hxx.


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