32#include <com/sun/star/i18n/BreakIterator.hpp>
47 : maCurrentData(OUString())
53 , maStringNorth(
SwResId(STR_NORTH))
55 , maStringSouth(
SwResId(STR_SOUTH))
59 m_xBreak = i18n::BreakIterator::create(xContext);
97#define SETONALLFONTS(MethodName, Value) \
98 rFont.MethodName(Value); \
99 rCJKFont.MethodName(Value); \
100 rCTLFont.MethodName(Value);
107 rFont = rCJKFont = rCTLFont = rRenderContext.
GetFont();
130 = { 0, 1, 2, 1, 3, 4, 5, 6, 5, 7, 8, 9, 10, 9, 11, 4, 5, 6, 5, 7, 12, 13, 14, 13, 15 };
182 nNum = 12 ==
nIndex ? 10 : 9;
223 sal_uInt32 nKey =
mxNumFormat->GetIndexPuttingAndConverting(sFormat, eLng, eSys,
224 nType, bNew, nCheckPos);
226 mxNumFormat->GetOutputString(nVal, nKey, cellString, &pDummy);
229 cellString = OUString::number(sal_Int32(nVal));
233 if (cellString.isEmpty())
250 MakeFonts(rRenderContext, nFormatIndex, aFont, aCJKFont, aCTLFont);
251 aScriptedText.
SetFonts(&aFont, &aCJKFont, &aCTLFont);
268 while (theMaxStrSize.
Width() <= aStrSize.
Width() && cellString.getLength() > 1)
270 cellString = cellString.copy(0, cellString.getLength() - 1);
288 case SvxAdjust::Left:
291 case SvxAdjust::Right:
302 if (nCol == 0 ||
nIndex == 4)
319 for (
size_t nRow = 0; nRow < 5; ++nRow)
321 for (
size_t nCol = 0; nCol < 5; ++nCol)
333 rRenderContext.
Pop();
345 for (
size_t nRow = 0; nRow < 5; ++nRow)
346 for (
size_t nCol = 0; nCol < 5; ++nCol)
354 std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor2D(
356 aNewViewInformation2D));
361 pProcessor2D.reset();
389 const ::editeng::SvxBorderLine* pBorder)
391 rStyle.
Set(pBorder, 0.05, 5);
396 for (
size_t nRow = 0; nRow < 5; ++nRow)
398 for (
size_t nCol = 0; nCol < 5; ++nCol)
435 const Color& rWinColor =
SW_MOD()->GetColorConfig().GetColorValue(::svtools::DOCCOLOR).nColor;
437 rRenderContext.
Erase();
441 rRenderContext.
SetDrawMode(DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill
442 | DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient);
463 rRenderContext.
Pop();
const StyleSettings & GetStyleSettings() const
static bool GetLayoutRTL()
const vcl::Font & GetFont() const
float GetDPIScaleFactor() const
void SetFont(const vcl::Font &rNewFont)
Size GetOutputSizePixel() const
void DrawRect(const tools::Rectangle &rRect)
const Color & GetLineColor() const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
void SetDrawMode(DrawModeFlags nDrawMode)
DrawModeFlags GetDrawMode() const
const AllSettings & GetSettings() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
bool GetHighContrastMode() const
const Size & GetTextSize() const
void SetText(const OUString &_rText, const css::uno::Reference< css::i18n::XBreakIterator > &_xBreakIter)
void DrawText(const Point &_rPos)
void SetFonts(vcl::Font const *_pLatinFont, vcl::Font const *_pAsianFont, vcl::Font const *_pCmplxFont)
SvxAdjust GetAdjust() const
const editeng::SvxBorderLine * GetTop() const
const editeng::SvxBorderLine * GetRight() const
const editeng::SvxBorderLine * GetLeft() const
const editeng::SvxBorderLine * GetBottom() const
const Color & GetColor() const
const Color & GetValue() const
FontFamily GetFamily() const
FontPitch GetPitch() const
const OUString & GetStyleName() const
rtl_TextEncoding GetCharSet() const
const OUString & GetFamilyName() const
const SwTableNode * IsCursorInTable() const
Check if Point of current cursor is placed within a table.
bool IsTableRightToLeft() const
Used by the UI to modify the document model.
void SetCellStyleBottom(sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle)
void SetCellStyleLeft(sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle)
void SetCellStyleRight(sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle)
void SetColWidth(sal_Int32 nCol, sal_Int32 nWidth)
void SetXOffset(sal_Int32 nXOffset)
sal_Int32 GetWidth() const
basegfx::B2DRange GetCellRange(sal_Int32 nCol, sal_Int32 nRow) const
void Initialize(sal_Int32 nWidth, sal_Int32 nHeight)
void SetYOffset(sal_Int32 nYOffset)
drawinglayer::primitive2d::Primitive2DContainer CreateB2DPrimitiveArray() const
sal_Int32 GetHeight() const
void SetAllColWidths(sal_Int32 nWidth)
void SetAllRowHeights(sal_Int32 nHeight)
sal_Int32 GetCellIndex(sal_Int32 nCol, sal_Int32 nRow, bool bRTL) const
void SetCellStyleTop(sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle)
void Set(double nP, double nD, double nS)
void SetStyleName(const OUString &rStyleName)
void SetPitch(FontPitch ePitch)
void SetTransparent(bool bTransparent)
void SetItalic(FontItalic)
void SetWeight(FontWeight)
void SetFamily(FontFamily)
void SetCharSet(rtl_TextEncoding)
const Size & GetFontSize() const
void SetFamilyName(const OUString &rFamilyName)
B2IRange fround(const B2DRange &rRange)
Reference< XComponentContext > getProcessComponentContext()
std::unique_ptr< BaseProcessor2D > createPixelProcessor2DFromOutputDevice(OutputDevice &rTargetOutDev, const drawinglayer::geometry::ViewInformation2D &rViewInformation2D)
OUString SwResId(TranslateId aId)