36#define CELL_WIDTH 1600L
37#define CELL_HEIGHT 800L
44 bResetBackground(false),
45 bFrameDirection(false),
122 rRenderContext.
Pop();
230 OUString sText(
"ABC");
236 case SvxFrameDirection::Horizontal_LR_TB:
242 case SvxFrameDirection::Horizontal_RL_TB:
246 aMove.
setX( aMove.
X() * -1 );
249 case SvxFrameDirection::Vertical_LR_TB:
254 case SvxFrameDirection::Vertical_RL_TB:
261 sText += OUStringChar(cArrow);
262 for (sal_Int32
i = 0;
i < sText.getLength();
i++)
264 OUString sDraw(sText.copy(
i,1));
267 bool bHorizontal = 0 == aMove.
Y();
270 nHDiff = (nAWidth - nCharWidth) / 2;
273 rRenderContext.
DrawText(aPos,sDraw);
276 aPos.
AdjustX(aMove.
X() < 0 ? -nCharWidth : nCharWidth );
302 for (sal_uInt16
i = 0;
i < 3; ++
i)
309 for (sal_uInt16 j = 0; j < 3; ++j)
336 if (rFillAttributes && rFillAttributes->isUsed())
338 aSequence = rFillAttributes->getPrimitive2DSequence(aPaintRange, aDefineRange);
348 aSequence.push_back(xOutline);
352 if (aSequence.empty())
359 std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor(
361 pProcessor->process(aSequence);
381 CustomWidgetController::SetDrawingArea(pDrawingArea);
const StyleSettings & GetStyleSettings() const
basegfx::BColor getBColor() const
void SetScaleY(const Fraction &rScaleY)
const Fraction & GetScaleX() const
const Fraction & GetScaleY() const
void SetScaleX(const Fraction &rScaleX)
Size GetOutputSize() const
basegfx::B2DHomMatrix GetViewTransformation() const
const vcl::Font & GetFont() const
void SetFont(const vcl::Font &rNewFont)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void DrawRect(const tools::Rectangle &rRect)
tools::Long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::text::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
const Color & GetLineColor() const
const MapMode & GetMapMode() const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
tools::Long GetTextHeight() const
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)
const AllSettings & GetSettings() const
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
tools::Long AdjustWidth(tools::Long n)
constexpr tools::Long Width() const
const Color & GetFieldTextColor() const
const Color & GetFieldColor() const
const Color & GetDialogColor() const
const Color & GetDisableColor() const
void SetFrameDirection(SvxFrameDirection nDirection)
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maPageFillAttributes
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maFooterFillAttributes
SvxFrameDirection nFrameDirection
static void drawFillAttributes(vcl::RenderContext &rRenderContext, const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes, const tools::Rectangle &rPaintRange, const tools::Rectangle &rDefineRange)
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
virtual ~SvxPageWindow() override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
void EnableFrameDirection(bool bEnable)
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maHeaderFillAttributes
virtual void DrawPage(vcl::RenderContext &rRenderContext, const Point &rPoint, const bool bSecond, const bool bEnabled)
void SetFontSize(const Size &)
const Size & GetFontSize() const
virtual OutputDevice & get_ref_device()=0
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
std::unique_ptr< BaseProcessor2D > createProcessor2DFromOutputDevice(OutputDevice &rTargetOutDev, const drawinglayer::geometry::ViewInformation2D &rViewInformation2D)