LibreOffice Module sd (master) 1
|
#include <annotationwindow.hxx>
Public Member Functions | |
AnnotationTextWindow (AnnotationWindow &rContents) | |
virtual EditView * | GetEditView () const override |
virtual EditEngine * | GetEditEngine () const override |
virtual void | EditViewScrollStateChange () override |
void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const ::tools::Rectangle &rRect) override |
virtual bool | KeyInput (const KeyEvent &rKeyEvt) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
Public Member Functions inherited from WeldEditView | |
WeldEditView () | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual int | GetSurroundingText (OUString &rSurrounding) override |
virtual bool | DeleteSurroundingText (const Selection &rRange) override |
void | SetText (const OUString &rStr) |
OUString | GetText () const |
virtual FactoryFunction | GetUITestFactory () const override |
void | SetModifyHdl (const Link< LinkParamNone *, void > &rLink) |
virtual EditView * | GetEditView () const |
virtual EditEngine * | GetEditEngine () const |
bool | HasSelection () const |
void | Delete () |
void | Cut () |
void | Copy () |
void | Paste () |
virtual | ~WeldEditView () override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual bool | CanFocus () const |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
virtual void | Resize () override |
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const override |
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () override |
bool | GetAcceptsTab () const |
void | SetAcceptsTab (bool bAcceptsTab) |
Private Attributes | |
AnnotationWindow & | mrContents |
Additional Inherited Members | |
Protected Member Functions inherited from WeldEditView | |
virtual void | makeEditEngine () |
void | InitAccessible () |
void | DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
virtual void | EditViewInvalidate (const tools::Rectangle &rRect) override |
virtual void | EditViewSelectionChange () override |
virtual OutputDevice & | EditViewOutputDevice () const override |
virtual Point | EditViewPointerPosPixel () const override |
virtual void | EditViewInputContext (const InputContext &rInputContext) override |
virtual void | EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth) override |
virtual weld::Widget * | EditViewPopupParent () const override |
Protected Attributes inherited from WeldEditView | |
bool | m_bAcceptsTab |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | m_xDropTarget |
std::unique_ptr< EditEngine > | m_xEditEngine |
std::unique_ptr< EditView > | m_xEditView |
rtl::Reference< WeldEditAccessible > | m_xAccessible |
Definition at line 41 of file annotationwindow.hxx.
sd::AnnotationTextWindow::AnnotationTextWindow | ( | AnnotationWindow & | rContents | ) |
Definition at line 150 of file annotationwindow.cxx.
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 602 of file annotationwindow.cxx.
References Any, aStr, bReadOnly, WeldEditView::Command(), OutlinerView::Copy(), Application::CreateBuilder(), TransferableDataHelper::CreateFromClipboard(), sd::AnnotationWindow::DocShell(), sd::AnnotationWindow::DoResize(), EE_CHAR_ITALIC(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), Get(), SfxItemSet::Get(), sd::AnnotationWindow::getAnnotation(), OutlinerView::GetAttribs(), WeldEditView::GetClipboard(), CommandEvent::GetCommand(), vcl::CommandInfoProvider::GetCommandProperties(), SfxViewFrame::GetDispatcher(), Outliner::GetEmptyItemSet(), TransferableDataHelper::GetFormatCount(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SvtUserOptions::GetFullName(), SfxItemSet::GetItemState(), vcl::CommandInfoProvider::GetMenuLabelForCommand(), vcl::CommandInfoProvider::GetModuleIdentifier(), CommandEvent::GetMousePosPixel(), sd::AnnotationWindow::GetOutliner(), sd::AnnotationWindow::GetOutlinerView(), sd::ViewShell::GetViewFrame(), sd::DrawDocShell::GetViewShell(), vcl::CommandInfoProvider::GetXGraphicForCommand(), OutlinerView::HasSelection(), sd::AnnotationWindow::IsProtected(), SfxObjectShell::IsReadOnly(), ITALIC_NONE, ITALIC_NORMAL, LINESTYLE_NONE, LINESTYLE_SINGLE, mrContents, OutlinerView::PasteSpecial(), SfxItemSet::Put(), SdResId(), OutlinerView::SetAttribs(), sId, STRIKEOUT_NONE, STRIKEOUT_SINGLE, TRISTATE_INDET, TRISTATE_TRUE, WEIGHT_BOLD, WEIGHT_NORMAL, and xFrame.
|
overridevirtual |
Definition at line 86 of file annotationwindow.cxx.
References mrContents, and sd::AnnotationWindow::SetScrollbar().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 163 of file annotationwindow.cxx.
References EditView::GetEditEngine(), OutlinerView::GetEditView(), sd::AnnotationWindow::GetOutlinerView(), and mrContents.
Referenced by KeyInput(), and SetDrawingArea().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 155 of file annotationwindow.cxx.
References OutlinerView::GetEditView(), sd::AnnotationWindow::GetOutlinerView(), and mrContents.
Referenced by KeyInput(), and SetDrawingArea().
|
overridevirtual |
HACK: need to switch off processing of Undo/Redo in Outliner
Reimplemented from WeldEditView.
Definition at line 91 of file annotationwindow.cxx.
References sd::AnnotationWindow::DocShell(), EditEngine::DoesKeyChangeText(), SfxDispatcher::Execute(), vcl::KeyCode::GetCode(), SfxViewFrame::GetDispatcher(), GetEditEngine(), GetEditView(), KeyEvent::GetKeyCode(), EditEngine::GetParagraphCount(), sd::AnnotationWindow::GetPostItTextHeight(), EditEngine::GetTextLen(), sd::ViewShell::GetViewFrame(), sd::DrawDocShell::GetViewShell(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), sd::AnnotationWindow::IsProtected(), KEY_A, KEY_INSERT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_Y, KEY_Z, mrContents, sd::AnnotationWindow::ResizeIfNecessary(), and sd::AnnotationWindow::ToggleInsMode().
|
overridevirtual |
Definition at line 72 of file annotationwindow.cxx.
References WeldEditView::DoPaint(), OutputDevice::DrawGradient(), StyleSettings::GetHighContrastMode(), Application::GetSettings(), AllSettings::GetStyleSettings(), sd::AnnotationWindow::maColor, sd::AnnotationWindow::maColorLight, mrContents, and OutputDevice::PixelToLogic().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 171 of file annotationwindow.cxx.
References weld::DrawingArea::get_ref_device(), GetEditEngine(), GetEditView(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), Size::Height(), WeldEditView::InitAccessible(), OutputDevice::PixelToLogic(), weld::DrawingArea::set_cursor(), weld::Widget::set_size_request(), OutputDevice::SetBackground(), EditView::SetBackgroundColor(), weld::CustomWidgetController::SetDrawingArea(), EditView::setEditViewCallbacks(), OutputDevice::SetMapMode(), EditView::SetOutputArea(), EditEngine::SetPaperSize(), EditEngine::SetRefDevice(), and Size::Width().
|
private |
Definition at line 44 of file annotationwindow.hxx.
Referenced by Command(), EditViewScrollStateChange(), GetEditEngine(), GetEditView(), KeyInput(), and Paint().