LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ScAutoFmtPreview Class Reference

#include <autofmt.hxx>

Inheritance diagram for ScAutoFmtPreview:
[legend]
Collaboration diagram for ScAutoFmtPreview:
[legend]

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::DrawingAreaGetDrawingArea () 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
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (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 SvxBoxItemGetBoxItem (size_t nCol, size_t nRow) const
 
SAL_DLLPRIVATE const SvxLineItemGetDiagItem (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

ScAutoFormatDatapCurData
 
ScopedVclPtrInstance< VirtualDeviceaVD
 
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< SvNumberFormatterpNumFmt
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 35 of file autofmt.hxx.

Constructor & Destructor Documentation

◆ ScAutoFmtPreview()

ScAutoFmtPreview::ScAutoFmtPreview ( )

Definition at line 60 of file autofmt.cxx.

References getProcessComponentContext(), and Init().

◆ ~ScAutoFmtPreview()

ScAutoFmtPreview::~ScAutoFmtPreview ( )
overridevirtual

Definition at line 93 of file autofmt.cxx.

Member Function Documentation

◆ CalcCellArray()

void ScAutoFmtPreview::CalcCellArray ( bool  bFitWidth)
private

◆ CalcLineMap()

void ScAutoFmtPreview::CalcLineMap ( )
private

◆ DetectRTL()

void ScAutoFmtPreview::DetectRTL ( const ScViewData rViewData)

◆ DoPaint()

void ScAutoFmtPreview::DoPaint ( vcl::RenderContext rRenderContext)
private

◆ DrawBackground()

void ScAutoFmtPreview::DrawBackground ( vcl::RenderContext rRenderContext)
private

◆ DrawString()

void ScAutoFmtPreview::DrawString ( vcl::RenderContext rRenderContext,
size_t  nCol,
size_t  nRow 
)
private

◆ GetBoxItem()

const SvxBoxItem & ScAutoFmtPreview::GetBoxItem ( size_t  nCol,
size_t  nRow 
) const
private

Definition at line 172 of file autofmt.cxx.

References ATTR_BORDER(), GetFormatIndex(), ScAutoFormatData::GetItem(), and pCurData.

Referenced by CalcLineMap().

◆ GetDiagItem()

const SvxLineItem & ScAutoFmtPreview::GetDiagItem ( size_t  nCol,
size_t  nRow,
bool  bTLBR 
) const
private

◆ GetFormatIndex()

sal_uInt16 ScAutoFmtPreview::GetFormatIndex ( size_t  nCol,
size_t  nRow 
) const
private

Definition at line 159 of file autofmt.cxx.

References svx::frame::Array::GetCellIndex(), maArray, and mbRTL.

Referenced by DrawBackground(), DrawString(), GetBoxItem(), and GetDiagItem().

◆ Init()

void ScAutoFmtPreview::Init ( void  )
private

◆ MakeFonts()

void ScAutoFmtPreview::MakeFonts ( vcl::RenderContext const &  rRenderContext,
sal_uInt16  nIndex,
vcl::Font rFont,
vcl::Font rCJKFont,
vcl::Font rCTLFont 
)
private

◆ NotifyChange()

void ScAutoFmtPreview::NotifyChange ( ScAutoFormatData pNewData)

◆ Paint()

void ScAutoFmtPreview::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprotectedvirtual

Implements weld::CustomWidgetController.

Definition at line 526 of file autofmt.cxx.

References DoPaint().

◆ PaintCells()

void ScAutoFmtPreview::PaintCells ( vcl::RenderContext rRenderContext)
private

◆ Resize()

void ScAutoFmtPreview::Resize ( )
overrideprotectedvirtual

◆ SetDrawingArea()

void ScAutoFmtPreview::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

Member Data Documentation

◆ aPrvSize

Size ScAutoFmtPreview::aPrvSize
private

Definition at line 56 of file autofmt.hxx.

Referenced by CalcCellArray(), DoPaint(), and Resize().

◆ aStrFeb

const OUString ScAutoFmtPreview::aStrFeb
private

Definition at line 62 of file autofmt.hxx.

Referenced by DrawString().

◆ aStrJan

const OUString ScAutoFmtPreview::aStrJan
private

Definition at line 61 of file autofmt.hxx.

Referenced by DrawString().

◆ aStrMar

const OUString ScAutoFmtPreview::aStrMar
private

Definition at line 63 of file autofmt.hxx.

Referenced by DrawString().

◆ aStrMid

const OUString ScAutoFmtPreview::aStrMid
private

Definition at line 65 of file autofmt.hxx.

Referenced by DrawString().

◆ aStrNorth

const OUString ScAutoFmtPreview::aStrNorth
private

Definition at line 64 of file autofmt.hxx.

Referenced by DrawString().

◆ aStrSouth

const OUString ScAutoFmtPreview::aStrSouth
private

Definition at line 66 of file autofmt.hxx.

Referenced by DrawString().

◆ aStrSum

const OUString ScAutoFmtPreview::aStrSum
private

Definition at line 67 of file autofmt.hxx.

Referenced by DrawString().

◆ aVD

ScopedVclPtrInstance<VirtualDevice> ScAutoFmtPreview::aVD
private

Definition at line 51 of file autofmt.hxx.

Referenced by DoPaint(), and SetDrawingArea().

◆ bFitWidth

bool ScAutoFmtPreview::bFitWidth
private

Definition at line 53 of file autofmt.hxx.

Referenced by NotifyChange().

◆ maArray

svx::frame::Array ScAutoFmtPreview::maArray
private

◆ mbRTL

bool ScAutoFmtPreview::mbRTL
private

Implementation to draw the frame borders.

Definition at line 55 of file autofmt.hxx.

Referenced by DetectRTL(), DrawString(), and GetFormatIndex().

◆ mnDataColWidth1

tools::Long ScAutoFmtPreview::mnDataColWidth1
private

Definition at line 58 of file autofmt.hxx.

Referenced by CalcCellArray(), Init(), and Resize().

◆ mnDataColWidth2

tools::Long ScAutoFmtPreview::mnDataColWidth2
private

Definition at line 59 of file autofmt.hxx.

Referenced by CalcCellArray(), Init(), and Resize().

◆ mnLabelColWidth

tools::Long ScAutoFmtPreview::mnLabelColWidth
private

Definition at line 57 of file autofmt.hxx.

Referenced by CalcCellArray(), Init(), and Resize().

◆ mnRowHeight

tools::Long ScAutoFmtPreview::mnRowHeight
private

Definition at line 60 of file autofmt.hxx.

Referenced by CalcCellArray(), DrawString(), Init(), and Resize().

◆ pCurData

ScAutoFormatData* ScAutoFmtPreview::pCurData
private

◆ pNumFmt

std::unique_ptr<SvNumberFormatter> ScAutoFmtPreview::pNumFmt
private

Definition at line 68 of file autofmt.hxx.

Referenced by DrawString().

◆ xBreakIter

css::uno::Reference<css::i18n::XBreakIterator> ScAutoFmtPreview::xBreakIter
private

Definition at line 52 of file autofmt.hxx.

Referenced by DetectRTL(), and DrawString().


The documentation for this class was generated from the following files: