28#include <LibreOfficeKit/LibreOfficeKitEnums.h>
30#define CONTROL_BORDER_WIDTH 1
52 aTrianglePolygon.
SetPoint({ nX + nSize / 2, nY }, 0);
53 aTrianglePolygon.
SetPoint({ nX + nSize / 2, nY + nSize }, 1);
54 aTrianglePolygon.
SetPoint({ nX, nY + nSize / 2 }, 2);
55 aTrianglePolygon.
SetPoint({ nX + nSize / 2, nY }, 3);
59 aTrianglePolygon.
SetPoint({ nX, nY }, 0);
60 aTrianglePolygon.
SetPoint({ nX + nSize / 2, nY + nSize / 2 }, 1);
61 aTrianglePolygon.
SetPoint({ nX, nY + nSize }, 2);
62 aTrianglePolygon.
SetPoint({ nX, nY }, 3);
67 aTrianglePolygon.
SetPoint({ nX, nY + nSize / 2 }, 0);
68 aTrianglePolygon.
SetPoint({ nX + nSize, nY + nSize / 2 }, 1);
69 aTrianglePolygon.
SetPoint({ nX + nSize / 2, nY + nSize }, 2);
70 aTrianglePolygon.
SetPoint({ nX, nY + nSize / 2 }, 3);
84 , mpViewShell(pViewSh)
86 , mbIsHighlighted(false)
87 , maFadeTimer(
"sw::SwCommentRuler maFadeTimer")
114 SvxRuler::Paint(rRenderContext, rRect);
158 Point aArrowPos(0, (aControlRect.
GetHeight() - nTriangleSize) / 2);
162 aArrowPos.
setX(nTrianglePad);
163 aLabelPos.
setX(aArrowPos.
X() + nTriangleSize + nTrianglePad);
172 aLabelPos.
setX(aArrowPos.
X() - nTrianglePad - nLabelWidth);
177 aArrowPos.
setX(nLabelWidth + nTrianglePad + nTriangleSize);
178 aLabelPos.
setX(aArrowPos.
X() - nTrianglePad - nLabelWidth);
185 ImplDrawArrow(*
maVirDev, aArrowPos.
X(), aArrowPos.
Y(), nTriangleSize, aTextColor, bIsCollapsed);
221 SvxRuler::MouseButtonDown(rMEvt);
264 auto tabsNode = rJsonWriter.
startNode(
"tabs");
268 for (
auto const& tab : GetTabs())
270 auto tabNode = rJsonWriter.
startNode(
"");
272 rJsonWriter.
put(
"style", tab.nStyle);
305 pTooltipResId = STR_HIDE_COMMENTS;
307 pTooltipResId = STR_SHOW_COMMENTS;
308 SetQuickHelpText(
SwResId(pTooltipResId));
327 nLeft += GetBorderOffset() - nSidebarWidth;
335 tools::Long nBottom = nTop + GetRulerVirHeight() - 3;
346 Color aColor = rHighColor;
353 const int nStep = 25;
354 if (mbIsHighlighted && mnFadeRate < 100)
356 else if (!mbIsHighlighted && mnFadeRate > 0)
363 if (mnFadeRate != 0 && mnFadeRate != 100)
constexpr auto convertTwipToMm100(N n)
const StyleSettings & GetStyleSettings() const
static bool GetLayoutRTL()
void Merge(const Color &rMergeColor, sal_uInt8 cTransparency)
const Point & GetMousePosPixel() const
const Point & GetPosPixel() const
void DrawPolygon(const tools::Polygon &rPoly)
SAL_DLLPRIVATE void DrawOutDev(const Point &, const Size &, const Point &, const Size &, const Printer &)=delete
const AllSettings & GetSettings() const
constexpr tools::Long Y() const
void setX(tools::Long nX)
constexpr tools::Long X() const
virtual void libreOfficeKitViewCallback(int nType, const OString &pPayload) const override
SfxViewFrame & GetViewFrame() const
const Color & GetShadowColor() const
const Color & GetWorkspaceColor() const
const Color & GetDialogColor() const
const Color & GetHighlightColor() const
const Color & GetHighlightTextColor() const
const Color & GetButtonTextColor() const
virtual void MouseMove(const MouseEvent &rMEvt) override
virtual void Command(const CommandEvent &rCEvt) override
tools::Long GetPageWidth() const
virtual void dispose() override
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
tools::ULong GetSidebarWidth(bool bPx=false) const
tools::ULong GetSidebarBorderWidth(bool bPx=false) const
SfxViewShell * GetSfxViewShell() const
const SwPostItMgr * GetPostItMgr() const
void ExecViewOptions(SfxRequest &)
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
tools::Long GetFontHeight() const
void SetFontHeight(tools::Long nHeight)
#define LINK(Instance, Class, Member)
OUString SwResId(TranslateId aId)
#define CONTROL_BORDER_WIDTH
IMPL_LINK_NOARG(SwCommentRuler, FadeHandler, Timer *, void)