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

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

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

SwDropCapsPagempPage
 
OUString maText
 
OUString maScriptText
 
Color maBackColor
 
Color maTextLineColor
 
sal_uInt8 mnLines
 
long mnTotLineH
 
long mnLineH
 
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 ( )
inline

Definition at line 81 of file drpcps.hxx.

SwDropCapsPict::~SwDropCapsPict ( )
overridevirtual

Definition at line 131 of file drpcps.cxx.

Member Function Documentation

Size SwDropCapsPict::CalcTextSize ( )
private

Definition at line 376 of file drpcps.cxx.

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

void SwDropCapsPict::CheckScript ( )
private

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 Point::AdjustX(), SvxFont::DrawPrev(), and maText.

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 141 of file drpcps.cxx.

References maText.

void SwDropCapsPict::GetFontSettings ( const SwDropCapsPage _rPage,
vcl::Font _rFont,
sal_uInt16  _nWhich 
)
staticprivate
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 162 of file drpcps.cxx.

References maText.

void SwDropCapsPict::InitPrinter ( )
inlineprivate

Definition at line 103 of file drpcps.cxx.

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

Reimplemented from weld::CustomWidgetController.

Definition at line 76 of file drpcps.cxx.

void SwDropCapsPict::SetDistance ( sal_uInt16  nD)

Definition at line 88 of file drpcps.cxx.

Referenced by SwDropCapsPage::ModifyEntry().

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

Definition at line 92 of file drpcps.hxx.

Referenced by SwDropCapsPage::SwDropCapsPage().

void SwDropCapsPict::SetLines ( sal_uInt8  nL)

Definition at line 82 of file drpcps.cxx.

Referenced by SwDropCapsPage::ModifyEntry().

void SwDropCapsPict::SetText ( const OUString &  rT)

Definition at line 63 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 94 of file drpcps.cxx.

References maText.

Referenced by SwDropCapsPage::Reset().

void SwDropCapsPict::UpdatePaintSettings ( )

Member Data Documentation

Color SwDropCapsPict::maBackColor
private

Definition at line 44 of file drpcps.hxx.

SvxFont SwDropCapsPict::maCJKFont
private

Definition at line 65 of file drpcps.hxx.

SvxFont SwDropCapsPict::maCTLFont
private

Definition at line 66 of file drpcps.hxx.

SvxFont SwDropCapsPict::maFont
private

Definition at line 64 of file drpcps.hxx.

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

Definition at line 63 of file drpcps.hxx.

OUString SwDropCapsPict::maScriptText
private

Definition at line 43 of file drpcps.hxx.

OUString SwDropCapsPict::maText
private

Definition at line 42 of file drpcps.hxx.

Color SwDropCapsPict::maTextLineColor
private

Definition at line 45 of file drpcps.hxx.

Size SwDropCapsPict::maTextSize
private

Definition at line 67 of file drpcps.hxx.

bool SwDropCapsPict::mbDelPrinter
private

Definition at line 52 of file drpcps.hxx.

sal_uInt16 SwDropCapsPict::mnDistance
private

Definition at line 50 of file drpcps.hxx.

long SwDropCapsPict::mnLineH
private

Definition at line 48 of file drpcps.hxx.

sal_uInt8 SwDropCapsPict::mnLines
private

Definition at line 46 of file drpcps.hxx.

long SwDropCapsPict::mnTextH
private

Definition at line 49 of file drpcps.hxx.

long SwDropCapsPict::mnTotLineH
private

Definition at line 47 of file drpcps.hxx.

SwDropCapsPage* SwDropCapsPict::mpPage
private

Definition at line 41 of file drpcps.hxx.

VclPtr<Printer> SwDropCapsPict::mpPrinter
private

Definition at line 51 of file drpcps.hxx.

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

Definition at line 68 of file drpcps.hxx.


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