LibreOffice Module svx (master) 1
|
#include <galctrl.hxx>
Public Member Functions | |
GalleryIconView (GalleryBrowser2 *pParent, std::unique_ptr< weld::ScrolledWindow > xScrolledWindow) | |
void | SetTheme (GalleryTheme *pTheme) |
virtual | ~GalleryIconView () override |
virtual bool | StartDrag () 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 void | drawTransparenceBackground (vcl::RenderContext &rOut, const Point &rPos, const Size &rSize) |
Private Member Functions | |
virtual void | UserDraw (const UserDrawEvent &rUDEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
Private Attributes | |
std::unique_ptr< GalleryDragDrop > | mxDragDropTargetHelper |
GalleryBrowser2 * | mpParent |
GalleryTheme * | mpTheme |
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 88 of file galctrl.hxx.
GalleryIconView::GalleryIconView | ( | GalleryBrowser2 * | pParent, |
std::unique_ptr< weld::ScrolledWindow > | xScrolledWindow | ||
) |
Definition at line 286 of file galctrl.cxx.
References mpParent.
|
overridevirtual |
Definition at line 293 of file galctrl.cxx.
|
overrideprivatevirtual |
Definition at line 383 of file galctrl.cxx.
References CommandEvent::GetCommand(), mpParent, and GalleryBrowser2::ShowContextMenu().
|
static |
Definition at line 276 of file galctrl.cxx.
References COL_WHITE(), and OutputDevice::DrawCheckered().
Referenced by GalleryBrowser2::UpdateRows(), and UserDraw().
|
overrideprivatevirtual |
Reimplemented from ValueSet.
Definition at line 395 of file galctrl.cxx.
References GalleryBrowser2::KeyInput(), ValueSet::KeyInput(), mpParent, and mpTheme.
|
overrideprivatevirtual |
Reimplemented from ValueSet.
Definition at line 373 of file galctrl.cxx.
References MouseEvent::GetClicks(), ValueSet::MouseButtonDown(), mpParent, and GalleryBrowser2::TogglePreview().
|
overrideprivatevirtual |
Reimplemented from ValueSet.
Definition at line 297 of file galctrl.cxx.
References ValueSet::EnableFullItemMode(), weld::Widget::get_drop_target(), ValueSet::GetStyle(), HID_GALLERY_WINDOW, mpParent, mxDragDropTargetHelper, S_THUMB, ValueSet::SetDrawingArea(), ValueSet::SetExtraSpacing(), SetHelpId(), ValueSet::SetItemHeight(), ValueSet::SetItemWidth(), ValueSet::SetStyle(), WB_3DLOOK, WB_BORDER, WB_DOUBLEBORDER, WB_FLATVALUESET, WB_ITEMBORDER, WB_TABSTOP, and WB_VSCROLL.
|
inline |
Definition at line 109 of file galctrl.hxx.
References mpTheme.
|
overridevirtual |
Definition at line 402 of file galctrl.cxx.
References mpParent, ValueSet::Select(), and GalleryBrowser2::StartDrag().
|
overrideprivatevirtual |
Reimplemented from ValueSet.
Definition at line 312 of file galctrl.cxx.
References GalleryTheme::AcquireObject(), OutputDevice::DrawBitmapEx(), drawTransparenceBackground(), tools::Rectangle::GetHeight(), UserDrawEvent::GetItemId(), GalleryBrowser2::GetItemText(), GalleryTheme::GetPreviewBitmapExAndStrings(), UserDrawEvent::GetRect(), UserDrawEvent::GetRenderContext(), tools::Rectangle::GetSize(), BitmapEx::GetSizePixel(), tools::Rectangle::GetWidth(), Size::Height(), BitmapEx::IsAlpha(), BitmapEx::IsEmpty(), tools::Rectangle::Left(), mpTheme, nId, ValueSet::SetItemText(), GalleryTheme::SetPreviewBitmapExAndStrings(), Title, tools::Rectangle::Top(), tools::Rectangle::TopLeft(), and Size::Width().
|
private |
Definition at line 93 of file galctrl.hxx.
Referenced by Command(), KeyInput(), MouseButtonDown(), SetDrawingArea(), and StartDrag().
|
private |
Definition at line 94 of file galctrl.hxx.
Referenced by KeyInput(), SetTheme(), and UserDraw().
|
private |
Definition at line 91 of file galctrl.hxx.
Referenced by SetDrawingArea().