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 () |
Public Member Functions inherited from SfxListener | |
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 |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
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 45 of file vclmedit.cxx.
ImpVclMEdit::ImpVclMEdit | ( | VclMultiLineEdit * | pVclMultiLineEdit, |
WinBits | nWinStyle | ||
) |
Definition at line 116 of file vclmedit.cxx.
References Create(), TextWindow::GetTextEngine(), InitFromStyle(), LINK, mpHScrollBar, mpTextWindow, mpVScrollBar, ScrollBar::SetScrollHdl(), vcl::Window::Show(), and SfxListener::StartListening().
|
overridevirtual |
Definition at line 207 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 577 of file vclmedit.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), TextEngine::CalcTextWidth(), vcl::Window::GetSizePixel(), TextWindow::GetTextEngine(), TextEngine::GetTextHeight(), vcl::Window::GetTextHeight(), vcl::Window::GetTextWidth(), Size::Height(), vcl::Window::IsVisible(), mpHScrollBar, mpTextWindow, mpVScrollBar, Size::setHeight(), Size::setWidth(), and Size::Width().
Size ImpVclMEdit::CalcMinimumSize | ( | ) | const |
Definition at line 564 of file vclmedit.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), 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 400 of file vclmedit.cxx.
References TextView::Copy(), TextWindow::GetTextView(), and mpTextWindow.
void ImpVclMEdit::Cut | ( | ) |
Definition at line 394 of file vclmedit.cxx.
References TextView::Cut(), TextWindow::GetTextView(), TextView::IsReadOnly(), and mpTextWindow.
|
protected |
void ImpVclMEdit::Enable | ( | bool | bEnable | ) |
Definition at line 613 of file vclmedit.cxx.
References vcl::Window::Enable(), vcl::Window::IsVisible(), mpHScrollBar, mpTextWindow, and mpVScrollBar.
void ImpVclMEdit::GetFocus | ( | ) |
Definition at line 389 of file vclmedit.cxx.
References vcl::Window::GrabFocus(), and mpTextWindow.
|
inline |
Definition at line 112 of file vclmedit.cxx.
References mpHScrollBar.
sal_Int32 ImpVclMEdit::GetMaxTextLen | ( | ) | const |
Definition at line 304 of file vclmedit.cxx.
References TextEngine::GetMaxTextLen(), TextWindow::GetTextEngine(), and mpTextWindow.
void ImpVclMEdit::GetMaxVisColumnsAndLines | ( | sal_uInt16 & | rnCols, |
sal_uInt16 & | rnLines | ||
) | const |
Definition at line 604 of file vclmedit.cxx.
References vcl::Window::GetOutputSizePixel(), vcl::Window::GetTextHeight(), vcl::Window::GetTextWidth(), Size::Height(), mpTextWindow, and Size::Width().
OUString ImpVclMEdit::GetSelected | ( | ) | const |
Definition at line 314 of file vclmedit.cxx.
References TextView::GetSelected(), TextWindow::GetTextView(), and mpTextWindow.
OUString ImpVclMEdit::GetSelected | ( | LineEnd | aSeparator | ) | const |
Definition at line 319 of file vclmedit.cxx.
References TextView::GetSelected(), TextWindow::GetTextView(), and mpTextWindow.
const Selection & ImpVclMEdit::GetSelection | ( | ) | const |
Definition at line 534 of file vclmedit.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextView::GetSelection(), TextSelection::GetStart(), TextWindow::GetTextEngine(), TextEngine::GetTextLen(), TextWindow::GetTextView(), TextSelection::Justify(), maSelection, Selection::Max(), Selection::Min(), mpTextWindow, and n.
OUString ImpVclMEdit::GetText | ( | ) | const |
Definition at line 425 of file vclmedit.cxx.
References TextEngine::GetText(), TextWindow::GetTextEngine(), and mpTextWindow.
OUString ImpVclMEdit::GetText | ( | LineEnd | aSeparator | ) | const |
Definition at line 430 of file vclmedit.cxx.
References TextEngine::GetText(), TextWindow::GetTextEngine(), and mpTextWindow.
OUString ImpVclMEdit::GetTextLines | ( | LineEnd | aSeparator | ) | const |
Definition at line 435 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), TextEngine::GetTextLines(), and mpTextWindow.
|
inline |
Definition at line 111 of file vclmedit.cxx.
References mpTextWindow.
|
inline |
Definition at line 113 of file vclmedit.cxx.
References mpVScrollBar.
bool ImpVclMEdit::HandleCommand | ( | const CommandEvent & | rCEvt | ) |
Definition at line 622 of file vclmedit.cxx.
References AutoScroll, GesturePan, VclPtr< reference_type >::get(), CommandEvent::GetCommand(), vcl::Window::HandleScrollCommand(), vcl::Window::IsVisible(), mpHScrollBar, mpTextWindow, mpVScrollBar, StartAutoScroll, and Wheel.
|
protected |
Definition at line 225 of file vclmedit.cxx.
References vcl::Window::GetOutputSizePixel(), TextView::GetStartDocPos(), vcl::Window::GetTextHeight(), TextWindow::GetTextView(), vcl::Window::GetTextWidth(), Size::Height(), ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), mpHScrollBar, mpTextWindow, mpVScrollBar, Size::setHeight(), ScrollBar::SetLineSize(), ScrollBar::SetPageSize(), ScrollBar::SetThumbPos(), ScrollBar::SetVisibleSize(), Size::setWidth(), Size::Width(), and Point::Y().
Referenced by ImpUpdateScrollBarVis(), and Resize().
|
protected |
Definition at line 247 of file vclmedit.cxx.
References TextView::GetStartDocPos(), TextWindow::GetTextEngine(), TextWindow::GetTextView(), ScrollBar::GetVisibleSize(), TextEngine::IsRightToLeft(), mnTextWidth, mpHScrollBar, mpTextWindow, ScrollBar::SetThumbPos(), and Point::X().
Referenced by ImpInitScrollBars(), and Notify().
|
protected |
Definition at line 217 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), TextEngine::GetTextHeight(), mnTextWidth, mpHScrollBar, mpTextWindow, mpVScrollBar, and ScrollBar::SetRange().
Referenced by ImpInitScrollBars(), and Notify().
|
protected |
Definition at line 131 of file vclmedit.cxx.
References vcl::Window::GetOutputSizePixel(), TextEngine::GetParagraphCount(), TextWindow::GetTextEngine(), TextEngine::GetTextHeight(), 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().
void ImpVclMEdit::InitFromStyle | ( | WinBits | nWinStyle | ) |
Definition at line 178 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 309 of file vclmedit.cxx.
References TextWindow::GetTextView(), TextView::InsertText(), and mpTextWindow.
bool ImpVclMEdit::IsReadOnly | ( | ) | const |
Definition at line 294 of file vclmedit.cxx.
References TextWindow::GetTextView(), TextView::IsReadOnly(), and mpTextWindow.
|
overrideprotectedvirtual |
Reimplemented from SfxListener.
Definition at line 440 of file vclmedit.cxx.
References TextEngine::CalcTextWidth(), VclMultiLineEdit::CaretChanged(), SfxHint::GetId(), vcl::Window::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(), ScrollBar::SetThumbPos(), and Point::Y().
void ImpVclMEdit::Paste | ( | ) |
Definition at line 405 of file vclmedit.cxx.
References TextWindow::GetTextView(), TextView::IsReadOnly(), mpTextWindow, and TextView::Paste().
void ImpVclMEdit::Resize | ( | ) |
Definition at line 329 of file vclmedit.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), Point::AdjustX(), vcl::Window::CalcZoom(), AllSettings::GetLayoutRTL(), vcl::Window::GetOutputSizePixel(), StyleSettings::GetScrollBarSize(), vcl::Window::GetSettings(), vcl::Window::GetSizePixel(), vcl::Window::GetStyle(), AllSettings::GetStyleSettings(), TextWindow::GetTextEngine(), Size::Height(), ImpInitScrollBars(), ImpUpdateScrollBarVis(), vcl::Window::IsVisible(), mpHScrollBar, mpScrollBox, mpTextWindow, mpVScrollBar, pVclMultiLineEdit, Size::setHeight(), TextEngine::SetMaxTextWidth(), vcl::Window::SetPosSizePixel(), vcl::Window::setPosSizePixel(), Size::setWidth(), WB_AUTOVSCROLL, and Size::Width().
Referenced by ImpUpdateScrollBarVis().
void ImpVclMEdit::SetAlign | ( | WinBits | nWinStyle | ) |
Definition at line 270 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 299 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), mpTextWindow, and TextEngine::SetMaxTextLen().
void ImpVclMEdit::SetMaxTextWidth | ( | tools::Long | nMaxWidth | ) |
Definition at line 324 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), mpTextWindow, and TextEngine::SetMaxTextWidth().
void ImpVclMEdit::SetModified | ( | bool | bMod | ) |
Definition at line 283 of file vclmedit.cxx.
References TextWindow::GetTextEngine(), mpTextWindow, and TextEngine::SetModified().
void ImpVclMEdit::SetReadOnly | ( | bool | bRdOnly | ) |
Definition at line 288 of file vclmedit.cxx.
References TextWindow::GetTextView(), mpTextWindow, and TextView::SetReadOnly().
void ImpVclMEdit::SetSelection | ( | const Selection & | rSelection | ) |
Definition at line 496 of file vclmedit.cxx.
References aNewSelection, TextSelection::GetEnd(), TextSelection::GetStart(), TextEngine::GetText(), TextWindow::GetTextEngine(), TextWindow::GetTextView(), mpTextWindow, TextView::SetSelection(), and x.
void ImpVclMEdit::SetText | ( | const OUString & | rStr | ) |
Definition at line 411 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 56 of file vclmedit.cxx.
Referenced by GetSelection().
|
private |
Definition at line 55 of file vclmedit.cxx.
Referenced by ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), and Notify().
Definition at line 51 of file vclmedit.cxx.
Referenced by CalcBlockSize(), CalcMinimumSize(), Enable(), GetHScrollBar(), HandleCommand(), ImpInitScrollBars(), ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), ImpUpdateScrollBarVis(), ImpVclMEdit(), Notify(), Resize(), and ~ImpVclMEdit().
|
private |
Definition at line 53 of file vclmedit.cxx.
Referenced by ImpUpdateScrollBarVis(), Resize(), and ~ImpVclMEdit().
|
private |
Definition at line 50 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 52 of file vclmedit.cxx.
Referenced by CalcBlockSize(), CalcMinimumSize(), Enable(), GetVScrollBar(), HandleCommand(), ImpInitScrollBars(), ImpSetScrollBarRanges(), ImpUpdateScrollBarVis(), ImpVclMEdit(), Notify(), Resize(), and ~ImpVclMEdit().
|
private |
Definition at line 48 of file vclmedit.cxx.
Referenced by Notify(), Resize(), SetText(), and ~ImpVclMEdit().