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

#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 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
 

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
 
tools::Long mnLabelColumnWidth
 
tools::Long mnDataColumnWidth1
 
tools::Long mnDataColumnWidth2
 
tools::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::AutoFormatPreview ( )

Member Function Documentation

◆ CalcCellArray()

void AutoFormatPreview::CalcCellArray ( bool  bFitWidth)
private

◆ CalcLineMap()

void AutoFormatPreview::CalcLineMap ( )
private

◆ DetectRTL()

void AutoFormatPreview::DetectRTL ( SwWrtShell const *  pWrtShell)

◆ DrawBackground()

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

◆ DrawString()

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

◆ GetFormatIndex()

sal_uInt8 AutoFormatPreview::GetFormatIndex ( size_t  nCol,
size_t  nRow 
) const
private

Definition at line 127 of file autoformatpreview.cxx.

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

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

◆ Init()

void AutoFormatPreview::Init ( void  )
private

◆ MakeFonts()

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

◆ NotifyChange()

void AutoFormatPreview::NotifyChange ( const SwTableAutoFormat rNewData)

◆ Paint()

void AutoFormatPreview::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprivatevirtual

◆ PaintCells()

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

◆ Resize()

void AutoFormatPreview::Resize ( )
overrideprivatevirtual

Member Data Documentation

◆ m_xBreak

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

Definition at line 62 of file autoformatpreview.hxx.

Referenced by AutoFormatPreview(), and DrawString().

◆ maArray

svx::frame::Array AutoFormatPreview::maArray
private

◆ maCurrentData

SwTableAutoFormat AutoFormatPreview::maCurrentData
private

◆ maPreviousSize

Size AutoFormatPreview::maPreviousSize
private

Definition at line 48 of file autoformatpreview.hxx.

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

◆ maStringFeb

const OUString AutoFormatPreview::maStringFeb
private

Definition at line 54 of file autoformatpreview.hxx.

Referenced by DrawString().

◆ maStringJan

const OUString AutoFormatPreview::maStringJan
private

Definition at line 53 of file autoformatpreview.hxx.

Referenced by DrawString().

◆ maStringMar

const OUString AutoFormatPreview::maStringMar
private

Definition at line 55 of file autoformatpreview.hxx.

Referenced by DrawString().

◆ maStringMid

const OUString AutoFormatPreview::maStringMid
private

Definition at line 57 of file autoformatpreview.hxx.

Referenced by DrawString().

◆ maStringNorth

const OUString AutoFormatPreview::maStringNorth
private

Definition at line 56 of file autoformatpreview.hxx.

Referenced by DrawString().

◆ maStringSouth

const OUString AutoFormatPreview::maStringSouth
private

Definition at line 58 of file autoformatpreview.hxx.

Referenced by DrawString().

◆ maStringSum

const OUString AutoFormatPreview::maStringSum
private

Definition at line 59 of file autoformatpreview.hxx.

Referenced by DrawString().

◆ mbFitWidth

bool AutoFormatPreview::mbFitWidth
private

Implementation to draw the frame borders.

Definition at line 46 of file autoformatpreview.hxx.

Referenced by NotifyChange().

◆ mbRTL

bool AutoFormatPreview::mbRTL
private

Definition at line 47 of file autoformatpreview.hxx.

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

◆ mnDataColumnWidth1

tools::Long AutoFormatPreview::mnDataColumnWidth1
private

Definition at line 50 of file autoformatpreview.hxx.

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

◆ mnDataColumnWidth2

tools::Long AutoFormatPreview::mnDataColumnWidth2
private

Definition at line 51 of file autoformatpreview.hxx.

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

◆ mnLabelColumnWidth

tools::Long AutoFormatPreview::mnLabelColumnWidth
private

Definition at line 49 of file autoformatpreview.hxx.

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

◆ mnRowHeight

tools::Long AutoFormatPreview::mnRowHeight
private

Definition at line 52 of file autoformatpreview.hxx.

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

◆ mxNumFormat

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: