LibreOffice Module sc (master) 1
|
#include <autofmt.hxx>
Public Member Functions | |
ScAutoFmtPreview () | |
void | DetectRTL (const ScViewData &rViewData) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual | ~ScAutoFmtPreview () override |
void | NotifyChange (ScAutoFormatData *pNewData) |
Public Member Functions inherited from weld::CustomWidgetController | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
virtual void | Resize () |
virtual bool | MouseButtonDown (const MouseEvent &) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual void | StyleUpdated () |
virtual bool | Command (const CommandEvent &) |
virtual bool | KeyInput (const KeyEvent &) |
virtual tools::Rectangle | GetFocusRect () |
virtual FactoryFunction | GetUITestFactory () const |
virtual OUString | RequestHelp (tools::Rectangle &) |
virtual OUString | GetHelpText () const |
Size const & | GetOutputSizePixel () const |
void | SetOutputSizePixel (const Size &rSize) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
weld::DrawingArea * | GetDrawingArea () const |
void | Invalidate () |
void | Invalidate (const tools::Rectangle &rRect) |
virtual void | Show () |
virtual void | Hide () |
void | SetCursor (void *pData) |
void | GrabFocus () |
bool | HasFocus () const |
bool | HasChildFocus () const |
bool | IsVisible () const |
bool | IsReallyVisible () const |
bool | IsEnabled () const |
void | Enable () const |
void | Disable () const |
bool | IsActive () const |
int | GetTextHeight () const |
int | GetTextWidth (const OUString &rText) const |
OUString | GetAccessibleName () const |
OUString | GetAccessibleDescription () const |
void | CaptureMouse () |
bool | IsMouseCaptured () const |
Point | GetPointerPosPixel () const |
void | EnableRTL (bool bEnable) |
bool | IsRTLEnabled () const |
void | ReleaseMouse () |
void | SetPointer (PointerStyle ePointerStyle) |
void | SetHelpId (const OUString &rHelpId) |
void | SetAccessibleName (const OUString &rName) |
void | SetInputContext (const InputContext &rInputContext) |
void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
virtual int | GetSurroundingText (OUString &) |
virtual bool | DeleteSurroundingText (const Selection &) |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
virtual bool | StartDrag () |
void | set_size_request (int nWidth, int nHeight) |
void | queue_resize () |
CustomWidgetController () | |
virtual | ~CustomWidgetController () |
CustomWidgetController (CustomWidgetController const &)=default | |
CustomWidgetController (CustomWidgetController &&)=default | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
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 Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 35 of file autofmt.hxx.
ScAutoFmtPreview::ScAutoFmtPreview | ( | ) |
Definition at line 60 of file autofmt.cxx.
References getProcessComponentContext(), and Init().
|
overridevirtual |
Definition at line 93 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 vcl::ALL, aPrvSize, aVD, OutputDevice::DrawOutDev(), OutputDevice::DrawRect(), AllSettings::GetLayoutRTL(), weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), PaintCells(), OutputDevice::Pop(), OutputDevice::Push(), SC_MOD, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), vcl::Font::SetTransparent(), Point::setX(), Size::Width(), and Point::X().
Referenced by Paint().
|
private |
Definition at line 359 of file autofmt.cxx.
References ATTR_BACKGROUND(), OutputDevice::DrawRect(), vcl::FILLCOLOR, basegfx::fround(), svx::frame::Array::GetCellRange(), SvxBrushItem::GetColor(), GetFormatIndex(), ScAutoFormatData::GetItem(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), vcl::LINECOLOR, maArray, pCurData, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by PaintCells().
|
private |
Definition at line 184 of file autofmt.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), Point::AdjustX(), Point::AdjustY(), aStrFeb, aStrJan, aStrMar, aStrMid, aStrNorth, aStrSouth, aStrSum, ATTR_HOR_JUSTIFY(), SvtScriptedTextHelper::DrawText(), FRAME_OFFSET, basegfx::fround(), svx::frame::Array::GetCellIndex(), svx::frame::Array::GetCellRange(), GetFormatIndex(), ScNumFormatAbbrev::GetFormatIndex(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), ScAutoFormatData::GetIncludeFont(), ScAutoFormatData::GetIncludeJustify(), ScAutoFormatData::GetIncludeValueFormat(), ScAutoFormatData::GetItem(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), ScAutoFormatData::GetNumFormat(), SvtScriptedTextHelper::GetTextSize(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), Size::Height(), maArray, MakeFonts(), mbRTL, mnRowHeight, nIndex, pCurData, pNumFmt, SvtScriptedTextHelper::SetDefaultFont(), SvtScriptedTextHelper::SetFonts(), SvtScriptedTextHelper::SetText(), Size::Width(), and xBreakIter.
Referenced by PaintCells().
|
private |
Definition at line 172 of file autofmt.cxx.
References ATTR_BORDER(), GetFormatIndex(), ScAutoFormatData::GetItem(), and pCurData.
Referenced by CalcLineMap().
|
private |
Definition at line 178 of file autofmt.cxx.
References ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), GetFormatIndex(), ScAutoFormatData::GetItem(), and pCurData.
Referenced by CalcLineMap().
|
private |
Definition at line 159 of file autofmt.cxx.
References svx::frame::Array::GetCellIndex(), maArray, and mbRTL.
Referenced by DrawBackground(), DrawString(), GetBoxItem(), and GetDiagItem().
|
private |
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 112 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(), nIndex, 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 386 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 82 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 76 of file autofmt.cxx.
References aVD, ScopedVclPtr< class reference_type >::disposeAndReset(), and weld::DrawingArea::get_ref_device().
|
private |
Definition at line 56 of file autofmt.hxx.
Referenced by CalcCellArray(), DoPaint(), and Resize().
|
private |
Definition at line 62 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 61 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 63 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 65 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 67 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 51 of file autofmt.hxx.
Referenced by DoPaint(), and SetDrawingArea().
|
private |
Definition at line 53 of file autofmt.hxx.
Referenced by NotifyChange().
|
private |
Definition at line 54 of file autofmt.hxx.
Referenced by CalcCellArray(), CalcLineMap(), DrawBackground(), DrawString(), GetFormatIndex(), Init(), and PaintCells().
|
private |
Implementation to draw the frame borders.
Definition at line 55 of file autofmt.hxx.
Referenced by DetectRTL(), DrawString(), and GetFormatIndex().
|
private |
Definition at line 58 of file autofmt.hxx.
Referenced by CalcCellArray(), Init(), and Resize().
|
private |
Definition at line 59 of file autofmt.hxx.
Referenced by CalcCellArray(), Init(), and Resize().
|
private |
Definition at line 57 of file autofmt.hxx.
Referenced by CalcCellArray(), Init(), and Resize().
|
private |
Definition at line 60 of file autofmt.hxx.
Referenced by CalcCellArray(), DrawString(), Init(), and Resize().
|
private |
Definition at line 50 of file autofmt.hxx.
Referenced by CalcLineMap(), DrawBackground(), DrawString(), GetBoxItem(), GetDiagItem(), MakeFonts(), NotifyChange(), PaintCells(), and Resize().
|
private |
Definition at line 68 of file autofmt.hxx.
Referenced by DrawString().
|
private |
Definition at line 52 of file autofmt.hxx.
Referenced by DetectRTL(), and DrawString().