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)
 
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
 
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< 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::ImpVclMEdit ( VclMultiLineEdit pVclMultiLineEdit,
WinBits  nWinStyle 
)

◆ ~ImpVclMEdit()

ImpVclMEdit::~ImpVclMEdit ( )
overridevirtual

Member Function Documentation

◆ CalcBlockSize()

Size ImpVclMEdit::CalcBlockSize ( sal_uInt16  nColumns,
sal_uInt16  nLines 
) const

◆ CalcMinimumSize()

Size ImpVclMEdit::CalcMinimumSize ( ) const

◆ Copy()

void ImpVclMEdit::Copy ( )

Definition at line 400 of file vclmedit.cxx.

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

◆ Cut()

void ImpVclMEdit::Cut ( )

◆ DECL_LINK()

ImpVclMEdit::DECL_LINK ( ScrollHdl  ,
ScrollBar ,
void   
)
protected

◆ Enable()

void ImpVclMEdit::Enable ( bool  bEnable)

◆ GetFocus()

void ImpVclMEdit::GetFocus ( )

Definition at line 389 of file vclmedit.cxx.

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

◆ GetHScrollBar()

ScrollBar & ImpVclMEdit::GetHScrollBar ( )
inline

Definition at line 112 of file vclmedit.cxx.

References mpHScrollBar.

◆ GetMaxTextLen()

sal_Int32 ImpVclMEdit::GetMaxTextLen ( ) const

◆ GetMaxVisColumnsAndLines()

void ImpVclMEdit::GetMaxVisColumnsAndLines ( sal_uInt16 &  rnCols,
sal_uInt16 &  rnLines 
) const

◆ GetSelected() [1/2]

OUString ImpVclMEdit::GetSelected ( ) const

Definition at line 314 of file vclmedit.cxx.

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

◆ GetSelected() [2/2]

OUString ImpVclMEdit::GetSelected ( LineEnd  aSeparator) const

Definition at line 319 of file vclmedit.cxx.

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

◆ GetSelection()

const Selection & ImpVclMEdit::GetSelection ( ) const

◆ GetText() [1/2]

OUString ImpVclMEdit::GetText ( ) const

Definition at line 425 of file vclmedit.cxx.

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

◆ GetText() [2/2]

OUString ImpVclMEdit::GetText ( LineEnd  aSeparator) const

Definition at line 430 of file vclmedit.cxx.

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

◆ GetTextLines()

OUString ImpVclMEdit::GetTextLines ( LineEnd  aSeparator) const

◆ GetTextWindow()

TextWindow * ImpVclMEdit::GetTextWindow ( )
inline

Definition at line 111 of file vclmedit.cxx.

References mpTextWindow.

◆ GetVScrollBar()

ScrollBar & ImpVclMEdit::GetVScrollBar ( )
inline

Definition at line 113 of file vclmedit.cxx.

References mpVScrollBar.

◆ HandleCommand()

bool ImpVclMEdit::HandleCommand ( const CommandEvent rCEvt)

◆ ImpInitScrollBars()

void ImpVclMEdit::ImpInitScrollBars ( )
protected

◆ ImpSetHScrollBarThumbPos()

void ImpVclMEdit::ImpSetHScrollBarThumbPos ( )
protected

◆ ImpSetScrollBarRanges()

void ImpVclMEdit::ImpSetScrollBarRanges ( )
protected

◆ ImpUpdateScrollBarVis()

void ImpVclMEdit::ImpUpdateScrollBarVis ( WinBits  nWinStyle)
protected

◆ InitFromStyle()

void ImpVclMEdit::InitFromStyle ( WinBits  nWinStyle)

◆ InsertText()

void ImpVclMEdit::InsertText ( const OUString &  rStr)

Definition at line 309 of file vclmedit.cxx.

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

◆ IsReadOnly()

bool ImpVclMEdit::IsReadOnly ( ) const

Definition at line 294 of file vclmedit.cxx.

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

◆ Notify()

void ImpVclMEdit::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprotectedvirtual

◆ Paste()

void ImpVclMEdit::Paste ( )

◆ Resize()

void ImpVclMEdit::Resize ( )

◆ SetAlign()

void ImpVclMEdit::SetAlign ( WinBits  nWinStyle)

◆ SetMaxTextLen()

void ImpVclMEdit::SetMaxTextLen ( sal_Int32  nLen)

◆ SetMaxTextWidth()

void ImpVclMEdit::SetMaxTextWidth ( tools::Long  nMaxWidth)

◆ SetModified()

void ImpVclMEdit::SetModified ( bool  bMod)

◆ SetReadOnly()

void ImpVclMEdit::SetReadOnly ( bool  bRdOnly)

Definition at line 288 of file vclmedit.cxx.

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

◆ SetSelection()

void ImpVclMEdit::SetSelection ( const Selection rSelection)

◆ SetText()

void ImpVclMEdit::SetText ( const OUString &  rStr)

Member Data Documentation

◆ maSelection

Selection ImpVclMEdit::maSelection
mutableprivate

Definition at line 56 of file vclmedit.cxx.

Referenced by GetSelection().

◆ mnTextWidth

tools::Long ImpVclMEdit::mnTextWidth
private

Definition at line 55 of file vclmedit.cxx.

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

◆ mpHScrollBar

VclPtr<ScrollBar> ImpVclMEdit::mpHScrollBar
private

◆ mpScrollBox

VclPtr<ScrollBarBox> ImpVclMEdit::mpScrollBox
private

Definition at line 53 of file vclmedit.cxx.

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

◆ mpTextWindow

VclPtr<TextWindow> ImpVclMEdit::mpTextWindow
private

◆ mpVScrollBar

VclPtr<ScrollBar> ImpVclMEdit::mpVScrollBar
private

◆ pVclMultiLineEdit

VclPtr<VclMultiLineEdit> ImpVclMEdit::pVclMultiLineEdit
private

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: