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

Public Member Functions

 ImpVclMEdit (VclMultiLineEdit *pVclMultiLineEdit, WinBits nWinStyle)
 
virtual ~ImpVclMEdit () override
 
void SetModified (bool bMod)
 
bool IsModified () const
 
void SetReadOnly (bool bRdOnly)
 
bool IsReadOnly () const
 
void SetMaxTextLen (sal_Int32 nLen)
 
sal_Int32 GetMaxTextLen () const
 
void SetMaxTextWidth (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 ImpUpdateSrollBarVis (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
 
long mnTextWidth
 
Selection maSelection
 

Detailed Description

Definition at line 41 of file vclmedit.cxx.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 402 of file vclmedit.cxx.

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

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

Definition at line 391 of file vclmedit.cxx.

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

ScrollBar& ImpVclMEdit::GetHScrollBar ( )
inline

Definition at line 109 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 316 of file vclmedit.cxx.

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

OUString ImpVclMEdit::GetSelected ( LineEnd  aSeparator) const

Definition at line 321 of file vclmedit.cxx.

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

const Selection & ImpVclMEdit::GetSelection ( ) const
OUString ImpVclMEdit::GetText ( ) const

Definition at line 427 of file vclmedit.cxx.

References TextEngine::GetText(), TextWindow::GetTextEngine(), and mpTextWindow.

OUString ImpVclMEdit::GetText ( LineEnd  aSeparator) const

Definition at line 432 of file vclmedit.cxx.

References TextEngine::GetText(), TextWindow::GetTextEngine(), and mpTextWindow.

OUString ImpVclMEdit::GetTextLines ( LineEnd  aSeparator) const
TextWindow* ImpVclMEdit::GetTextWindow ( )
inline

Definition at line 108 of file vclmedit.cxx.

References mpTextWindow.

ScrollBar& ImpVclMEdit::GetVScrollBar ( )
inline

Definition at line 110 of file vclmedit.cxx.

References mpVScrollBar.

bool ImpVclMEdit::HandleCommand ( const CommandEvent rCEvt)
void ImpVclMEdit::ImpInitScrollBars ( )
protected
void ImpVclMEdit::ImpSetHScrollBarThumbPos ( )
protected
void ImpVclMEdit::ImpSetScrollBarRanges ( )
protected
void ImpVclMEdit::ImpUpdateSrollBarVis ( WinBits  nWinStyle)
protected
void ImpVclMEdit::InitFromStyle ( WinBits  nWinStyle)
void ImpVclMEdit::InsertText ( const OUString &  rStr)

Definition at line 311 of file vclmedit.cxx.

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

bool ImpVclMEdit::IsModified ( ) const

Definition at line 285 of file vclmedit.cxx.

References TextWindow::GetTextEngine(), TextEngine::IsModified(), and mpTextWindow.

bool ImpVclMEdit::IsReadOnly ( ) const

Definition at line 296 of file vclmedit.cxx.

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

void ImpVclMEdit::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprotectedvirtual
void ImpVclMEdit::Paste ( )
void ImpVclMEdit::Resize ( )
void ImpVclMEdit::SetAlign ( WinBits  nWinStyle)
void ImpVclMEdit::SetMaxTextLen ( sal_Int32  nLen)
void ImpVclMEdit::SetMaxTextWidth ( long  nMaxWidth)
void ImpVclMEdit::SetModified ( bool  bMod)
void ImpVclMEdit::SetReadOnly ( bool  bRdOnly)

Definition at line 290 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
mutableprivate

Definition at line 52 of file vclmedit.cxx.

Referenced by GetSelection().

long ImpVclMEdit::mnTextWidth
private

Definition at line 51 of file vclmedit.cxx.

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

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

Definition at line 49 of file vclmedit.cxx.

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

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

Definition at line 44 of file vclmedit.cxx.

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


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