LibreOffice Module vcl (master) 1
|
#include <textview.hxx>
Public Member Functions | |
TextView (ExtTextEngine *pEng, vcl::Window *pWindow) | |
virtual | ~TextView () override |
TextEngine * | GetTextEngine () const |
vcl::Window * | GetWindow () const |
void | Invalidate () |
void | Scroll (tools::Long nHorzScroll, tools::Long nVertScroll) |
void | ShowCursor (bool bGotoCursor=true, bool bForceVisCursor=true) |
void | HideCursor () |
void | EnableCursor (bool bEnable) |
bool | IsCursorEnabled () const |
const TextSelection & | GetSelection () const |
TextSelection & | GetSelection () |
void | SetSelection (const TextSelection &rNewSel) |
void | SetSelection (const TextSelection &rNewSel, bool bGotoCursor) |
bool | HasSelection () const |
OUString | GetSelected () const |
OUString | GetSelected (LineEnd aSeparator) const |
void | DeleteSelected () |
void | InsertText (const OUString &rNew) |
bool | KeyInput (const KeyEvent &rKeyEvent) |
void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) |
void | MouseButtonUp (const MouseEvent &rMouseEvent) |
void | MouseButtonDown (const MouseEvent &rMouseEvent) |
void | MouseMove (const MouseEvent &rMouseEvent) |
void | Command (const CommandEvent &rCEvt) |
void | Cut () |
void | Copy () |
void | Paste () |
void | Copy (css::uno::Reference< css::datatransfer::clipboard::XClipboard > const &rxClipboard) |
void | Paste (css::uno::Reference< css::datatransfer::clipboard::XClipboard > const &rxClipboard) |
void | Undo () |
void | Redo () |
void | Read (SvStream &rInput) |
void | SetStartDocPos (const Point &rPos) |
const Point & | GetStartDocPos () const |
Point | GetDocPos (const Point &rWindowPos) const |
Point | GetWindowPos (const Point &rDocPos) const |
void | SetInsertMode (bool bInsert) |
bool | IsInsertMode () const |
void | SetAutoIndentMode (bool bAutoIndent) |
void | SetReadOnly (bool bReadOnly) |
bool | IsReadOnly () const |
void | SetAutoScroll (bool bAutoScroll) |
bool | IsAutoScroll () const |
void | SetCursorAtPoint (const Point &rPointPixel) |
bool | IsSelectionAtPoint (const Point &rPointPixel) |
void | SetPaintSelection (bool bPaint) |
TextPaM | PageUp (const TextPaM &rPaM) |
TextPaM | PageDown (const TextPaM &rPaM) |
TextPaM | CursorUp (const TextPaM &rPaM) |
TextPaM | CursorDown (const TextPaM &rPaM) |
TextPaM | CursorLeft (const TextPaM &rPaM, sal_uInt16 nCharacterIteratorMode) |
TextPaM | CursorRight (const TextPaM &rPaM, sal_uInt16 nCharacterIteratorMode) |
TextPaM | CursorFirstWord (const TextPaM &rPaM) |
TextPaM | CursorWordLeft (const TextPaM &rPaM) |
TextPaM | CursorWordRight (const TextPaM &rPaM) |
TextPaM | CursorStartOfLine (const TextPaM &rPaM) |
TextPaM | CursorEndOfLine (const TextPaM &rPaM) |
TextPaM | CursorEndOfParagraph (const TextPaM &rPaM) |
TextPaM | CursorEndOfDoc () |
sal_Int32 | GetLineNumberOfCursorInSelection () const |
Returns the number in paragraph of the line in which the cursor is blinking if enabled, -1 otherwise. More... | |
void | MatchGroup () |
void | CenterPaM (const TextPaM &rPaM) |
bool | Search (const i18nutil::SearchOptions2 &rSearchOptions, bool bForward) |
sal_uInt16 | Replace (const i18nutil::SearchOptions2 &rSearchOptions, bool bAll, bool bForward) |
bool | IndentBlock () |
bool | UnindentBlock () |
Public Member Functions inherited from vcl::unohelper::DragAndDropClient | |
virtual | ~DragAndDropClient () COVERITY_NOEXCEPT_FALSE |
virtual void | dragGestureRecognized (const css::datatransfer::dnd::DragGestureEvent &dge) |
virtual void | dragDropEnd (const css::datatransfer::dnd::DragSourceDropEvent &dsde) |
virtual void | drop (const css::datatransfer::dnd::DropTargetDropEvent &dtde) |
virtual void | dragEnter (const css::datatransfer::dnd::DropTargetDragEnterEvent &dtdee) |
virtual void | dragExit (const css::datatransfer::dnd::DropTargetEvent &dte) |
virtual void | dragOver (const css::datatransfer::dnd::DropTargetDragEvent &dtde) |
Static Public Member Functions | |
static TextPaM | CursorStartOfParagraph (const TextPaM &rPaM) |
static TextPaM | CursorStartOfDoc () |
Private Member Functions | |
TextView (const TextView &)=delete | |
TextView & | operator= (const TextView &)=delete |
bool | ImpIndentBlock (bool bRight) |
void | ShowSelection () |
void | HideSelection () |
void | ShowSelection (const TextSelection &rSel) |
void | ImpShowHideSelection (const TextSelection *pRange=nullptr) |
TextSelection const & | ImpMoveCursor (const KeyEvent &rKeyEvent) |
TextPaM | ImpDelete (sal_uInt8 nMode, sal_uInt8 nDelMode) |
bool | IsInSelection (const TextPaM &rPaM) const |
void | ImpPaint (vcl::RenderContext &rRenderContext, const Point &rStartPos, tools::Rectangle const *pPaintArea, TextSelection const *pSelection) |
void | ImpPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) |
void | ImpShowCursor (bool bGotoCursor, bool bForceVisCursor, bool bEndKey) |
void | ImpSetSelection (const TextSelection &rSelection) |
Point | ImpGetOutputStartPos (const Point &rStartDocPos) const |
void | ImpHideDDCursor () |
void | ImpShowDDCursor () |
bool | ImplTruncateNewText (OUString &rNewText) const |
bool | ImplCheckTextLen (std::u16string_view rNewText) const |
virtual void | dragGestureRecognized (const css::datatransfer::dnd::DragGestureEvent &dge) override |
virtual void | dragDropEnd (const css::datatransfer::dnd::DragSourceDropEvent &dsde) override |
virtual void | drop (const css::datatransfer::dnd::DropTargetDropEvent &dtde) override |
virtual void | dragEnter (const css::datatransfer::dnd::DropTargetDragEnterEvent &dtdee) override |
virtual void | dragExit (const css::datatransfer::dnd::DropTargetEvent &dte) override |
virtual void | dragOver (const css::datatransfer::dnd::DropTargetDragEvent &dtde) override |
Private Attributes | |
std::unique_ptr< ImpTextView > | mpImpl |
Friends | |
class | TextEngine |
class | TextUndo |
class | TextUndoManager |
class | TextSelFunctionSet |
Definition at line 76 of file textview.hxx.
|
privatedelete |
TextView::TextView | ( | ExtTextEngine * | pEng, |
vcl::Window * | pWindow | ||
) |
Definition at line 149 of file textview.cxx.
References vcl::Window::EnableRTL(), ExtText, vcl::Window::GetDragGestureRecognizer(), vcl::Window::GetDropTarget(), TextEngine::GetFont(), vcl::Window::GetOutDev(), mpImpl, Range, vcl::Window::SetCursor(), vcl::Window::SetInputContext(), OutputDevice::SetLineColor(), Text, and TRAVEL_X_DONTKNOW.
|
overridevirtual |
Definition at line 193 of file textview.cxx.
References mpImpl.
void TextView::CenterPaM | ( | const TextPaM & | rPaM | ) |
Definition at line 2060 of file textview.cxx.
References Point::getY(), Size::Height(), mpImpl, Scroll(), and tools::Rectangle::TopLeft().
Referenced by Search().
void TextView::Command | ( | const CommandEvent & | rCEvt | ) |
Definition at line 679 of file textview.cxx.
References CursorPos, DeleteSelected(), EndExtTextInput, ExtTextInput, CommandEvent::GetCommand(), TextSelection::GetEnd(), TextLine::GetEnd(), CommandEvent::GetExtTextInputData(), TextPaM::GetIndex(), TEParaPortion::GetLineNumber(), TEParaPortion::GetLines(), TextPaM::GetPara(), GetSelection(), GetStartDocPos(), TextNode::GetText(), GetWindow(), HideCursor(), IsInsertMode(), tools::Rectangle::Left(), TEParaPortion::MarkSelectionInvalid(), tools::Rectangle::Move(), mpImpl, pData, tools::Rectangle::Right(), SAL_WARN_IF, vcl::Window::SetCursorRect(), SetInsertMode(), SetSelection(), ShowCursor(), StartExtTextInput, X, and Y.
void TextView::Copy | ( | ) |
Definition at line 908 of file textview.cxx.
References Copy(), and GetWindow().
Referenced by Copy(), ImpVclMEdit::Copy(), Cut(), KeyInput(), and MouseButtonUp().
void TextView::Copy | ( | css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & | rxClipboard | ) |
Definition at line 886 of file textview.cxx.
References GetSelected().
Definition at line 1331 of file textview.cxx.
References TextLine::GetEnd(), TextPaM::GetIndex(), TEParaPortion::GetLineNumber(), TEParaPortion::GetLines(), TEParaPortion::GetNode(), TextPaM::GetPara(), TextLine::GetStart(), TextNode::GetText(), mpImpl, and TRAVEL_X_DONTKNOW.
Referenced by VclMultiLineEdit::CanDown(), and ImpMoveCursor().
TextPaM TextView::CursorEndOfDoc | ( | ) |
Definition at line 1424 of file textview.cxx.
References TextNode::GetText(), and mpImpl.
Referenced by ImpMoveCursor().
Definition at line 1380 of file textview.cxx.
References TextLine::GetEnd(), TextPaM::GetIndex(), TEParaPortion::GetLineNumber(), TEParaPortion::GetLines(), TEParaPortion::GetNode(), TextPaM::GetPara(), TextLine::GetStart(), TextNode::GetText(), and mpImpl.
Referenced by ImpMoveCursor().
Definition at line 1410 of file textview.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), and mpImpl.
Referenced by ImpMoveCursor().
Definition at line 1170 of file textview.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), and mpImpl.
Referenced by ImpMoveCursor().
Definition at line 1130 of file textview.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), mpImpl, and nCount.
Referenced by ImpDelete(), and ImpMoveCursor().
Definition at line 1150 of file textview.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), mpImpl, and nCount.
Referenced by ImpDelete(), ImpMoveCursor(), and ImpShowCursor().
|
static |
Definition at line 1418 of file textview.cxx.
Referenced by ImpMoveCursor().
Definition at line 1368 of file textview.cxx.
References TextPaM::GetIndex(), TEParaPortion::GetLineNumber(), TEParaPortion::GetLines(), TextPaM::GetPara(), TextLine::GetStart(), and mpImpl.
Referenced by ImpMoveCursor().
Definition at line 1403 of file textview.cxx.
References TextPaM::GetIndex().
Referenced by ImpMoveCursor().
Definition at line 1295 of file textview.cxx.
References TextLine::GetEnd(), TextPaM::GetIndex(), TEParaPortion::GetLineNumber(), TEParaPortion::GetLines(), TextPaM::GetPara(), mpImpl, and TRAVEL_X_DONTKNOW.
Referenced by VclMultiLineEdit::CanUp(), and ImpMoveCursor().
Definition at line 1181 of file textview.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), and mpImpl.
Referenced by ImpMoveCursor().
Definition at line 1209 of file textview.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), and mpImpl.
Referenced by ImpMoveCursor().
void TextView::Cut | ( | ) |
Definition at line 878 of file textview.cxx.
References Copy(), DeleteSelected(), and mpImpl.
Referenced by ImpVclMEdit::Cut(), and KeyInput().
void TextView::DeleteSelected | ( | ) |
Definition at line 241 of file textview.cxx.
References ImpSetSelection(), mpImpl, and ShowCursor().
|
overrideprivatevirtual |
css::uno::RuntimeException |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 1763 of file textview.cxx.
References ImpHideDDCursor(), and mpImpl.
|
overrideprivatevirtual |
css::uno::RuntimeException |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 1865 of file textview.cxx.
|
overrideprivatevirtual |
css::uno::RuntimeException |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 1869 of file textview.cxx.
References ImpHideDDCursor().
|
overrideprivatevirtual |
css::uno::RuntimeException |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 1741 of file textview.cxx.
References GetSelected(), IsReadOnly(), mpImpl, and SAL_WARN_IF.
|
overrideprivatevirtual |
css::uno::RuntimeException |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 1875 of file textview.cxx.
References GetDocPos(), ImpHideDDCursor(), ImpShowDDCursor(), IsInSelection(), IsReadOnly(), and mpImpl.
|
overrideprivatevirtual |
css::uno::RuntimeException |
Reimplemented from vcl::unohelper::DragAndDropClient.
Definition at line 1769 of file textview.cxx.
References aData, convertLineEnd(), TextSelection::GetEnd(), SotExchange::GetFormatDataFlavor(), TextPaM::GetIndex(), TextPaM::GetPara(), TextSelection::GetStart(), TextSelection::HasRange(), HideSelection(), ImpHideDDCursor(), ImplCheckTextLen(), ImpSetSelection(), TextSelection::Justify(), LINE_SEP, LINEEND_LF, and mpImpl.
void TextView::EnableCursor | ( | bool | bEnable | ) |
Definition at line 2024 of file textview.cxx.
References mpImpl.
Referenced by VclMultiLineEdit::EnableCursor().
Definition at line 1916 of file textview.cxx.
References mpImpl, Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
Referenced by dragOver(), IsSelectionAtPoint(), and SetCursorAtPoint().
sal_Int32 TextView::GetLineNumberOfCursorInSelection | ( | ) | const |
Returns the number in paragraph of the line in which the cursor is blinking if enabled, -1 otherwise.
Definition at line 1958 of file textview.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), TEParaPortion::GetLineNumber(), TextPaM::GetPara(), GetSelection(), and mpImpl.
OUString TextView::GetSelected | ( | ) | const |
Definition at line 963 of file textview.cxx.
References GetSelected(), and GetSystemLineEnd().
Referenced by Copy(), dragGestureRecognized(), GetSelected(), and ImpVclMEdit::GetSelected().
OUString TextView::GetSelected | ( | LineEnd | aSeparator | ) | const |
Definition at line 968 of file textview.cxx.
References mpImpl.
TextSelection & TextView::GetSelection | ( | ) |
Definition at line 236 of file textview.cxx.
References mpImpl.
const TextSelection & TextView::GetSelection | ( | ) | const |
Definition at line 232 of file textview.cxx.
References mpImpl.
Referenced by VclMultiLineEdit::CanDown(), VclMultiLineEdit::CanUp(), Command(), GetLineNumberOfCursorInSelection(), ImpVclMEdit::GetSelection(), TextEngine::ImpCharsInserted(), TextEngine::ImpCharsRemoved(), ImpIndentBlock(), TextEngine::ImpParagraphInserted(), TextEngine::ImpParagraphRemoved(), MatchGroup(), MouseButtonUp(), Replace(), and Search().
const Point & TextView::GetStartDocPos | ( | ) | const |
Definition at line 2030 of file textview.cxx.
References mpImpl.
Referenced by Command(), ImpVclMEdit::ImpInitScrollBars(), ImpVclMEdit::ImpSetHScrollBarThumbPos(), and ImpVclMEdit::Notify().
TextEngine * TextView::GetTextEngine | ( | ) | const |
Definition at line 2020 of file textview.cxx.
References mpImpl.
Referenced by ImpIndentBlock(), MatchGroup(), Replace(), and Search().
vcl::Window * TextView::GetWindow | ( | ) | const |
Definition at line 2022 of file textview.cxx.
References mpImpl.
Referenced by Command(), Copy(), MouseButtonUp(), Paste(), TextEngine::SetFont(), and SetReadOnly().
Definition at line 1937 of file textview.cxx.
References mpImpl, Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
Referenced by ImpShowCursor(), and ImpShowDDCursor().
bool TextView::HasSelection | ( | ) | const |
Definition at line 2040 of file textview.cxx.
References mpImpl.
void TextView::HideCursor | ( | ) |
Definition at line 820 of file textview.cxx.
References mpImpl.
Referenced by Command(), TextEngine::RemoveView(), and SetReadOnly().
|
private |
Definition at line 325 of file textview.cxx.
References ImpShowHideSelection().
Referenced by TextSelFunctionSet::CreateAnchor(), drop(), ImpIndentBlock(), MouseButtonDown(), TextEngine::SetActiveView(), and SetSelection().
Definition at line 1229 of file textview.cxx.
References CursorLeft(), CursorRight(), DEL_LEFT, DELMODE_RESTOFWORD, DELMODE_SIMPLE, TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), and mpImpl.
Referenced by KeyInput().
Definition at line 1905 of file textview.cxx.
References mpImpl, Point::setX(), Size::Width(), Point::X(), and Point::Y().
Referenced by ImpPaint().
|
private |
Definition at line 1658 of file textview.cxx.
References mpImpl.
Referenced by dragDropEnd(), dragExit(), dragOver(), and drop().
|
private |
Definition at line 2165 of file textview.cxx.
References TextEngine::FormatAndUpdate(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), GetSelection(), TextSelection::GetStart(), TextEngine::GetText(), GetTextEngine(), TextSelection::HasRange(), HideSelection(), TextEngine::ImpDeleteText(), TextEngine::ImpInsertText(), ImpSetSelection(), TextSelection::Justify(), TextEngine::UndoActionEnd(), and TextEngine::UndoActionStart().
Referenced by IndentBlock(), and UnindentBlock().
|
private |
Definition at line 1724 of file textview.cxx.
Referenced by drop(), and KeyInput().
|
private |
|
private |
Definition at line 996 of file textview.cxx.
References aNewSelection, CursorDown(), CursorEndOfDoc(), CursorEndOfLine(), CursorEndOfParagraph(), CursorFirstWord(), CursorLeft(), CursorRight(), CursorStartOfDoc(), CursorStartOfLine(), CursorStartOfParagraph(), CursorUp(), CursorWordLeft(), CursorWordRight(), vcl::KeyCode::GetCode(), TextPaM::GetIndex(), KeyEvent::GetKeyCode(), TextPaM::GetPara(), ImpSetSelection(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_DOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_UP, LeftToRight_TopToBottom, KeyEvent::LogicalTextDirectionality(), mpImpl, PageDown(), PageUp(), RightToLeft_TopToBottom, and ShowSelection().
Referenced by KeyInput().
|
private |
Definition at line 254 of file textview.cxx.
References COL_TRANSPARENT(), OutputDevice::GetBackground(), Wallpaper::GetColor(), vcl::Font::GetFillColor(), vcl::Font::IsTransparent(), mpImpl, Color::SetAlpha(), and vcl::Font::SetFillColor().
Referenced by ImpPaint(), and Paint().
|
private |
Definition at line 284 of file textview.cxx.
References ImpGetOutputStartPos(), ImpPaint(), and mpImpl.
|
private |
Definition at line 297 of file textview.cxx.
References TextSelection::GetEnd(), TextSelection::HasRange(), and mpImpl.
Referenced by TextSelFunctionSet::CreateAnchor(), DeleteSelected(), drop(), ImpIndentBlock(), ImpMoveCursor(), InsertText(), KeyInput(), MouseButtonDown(), TextEngine::Read(), SetCursorAtPoint(), SetSelection(), TextUndo::SetSelection(), and TextUndoManager::UndoRedoEnd().
|
private |
Definition at line 1459 of file textview.cxx.
References tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), Point::AdjustX(), Point::AdjustY(), tools::Rectangle::Bottom(), CursorRight(), TETextPortionList::FindPortion(), tools::Rectangle::GetHeight(), TextPaM::GetIndex(), TETextPortion::GetKind(), TEParaPortion::GetLineNumber(), TextPaM::GetPara(), tools::Rectangle::GetSize(), TextNode::GetText(), TEParaPortion::GetTextPortions(), TETextPortion::GetWidth(), GetWindowPos(), Size::Height(), IsInsertMode(), tools::Rectangle::Left(), mpImpl, n, PORTIONKIND_TAB, tools::Rectangle::Right(), Scroll(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), Point::setX(), Point::setY(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), tools::Rectangle::TopRight(), Size::Width(), Point::X(), and Point::Y().
Referenced by KeyInput(), SetCursorAtPoint(), and ShowCursor().
|
private |
Definition at line 1667 of file textview.cxx.
References tools::Rectangle::AdjustRight(), tools::Rectangle::GetSize(), GetWindowPos(), mpImpl, tools::Rectangle::SetPos(), and tools::Rectangle::TopLeft().
Referenced by dragOver().
|
private |
Definition at line 335 of file textview.cxx.
References TextSelection::HasRange(), Invalidate(), TextSelection::Justify(), and mpImpl.
Referenced by HideSelection(), and ShowSelection().
bool TextView::IndentBlock | ( | ) |
Definition at line 2227 of file textview.cxx.
References ImpIndentBlock().
void TextView::InsertText | ( | const OUString & | rNew | ) |
Definition at line 1117 of file textview.cxx.
References ImpSetSelection(), and mpImpl.
Referenced by ImpVclMEdit::InsertText(), Paste(), and Replace().
void TextView::Invalidate | ( | ) |
Definition at line 205 of file textview.cxx.
References mpImpl.
Referenced by ImpShowHideSelection().
bool TextView::IsAutoScroll | ( | ) | const |
Definition at line 2038 of file textview.cxx.
References mpImpl.
Referenced by TextEngine::UpdateViews().
bool TextView::IsCursorEnabled | ( | ) | const |
Definition at line 2026 of file textview.cxx.
References mpImpl.
|
private |
Definition at line 1632 of file textview.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextSelection::GetStart(), TextSelection::Justify(), and mpImpl.
Referenced by dragOver(), and IsSelectionAtPoint().
bool TextView::IsInsertMode | ( | ) | const |
Definition at line 2042 of file textview.cxx.
References mpImpl.
Referenced by Command(), ImpShowCursor(), and KeyInput().
bool TextView::IsReadOnly | ( | ) | const |
Definition at line 2034 of file textview.cxx.
References mpImpl.
Referenced by ImpVclMEdit::Cut(), dragGestureRecognized(), dragOver(), ImpVclMEdit::IsReadOnly(), MouseButtonUp(), ImpVclMEdit::Paste(), and TextEngine::SetFont().
bool TextView::IsSelectionAtPoint | ( | const Point & | rPointPixel | ) |
Definition at line 1622 of file textview.cxx.
References GetDocPos(), IsInSelection(), and mpImpl.
Referenced by TextSelFunctionSet::IsSelectionAtPoint(), and MouseButtonDown().
bool TextView::KeyInput | ( | const KeyEvent & | rKeyEvent | ) |
Definition at line 356 of file textview.cxx.
References Application::AnyInput(), COPY, Copy(), CUT, Cut(), DEL_LEFT, DEL_RIGHT, DELMODE_RESTOFCONTENT, DELMODE_RESTOFWORD, DELMODE_SIMPLE, DONTKNOW, KeyEvent::GetCharCode(), vcl::KeyCode::GetCode(), TextSelection::GetEnd(), vcl::KeyCode::GetFunction(), KeyEvent::GetKeyCode(), getLength(), TextPaM::GetPara(), GetSystemPrimarySelection(), TextNode::GetText(), TextSelection::HasRange(), ImpDelete(), ImplCheckTextLen(), ImpMoveCursor(), ImpSetSelection(), ImpShowCursor(), IsInsertMode(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), TextEngine::IsSimpleCharInput(), KEY_BACKSPACE, KEY_DELETE, KEY_DOWN, KEY_END, KEY_HOME, KEY_INSERT, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RETURN, KEY_RIGHT, KEY_TAB, KEY_UP, KEYBOARD, mpImpl, n, PASTE, Paste(), REDO, Redo(), SetInsertMode(), TRAVEL_X_DONTKNOW, u, UNDO, and Undo().
void TextView::MatchGroup | ( | ) |
Definition at line 2045 of file textview.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), GetSelection(), TextSelection::GetStart(), GetTextEngine(), TextSelection::HasRange(), TextSelection::Justify(), MatchGroup(), and SetSelection().
Referenced by MatchGroup().
void TextView::MouseButtonDown | ( | const MouseEvent & | rMouseEvent | ) |
Definition at line 616 of file textview.cxx.
References MouseEvent::GetClicks(), TextSelection::GetEnd(), TextPaM::GetIndex(), MouseEvent::GetPosPixel(), TextSelection::GetStart(), HideSelection(), ImpSetSelection(), MouseEvent::IsMod2(), IsSelectionAtPoint(), MouseEvent::IsShift(), mpImpl, SetCursorAtPoint(), ShowCursor(), ShowSelection(), and TRAVEL_X_DONTKNOW.
void TextView::MouseButtonUp | ( | const MouseEvent & | rMouseEvent | ) |
Definition at line 596 of file textview.cxx.
References Copy(), GetSelection(), GetSystemPrimarySelection(), GetWindow(), MouseEvent::IsLeft(), MouseEvent::IsMiddle(), IsReadOnly(), mpImpl, Paste(), PasteSelection, and TRAVEL_X_DONTKNOW.
void TextView::MouseMove | ( | const MouseEvent & | rMouseEvent | ) |
Definition at line 673 of file textview.cxx.
References mpImpl, and TRAVEL_X_DONTKNOW.
References Command, Copy, Cut, GetSelection(), InsertText, IsReadOnly(), Paste, Read, Redo, Replace, Scroll, Search, and Undo.
Definition at line 1445 of file textview.cxx.
References Point::AdjustX(), Point::AdjustY(), tools::Rectangle::BottomRight(), mpImpl, Point::setY(), and Point::Y().
Referenced by ImpMoveCursor().
Definition at line 1432 of file textview.cxx.
References Point::AdjustX(), Point::AdjustY(), mpImpl, Point::setY(), tools::Rectangle::TopLeft(), and Point::Y().
Referenced by ImpMoveCursor().
void TextView::Paint | ( | vcl::RenderContext & | rRenderContext, |
const tools::Rectangle & | rRect | ||
) |
Definition at line 279 of file textview.cxx.
References ImpPaint().
void TextView::Paste | ( | ) |
Definition at line 957 of file textview.cxx.
References GetWindow(), and Paste().
Referenced by KeyInput(), MouseButtonUp(), Paste(), and ImpVclMEdit::Paste().
void TextView::Paste | ( | css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & | rxClipboard | ) |
Definition at line 914 of file textview.cxx.
References aData, SotExchange::GetFormatDataFlavor(), ImplTruncateNewText(), InsertText(), mpImpl, and Edit::ShowTruncationWarning().
void TextView::Read | ( | SvStream & | rInput | ) |
Definition at line 1692 of file textview.cxx.
References mpImpl, and ShowCursor().
void TextView::Redo | ( | ) |
sal_uInt16 TextView::Replace | ( | const i18nutil::SearchOptions2 & | rSearchOptions, |
bool | bAll, | ||
bool | bForward | ||
) |
Definition at line 2102 of file textview.cxx.
References TextEngine::FormatAndUpdate(), TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), GetSelection(), TextSelection::GetStart(), GetTextEngine(), TextEngine::ImpInsertText(), InsertText(), TextSelection::Justify(), i18nutil::SearchOptions2::replaceString, Search(), ExtTextEngine::Search(), i18nutil::SearchOptions2::searchFlag, SetSelection(), TextEngine::UndoActionEnd(), and TextEngine::UndoActionStart().
void TextView::Scroll | ( | tools::Long | nHorzScroll, |
tools::Long | nVertScroll | ||
) |
Definition at line 825 of file textview.cxx.
References Point::AdjustX(), Point::AdjustY(), mpImpl, SAL_WARN_IF, Point::setX(), Point::setY(), Point::X(), and Point::Y().
Referenced by CenterPaM(), ImpShowCursor(), and ImpVclMEdit::Notify().
bool TextView::Search | ( | const i18nutil::SearchOptions2 & | rSearchOptions, |
bool | bForward | ||
) |
Definition at line 2074 of file textview.cxx.
References CenterPaM(), TextSelection::GetEnd(), GetSelection(), TextSelection::GetStart(), GetTextEngine(), Search(), SetSelection(), and ShowCursor().
void TextView::SetAutoIndentMode | ( | bool | bAutoIndent | ) |
Definition at line 2032 of file textview.cxx.
References mpImpl.
void TextView::SetAutoScroll | ( | bool | bAutoScroll | ) |
Definition at line 2036 of file textview.cxx.
References mpImpl.
void TextView::SetCursorAtPoint | ( | const Point & | rPointPixel | ) |
Definition at line 1592 of file textview.cxx.
References GetDocPos(), TextSelection::GetEnd(), TextSelection::GetStart(), ImpSetSelection(), ImpShowCursor(), mpImpl, and ShowSelection().
Referenced by MouseButtonDown(), and TextSelFunctionSet::SetCursorAtPoint().
void TextView::SetInsertMode | ( | bool | bInsert | ) |
Definition at line 973 of file textview.cxx.
References mpImpl, and ShowCursor().
Referenced by Command(), and KeyInput().
void TextView::SetPaintSelection | ( | bool | bPaint | ) |
Definition at line 1683 of file textview.cxx.
References mpImpl, and ShowSelection().
void TextView::SetReadOnly | ( | bool | bReadOnly | ) |
Definition at line 982 of file textview.cxx.
References bReadOnly, ExtText, GetWindow(), HideCursor(), mpImpl, NONE, vcl::Window::SetInputContext(), ShowCursor(), and Text.
Referenced by ImpVclMEdit::InitFromStyle(), and ImpVclMEdit::SetReadOnly().
void TextView::SetSelection | ( | const TextSelection & | rNewSel | ) |
Definition at line 227 of file textview.cxx.
References mpImpl, and SetSelection().
Referenced by Command(), TextEngine::InsertView(), MatchGroup(), Replace(), Search(), ImpVclMEdit::SetSelection(), SetSelection(), and ImpVclMEdit::SetText().
void TextView::SetSelection | ( | const TextSelection & | rNewSel, |
bool | bGotoCursor | ||
) |
Definition at line 210 of file textview.cxx.
References HideSelection(), ImpSetSelection(), mpImpl, ShowCursor(), and ShowSelection().
void TextView::SetStartDocPos | ( | const Point & | rPos | ) |
Definition at line 2028 of file textview.cxx.
References mpImpl.
void TextView::ShowCursor | ( | bool | bGotoCursor = true , |
bool | bForceVisCursor = true |
||
) |
Definition at line 812 of file textview.cxx.
References ImpShowCursor(), and mpImpl.
Referenced by Command(), DeleteSelected(), MouseButtonDown(), Read(), Search(), SetInsertMode(), SetReadOnly(), SetSelection(), TextEngine::SetUpdateMode(), and TextEngine::UpdateViews().
|
private |
Definition at line 320 of file textview.cxx.
References ImpShowHideSelection().
Referenced by ImpMoveCursor(), MouseButtonDown(), TextEngine::SetActiveView(), SetCursorAtPoint(), SetPaintSelection(), and SetSelection().
|
private |
Definition at line 330 of file textview.cxx.
References ImpShowHideSelection().
void TextView::Undo | ( | ) |
bool TextView::UnindentBlock | ( | ) |
Definition at line 2232 of file textview.cxx.
References ImpIndentBlock().
|
friend |
Definition at line 78 of file textview.hxx.
|
friend |
Definition at line 81 of file textview.hxx.
|
friend |
Definition at line 79 of file textview.hxx.
|
friend |
Definition at line 80 of file textview.hxx.
|
private |
Definition at line 83 of file textview.hxx.
Referenced by CenterPaM(), Command(), TextSelFunctionSet::CreateAnchor(), CursorDown(), CursorEndOfDoc(), CursorEndOfLine(), CursorEndOfParagraph(), CursorFirstWord(), CursorLeft(), CursorRight(), CursorStartOfLine(), CursorUp(), CursorWordLeft(), CursorWordRight(), Cut(), DeleteSelected(), dragDropEnd(), dragGestureRecognized(), dragOver(), drop(), EnableCursor(), GetDocPos(), GetLineNumberOfCursorInSelection(), GetSelected(), GetSelection(), GetStartDocPos(), GetTextEngine(), GetWindow(), GetWindowPos(), HasSelection(), HideCursor(), ImpDelete(), ImpGetOutputStartPos(), ImpHideDDCursor(), ImplCheckTextLen(), ImplTruncateNewText(), ImpMoveCursor(), ImpPaint(), ImpSetSelection(), ImpShowCursor(), ImpShowDDCursor(), ImpShowHideSelection(), InsertText(), Invalidate(), IsAutoScroll(), IsCursorEnabled(), IsInSelection(), IsInsertMode(), IsReadOnly(), IsSelectionAtPoint(), KeyInput(), MouseButtonDown(), MouseButtonUp(), MouseMove(), PageDown(), PageUp(), Paste(), Read(), Redo(), Scroll(), SetAutoIndentMode(), SetAutoScroll(), SetCursorAtPoint(), SetInsertMode(), SetPaintSelection(), SetReadOnly(), SetSelection(), SetStartDocPos(), ShowCursor(), TextView(), Undo(), and ~TextView().