|
LibreOffice Module svx (master) 1
|
#include <SvxColorValueSet.hxx>
Public Member Functions | |
| SvxColorValueSet (std::unique_ptr< weld::ScrolledWindow > pWindow) | |
| virtual void | Resize () override |
| void | addEntriesForXColorList (const XColorList &rXColorList, sal_uInt32 nStartIndex=1) |
| void | addEntriesForColorSet (const std::set< Color > &rColorSet, std::u16string_view rNamePrefix) |
| Size | layoutAllVisible (sal_uInt32 nEntryCount) |
| void | layoutToGivenHeight (sal_uInt32 nHeight, sal_uInt32 nEntryCount) |
| virtual FactoryFunction | GetUITestFactory () const override |
Public Member Functions inherited from ValueSet | |
| ValueSet (std::unique_ptr< weld::ScrolledWindow > pScrolledWindow) | |
| virtual | ~ValueSet () override |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
| virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
| virtual bool | MouseButtonUp (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 | Resize () override |
| virtual void | StyleUpdated () override |
| virtual void | Show () override |
| virtual void | Hide () override |
| virtual OUString | RequestHelp (tools::Rectangle &rHelpRect) override |
| virtual 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, bool bShowLegend=false) |
| 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 | EnableFullItemMode (bool bFullMode) |
| void | SetColCount (sal_uInt16 nNewCols=1) |
| sal_uInt16 | GetColCount () const |
| void | SetLineCount (sal_uInt16 nNewLines=0) |
| sal_uInt16 | GetLineCount () const |
| void | SetItemWidth (tools::Long nItemWidth) |
| void | SetItemHeight (tools::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 | RecalculateItemSizes () |
| void | SetItemImage (sal_uInt16 nItemId, const Image &rImage) |
| Image | GetItemImage (sal_uInt16 nItemId) const |
| void | SetItemColor (sal_uInt16 nItemId, const Color &rColor) |
| Color | GetItemColor (sal_uInt16 nItemId) const |
| void | SetItemData (sal_uInt16 nItemId, void *pData) |
| void * | GetItemData (sal_uInt16 nItemId) const |
| void | SetItemText (sal_uInt16 nItemId, const OUString &rStr) |
| OUString | GetItemText (sal_uInt16 nItemId) const |
| void | SetColor (const Color &rColor) |
| void | SetColor () |
| 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< ValueSet *, void > &rLink) |
| void | SetDoubleClickHdl (const Link< ValueSet *, void > &rLink) |
| bool | GetEdgeBlending () const |
| void | SetEdgeBlending (bool bNew) |
| void | SaveValue () |
| bool | IsValueChangedFromSaved () const |
| virtual FactoryFunction | GetUITestFactory () const override |
Static Public Member Functions | |
| static constexpr sal_uInt32 | getMaxRowCount () |
| static sal_uInt32 | getEntryEdgeLength () |
| static sal_uInt32 | getColumnCount () |
Additional Inherited Members | |
Protected Member Functions inherited from ValueSet | |
| virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
| weld::ScrolledWindow * | GetScrollBar () const |
Definition at line 28 of file SvxColorValueSet.hxx.
| SvxColorValueSet::SvxColorValueSet | ( | std::unique_ptr< weld::ScrolledWindow > | pWindow | ) |
Definition at line 28 of file SvxColorValueSet.cxx.
References ValueSet::SetEdgeBlending().
| void SvxColorValueSet::addEntriesForColorSet | ( | const std::set< Color > & | rColorSet, |
| std::u16string_view | rNamePrefix | ||
| ) |
Definition at line 72 of file SvxColorValueSet.cxx.
References ValueSet::InsertItem().
Referenced by PaletteManager::ReloadColorSet().
| void SvxColorValueSet::addEntriesForXColorList | ( | const XColorList & | rXColorList, |
| sal_uInt32 | nStartIndex = 1 |
||
| ) |
Definition at line 53 of file SvxColorValueSet.cxx.
References XPropertyList::Count(), XColorEntry::GetColor(), XColorList::GetColor(), XPropertyEntry::GetName(), ValueSet::InsertItem(), and nIndex.
Referenced by PaletteSOC::LoadColorSet().
|
static |
Definition at line 46 of file SvxColorValueSet.cxx.
References StyleSettings::GetColorValueSetColumnCount(), Application::GetSettings(), and AllSettings::GetStyleSettings().
Referenced by ColorWindow::ColorWindow(), layoutAllVisible(), and layoutToGivenHeight().
|
static |
Definition at line 39 of file SvxColorValueSet.cxx.
References StyleSettings::GetListBoxPreviewDefaultPixelSize(), Application::GetSettings(), AllSettings::GetStyleSettings(), and Size::Height().
Referenced by SvxColorDockingWindow::FillValueSet(), layoutAllVisible(), layoutToGivenHeight(), and SvxColorDockingWindow::SvxColorDockingWindow().
|
inlinestaticconstexpr |
Definition at line 37 of file SvxColorValueSet.hxx.
Referenced by ColorWindow::ColorWindow(), and layoutAllVisible().
|
overridevirtual |
Reimplemented from ValueSet.
Definition at line 34 of file SvxColorValueSet.cxx.
References SvxColorValueSetUIObject::create().
| Size SvxColorValueSet::layoutAllVisible | ( | sal_uInt32 | nEntryCount | ) |
Definition at line 93 of file SvxColorValueSet.cxx.
References ValueSet::CalcWindowSizePixel(), getColumnCount(), getEntryEdgeLength(), getMaxRowCount(), ValueSet::GetStyle(), Size::Height(), ValueSet::SetColCount(), ValueSet::SetItemHeight(), ValueSet::SetItemWidth(), ValueSet::SetLineCount(), ValueSet::SetStyle(), WB_VSCROLL, and Size::Width().
| void SvxColorValueSet::layoutToGivenHeight | ( | sal_uInt32 | nHeight, |
| sal_uInt32 | nEntryCount | ||
| ) |
Definition at line 127 of file SvxColorValueSet.cxx.
References ValueSet::CalcItemSizePixel(), ValueSet::CalcWindowSizePixel(), getColumnCount(), getEntryEdgeLength(), ValueSet::GetStyle(), Size::Height(), ValueSet::SetColCount(), ValueSet::SetItemHeight(), ValueSet::SetItemWidth(), ValueSet::SetLineCount(), ValueSet::SetStyle(), WB_NAMEFIELD, WB_NONEFIELD, WB_VSCROLL, and Size::Width().
Referenced by Resize().
|
overridevirtual |
Reimplemented from ValueSet.
Definition at line 121 of file SvxColorValueSet.cxx.
References ValueSet::GetItemCount(), Height, layoutToGivenHeight(), and ValueSet::Resize().