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 *pViewData)
 
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 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)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void GrabFocus ()
 
bool HasFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetDragDataTransferrable (rtl::Reference< TransferDataContainer > &rTransferrable, 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
 
long mnLabelColWidth
 
long mnDataColWidth1
 
long mnDataColWidth2
 
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 36 of file autofmt.hxx.

Constructor & Destructor Documentation

ScAutoFmtPreview::ScAutoFmtPreview ( )

Definition at line 56 of file autofmt.cxx.

References getProcessComponentContext(), and Init().

ScAutoFmtPreview::~ScAutoFmtPreview ( )
overridevirtual

Definition at line 89 of file autofmt.cxx.

Member Function Documentation

void ScAutoFmtPreview::CalcCellArray ( bool  bFitWidth)
private
void ScAutoFmtPreview::CalcLineMap ( )
private
void ScAutoFmtPreview::DetectRTL ( const ScViewData pViewData)
void ScAutoFmtPreview::DoPaint ( vcl::RenderContext rRenderContext)
private
void ScAutoFmtPreview::DrawBackground ( vcl::RenderContext rRenderContext)
private
void ScAutoFmtPreview::DrawString ( vcl::RenderContext rRenderContext,
size_t  nCol,
size_t  nRow 
)
private
const SvxBoxItem & ScAutoFmtPreview::GetBoxItem ( size_t  nCol,
size_t  nRow 
) const
private

Definition at line 168 of file autofmt.cxx.

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

Referenced by CalcLineMap().

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

Definition at line 155 of file autofmt.cxx.

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

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

void ScAutoFmtPreview::Init ( void  )
private
void ScAutoFmtPreview::MakeFonts ( vcl::RenderContext const &  rRenderContext,
sal_uInt16  nIndex,
vcl::Font rFont,
vcl::Font rCJKFont,
vcl::Font rCTLFont 
)
private
void ScAutoFmtPreview::NotifyChange ( ScAutoFormatData pNewData)
void ScAutoFmtPreview::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprotectedvirtual

Implements weld::CustomWidgetController.

Definition at line 526 of file autofmt.cxx.

References DoPaint().

void ScAutoFmtPreview::PaintCells ( vcl::RenderContext rRenderContext)
private
void ScAutoFmtPreview::Resize ( )
overrideprotectedvirtual
void ScAutoFmtPreview::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

Member Data Documentation

Size ScAutoFmtPreview::aPrvSize
private

Definition at line 57 of file autofmt.hxx.

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

const OUString ScAutoFmtPreview::aStrFeb
private

Definition at line 63 of file autofmt.hxx.

Referenced by DrawString().

const OUString ScAutoFmtPreview::aStrJan
private

Definition at line 62 of file autofmt.hxx.

Referenced by DrawString().

const OUString ScAutoFmtPreview::aStrMar
private

Definition at line 64 of file autofmt.hxx.

Referenced by DrawString().

const OUString ScAutoFmtPreview::aStrMid
private

Definition at line 66 of file autofmt.hxx.

Referenced by DrawString().

const OUString ScAutoFmtPreview::aStrNorth
private

Definition at line 65 of file autofmt.hxx.

Referenced by DrawString().

const OUString ScAutoFmtPreview::aStrSouth
private

Definition at line 67 of file autofmt.hxx.

Referenced by DrawString().

const OUString ScAutoFmtPreview::aStrSum
private

Definition at line 68 of file autofmt.hxx.

Referenced by DrawString().

ScopedVclPtrInstance<VirtualDevice> ScAutoFmtPreview::aVD
private

Definition at line 52 of file autofmt.hxx.

Referenced by DoPaint(), and SetDrawingArea().

bool ScAutoFmtPreview::bFitWidth
private

Definition at line 54 of file autofmt.hxx.

Referenced by NotifyChange().

svx::frame::Array ScAutoFmtPreview::maArray
private
bool ScAutoFmtPreview::mbRTL
private

Implementation to draw the frame borders.

Definition at line 56 of file autofmt.hxx.

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

long ScAutoFmtPreview::mnDataColWidth1
private

Definition at line 59 of file autofmt.hxx.

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

long ScAutoFmtPreview::mnDataColWidth2
private

Definition at line 60 of file autofmt.hxx.

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

long ScAutoFmtPreview::mnLabelColWidth
private

Definition at line 58 of file autofmt.hxx.

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

long ScAutoFmtPreview::mnRowHeight
private

Definition at line 61 of file autofmt.hxx.

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

ScAutoFormatData* ScAutoFmtPreview::pCurData
private
std::unique_ptr<SvNumberFormatter> ScAutoFmtPreview::pNumFmt
private

Definition at line 69 of file autofmt.hxx.

Referenced by DrawString().

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

Definition at line 53 of file autofmt.hxx.

Referenced by DetectRTL(), and DrawString().


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