20#include <config_wasm_strip.h>
33#include <officecfg/Office/Common.hxx>
49#include <editeng/editeng.hxx>
66 : mrSidebarWin(rSidebarWin)
68 , mrPostItMgr(rPostItMgr)
69 , mbMouseDownGainingFocus(false)
94 SetOutputSizePixel(aSize);
127#if !ENABLE_WASM_STRIP_ACCESSIBILITY
135 m_xEditView->SetCursorLogicPosition(aMousePos, bPoint, bClearMark);
166 const OutputDevice& rOutDev = pEditView->GetOutputDevice();
193 OUString sText =
SwResId(pResId) +
": " +
210 OutputDevice& rDevice = GetDrawingArea()->get_ref_device();
224 Point aBottomRight(rPt);
225 aBottomRight.
Move(aSize);
228 Point aTopRight(rPt);
231 Point aBottomLeft(rPt);
234 pDev->
DrawLine(aTopRight, aBottomLeft);
241 Size aSize = GetOutputSizePixel();
258 DoPaint(rRenderContext, rRect);
265 if ( bIsAntiAliasing )
275 if ( bIsAntiAliasing )
299 sal_uInt16 nKey = rKeyCode.
GetCode();
361 const OutputDevice& rOutDev = pEditView->GetOutputDevice();
369 pEditView->MouseButtonDown( rMEvt );
371 const OUString& sURL( pURL->
GetURL() );
406 GetDrawingArea()->set_cursor(PointerStyle::Text);
412 if ( rInfo.nCommand == SpellCallbackCommand::STARTSPELLDLG )
422 if ( rCEvt.
GetCommand() == CommandEventId::ContextMenu )
424 if (IsMouseCaptured())
440 const Size aSize = GetOutputSizePixel();
447 else if (rCEvt.
GetCommand() == CommandEventId::Wheel)
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
CommandEventId GetCommand() const
const CommandWheelData * GetWheelData() const
const Point & GetMousePosPixel() const
bool IsMouseEvent() const
const Size & GetPaperSize() const
void SetRefDevice(OutputDevice *pRefDef)
void SetPaperSize(const Size &rSize)
static bool DoesKeyChangeText(const KeyEvent &rKeyEvent)
bool IsWrongSpelledWordAtPos(const Point &rPosPixel, bool bMarkIfWrong=false)
bool ExecuteSpellPopup(const Point &rPosPixel, const Link< SpellCallbackInfo &, void > &rCallBack)
void SetOutputArea(const tools::Rectangle &rRect)
bool PostKeyEvent(const KeyEvent &rKeyEvent, vcl::Window const *pFrameWin=nullptr)
void SetBackgroundColor(const Color &rColor)
EditEngine * GetEditEngine() const
void setEditViewCallbacks(EditViewCallbacks *pEditViewCallbacks)
virtual OutputDevice * getReferenceDevice(bool bCreate) const =0
Returns the current reference device.
const vcl::KeyCode & GetKeyCode() const
bool IsEnterWindow() const
sal_uInt16 GetModifier() const
const Point & GetPosPixel() const
EditView & GetEditView() const
void SetAntialiasing(AntialiasingFlags nMode)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void DrawLine(const Point &rStartPt, const Point &rEndPt)
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
void DrawGradient(const tools::Rectangle &rRect, const Gradient &rGradient)
AntialiasingFlags GetAntialiasing() const
const AllSettings & GetSettings() const
void Move(tools::Long nHorzMove, tools::Long nVertMove)
void InvalidateAll(bool bWithMsg)
void ExecutePopup(const OUString &rResName, vcl::Window *pWin=nullptr, const Point *pPos=nullptr)
static OUString GetURLHelpText(std::u16string_view)
SfxBindings & GetBindings()
SfxViewFrame & GetViewFrame() const
virtual bool KeyInput(const KeyEvent &rKeyEvent)
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
constexpr tools::Long getWidth() const
constexpr tools::Long Width() const
const Color & GetWindowColor() const
bool GetHighContrastMode() const
const SvxFieldData * GetField() const
const OUString & GetTargetFrame() const
const OUString & GetURL() const
bool GetContentAtPos(const Point &rPt, SwContentAtPos &rContentAtPos, bool bSetCursor=false, SwRect *pFieldRect=nullptr)
SwDoc * GetDoc()
returns Doc. But be careful!
void dumpAsXml(xmlTextWriterPtr=nullptr) const
Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by...
void MakeVisible(const sw::annotation::SwAnnotationWin *pPostIt)
tools::ULong GetSidebarWidth(bool bPx=false) const
OUString const & GetAuthorString(sal_uInt16 nPos=0) const
const DateTime & GetTimeStamp(sal_uInt16 nPos=0) const
const IDocumentDeviceAccess & getIDocumentDeviceAccess() const
Provides access to the document device interface.
SwWrtShell & GetWrtShell() const
bool HandleWheelCommands(const CommandEvent &)
SwDocShell * GetDocShell()
Used by the UI to modify the document model.
virtual void InfoReadOnlyDialog(bool bAsync) const override
Selected area has readonly content.
std::unique_ptr< EditView > m_xEditView
void DoPaint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
virtual bool Command(const CommandEvent &rCEvt) override
virtual OutputDevice & EditViewOutputDevice() const override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual bool MouseMove(const MouseEvent &rMEvt) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual void GetFocus() override
virtual void LoseFocus() override
void SwitchToPostIt(sal_uInt16 aDirection)
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
bool IsScrollbarVisible() const
bool IsReadOnlyOrProtected() const
const Color & GetChangeColor() const
tools::Long GetPostItTextHeight()
const Color & ColorDark()
void LockView(bool bLock)
bool IsMouseOverSidebarWin() const
const Color & ColorLight()
bool SetActiveSidebarWin()
OutlinerView * GetOutlinerView()
void ResizeIfNecessary(tools::Long aOldHeight, tools::Long aNewHeight)
Point const & GetAnchorPos()
sal_uInt16 GetCode() const
sal_uInt16 GetFullCode() const
virtual OutputDevice & get_ref_device()=0
virtual void set_cursor(PointerStyle ePointerStyle)=0
#define FN_SPELL_GRAMMAR_DIALOG
constexpr sal_uInt16 KEY_ESCAPE
constexpr sal_uInt16 KEY_MOD1
constexpr sal_uInt16 KEY_F5
constexpr sal_uInt16 KEY_PAGEDOWN
constexpr sal_uInt16 KEY_Z
constexpr sal_uInt16 KEY_Y
constexpr sal_uInt16 KEY_F12
constexpr sal_uInt16 KEY_PAGEUP
constexpr sal_uInt16 KEY_INSERT
#define LINK(Instance, Class, Member)
std::unique_ptr< sal_Int32[]> pData
bool IsOptionSet(EOption eOption)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
union SwContentAtPos::@21 aFnd
const SwRangeRedline * pRedl
OUString SwResId(TranslateId aId)
void LoadURL(SwViewShell &rVSh, const OUString &rURL, LoadUrlFlags nFilter, const OUString &rTargetFrameName)