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:
Collaboration diagram for SwDropCapsPict:


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 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
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 OString &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 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

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 (const SwDropCapsPage &_rPage, vcl::Font &_rFont, sal_uInt16 _nWhich)

Private Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 39 of file drpcps.hxx.

Constructor & Destructor Documentation

SwDropCapsPict::SwDropCapsPict ( )

Definition at line 81 of file drpcps.hxx.

SwDropCapsPict::~SwDropCapsPict ( )

Definition at line 128 of file drpcps.cxx.

Member Function Documentation

Size SwDropCapsPict::CalcTextSize ( )

Definition at line 376 of file drpcps.cxx.

References calcFontHeightAnyAscent(), SvxFont::GetTextSize(), maText, and Size::Width().

void SwDropCapsPict::CheckScript ( )

Definition at line 343 of file drpcps.cxx.

References maText.

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

Definition at line 308 of file drpcps.cxx.

References SvxFont::DrawPrev(), maText, and Point.

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

Get the details of the first script change.

[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 maText.

void SwDropCapsPict::GetFontSettings ( const SwDropCapsPage _rPage,
vcl::Font _rFont,
sal_uInt16  _nWhich 
bool SwDropCapsPict::GetNextScriptSegment ( size_t &  nIdx,
sal_Int32 &  start,
sal_Int32 &  end,
sal_uInt16 &  scriptType 

Get the details of the first script change.

[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.)
True if there was a next segment, false if not.

Definition at line 159 of file drpcps.cxx.

References maText.

void SwDropCapsPict::InitPrinter ( )

Definition at line 100 of file drpcps.cxx.

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

Reimplemented from weld::CustomWidgetController.

Definition at line 73 of file drpcps.cxx.

void SwDropCapsPict::SetDistance ( sal_uInt16  nD)

Definition at line 85 of file drpcps.cxx.

Referenced by SwDropCapsPage::ModifyEntry().

void SwDropCapsPict::SetDrawingArea ( weld::DrawingArea pDrawingArea)
void SwDropCapsPict::SetDropCapsPage ( SwDropCapsPage pPage)

Definition at line 92 of file drpcps.hxx.

Referenced by SwDropCapsPage::SwDropCapsPage().

void SwDropCapsPict::SetLines ( sal_uInt8  nL)

Definition at line 79 of file drpcps.cxx.

Referenced by SwDropCapsPage::ModifyEntry().

void SwDropCapsPict::SetText ( const OUString &  rT)

Definition at line 60 of file drpcps.cxx.

References maText.

Referenced by SwDropCapsPage::ModifyEntry().

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

Definition at line 91 of file drpcps.cxx.

References maText.

Referenced by SwDropCapsPage::Reset().

void SwDropCapsPict::UpdatePaintSettings ( )

Member Data Documentation

Color SwDropCapsPict::maBackColor

Definition at line 44 of file drpcps.hxx.

SvxFont SwDropCapsPict::maCJKFont

Definition at line 65 of file drpcps.hxx.

SvxFont SwDropCapsPict::maCTLFont

Definition at line 66 of file drpcps.hxx.

SvxFont SwDropCapsPict::maFont

Definition at line 64 of file drpcps.hxx.

std::vector<ScriptInfo> SwDropCapsPict::maScriptChanges

Definition at line 63 of file drpcps.hxx.

OUString SwDropCapsPict::maScriptText

Definition at line 43 of file drpcps.hxx.

OUString SwDropCapsPict::maText

Definition at line 42 of file drpcps.hxx.

Color SwDropCapsPict::maTextLineColor

Definition at line 45 of file drpcps.hxx.

Size SwDropCapsPict::maTextSize

Definition at line 67 of file drpcps.hxx.

bool SwDropCapsPict::mbDelPrinter

Definition at line 52 of file drpcps.hxx.

sal_uInt16 SwDropCapsPict::mnDistance

Definition at line 50 of file drpcps.hxx.

tools::Long SwDropCapsPict::mnLineH

Definition at line 48 of file drpcps.hxx.

sal_uInt8 SwDropCapsPict::mnLines

Definition at line 46 of file drpcps.hxx.

tools::Long SwDropCapsPict::mnTextH

Definition at line 49 of file drpcps.hxx.

tools::Long SwDropCapsPict::mnTotLineH

Definition at line 47 of file drpcps.hxx.

SwDropCapsPage* SwDropCapsPict::mpPage

Definition at line 41 of file drpcps.hxx.

VclPtr<Printer> SwDropCapsPict::mpPrinter

Definition at line 51 of file drpcps.hxx.

css::uno::Reference< css::i18n::XBreakIterator > SwDropCapsPict::xBreak

Definition at line 68 of file drpcps.hxx.

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