40 CustomWidgetController::SetDrawingArea(pDrawingArea);
69 CustomWidgetController::Resize();
79 rRenderContext.
Erase();
93 pMeasureObj->SetMergedItemSetAndBroadcast(rInAttrs);
102 bool bCtrl = rMEvt.
IsMod1();
104 if (bZoomIn || bZoomOut)
108 std::unique_ptr<Fraction> pMultFrac;
113 pMultFrac.reset(
new Fraction(3, 2));
115 pMultFrac.reset(
new Fraction(11, 10));
120 pMultFrac.reset(
new Fraction(2, 3));
122 pMultFrac.reset(
new Fraction(10, 11));
125 aXFrac *= *pMultFrac;
126 aYFrac *= *pMultFrac;
128 if (
double(aXFrac) > 0.001 &&
double(aXFrac) < 1000.0 &&
double(aYFrac) > 0.001
129 &&
double(aYFrac) < 1000.0)
142 (
double(aOutSize.
Width()) - (
double(aOutSize.
Width()) *
double(*pMultFrac))) / 2.0
145 (
double(aOutSize.
Height()) - (
double(aOutSize.
Height()) *
double(*pMultFrac))) / 2.0
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
void SetOrigin(const Point &rOrigin)
void SetScaleY(const Fraction &rScaleY)
const Fraction & GetScaleX() const
const Point & GetOrigin() const
const Fraction & GetScaleY() const
void SetScaleX(const Fraction &rScaleX)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
void SetDrawMode(DrawModeFlags nDrawMode)
const AllSettings & GetSettings() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const Color & GetWindowColor() const
bool GetHighContrastMode() const
std::unique_ptr< SdrModel > pModel
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual ~SvxXMeasurePreview() override
rtl::Reference< SdrMeasureObj > pMeasureObj
virtual void Resize() override
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
void SetAttributes(const SfxItemSet &rInAttrs)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
void ResizeImpl(const Size &rSize)
virtual OutputDevice & get_ref_device()=0
Size SFX2_DLLPUBLIC getPreviewStripSize(const OutputDevice &rReference)
#define OUTPUT_DRAWMODE_CONTRAST
#define OUTPUT_DRAWMODE_COLOR