LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
AutoFormatPreview Class Reference

#include <autoformatpreview.hxx>

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

Public Member Functions

 AutoFormatPreview ()
 
void NotifyChange (const SwTableAutoFormat &rNewData)
 
void DetectRTL (SwWrtShell const *pWrtShell)
 
- 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)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea)
 
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
 
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 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
 

Private Member Functions

void Init ()
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Resize () override
 
void CalcCellArray (bool bFitWidth)
 
void CalcLineMap ()
 
void PaintCells (vcl::RenderContext &rRenderContext)
 
sal_uInt8 GetFormatIndex (size_t nCol, size_t nRow) const
 
void DrawString (vcl::RenderContext &rRenderContext, size_t nCol, size_t nRow)
 
void DrawBackground (vcl::RenderContext &rRenderContext)
 
void MakeFonts (vcl::RenderContext const &rRenderContext, sal_uInt8 nIndex, vcl::Font &rFont, vcl::Font &rCJKFont, vcl::Font &rCTLFont)
 

Private Attributes

SwTableAutoFormat maCurrentData
 
svx::frame::Array maArray
 
bool mbFitWidth
 Implementation to draw the frame borders. More...
 
bool mbRTL
 
Size maPreviousSize
 
long mnLabelColumnWidth
 
long mnDataColumnWidth1
 
long mnDataColumnWidth2
 
long mnRowHeight
 
const OUString maStringJan
 
const OUString maStringFeb
 
const OUString maStringMar
 
const OUString maStringNorth
 
const OUString maStringMid
 
const OUString maStringSouth
 
const OUString maStringSum
 
std::unique_ptr< SvNumberFormattermxNumFormat
 
uno::Reference< i18n::XBreakIterator > m_xBreak
 

Additional Inherited Members

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

Detailed Description

Definition at line 34 of file autoformatpreview.hxx.

Constructor & Destructor Documentation

AutoFormatPreview::AutoFormatPreview ( )

Member Function Documentation

void AutoFormatPreview::CalcCellArray ( bool  bFitWidth)
private
void AutoFormatPreview::CalcLineMap ( )
private
void AutoFormatPreview::DetectRTL ( SwWrtShell const *  pWrtShell)
void AutoFormatPreview::DrawBackground ( vcl::RenderContext rRenderContext)
private
void AutoFormatPreview::DrawString ( vcl::RenderContext rRenderContext,
size_t  nCol,
size_t  nRow 
)
private
sal_uInt8 AutoFormatPreview::GetFormatIndex ( size_t  nCol,
size_t  nRow 
) const
private

Definition at line 125 of file autoformatpreview.cxx.

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

Referenced by CalcLineMap(), DrawBackground(), and DrawString().

void AutoFormatPreview::Init ( void  )
private
void AutoFormatPreview::MakeFonts ( vcl::RenderContext const &  rRenderContext,
sal_uInt8  nIndex,
vcl::Font rFont,
vcl::Font rCJKFont,
vcl::Font rCTLFont 
)
private
void AutoFormatPreview::NotifyChange ( const SwTableAutoFormat rNewData)
void AutoFormatPreview::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprivatevirtual
void AutoFormatPreview::PaintCells ( vcl::RenderContext rRenderContext)
private
void AutoFormatPreview::Resize ( )
overrideprivatevirtual

Member Data Documentation

uno::Reference<i18n::XBreakIterator> AutoFormatPreview::m_xBreak
private

Definition at line 62 of file autoformatpreview.hxx.

Referenced by AutoFormatPreview(), and DrawString().

svx::frame::Array AutoFormatPreview::maArray
private
SwTableAutoFormat AutoFormatPreview::maCurrentData
private
Size AutoFormatPreview::maPreviousSize
private

Definition at line 48 of file autoformatpreview.hxx.

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

const OUString AutoFormatPreview::maStringFeb
private

Definition at line 54 of file autoformatpreview.hxx.

Referenced by DrawString().

const OUString AutoFormatPreview::maStringJan
private

Definition at line 53 of file autoformatpreview.hxx.

Referenced by DrawString().

const OUString AutoFormatPreview::maStringMar
private

Definition at line 55 of file autoformatpreview.hxx.

Referenced by DrawString().

const OUString AutoFormatPreview::maStringMid
private

Definition at line 57 of file autoformatpreview.hxx.

Referenced by DrawString().

const OUString AutoFormatPreview::maStringNorth
private

Definition at line 56 of file autoformatpreview.hxx.

Referenced by DrawString().

const OUString AutoFormatPreview::maStringSouth
private

Definition at line 58 of file autoformatpreview.hxx.

Referenced by DrawString().

const OUString AutoFormatPreview::maStringSum
private

Definition at line 59 of file autoformatpreview.hxx.

Referenced by DrawString().

bool AutoFormatPreview::mbFitWidth
private

Implementation to draw the frame borders.

Definition at line 46 of file autoformatpreview.hxx.

Referenced by NotifyChange().

bool AutoFormatPreview::mbRTL
private

Definition at line 47 of file autoformatpreview.hxx.

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

long AutoFormatPreview::mnDataColumnWidth1
private

Definition at line 50 of file autoformatpreview.hxx.

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

long AutoFormatPreview::mnDataColumnWidth2
private

Definition at line 51 of file autoformatpreview.hxx.

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

long AutoFormatPreview::mnLabelColumnWidth
private

Definition at line 49 of file autoformatpreview.hxx.

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

long AutoFormatPreview::mnRowHeight
private

Definition at line 52 of file autoformatpreview.hxx.

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

std::unique_ptr<SvNumberFormatter> AutoFormatPreview::mxNumFormat
private

Definition at line 60 of file autoformatpreview.hxx.

Referenced by AutoFormatPreview(), and DrawString().


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