|
LibreOffice Module svtools (master) 1
|
#include <ctrlbox.hxx>
Public Types | |
| typedef Color(* | ColorFunc) (Color) |
| typedef Color(* | ColorDistFunc) (Color, Color) |
Public Member Functions | |
| SvtLineListBox (std::unique_ptr< weld::MenuButton > pControl) | |
| ~SvtLineListBox () | |
| void | SetWidth (tools::Long nWidth) |
| Set the width in Twips. More... | |
| tools::Long | GetWidth () const |
| void | InsertEntry (const BorderWidthImpl &rWidthImpl, SvxBorderLineStyle nStyle, tools::Long nMinWidth=0, ColorFunc pColor1Fn=&sameColor, ColorFunc pColor2Fn=&sameColor, ColorDistFunc pColorDistFn=&sameDistColor) |
| Insert a listbox entry with all widths in Twips. More... | |
| void | SelectEntry (SvxBorderLineStyle nStyle) |
| SvxBorderLineStyle | GetSelectEntryStyle () const |
| void | SetSourceUnit (FieldUnit eNewUnit) |
| void | SetColor (const Color &rColor) |
| const Color & | GetColor () const |
| void | SetSelectHdl (const Link< SvtLineListBox &, void > &rLink) |
| void | set_sensitive (bool bSensitive) |
| virtual void | GrabFocus () override |
Public Member Functions inherited from WeldToolbarPopup | |
| WeldToolbarPopup (css::uno::Reference< css::frame::XFrame > xFrame, weld::Widget *pParent, const OUString &rUIFile, const OUString &rId) | |
| virtual | ~WeldToolbarPopup () |
| weld::Container * | getTopLevel () |
| weld::Container * | getContainer () |
| void | AddStatusListener (const OUString &rCommandURL) |
| virtual void | statusChanged (const css::frame::FeatureStateEvent &Event) |
| virtual void | GrabFocus ()=0 |
Static Public Member Functions | |
| static OUString | GetLineStyleName (SvxBorderLineStyle eStyle) |
Private Member Functions | |
| SVT_DLLPRIVATE void | ImpGetLine (tools::Long nLine1, tools::Long nLine2, tools::Long nDistance, Color nColor1, Color nColor2, Color nColorDist, SvxBorderLineStyle nStyle, BitmapEx &rBmp) |
| DECL_DLLPRIVATE_LINK (ValueSelectHdl, ValueSet *, void) | |
| DECL_DLLPRIVATE_LINK (ToggleHdl, weld::Toggleable &, void) | |
| DECL_DLLPRIVATE_LINK (NoneHdl, weld::Button &, void) | |
| DECL_DLLPRIVATE_LINK (StyleUpdatedHdl, weld::Widget &, void) | |
| void | UpdateEntries () |
| void | UpdatePreview () |
| SvtLineListBox (const SvtLineListBox &)=delete | |
| SvtLineListBox & | operator= (const SvtLineListBox &)=delete |
Private Attributes | |
| std::unique_ptr< weld::MenuButton > | m_xControl |
| std::unique_ptr< weld::Button > | m_xNoneButton |
| std::unique_ptr< ValueSet > | m_xLineSet |
| std::unique_ptr< weld::CustomWeld > | m_xLineSetWin |
| std::vector< std::unique_ptr< ImpLineListData > > | m_vLineList |
| tools::Long | m_nWidth |
| ScopedVclPtr< VirtualDevice > | aVirDev |
| Color | aColor |
| FieldUnit | eSourceUnit |
| Link< SvtLineListBox &, void > | maSelectHdl |
Additional Inherited Members | |
Protected Attributes inherited from WeldToolbarPopup | |
| std::unique_ptr< weld::Builder > | m_xBuilder |
| std::unique_ptr< weld::Container > | m_xTopLevel |
| std::unique_ptr< weld::Container > | m_xContainer |
| css::uno::Reference< css::frame::XFrame > | m_xFrame |
| rtl::Reference< svt::FrameStatusListener > | m_xStatusListener |
Definition at line 202 of file ctrlbox.hxx.
Definition at line 206 of file ctrlbox.hxx.
Definition at line 205 of file ctrlbox.hxx.
| SvtLineListBox::SvtLineListBox | ( | std::unique_ptr< weld::MenuButton > | pControl | ) |
Definition at line 1401 of file ctrlbox.cxx.
References aVirDev, COL_BLACK(), Create(), eSourceUnit, get(), GetLineStyleName(), StyleSettings::GetListBoxPreviewDefaultPixelSize(), Application::GetSettings(), AllSettings::GetStyleSettings(), Size::Height(), LINK, m_xControl, m_xControl, m_xLineSet, m_xNoneButton, WeldToolbarPopup::m_xTopLevel, Reference, WB_FLATVALUESET, WB_NO_DIRECTSELECT, WB_TABSTOP, and Size::Width().
| SvtLineListBox::~SvtLineListBox | ( | ) |
Definition at line 1465 of file ctrlbox.cxx.
|
privatedelete |
|
private |
|
private |
|
private |
|
private |
|
inline |
Definition at line 242 of file ctrlbox.hxx.
|
static |
Definition at line 1469 of file ctrlbox.cxx.
References first, i, SAL_N_ELEMENTS, and SvtResId().
Referenced by SvtLineListBox(), UpdateEntries(), and UpdatePreview().
| SvxBorderLineStyle SvtLineListBox::GetSelectEntryStyle | ( | ) | const |
Definition at line 1329 of file ctrlbox.cxx.
References m_xLineSet, and nId.
Referenced by GrabFocus(), UpdateEntries(), and UpdatePreview().
|
inline |
Definition at line 221 of file ctrlbox.hxx.
|
overridevirtual |
Implements WeldToolbarPopup.
Definition at line 1439 of file ctrlbox.cxx.
References GetSelectEntryStyle(), m_xLineSet, and m_xNoneButton.
|
private |
Definition at line 1345 of file ctrlbox.cxx.
References aVirDev, svtools::DrawLine(), eSourceUnit, Size::Height(), m_xControl, n1, n2, Size::setHeight(), and Size::Width().
Referenced by UpdateEntries().
| void SvtLineListBox::InsertEntry | ( | const BorderWidthImpl & | rWidthImpl, |
| SvxBorderLineStyle | nStyle, | ||
| tools::Long | nMinWidth = 0, |
||
| ColorFunc | pColor1Fn = &sameColor, |
||
| ColorFunc | pColor2Fn = &sameColor, |
||
| ColorDistFunc | pColorDistFn = &sameDistColor |
||
| ) |
Insert a listbox entry with all widths in Twips.
Definition at line 1492 of file ctrlbox.cxx.
References m_vLineList.
|
privatedelete |
| void SvtLineListBox::SelectEntry | ( | SvxBorderLineStyle | nStyle | ) |
Definition at line 1483 of file ctrlbox.cxx.
References m_xLineSet, and UpdatePreview().
|
inline |
Definition at line 246 of file ctrlbox.hxx.
References m_xControl.
|
inline |
Definition at line 235 of file ctrlbox.hxx.
|
inline |
Definition at line 244 of file ctrlbox.hxx.
|
inline |
Definition at line 233 of file ctrlbox.hxx.
|
inline |
Set the width in Twips.
Definition at line 214 of file ctrlbox.hxx.
|
private |
Definition at line 1500 of file ctrlbox.cxx.
References aColor, StyleSettings::GetFieldColor(), GetLineStyleName(), GetSelectEntryStyle(), Application::GetSettings(), AllSettings::GetStyleSettings(), ImpGetLine(), m_nWidth, m_vLineList, m_xLineSet, n, nCount, and pData.
|
private |
Definition at line 1542 of file ctrlbox.cxx.
References aVirDev, first, VclPtr< class reference_type >::get(), StyleSettings::GetFieldColor(), GetLineStyleName(), GetSelectEntryStyle(), Application::GetSettings(), Image::GetSizePixel(), AllSettings::GetStyleSettings(), Size::Height(), i, m_xControl, m_xLineSet, vcl::MAPMODE, nPos, SAL_N_ELEMENTS, and SvtResId().
Referenced by SelectEntry().
|
private |
Definition at line 276 of file ctrlbox.hxx.
Referenced by UpdateEntries().
|
private |
Definition at line 275 of file ctrlbox.hxx.
Referenced by ImpGetLine(), SvtLineListBox(), and UpdatePreview().
|
private |
Definition at line 277 of file ctrlbox.hxx.
Referenced by ImpGetLine(), and SvtLineListBox().
|
private |
Definition at line 274 of file ctrlbox.hxx.
Referenced by UpdateEntries().
|
private |
Definition at line 273 of file ctrlbox.hxx.
Referenced by InsertEntry(), and UpdateEntries().
|
private |
Definition at line 268 of file ctrlbox.hxx.
Referenced by ImpGetLine(), SvtLineListBox(), and UpdatePreview().
|
private |
Definition at line 270 of file ctrlbox.hxx.
Referenced by GetSelectEntryStyle(), GrabFocus(), SelectEntry(), SvtLineListBox(), UpdateEntries(), and UpdatePreview().
|
private |
Definition at line 271 of file ctrlbox.hxx.
|
private |
Definition at line 269 of file ctrlbox.hxx.
Referenced by GrabFocus(), and SvtLineListBox().
|
private |
Definition at line 278 of file ctrlbox.hxx.