23#include <bitmaps.hlst>
65 m_aVRuler->SetUnit(MeasurementSystem::Metric == eSystem ? FieldUnit::CM : FieldUnit::INCH);
128 aStartColor.
RGBtoHSB(nHue, nSat, nBri);
131 Gradient aGradient(css::awt::GradientStyle_LINEAR,aStartColor,aEndColor);
150 rRenderContext.
Pop();
156 Size(aSize.
Width() - nCornerWidth - nCornerWidth,
157 aSize.
Height() - nCornerHeight - nCornerHeight));
163 rRenderContext.
Pop();
174 if( aPos.
X() > aOutputSize.
Width() || aPos.
Y() > aOutputSize.
Height() )
223 const Point aRulerPos(nOutputWidth - nVRulerWidth,0);
224 m_aVRuler->SetPosSizePixel(aRulerPos,
Size(nVRulerWidth,nOutputHeight));
233 Point aPos(aImageSize.
Width() + (nExtraWidth * 2), nExtraWidth);
237 aPos.
setX( nExtraWidth );
256 if (rHint.
GetId() == SfxHintId::ColorsChanged)
281 if( rHEvt.
GetMode() == HelpEventMode::BALLOON )
#define REPORT_EXTRA_SPACE
static const AllSettings & GetSettings()
sal_uInt8 GetLuminance() const
void RGBtoHSB(sal_uInt16 &nHue, sal_uInt16 &nSaturation, sal_uInt16 &nBrightness) const
void IncreaseLuminance(sal_uInt8 cLumInc)
static Color HSBtoRGB(sal_uInt16 nHue, sal_uInt16 nSaturation, sal_uInt16 nBrightness)
void SetSteps(sal_uInt16 nSteps)
HelpEventMode GetMode() const
const Point & GetMousePosPixel() const
static void ShowQuickHelp(vcl::Window *pParent, const tools::Rectangle &rScreenRect, const OUString &rHelpText, QuickHelpFlags nStyle=QuickHelpFlags::NONE)
static void ShowBalloon(vcl::Window *pParent, const Point &rScreenPos, const tools::Rectangle &, const OUString &rHelpText)
Size GetSizePixel() const
MeasurementSystem getMeasurementSystemEnum() const
const Fraction & GetScaleX() const
const Fraction & GetScaleY() const
sal_uInt16 GetClicks() const
const Point & GetPosPixel() const
void DrawPolyLine(const tools::Polygon &rPoly)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void SetTextColor(const Color &rColor)
void DrawImage(const Point &rPos, const Image &rImage, DrawImageFlags nStyle=DrawImageFlags::NONE)
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
void DrawGradient(const tools::Rectangle &rRect, const Gradient &rGradient)
void DrawText(const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr)
constexpr tools::Long Y() const
void setX(tools::Long nX)
tools::Long AdjustY(tools::Long nVertMove)
constexpr tools::Long X() const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
const LocaleDataWrapper & GetLocaleData() const
virtual void dispose() override
virtual void setCollapsed(bool _bCollapsed)
collapse or expand
Link< OColorListener &, void > m_aCollapsedLink
virtual void Notify(SfxBroadcaster &rBc, SfxHint const &rHint) override
VclPtr< Ruler > m_aVRuler
void setTitle(const OUString &_sTitle)
virtual void Resize() override
bool m_bShowRuler
When 0 all static images will be destroyed.
virtual void Notify(SfxBroadcaster &rBc, SfxHint const &rHint) override
static oslInterlockedCount s_nImageRefCount
virtual void RequestHelp(const HelpEvent &rHEvt) override
void initDefaultNodeImages()
virtual void ApplySettings(vcl::RenderContext &rRenderContext) override
OStartMarker(OStartMarker const &)=delete
tools::Rectangle m_aTextRect
virtual void setCollapsed(bool _bCollapsed) override
collapse or expand
virtual ~OStartMarker() override
void showRuler(bool _bShow)
shows or hides the ruler.
sal_Int32 getMinHeight() const
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
static Image * s_pDefExpanded
virtual void ImplInitSettings() override
static Image * s_pDefCollapsed
VclPtr< OSectionWindow > m_pParent
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual void dispose() override
void zoom(const Fraction &_aZoom)
zoom the ruler and view windows
tools::Rectangle m_aImageRect
Point OutputToScreenPixel(const Point &rPos) const
Point LogicToPixel(const Point &rLogicPt) const
void SetParentClipMode(ParentClipMode nMode=ParentClipMode::NONE)
tools::Long GetTextHeight() const
const MapMode & GetMapMode() const
::OutputDevice const * GetOutDev() const
const Color & GetTextColor() const
Point PixelToLogic(const Point &rDevicePt) const
virtual Size GetSizePixel() const
Size GetOutputSizePixel() const
void SetPaintTransparent(bool bTransparent)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
void EnableChildTransparentMode(bool bEnable=true)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
void setZoomFactor(const Fraction &_aZoom, vcl::Window &_rWindow)
sets the map mode at the window