LibreOffice Module starmath (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SmEditWindow Class Referencefinal

#include <edit.hxx>

Collaboration diagram for SmEditWindow:
[legend]

Public Member Functions

 SmEditWindow (SmCmdBoxWindow &rMyCmdBoxWin, weld::Builder &rBuilder)
 
 ~SmEditWindow () COVERITY_NOEXCEPT_FALSE
 
weld::WindowGetFrameWeld () const
 
SmDocShellGetDoc ()
 
SmViewShellGetView ()
 
EditViewGetEditView () const
 
EditEngineGetEditEngine ()
 
SmCmdBoxWindowGetCmdBox () const
 
void SetText (const OUString &rText)
 
OUString GetText () const
 
void Flush ()
 
void GrabFocus ()
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
ESelection GetSelection () const
 
void SetSelection (const ESelection &rSel)
 
void UpdateStatus ()
 
bool IsEmpty () const
 
bool IsSelected () const
 
bool IsAllSelected () const
 
void SetScrollBarRanges ()
 
tools::Rectangle AdjustScrollBars ()
 
void InvalidateSlots ()
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
void Delete ()
 
void SelectAll ()
 
void InsertText (const OUString &rText)
 
void MarkError (const Point &rPos)
 
void SelNextMark ()
 
void SelPrevMark ()
 
void DeleteEditView ()
 

Private Member Functions

 DECL_LINK (ScrollHdl, weld::ScrolledWindow &, void)
 
void CreateEditView (weld::Builder &rBuilder)
 

Private Attributes

SmCmdBoxWindowrCmdBox
 
std::unique_ptr< weld::ScrolledWindowmxScrolledWindow
 
std::unique_ptr< SmEditTextWindowmxTextControl
 
std::unique_ptr< weld::CustomWeldmxTextControlWin
 

Detailed Description

Definition at line 80 of file edit.hxx.

Constructor & Destructor Documentation

◆ SmEditWindow()

SmEditWindow::SmEditWindow ( SmCmdBoxWindow rMyCmdBoxWin,
weld::Builder rBuilder 
)

Definition at line 135 of file edit.cxx.

References CreateEditView(), LINK, and mxScrolledWindow.

◆ ~SmEditWindow()

SmEditWindow::~SmEditWindow ( )

Definition at line 144 of file edit.cxx.

References DeleteEditView(), and mxScrolledWindow.

Member Function Documentation

◆ AdjustScrollBars()

tools::Rectangle SmEditWindow::AdjustScrollBars ( )

◆ Copy()

void SmEditWindow::Copy ( )

Definition at line 749 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ CreateEditView()

void SmEditWindow::CreateEditView ( weld::Builder rBuilder)
private

pEditEngine may be 0. For example when the program is used by the document-converter

Definition at line 419 of file edit.cxx.

References GetEditEngine(), mxTextControl, mxTextControlWin, and SetScrollBarRanges().

Referenced by SmEditWindow().

◆ Cut()

void SmEditWindow::Cut ( )

Definition at line 740 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ DECL_LINK()

SmEditWindow::DECL_LINK ( ScrollHdl  ,
weld::ScrolledWindow ,
void   
)
private

◆ Delete()

void SmEditWindow::Delete ( )

Definition at line 764 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ DeleteEditView()

void SmEditWindow::DeleteEditView ( )

Definition at line 855 of file edit.cxx.

References GetEditView(), mxTextControl, and mxTextControlWin.

Referenced by ~SmEditWindow().

◆ Flush()

void SmEditWindow::Flush ( void  )

Definition at line 516 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ GetClipboard()

css::uno::Reference< css::datatransfer::clipboard::XClipboard > SmEditWindow::GetClipboard ( ) const
inline

Definition at line 108 of file edit.hxx.

References mxTextControl.

Referenced by SmViewShell::Execute(), and SmViewShell::GetState().

◆ GetCmdBox()

SmCmdBoxWindow & SmEditWindow::GetCmdBox ( ) const
inline

Definition at line 101 of file edit.hxx.

References rCmdBox.

Referenced by SmEditTextWindow::Command().

◆ GetDoc()

SmDocShell * SmEditWindow::GetDoc ( )

◆ GetEditEngine()

EditEngine * SmEditWindow::GetEditEngine ( )

◆ GetEditView()

EditView * SmEditWindow::GetEditView ( ) const

◆ GetFrameWeld()

weld::Window * SmEditWindow::GetFrameWeld ( ) const

Definition at line 150 of file edit.cxx.

References rCmdBox.

Referenced by SmViewShell::Execute().

◆ GetSelection()

ESelection SmEditWindow::GetSelection ( ) const

Definition at line 687 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ GetText()

OUString SmEditWindow::GetText ( ) const

◆ GetView()

SmViewShell * SmEditWindow::GetView ( )

◆ GrabFocus()

void SmEditWindow::GrabFocus ( )

Definition at line 523 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute(), MarkError(), and SmGraphicWidget::MouseButtonDown().

◆ InsertText()

void SmEditWindow::InsertText ( const OUString &  rText)

Definition at line 773 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ InvalidateSlots()

void SmEditWindow::InvalidateSlots ( )

◆ IsAllSelected()

bool SmEditWindow::IsAllSelected ( ) const

◆ IsEmpty()

bool SmEditWindow::IsEmpty ( ) const

Definition at line 710 of file edit.cxx.

References GetEditEngine(), and EditEngine::GetTextLen().

Referenced by SmViewShell::GetState().

◆ IsSelected()

bool SmEditWindow::IsSelected ( ) const

Definition at line 717 of file edit.cxx.

References GetEditView(), and EditView::HasSelection().

Referenced by SmViewShell::GetState().

◆ MarkError()

void SmEditWindow::MarkError ( const Point rPos)

Definition at line 606 of file edit.cxx.

References GetEditView(), GrabFocus(), Point::X(), and Point::Y().

◆ Paste()

void SmEditWindow::Paste ( )

Definition at line 755 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ SelectAll()

void SmEditWindow::SelectAll ( )

Definition at line 597 of file edit.cxx.

References EE_PARA_ALL, EE_TEXTPOS_ALL, and GetEditView().

Referenced by SmViewShell::Execute().

◆ SelNextMark()

void SmEditWindow::SelNextMark ( )

Definition at line 618 of file edit.cxx.

References mxTextControl.

Referenced by SmViewShell::Execute().

◆ SelPrevMark()

void SmEditWindow::SelPrevMark ( )

◆ SetScrollBarRanges()

void SmEditWindow::SetScrollBarRanges ( )

◆ SetSelection()

void SmEditWindow::SetSelection ( const ESelection rSel)

Definition at line 703 of file edit.cxx.

References GetEditView(), and InvalidateSlots().

Referenced by SmViewShell::Execute(), and SmGraphicWidget::MouseButtonDown().

◆ SetText()

void SmEditWindow::SetText ( const OUString &  rText)

Definition at line 509 of file edit.cxx.

References mxTextControl.

Referenced by SmEditController::StateChangedAtToolBoxControl().

◆ UpdateStatus()

void SmEditWindow::UpdateStatus ( )

Definition at line 735 of file edit.cxx.

References mxTextControl.

Member Data Documentation

◆ mxScrolledWindow

std::unique_ptr<weld::ScrolledWindow> SmEditWindow::mxScrolledWindow
private

Definition at line 83 of file edit.hxx.

Referenced by AdjustScrollBars(), SetScrollBarRanges(), SmEditWindow(), and ~SmEditWindow().

◆ mxTextControl

std::unique_ptr<SmEditTextWindow> SmEditWindow::mxTextControl
private

◆ mxTextControlWin

std::unique_ptr<weld::CustomWeld> SmEditWindow::mxTextControlWin
private

Definition at line 85 of file edit.hxx.

Referenced by CreateEditView(), and DeleteEditView().

◆ rCmdBox

SmCmdBoxWindow& SmEditWindow::rCmdBox
private

Definition at line 82 of file edit.hxx.

Referenced by AdjustScrollBars(), GetCmdBox(), GetDoc(), GetFrameWeld(), and GetView().


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