LibreOffice Module starmath (master) 1
|
#include <edit.hxx>
Public Member Functions | |
SmEditWindow (SmCmdBoxWindow &rMyCmdBoxWin, weld::Builder &rBuilder) | |
~SmEditWindow () COVERITY_NOEXCEPT_FALSE | |
weld::Window * | GetFrameWeld () const |
SmDocShell * | GetDoc () |
SmViewShell * | GetView () |
EditView * | GetEditView () const |
EditEngine * | GetEditEngine () |
SmCmdBoxWindow & | GetCmdBox () 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 | |
SmCmdBoxWindow & | rCmdBox |
std::unique_ptr< weld::ScrolledWindow > | mxScrolledWindow |
std::unique_ptr< SmEditTextWindow > | mxTextControl |
std::unique_ptr< weld::CustomWeld > | mxTextControlWin |
SmEditWindow::SmEditWindow | ( | SmCmdBoxWindow & | rMyCmdBoxWin, |
weld::Builder & | rBuilder | ||
) |
Definition at line 135 of file edit.cxx.
References CreateEditView(), LINK, and mxScrolledWindow.
SmEditWindow::~SmEditWindow | ( | ) |
Definition at line 144 of file edit.cxx.
References DeleteEditView(), and mxScrolledWindow.
tools::Rectangle SmEditWindow::AdjustScrollBars | ( | ) |
Definition at line 452 of file edit.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), mxScrolledWindow, and rCmdBox.
Referenced by SmEditTextWindow::SetDrawingArea().
void SmEditWindow::Copy | ( | ) |
Definition at line 749 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
|
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().
void SmEditWindow::Cut | ( | ) |
Definition at line 740 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
|
private |
void SmEditWindow::Delete | ( | ) |
Definition at line 764 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
void SmEditWindow::DeleteEditView | ( | ) |
Definition at line 855 of file edit.cxx.
References GetEditView(), mxTextControl, and mxTextControlWin.
Referenced by ~SmEditWindow().
void SmEditWindow::Flush | ( | void | ) |
Definition at line 516 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
|
inline |
Definition at line 108 of file edit.hxx.
References mxTextControl.
Referenced by SmViewShell::Execute(), and SmViewShell::GetState().
|
inline |
Definition at line 101 of file edit.hxx.
References rCmdBox.
Referenced by SmEditTextWindow::Command().
SmDocShell * SmEditWindow::GetDoc | ( | ) |
Definition at line 174 of file edit.cxx.
References SmViewShell::GetDoc(), SmCmdBoxWindow::GetView(), and rCmdBox.
Referenced by GetEditEngine(), SmEditTextWindow::GetEditEngine(), SmEditTextWindow::StyleUpdated(), SmEditTextWindow::UpdateStatus(), and SmEditTextWindow::UserPossiblyChangedText().
EditEngine * SmEditWindow::GetEditEngine | ( | ) |
Definition at line 185 of file edit.cxx.
References GetDoc().
Referenced by CreateEditView(), SmViewShell::Execute(), GetText(), IsAllSelected(), IsEmpty(), SelPrevMark(), and SetScrollBarRanges().
EditView * SmEditWindow::GetEditView | ( | ) | const |
Definition at line 180 of file edit.cxx.
References mxTextControl.
Referenced by DeleteEditView(), IsAllSelected(), IsSelected(), MarkError(), SelectAll(), SelPrevMark(), SetScrollBarRanges(), and SetSelection().
weld::Window * SmEditWindow::GetFrameWeld | ( | ) | const |
ESelection SmEditWindow::GetSelection | ( | ) | const |
Definition at line 687 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
OUString SmEditWindow::GetText | ( | ) | const |
Definition at line 499 of file edit.cxx.
References GetEditEngine(), and EditEngine::GetText().
Referenced by SmViewShell::Execute(), and SmEditController::StateChangedAtToolBoxControl().
SmViewShell * SmEditWindow::GetView | ( | ) |
Definition at line 169 of file edit.cxx.
References SmCmdBoxWindow::GetView(), and rCmdBox.
Referenced by SmEditTextWindow::Flush(), SmEditTextWindow::GetFocus(), InvalidateSlots(), and SmEditTextWindow::KeyInput().
void SmEditWindow::GrabFocus | ( | ) |
Definition at line 523 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute(), MarkError(), and SmGraphicWidget::MouseButtonDown().
void SmEditWindow::InsertText | ( | const OUString & | rText | ) |
Definition at line 773 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
void SmEditWindow::InvalidateSlots | ( | ) |
Definition at line 161 of file edit.cxx.
References SfxViewFrame::GetBindings(), GetView(), SfxViewShell::GetViewFrame(), and SfxBindings::Invalidate().
Referenced by SmEditTextWindow::KeyInput(), SmEditTextWindow::MouseButtonUp(), and SetSelection().
bool SmEditWindow::IsAllSelected | ( | ) | const |
Definition at line 574 of file edit.cxx.
References GetEditEngine(), GetEditView(), EditEngine::GetParagraphCount(), EditView::GetSelection(), EditEngine::GetText(), ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, and ESelection::nStartPos.
Referenced by SmViewShell::Execute().
bool SmEditWindow::IsEmpty | ( | ) | const |
Definition at line 710 of file edit.cxx.
References GetEditEngine(), and EditEngine::GetTextLen().
Referenced by SmViewShell::GetState().
bool SmEditWindow::IsSelected | ( | ) | const |
Definition at line 717 of file edit.cxx.
References GetEditView(), and EditView::HasSelection().
Referenced by SmViewShell::GetState().
void SmEditWindow::MarkError | ( | const Point & | rPos | ) |
Definition at line 606 of file edit.cxx.
References GetEditView(), GrabFocus(), Point::X(), and Point::Y().
void SmEditWindow::Paste | ( | ) |
Definition at line 755 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
void SmEditWindow::SelectAll | ( | ) |
Definition at line 597 of file edit.cxx.
References EE_PARA_ALL, EE_TEXTPOS_ALL, and GetEditView().
Referenced by SmViewShell::Execute().
void SmEditWindow::SelNextMark | ( | ) |
Definition at line 618 of file edit.cxx.
References mxTextControl.
Referenced by SmViewShell::Execute().
void SmEditWindow::SelPrevMark | ( | ) |
Definition at line 655 of file edit.cxx.
References GetEditEngine(), GetEditView(), EditView::GetSelection(), EditEngine::GetText(), nPos, ESelection::nStartPara, ESelection::nStartPos, EditView::SetSelection(), and u.
Referenced by SmViewShell::Execute().
void SmEditWindow::SetScrollBarRanges | ( | ) |
Definition at line 467 of file edit.cxx.
References GetEditEngine(), GetEditView(), EditView::GetOutputArea(), tools::Rectangle::GetSize(), EditEngine::GetTextHeight(), EditView::GetVisArea(), Size::Height(), mxScrolledWindow, and tools::Rectangle::Top().
Referenced by CreateEditView(), and SmEditTextWindow::EditViewScrollStateChange().
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().
void SmEditWindow::SetText | ( | const OUString & | rText | ) |
Definition at line 509 of file edit.cxx.
References mxTextControl.
Referenced by SmEditController::StateChangedAtToolBoxControl().
void SmEditWindow::UpdateStatus | ( | ) |
Definition at line 735 of file edit.cxx.
References mxTextControl.
|
private |
Definition at line 83 of file edit.hxx.
Referenced by AdjustScrollBars(), SetScrollBarRanges(), SmEditWindow(), and ~SmEditWindow().
|
private |
Definition at line 84 of file edit.hxx.
Referenced by Copy(), CreateEditView(), Cut(), Delete(), DeleteEditView(), Flush(), GetClipboard(), GetEditView(), GetSelection(), GrabFocus(), InsertText(), Paste(), SelNextMark(), SetText(), and UpdateStatus().
|
private |
Definition at line 85 of file edit.hxx.
Referenced by CreateEditView(), and DeleteEditView().
|
private |
Definition at line 82 of file edit.hxx.
Referenced by AdjustScrollBars(), GetCmdBox(), GetDoc(), GetFrameWeld(), and GetView().