29 #include <strings.hrc>
32 #include <officecfg/Office/Common.hxx>
47 #include <editeng/editeng.hxx>
65 : mrSidebarWin(rSidebarWin)
67 , mrPostItMgr(rPostItMgr)
68 , mbMouseDownGainingFocus(false)
93 SetOutputSizePixel(aSize);
129 m_xEditView->SetCursorLogicPosition(aMousePos, bPoint, bClearMark);
158 const OutputDevice& rOutDev = pEditView->GetOutputDevice();
173 const char* pResId =
nullptr;
178 default: pResId =
nullptr;
185 OUString sText =
SwResId(pResId) +
": " +
202 OutputDevice& rDevice = GetDrawingArea()->get_ref_device();
213 pDev->
Push(PushFlags::LINECOLOR);
216 Point aBottomRight(rPt);
217 aBottomRight.Move(aSize);
220 Point aTopRight(rPt);
221 aTopRight.Move(
Size(aSize.Width(), 0));
223 Point aBottomLeft(rPt);
224 aBottomLeft.Move(
Size(0, aSize.Height()));
226 pDev->
DrawLine(aTopRight, aBottomLeft);
233 Size aSize = GetOutputSizePixel();
250 DoPaint(rRenderContext, rRect);
256 if ( bIsAntiAliasing )
266 if ( bIsAntiAliasing )
291 sal_uInt16 nKey = rKeyCode.
GetCode();
328 std::unique_ptr<weld::Builder> xBuilder(
Application::CreateBuilder(GetDrawingArea(),
"modules/swriter/ui/inforeadonlydialog.ui"));
329 std::unique_ptr<weld::MessageDialog> xQuery(xBuilder->weld_message_dialog(
"InfoReadonlyDialog"));
358 const OutputDevice& rOutDev = pEditView->GetOutputDevice();
366 pEditView->MouseButtonDown( rMEvt );
368 const OUString& sURL( pURL->
GetURL() );
402 if ( rInfo.nCommand == SpellCallbackCommand::STARTSPELLDLG )
412 if ( rCEvt.
GetCommand() == CommandEventId::ContextMenu )
414 if (IsMouseCaptured())
430 const Size aSize = GetOutputSizePixel();
437 else if (rCEvt.
GetCommand() == CommandEventId::Wheel)
bool IsOptionSet(EOption eOption) const
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
SfxViewFrame * GetViewFrame() const
#define LINK(Instance, Class, Member)
void setEditViewCallbacks(EditViewCallbacks *pEditViewCallbacks)
bool IsScrollbarVisible() const
void ExecuteSpellPopup(const Point &rPosPixel, const Link< SpellCallbackInfo &, void > &rCallBack)
bool SetActiveSidebarWin()
void SetAntialiasing(AntialiasingFlags nMode)
constexpr sal_uInt16 KEY_MOD1
OUString const & GetAuthorString(sal_uInt16 nPos=0) const
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
std::unique_ptr< ContentProperties > pData
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
constexpr sal_uInt16 KEY_F5
const Color & ColorLight()
static weld::Builder * CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false)
sal_uInt16 GetCode() const
const CommandWheelData * GetWheelData() const
void DoPaint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
const OUString & GetTargetFrame() const
constexpr sal_uInt16 KEY_Y
AntialiasingFlags GetAntialiasing() const
void ExecutePopup(const OUString &rResName, vcl::Window *pWin=nullptr, const Point *pPos=nullptr)
SwWrtShell & GetWrtShell() const
tools::Long GetPostItTextHeight()
Used by the UI to modify the document model.
constexpr tools::Long Width() const
void LoadURL(SwViewShell &rVSh, const OUString &rURL, LoadUrlFlags nFilter, const OUString &rTargetFrameName)
bool IsMouseEvent() const
const DateTime & GetTimeStamp(sal_uInt16 nPos=0) const
constexpr sal_uInt16 KEY_PAGEUP
bool GetHighContrastMode() const
union SwContentAtPos::@24 aFnd
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
constexpr tools::Long getHeight() const
virtual OutputDevice & get_ref_device()=0
void DrawLine(const Point &rStartPt, const Point &rEndPt)
EditView & GetEditView() const
SwDoc * GetDoc()
returns Doc. But be careful!
static bool DoesKeyChangeText(const KeyEvent &rKeyEvent)
virtual void set_cursor(PointerStyle ePointerStyle)=0
void dumpAsXml(xmlTextWriterPtr=nullptr) const
Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by...
EditEngine * GetEditEngine() const
SfxBindings & GetBindings()
void SetRefDevice(OutputDevice *pRefDef)
const Color & GetChangeColor() const
Point const & GetAnchorPos()
void MakeVisible(const sw::annotation::SwAnnotationWin *pPostIt)
CommandEventId GetCommand() const
constexpr sal_uInt16 KEY_PAGEDOWN
std::unique_ptr< EditView > m_xEditView
virtual void GetFocus() override
void SwitchToPostIt(sal_uInt16 aDirection)
const AllSettings & GetSettings() const
OUString SwResId(const char *pId)
sal_uInt16 GetModifier() const
void ResizeIfNecessary(tools::Long aOldHeight, tools::Long aNewHeight)
SwDocShell * GetDocShell()
const OUString & GetURL() const
const Point & GetMousePosPixel() const
Point PixelToLogic(const Point &rDevicePt) const
void SetPaperSize(const Size &rSize)
const vcl::KeyCode & GetKeyCode() const
bool PostKeyEvent(const KeyEvent &rKeyEvent, vcl::Window const *pFrameWin=nullptr)
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
#define FN_SPELL_GRAMMAR_DIALOG
constexpr tools::Long Height() const
constexpr sal_uInt16 KEY_ESCAPE
constexpr sal_uInt16 KEY_F12
const Color & GetWindowColor() const
bool IsWrongSpelledWordAtPos(const Point &rPosPixel, bool bMarkIfWrong=false)
const Point & GetPosPixel() const
sal_uInt16 GetFullCode() const
const SwRangeRedline * pRedl
bool IsMouseOverSidebarWin() const
OutlinerView * GetOutlinerView()
void SetOutputArea(const tools::Rectangle &rRect)
void setHeight(tools::Long nHeight)
virtual bool KeyInput(const KeyEvent &rKeyEvent)
constexpr sal_uInt16 KEY_Z
void InvalidateAll(bool bWithMsg)
virtual void LoseFocus() override
bool HandleWheelCommands(const CommandEvent &)
constexpr tools::Long getWidth() const
bool GetContentAtPos(const Point &rPt, SwContentAtPos &rContentAtPos, bool bSetCursor=false, SwRect *pFieldRect=nullptr)
virtual bool Command(const CommandEvent &rCEvt) override
constexpr sal_uInt16 KEY_INSERT
void SetBackgroundColor(const Color &rColor)
virtual OutputDevice & EditViewOutputDevice() const override
static OUString GetURLHelpText(std::u16string_view)
void Push(PushFlags nFlags=PushFlags::ALL)
void DrawGradient(const tools::Rectangle &rRect, const Gradient &rGradient)
const Color & ColorDark()
const SvxFieldData * GetField() const