LibreOffice Module vcl (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ImpVclMEdit Class Reference
Inheritance diagram for ImpVclMEdit:
Collaboration diagram for ImpVclMEdit:

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 SelectionGetSelection () 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)
TextWindowGetTextWindow ()
ScrollBarGetHScrollBar ()
ScrollBarGetVScrollBar ()
- 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
SfxBroadcasterGetBroadcasterJOE (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< VclMultiLineEditpVclMultiLineEdit
VclPtr< TextWindowmpTextWindow
VclPtr< ScrollBarmpHScrollBar
VclPtr< ScrollBarmpVScrollBar
VclPtr< ScrollBarBoxmpScrollBox
tools::Long mnTextWidth
Selection maSelection

Detailed Description

Definition at line 45 of file vclmedit.cxx.

Constructor & Destructor Documentation

ImpVclMEdit::ImpVclMEdit ( VclMultiLineEdit pVclMultiLineEdit,
WinBits  nWinStyle 
ImpVclMEdit::~ImpVclMEdit ( )

Member Function Documentation

Size ImpVclMEdit::CalcBlockSize ( sal_uInt16  nColumns,
sal_uInt16  nLines 
) const
Size ImpVclMEdit::CalcMinimumSize ( ) const
void ImpVclMEdit::Copy ( )

Definition at line 400 of file vclmedit.cxx.

References TextView::Copy(), TextWindow::GetTextView(), and mpTextWindow.

void ImpVclMEdit::Cut ( )
ImpVclMEdit::DECL_LINK ( ScrollHdl  ,
ScrollBar ,
void ImpVclMEdit::Enable ( bool  bEnable)
void ImpVclMEdit::GetFocus ( )

Definition at line 389 of file vclmedit.cxx.

References vcl::Window::GrabFocus(), and mpTextWindow.

ScrollBar& ImpVclMEdit::GetHScrollBar ( )

Definition at line 112 of file vclmedit.cxx.

References mpHScrollBar.

sal_Int32 ImpVclMEdit::GetMaxTextLen ( ) const
void ImpVclMEdit::GetMaxVisColumnsAndLines ( sal_uInt16 &  rnCols,
sal_uInt16 &  rnLines 
) const
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
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
TextWindow* ImpVclMEdit::GetTextWindow ( )

Definition at line 111 of file vclmedit.cxx.

References mpTextWindow.

ScrollBar& ImpVclMEdit::GetVScrollBar ( )

Definition at line 113 of file vclmedit.cxx.

References mpVScrollBar.

bool ImpVclMEdit::HandleCommand ( const CommandEvent rCEvt)
void ImpVclMEdit::ImpInitScrollBars ( )
void ImpVclMEdit::ImpSetHScrollBarThumbPos ( )
void ImpVclMEdit::ImpSetScrollBarRanges ( )
void ImpVclMEdit::ImpUpdateScrollBarVis ( WinBits  nWinStyle)
void ImpVclMEdit::InitFromStyle ( WinBits  nWinStyle)
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.

void ImpVclMEdit::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
void ImpVclMEdit::Paste ( )
void ImpVclMEdit::Resize ( )
void ImpVclMEdit::SetAlign ( WinBits  nWinStyle)
void ImpVclMEdit::SetMaxTextLen ( sal_Int32  nLen)
void ImpVclMEdit::SetMaxTextWidth ( tools::Long  nMaxWidth)
void ImpVclMEdit::SetModified ( bool  bMod)
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)
void ImpVclMEdit::SetText ( const OUString &  rStr)

Member Data Documentation

Selection ImpVclMEdit::maSelection

Definition at line 56 of file vclmedit.cxx.

Referenced by GetSelection().

tools::Long ImpVclMEdit::mnTextWidth

Definition at line 55 of file vclmedit.cxx.

Referenced by ImpSetHScrollBarThumbPos(), ImpSetScrollBarRanges(), and Notify().

VclPtr<ScrollBar> ImpVclMEdit::mpHScrollBar
VclPtr<ScrollBarBox> ImpVclMEdit::mpScrollBox

Definition at line 53 of file vclmedit.cxx.

Referenced by ImpUpdateScrollBarVis(), Resize(), and ~ImpVclMEdit().

VclPtr<TextWindow> ImpVclMEdit::mpTextWindow
VclPtr<ScrollBar> ImpVclMEdit::mpVScrollBar
VclPtr<VclMultiLineEdit> ImpVclMEdit::pVclMultiLineEdit

Definition at line 48 of file vclmedit.cxx.

Referenced by Notify(), Resize(), SetText(), and ~ImpVclMEdit().

The documentation for this class was generated from the following file: