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

#include <drpcps.hxx>

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

Classes

struct  ScriptInfo
 The ScriptInfo structure holds information on where we change from one script to another. More...
 

Public Member Functions

 SwDropCapsPict ()
 
void SetDropCapsPage (SwDropCapsPage *pPage)
 
virtual ~SwDropCapsPict () override
 
void UpdatePaintSettings ()
 
virtual void Resize () override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
void SetText (const OUString &rT)
 
void SetLines (sal_uInt8 nL)
 
void SetDistance (sal_uInt16 nD)
 
void SetValues (const OUString &rText, sal_uInt8 nLines, sal_uInt16 nDistance)
 
void DrawPrev (vcl::RenderContext &rRenderContext, const Point &rPt)
 
- 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

virtual void Paint (vcl::RenderContext &, const tools::Rectangle &rRect) override
 
void CheckScript ()
 
Size CalcTextSize ()
 
void InitPrinter ()
 
void InitPrinter_ ()
 
void GetFirstScriptSegment (sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType)
 Get the details of the first script change. More...
 
bool GetNextScriptSegment (size_t &nIdx, sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType)
 Get the details of the first script change. More...
 

Static Private Member Functions

static void GetFontSettings (vcl::Font &_rFont, sal_uInt16 _nWhich)
 

Private Attributes

SwDropCapsPagempPage
 
OUString maText
 
OUString maScriptText
 
Color maBackColor
 
Color maTextLineColor
 
sal_uInt8 mnLines
 
tools::Long mnTotLineH
 
tools::Long mnLineH
 
tools::Long mnTextH
 
sal_uInt16 mnDistance
 
VclPtr< PrintermpPrinter
 
bool mbDelPrinter
 
std::vector< ScriptInfomaScriptChanges
 
SvxFont maFont
 
SvxFont maCJKFont
 
SvxFont maCTLFont
 
Size maTextSize
 
css::uno::Reference< css::i18n::XBreakIterator > m_xBreak
 

Additional Inherited Members

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

Detailed Description

Definition at line 41 of file drpcps.hxx.

Constructor & Destructor Documentation

◆ SwDropCapsPict()

SwDropCapsPict::SwDropCapsPict ( )
inline

Definition at line 83 of file drpcps.hxx.

◆ ~SwDropCapsPict()

SwDropCapsPict::~SwDropCapsPict ( )
overridevirtual

Member Function Documentation

◆ CalcTextSize()

Size SwDropCapsPict::CalcTextSize ( )
private

◆ CheckScript()

void SwDropCapsPict::CheckScript ( )
private

Definition at line 354 of file drpcps.cxx.

References m_xBreak, maScriptChanges, maScriptText, and maText.

Referenced by UpdatePaintSettings().

◆ DrawPrev()

void SwDropCapsPict::DrawPrev ( vcl::RenderContext rRenderContext,
const Point rPt 
)

◆ GetFirstScriptSegment()

void SwDropCapsPict::GetFirstScriptSegment ( sal_Int32 &  start,
sal_Int32 &  end,
sal_uInt16 &  scriptType 
)
private

Get the details of the first script change.

Parameters
[out]startThe character position of the start of the segment.
[out]endThe character position of the end of the segment.
[out]scriptTypeThe script type (Latin, Asian, Complex etc.)

Definition at line 138 of file drpcps.cxx.

References end, maScriptChanges, maText, and start.

Referenced by CalcTextSize(), and DrawPrev().

◆ GetFontSettings()

void SwDropCapsPict::GetFontSettings ( vcl::Font _rFont,
sal_uInt16  _nWhich 
)
staticprivate

◆ GetNextScriptSegment()

bool SwDropCapsPict::GetNextScriptSegment ( size_t &  nIdx,
sal_Int32 &  start,
sal_Int32 &  end,
sal_uInt16 &  scriptType 
)
private

Get the details of the first script change.

Parameters
[in,out]nIdxIndex of the current script change.
[out]startThe character position of the start of the segment.
[in,out]endThe character position of the end of the segment.
[out]scriptTypeThe script type (Latin, Asian, Complex etc.)
Returns
True if there was a next segment, false if not.

Definition at line 159 of file drpcps.cxx.

References end, maScriptChanges, maText, and start.

Referenced by CalcTextSize(), and DrawPrev().

◆ InitPrinter()

void SwDropCapsPict::InitPrinter ( )
inlineprivate

Definition at line 100 of file drpcps.cxx.

References InitPrinter_(), and mpPrinter.

Referenced by CalcTextSize(), and DrawPrev().

◆ InitPrinter_()

void SwDropCapsPict::InitPrinter_ ( )
private

◆ Paint()

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

◆ Resize()

void SwDropCapsPict::Resize ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 73 of file drpcps.cxx.

References UpdatePaintSettings().

◆ SetDistance()

void SwDropCapsPict::SetDistance ( sal_uInt16  nD)

Definition at line 85 of file drpcps.cxx.

References mnDistance, and UpdatePaintSettings().

Referenced by SwDropCapsPage::ModifyEntry().

◆ SetDrawingArea()

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

◆ SetDropCapsPage()

void SwDropCapsPict::SetDropCapsPage ( SwDropCapsPage pPage)
inline

Definition at line 94 of file drpcps.hxx.

References mpPage.

Referenced by SwDropCapsPage::SwDropCapsPage().

◆ SetLines()

void SwDropCapsPict::SetLines ( sal_uInt8  nL)

Definition at line 79 of file drpcps.cxx.

References mnLines, and UpdatePaintSettings().

Referenced by SwDropCapsPage::ModifyEntry().

◆ SetText()

void SwDropCapsPict::SetText ( const OUString &  rT)

Definition at line 60 of file drpcps.cxx.

References maText, and UpdatePaintSettings().

Referenced by SwDropCapsPage::ModifyEntry().

◆ SetValues()

void SwDropCapsPict::SetValues ( const OUString &  rText,
sal_uInt8  nLines,
sal_uInt16  nDistance 
)

Definition at line 91 of file drpcps.cxx.

References maText, mnDistance, mnLines, and UpdatePaintSettings().

Referenced by SwDropCapsPage::Reset().

◆ UpdatePaintSettings()

void SwDropCapsPict::UpdatePaintSettings ( )

Member Data Documentation

◆ m_xBreak

css::uno::Reference< css::i18n::XBreakIterator > SwDropCapsPict::m_xBreak
private

Definition at line 70 of file drpcps.hxx.

Referenced by CheckScript().

◆ maBackColor

Color SwDropCapsPict::maBackColor
private

Definition at line 46 of file drpcps.hxx.

Referenced by Paint(), and UpdatePaintSettings().

◆ maCJKFont

SvxFont SwDropCapsPict::maCJKFont
private

Definition at line 67 of file drpcps.hxx.

Referenced by CalcTextSize(), DrawPrev(), and UpdatePaintSettings().

◆ maCTLFont

SvxFont SwDropCapsPict::maCTLFont
private

Definition at line 68 of file drpcps.hxx.

Referenced by CalcTextSize(), DrawPrev(), and UpdatePaintSettings().

◆ maFont

SvxFont SwDropCapsPict::maFont
private

Definition at line 66 of file drpcps.hxx.

Referenced by CalcTextSize(), DrawPrev(), and UpdatePaintSettings().

◆ maScriptChanges

std::vector<ScriptInfo> SwDropCapsPict::maScriptChanges
private

◆ maScriptText

OUString SwDropCapsPict::maScriptText
private

Definition at line 45 of file drpcps.hxx.

Referenced by CheckScript().

◆ maText

OUString SwDropCapsPict::maText
private

◆ maTextLineColor

Color SwDropCapsPict::maTextLineColor
private

Definition at line 47 of file drpcps.hxx.

Referenced by Paint(), and UpdatePaintSettings().

◆ maTextSize

Size SwDropCapsPict::maTextSize
private

Definition at line 69 of file drpcps.hxx.

Referenced by Paint(), and UpdatePaintSettings().

◆ mbDelPrinter

bool SwDropCapsPict::mbDelPrinter
private

Definition at line 54 of file drpcps.hxx.

Referenced by InitPrinter_(), and ~SwDropCapsPict().

◆ mnDistance

sal_uInt16 SwDropCapsPict::mnDistance
private

Definition at line 52 of file drpcps.hxx.

Referenced by Paint(), SetDistance(), and SetValues().

◆ mnLineH

tools::Long SwDropCapsPict::mnLineH
private

Definition at line 50 of file drpcps.hxx.

Referenced by Paint(), and UpdatePaintSettings().

◆ mnLines

sal_uInt8 SwDropCapsPict::mnLines
private

Definition at line 48 of file drpcps.hxx.

Referenced by SetLines(), SetValues(), and UpdatePaintSettings().

◆ mnTextH

tools::Long SwDropCapsPict::mnTextH
private

Definition at line 51 of file drpcps.hxx.

Referenced by UpdatePaintSettings().

◆ mnTotLineH

tools::Long SwDropCapsPict::mnTotLineH
private

Definition at line 49 of file drpcps.hxx.

Referenced by Paint(), and UpdatePaintSettings().

◆ mpPage

SwDropCapsPage* SwDropCapsPict::mpPage
private

Definition at line 43 of file drpcps.hxx.

Referenced by Paint(), SetDropCapsPage(), and UpdatePaintSettings().

◆ mpPrinter

VclPtr<Printer> SwDropCapsPict::mpPrinter
private

Definition at line 53 of file drpcps.hxx.

Referenced by CalcTextSize(), DrawPrev(), InitPrinter(), InitPrinter_(), and ~SwDropCapsPict().


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