LibreOffice Module vcl (master)
1
|
Public Member Functions | |
ImpVclMEdit (VclMultiLineEdit *pVclMultiLineEdit, WinBits nWinStyle) | |
virtual | ~ImpVclMEdit () override |
void | SetModified (bool bMod) |
void | SetReadOnly (bool bRdOnly) |
bool | IsReadOnly () const |
void | SetMaxTextLen (sal_Int32 nLen) |
sal_Int32 | GetMaxTextLen () const |
void | SetMaxTextWidth (tools::Long nMaxWidth) |
void | InsertText (const OUString &rStr) |
OUString | GetSelected () const |
OUString | GetSelected (LineEnd aSeparator) const |
void | SetSelection (const Selection &rSelection) |
const Selection & | GetSelection () const |
void | Cut () |
void | Copy () |
void | Paste () |
void | SetText (const OUString &rStr) |
OUString | GetText () const |
OUString | GetText (LineEnd aSeparator) const |
OUString | GetTextLines (LineEnd aSeparator) const |
void | Resize () |
void | GetFocus () |
bool | HandleCommand (const CommandEvent &rCEvt) |
void | Enable (bool bEnable) |
Size | CalcMinimumSize () const |
Size | CalcBlockSize (sal_uInt16 nColumns, sal_uInt16 nLines) const |
void | GetMaxVisColumnsAndLines (sal_uInt16 &rnCols, sal_uInt16 &rnLines) const |
void | SetAlign (WinBits nWinStyle) |
void | InitFromStyle (WinBits nWinStyle) |
TextWindow * | GetTextWindow () |
ScrollBar & | GetHScrollBar () |
ScrollBar & | GetVScrollBar () |
![]() | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
Protected Member Functions | |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
void | ImpUpdateScrollBarVis (WinBits nWinStyle) |
void | ImpInitScrollBars () |
void | ImpSetScrollBarRanges () |
void | ImpSetHScrollBarThumbPos () |
DECL_LINK (ScrollHdl, ScrollBar *, void) | |
Private Attributes | |
VclPtr< VclMultiLineEdit > | pVclMultiLineEdit |
VclPtr< TextWindow > | mpTextWindow |
VclPtr< ScrollBar > | mpHScrollBar |
VclPtr< ScrollBar > | mpVScrollBar |
VclPtr< ScrollBarBox > | mpScrollBox |
tools::Long | mnTextWidth |
Selection | maSelection |
Definition at line 43 of file vclmedit.cxx.
ImpVclMEdit::ImpVclMEdit | ( | VclMultiLineEdit * | pVclMultiLineEdit, |
WinBits | nWinStyle | ||
) |
Definition at line 114 of file vclmedit.cxx.
References Create(), TextWindow::GetTextEngine(), InitFromStyle(), LINK, mpHScrollBar, mpTextWindow, mpVScrollBar, ScrollBar::SetScrollHdl(), vcl::Window::Show(), SfxListener::StartListening(), WB_DRAG, WB_HSCROLL, WB_SIZEABLE, and WB_VSCROLL.
|
overridevirtual |
Definition at line 205 of file vclmedit.cxx.
References VclPtr< reference_type >::disposeAndClear(), SfxListener::EndListening(), TextWindow::GetTextEngine(), mpHScrollBar, mpScrollBox, mpTextWindow, mpVScrollBar, and pVclMultiLineEdit.
Size ImpVclMEdit::CalcBlockSize | ( | sal_uInt16 | nColumns, |
sal_uInt16 | nLines | ||
) | const |
Definition at line 575 of file vclmedit.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), TextEngine::CalcTextWidth(), vcl::Window::GetSizePixel(), TextWindow::GetTextEngine(), TextEngine::GetTextHeight(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), Size::Height(), vcl::Window::IsVisible(), mpHScrollBar, mpTextWindow, mpVScrollBar, Size::setHeight(), Size::setWidth(), and Size::Width().
Size ImpVclMEdit::CalcMinimumSize | ( | ) | const |
Definition at line 562 of file vclmedit.cxx.
References Size::AdjustHeight(), TextEngine::CalcTextWidth(), vcl::Window::GetSizePixel(), TextWindow::GetTextEngine(), TextEngine::GetTextHeight(), Size::Height(), vcl::Window::IsVisible(), mpHScrollBar, mpTextWindow, mpVScrollBar, and Size::Width().
void ImpVclMEdit::Copy | ( | ) |
Definition at line 398 of file vclmedit.cxx.
References TextView::Copy(), TextWindow::GetTextView(), and mpTextWindow.
void ImpVclMEdit::Cut | ( | ) |
Definition at line 392 of file vclmedit.cxx.
References TextView::Cut(), TextWindow::GetTextView(), TextView::IsReadOnly(), and mpTextWindow.
void ImpVclMEdit::Enable | ( | bool | bEnable | ) |
Definition at line 611 of file vclmedit.cxx.
References vcl::Window::Enable(), vcl::Window::IsVisible(), mpHScrollBar, mpTextWindow, and mpVScrollBar.
void ImpVclMEdit::GetFocus | ( | ) |
Definition at line 387 of file vclmedit.cxx.
References vcl::Window::GrabFocus(), and mpTextWindow.
|
inline |
Definition at line 110 of file vclmedit.cxx.
References mpHScrollBar.
sal_Int32 ImpVclMEdit::GetMaxTextLen | ( | ) | const |
Definition at line 302 of file vclmedit.cxx.
References TextEngine::GetMaxTextLen(), TextWindow::GetTextEngine(), and mpTextWindow.
void ImpVclMEdit::GetMaxVisColumnsAndLines | ( | sal_uInt16 & | rnCols, |
sal_uInt16 & | rnLines | ||
) | const |
Definition at line 602 of file vclmedit.cxx.
References OutputDevice::GetOutputSizePixel(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), Size::Height(), mpTextWindow, and Size::Width().
OUString ImpVclMEdit::GetSelected | ( | ) | const |
Definition at line 312 of file vclmedit.cxx.
References TextView::GetSelected(), TextWindow::GetTextView(), and mpTextWindow.
OUString ImpVclMEdit::GetSelected | ( | LineEnd | aSeparator | ) | const |
Definition at line 317 of file vclmedit.cxx.
References TextView::GetSelected(), TextWindow::GetTextView(), and mpTextWindow.
const Selection & ImpVclMEdit::GetSelection | ( | ) | const |
Definition at line 532 of file vclmedit.cxx.
References TextView::GetSelection(), TextWindow::GetTextEngine(), TextEngine::GetTextLen(), TextWindow::GetTextView(), TextSelection::Justify(), maSelection, Selection::Max(), Selection::Min(), mpTextWindow, and n.
OUString ImpVclMEdit::GetText | ( | ) | const |
Definition at line 423 of file vclmedit.cxx.
References TextEngine::GetText(), TextWindow::GetTextEngine(), and mpTextWindow.
OUString ImpVclMEdit::GetText | ( | LineEnd | aSeparator | ) | const |
Definition at line 428 of file vclmedit.cxx.
References TextEngine::GetText(), TextWindow::GetTextEngine(), and mpTextWindow.
OUString ImpVclMEdit::GetTextLines | ( | LineEnd | aSeparator | ) | const |
Definition at line 433 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), TextEngine::GetTextLines(), and mpTextWindow.
|
inline |
Definition at line 109 of file vclmedit.cxx.
References mpTextWindow.
|
inline |
Definition at line 111 of file vclmedit.cxx.
References mpVScrollBar.
bool ImpVclMEdit::HandleCommand | ( | const CommandEvent & | rCEvt | ) |
Definition at line 620 of file vclmedit.cxx.
References AutoScroll, Gesture, VclPtr< reference_type >::get(), CommandEvent::GetCommand(), vcl::Window::HandleScrollCommand(), vcl::Window::IsVisible(), mpHScrollBar, mpTextWindow, mpVScrollBar, StartAutoScroll, and Wheel.
|
protected |
Definition at line 223 of file vclmedit.cxx.
References OutputDevice::GetOutputSizePixel(), TextView::GetStartDocPos(), OutputDevice::GetTextHeight(), TextWindow::GetTextView(), OutputDevice::GetTextWidth(), Size::Height(), ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), mpHScrollBar, mpTextWindow, mpVScrollBar, Size::setHeight(), ScrollBar::SetLineSize(), ScrollBar::SetPageSize(), ScrollBar::SetThumbPos(), ScrollBar::SetVisibleSize(), Size::setWidth(), and Size::Width().
Referenced by ImpUpdateScrollBarVis(), and Resize().
|
protected |
Definition at line 245 of file vclmedit.cxx.
References TextView::GetStartDocPos(), TextWindow::GetTextEngine(), TextWindow::GetTextView(), ScrollBar::GetVisibleSize(), TextEngine::IsRightToLeft(), mnTextWidth, mpHScrollBar, mpTextWindow, and ScrollBar::SetThumbPos().
Referenced by ImpInitScrollBars(), and Notify().
|
protected |
Definition at line 215 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), TextEngine::GetTextHeight(), mnTextWidth, mpHScrollBar, mpTextWindow, mpVScrollBar, and ScrollBar::SetRange().
Referenced by ImpInitScrollBars(), and Notify().
Definition at line 129 of file vclmedit.cxx.
References OutputDevice::GetOutputSizePixel(), TextWindow::GetTextEngine(), Size::Height(), i, ImpInitScrollBars(), vcl::Window::IsVisible(), mpHScrollBar, mpScrollBox, mpTextWindow, mpVScrollBar, Resize(), vcl::Window::Show(), WB_AUTOVSCROLL, WB_HSCROLL, and WB_VSCROLL.
Referenced by InitFromStyle(), Notify(), Resize(), and SetText().
Definition at line 176 of file vclmedit.cxx.
References vcl::Window::GetStyle(), TextWindow::GetTextView(), ImpUpdateScrollBarVis(), mpTextWindow, SetAlign(), TextWindow::SetAutoFocusHide(), TextWindow::SetIgnoreTab(), TextView::SetReadOnly(), vcl::Window::SetStyle(), WB_IGNORETAB, WB_NODIALOGCONTROL, WB_NOHIDESELECTION, and WB_READONLY.
Referenced by ImpVclMEdit().
void ImpVclMEdit::InsertText | ( | const OUString & | rStr | ) |
Definition at line 307 of file vclmedit.cxx.
References TextWindow::GetTextView(), TextView::InsertText(), and mpTextWindow.
bool ImpVclMEdit::IsReadOnly | ( | ) | const |
Definition at line 292 of file vclmedit.cxx.
References TextWindow::GetTextView(), TextView::IsReadOnly(), and mpTextWindow.
|
overrideprotectedvirtual |
Reimplemented from SfxListener.
Definition at line 438 of file vclmedit.cxx.
References TextEngine::CalcTextWidth(), VclMultiLineEdit::CaretChanged(), SfxHint::GetId(), OutputDevice::GetOutputSizePixel(), TextView::GetStartDocPos(), vcl::Window::GetStyle(), TextWindow::GetTextEngine(), TextEngine::GetTextHeight(), TextWindow::GetTextView(), Size::Height(), ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), ImpUpdateScrollBarVis(), vcl::Window::IsVisible(), mnTextWidth, VclMultiLineEdit::Modify(), mpHScrollBar, mpTextWindow, mpVScrollBar, pVclMultiLineEdit, TextView::Scroll(), VclMultiLineEdit::SelectionChanged(), ScrollBar::SetRange(), and ScrollBar::SetThumbPos().
void ImpVclMEdit::Paste | ( | ) |
Definition at line 403 of file vclmedit.cxx.
References TextWindow::GetTextView(), TextView::IsReadOnly(), mpTextWindow, and TextView::Paste().
void ImpVclMEdit::Resize | ( | ) |
Definition at line 327 of file vclmedit.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), vcl::Window::CalcZoom(), AllSettings::GetLayoutRTL(), OutputDevice::GetOutputSizePixel(), StyleSettings::GetScrollBarSize(), OutputDevice::GetSettings(), vcl::Window::GetSizePixel(), vcl::Window::GetStyle(), AllSettings::GetStyleSettings(), TextWindow::GetTextEngine(), Size::Height(), ImpInitScrollBars(), ImpUpdateScrollBarVis(), vcl::Window::IsVisible(), mpHScrollBar, mpScrollBox, mpTextWindow, mpVScrollBar, Point, pVclMultiLineEdit, Size::setHeight(), TextEngine::SetMaxTextWidth(), vcl::Window::setPosSizePixel(), vcl::Window::SetPosSizePixel(), Size::setWidth(), WB_AUTOVSCROLL, and Size::Width().
Referenced by ImpUpdateScrollBarVis().
Definition at line 268 of file vclmedit.cxx.
References Center, AllSettings::GetLayoutRTL(), TextWindow::GetTextEngine(), Left, mpTextWindow, Right, TextEngine::SetRightToLeft(), TextEngine::SetTextAlign(), WB_CENTER, WB_LEFT, and WB_RIGHT.
Referenced by InitFromStyle().
void ImpVclMEdit::SetMaxTextLen | ( | sal_Int32 | nLen | ) |
Definition at line 297 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), mpTextWindow, and TextEngine::SetMaxTextLen().
void ImpVclMEdit::SetMaxTextWidth | ( | tools::Long | nMaxWidth | ) |
Definition at line 322 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), mpTextWindow, and TextEngine::SetMaxTextWidth().
void ImpVclMEdit::SetModified | ( | bool | bMod | ) |
Definition at line 281 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), mpTextWindow, and TextEngine::SetModified().
void ImpVclMEdit::SetReadOnly | ( | bool | bRdOnly | ) |
Definition at line 286 of file vclmedit.cxx.
References TextWindow::GetTextView(), mpTextWindow, and TextView::SetReadOnly().
Definition at line 494 of file vclmedit.cxx.
References aNewSelection, TextEngine::GetText(), TextWindow::GetTextEngine(), TextWindow::GetTextView(), Selection::Max(), Selection::Min(), mpTextWindow, TextView::SetSelection(), and x.
void ImpVclMEdit::SetText | ( | const OUString & | rStr | ) |
Definition at line 409 of file vclmedit.cxx.
References vcl::Window::GetStyle(), TextWindow::GetTextEngine(), TextWindow::GetTextView(), ImpUpdateScrollBarVis(), TextEngine::IsModified(), mpTextWindow, pVclMultiLineEdit, TextEngine::SetModified(), TextView::SetSelection(), TextEngine::SetText(), and WB_AUTOVSCROLL.
|
mutableprivate |
Definition at line 54 of file vclmedit.cxx.
Referenced by GetSelection().
|
private |
Definition at line 53 of file vclmedit.cxx.
Referenced by ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), and Notify().
Definition at line 49 of file vclmedit.cxx.
Referenced by CalcBlockSize(), CalcMinimumSize(), Enable(), GetHScrollBar(), HandleCommand(), ImpInitScrollBars(), ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), ImpUpdateScrollBarVis(), ImpVclMEdit(), Notify(), Resize(), and ~ImpVclMEdit().
|
private |
Definition at line 51 of file vclmedit.cxx.
Referenced by ImpUpdateScrollBarVis(), Resize(), and ~ImpVclMEdit().
|
private |
Definition at line 48 of file vclmedit.cxx.
Referenced by CalcBlockSize(), CalcMinimumSize(), Copy(), Cut(), Enable(), GetFocus(), GetMaxTextLen(), GetMaxVisColumnsAndLines(), GetSelected(), GetSelection(), GetText(), GetTextLines(), GetTextWindow(), HandleCommand(), ImpInitScrollBars(), ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), ImpUpdateScrollBarVis(), ImpVclMEdit(), InitFromStyle(), InsertText(), IsReadOnly(), Notify(), Paste(), Resize(), SetAlign(), SetMaxTextLen(), SetMaxTextWidth(), SetModified(), SetReadOnly(), SetSelection(), SetText(), and ~ImpVclMEdit().
Definition at line 50 of file vclmedit.cxx.
Referenced by CalcBlockSize(), CalcMinimumSize(), Enable(), GetVScrollBar(), HandleCommand(), ImpInitScrollBars(), ImpSetScrollBarRanges(), ImpUpdateScrollBarVis(), ImpVclMEdit(), Notify(), Resize(), and ~ImpVclMEdit().
|
private |
Definition at line 46 of file vclmedit.cxx.
Referenced by Notify(), Resize(), SetText(), and ~ImpVclMEdit().