LibreOffice Module sc (master)
1
|
#include <autofmt.hxx>
Protected Member Functions | |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual void | Resize () override |
Private Member Functions | |
SAL_DLLPRIVATE void | Init () |
SAL_DLLPRIVATE void | DoPaint (vcl::RenderContext &rRenderContext) |
SAL_DLLPRIVATE void | CalcCellArray (bool bFitWidth) |
SAL_DLLPRIVATE void | CalcLineMap () |
SAL_DLLPRIVATE void | PaintCells (vcl::RenderContext &rRenderContext) |
SAL_DLLPRIVATE sal_uInt16 | GetFormatIndex (size_t nCol, size_t nRow) const |
SAL_DLLPRIVATE const SvxBoxItem & | GetBoxItem (size_t nCol, size_t nRow) const |
SAL_DLLPRIVATE const SvxLineItem & | GetDiagItem (size_t nCol, size_t nRow, bool bTLBR) const |
SAL_DLLPRIVATE void | DrawString (vcl::RenderContext &rRenderContext, size_t nCol, size_t nRow) |
SAL_DLLPRIVATE void | DrawBackground (vcl::RenderContext &rRenderContext) |
SAL_DLLPRIVATE void | MakeFonts (vcl::RenderContext const &rRenderContext, sal_uInt16 nIndex, vcl::Font &rFont, vcl::Font &rCJKFont, vcl::Font &rCTLFont) |
Private Attributes | |
ScAutoFormatData * | pCurData |
ScopedVclPtrInstance< VirtualDevice > | aVD |
css::uno::Reference< css::i18n::XBreakIterator > | xBreakIter |
bool | bFitWidth |
svx::frame::Array | maArray |
bool | mbRTL |
Implementation to draw the frame borders. More... | |
Size | aPrvSize |
tools::Long | mnLabelColWidth |
tools::Long | mnDataColWidth1 |
tools::Long | mnDataColWidth2 |
tools::Long | mnRowHeight |
const OUString | aStrJan |
const OUString | aStrFeb |
const OUString | aStrMar |
const OUString | aStrNorth |
const OUString | aStrMid |
const OUString | aStrSouth |
const OUString | aStrSum |
std::unique_ptr< SvNumberFormatter > | pNumFmt |
Additional Inherited Members | |
![]() | |
static bool | IsUpdateMode () |
Definition at line 36 of file autofmt.hxx.
ScAutoFmtPreview::ScAutoFmtPreview | ( | ) |
Definition at line 57 of file autofmt.cxx.
References getProcessComponentContext(), and Init().
|
overridevirtual |
Definition at line 90 of file autofmt.cxx.
|
private |
Definition at line 433 of file autofmt.cxx.
References aPrvSize, svx::frame::Array::GetHeight(), svx::frame::Array::GetWidth(), maArray, mnDataColWidth1, mnDataColWidth2, mnLabelColWidth, mnRowHeight, svx::frame::Array::SetAllColWidths(), svx::frame::Array::SetAllRowHeights(), svx::frame::Array::SetColWidth(), Size::setHeight(), Size::setWidth(), svx::frame::Array::SetXOffset(), and svx::frame::Array::SetYOffset().
Referenced by Init(), and NotifyChange().
|
private |
Definition at line 452 of file autofmt.cxx.
References SvxBoxItem::GetBottom(), GetBoxItem(), GetDiagItem(), SvxBoxItem::GetLeft(), SvxBoxItem::GetRight(), SvxBoxItem::GetTop(), lclSetStyleFromBorder(), maArray, pCurData, svx::frame::Array::SetCellStyleBLTR(), svx::frame::Array::SetCellStyleBottom(), svx::frame::Array::SetCellStyleLeft(), svx::frame::Array::SetCellStyleRight(), svx::frame::Array::SetCellStyleTLBR(), and svx::frame::Array::SetCellStyleTop().
Referenced by Init(), and NotifyChange().
void ScAutoFmtPreview::DetectRTL | ( | const ScViewData & | rViewData | ) |
Definition at line 425 of file autofmt.cxx.
References ScDocument::GetBreakIterator(), ScViewData::GetDocument(), ScViewData::GetTabNo(), ScDocument::IsLayoutRTL(), mbRTL, and xBreakIter.
Referenced by ScAutoFormatDlg::ScAutoFormatDlg().
|
private |
Definition at line 495 of file autofmt.cxx.
References aPrvSize, aVD, OutputDevice::DrawOutDev(), OutputDevice::DrawRect(), AllSettings::GetLayoutRTL(), weld::CustomWidgetController::GetOutputSizePixel(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), Size::Height(), PaintCells(), Point, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and Size::Width().
Referenced by Paint().
|
private |
Definition at line 356 of file autofmt.cxx.
References ATTR_BACKGROUND(), OutputDevice::DrawRect(), basegfx::fround(), svx::frame::Array::GetCellRange(), SvxBrushItem::GetColor(), GetFormatIndex(), ScAutoFormatData::GetItem(), maArray, pCurData, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by PaintCells().
|
private |
Definition at line 181 of file autofmt.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), aStrFeb, aStrJan, aStrMar, aStrMid, aStrNorth, aStrSouth, aStrSum, ATTR_HOR_JUSTIFY(), SvtScriptedTextHelper::DrawText(), FRAME_OFFSET, basegfx::fround(), svx::frame::Array::GetCellIndex(), svx::frame::Array::GetCellRange(), ScNumFormatAbbrev::GetFormatIndex(), GetFormatIndex(), ScAutoFormatData::GetIncludeFont(), ScAutoFormatData::GetIncludeJustify(), ScAutoFormatData::GetIncludeValueFormat(), ScAutoFormatData::GetItem(), ScAutoFormatData::GetNumFormat(), SvtScriptedTextHelper::GetTextSize(), Size::Height(), maArray, MakeFonts(), mbRTL, mnRowHeight, nIndex, pCurData, pNumFmt, Point, SvtScriptedTextHelper::SetDefaultFont(), SvtScriptedTextHelper::SetFonts(), SvtScriptedTextHelper::SetText(), Size::Width(), and xBreakIter.
Referenced by PaintCells().
|
private |
Definition at line 169 of file autofmt.cxx.
References ATTR_BORDER(), GetFormatIndex(), ScAutoFormatData::GetItem(), and pCurData.
Referenced by CalcLineMap().
|
private |
Definition at line 175 of file autofmt.cxx.
References ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), GetFormatIndex(), ScAutoFormatData::GetItem(), and pCurData.
Referenced by CalcLineMap().
|
private |
Definition at line 156 of file autofmt.cxx.
References svx::frame::Array::GetCellIndex(), maArray, and mbRTL.
Referenced by DrawBackground(), DrawString(), GetBoxItem(), and GetDiagItem().
Definition at line 414 of file autofmt.cxx.
References CalcCellArray(), CalcLineMap(), svx::frame::Array::Initialize(), maArray, mnDataColWidth1, mnDataColWidth2, mnLabelColWidth, and mnRowHeight.
Referenced by ScAutoFmtPreview().
|
private |
Definition at line 109 of file autofmt.cxx.
References ATTR_CJK_FONT(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), COL_TRANSPARENT(), OutputDevice::GetDPIScaleFactor(), OutputDevice::GetFont(), vcl::Font::GetFontSize(), ScAutoFormatData::GetItem(), Application::GetSettings(), AllSettings::GetStyleSettings(), SvxColorItem::GetValue(), StyleSettings::GetWindowTextColor(), lcl_SetFontProperties(), pCurData, SETONALLFONTS, and Size::Width().
Referenced by DrawString().
void ScAutoFmtPreview::NotifyChange | ( | ScAutoFormatData * | pNewData | ) |
Definition at line 481 of file autofmt.cxx.
References bFitWidth, CalcCellArray(), CalcLineMap(), ScAutoFormatData::GetIncludeWidthHeight(), weld::CustomWidgetController::Invalidate(), and pCurData.
Referenced by Resize(), and ScAutoFormatDlg::ScAutoFormatDlg().
|
overrideprotectedvirtual |
Implements weld::CustomWidgetController.
Definition at line 526 of file autofmt.cxx.
References DoPaint().
|
private |
Definition at line 383 of file autofmt.cxx.
References svx::frame::Array::CreateB2DPrimitiveArray(), drawinglayer::processor2d::createPixelProcessor2DFromOutputDevice(), DrawBackground(), DrawString(), ScAutoFormatData::GetIncludeBackground(), ScAutoFormatData::GetIncludeFrame(), maArray, and pCurData.
Referenced by DoPaint().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 79 of file autofmt.cxx.
References aPrvSize, weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), mnDataColWidth1, mnDataColWidth2, mnLabelColWidth, mnRowHeight, NotifyChange(), pCurData, and Size::Width().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 73 of file autofmt.cxx.
References aVD, ScopedVclPtr< reference_type >::disposeAndReset(), and weld::DrawingArea::get_ref_device().
|
private |
Definition at line 57 of file autofmt.hxx.
Referenced by CalcCellArray(), DoPaint(), and Resize().
|
private |
Definition at line 63 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 62 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 64 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 66 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 65 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 67 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 68 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 52 of file autofmt.hxx.
Referenced by DoPaint(), and SetDrawingArea().
|
private |
Definition at line 54 of file autofmt.hxx.
Referenced by NotifyChange().
|
private |
Definition at line 55 of file autofmt.hxx.
Referenced by CalcCellArray(), CalcLineMap(), DrawBackground(), DrawString(), GetFormatIndex(), Init(), and PaintCells().
|
private |
Implementation to draw the frame borders.
Definition at line 56 of file autofmt.hxx.
Referenced by DetectRTL(), DrawString(), and GetFormatIndex().
|
private |
Definition at line 59 of file autofmt.hxx.
Referenced by CalcCellArray(), Init(), and Resize().
|
private |
Definition at line 60 of file autofmt.hxx.
Referenced by CalcCellArray(), Init(), and Resize().
|
private |
Definition at line 58 of file autofmt.hxx.
Referenced by CalcCellArray(), Init(), and Resize().
|
private |
Definition at line 61 of file autofmt.hxx.
Referenced by CalcCellArray(), DrawString(), Init(), and Resize().
|
private |
Definition at line 51 of file autofmt.hxx.
Referenced by CalcLineMap(), DrawBackground(), DrawString(), GetBoxItem(), GetDiagItem(), MakeFonts(), NotifyChange(), PaintCells(), and Resize().
|
private |
Definition at line 69 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 53 of file autofmt.hxx.
Referenced by DetectRTL(), and DrawString().