LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvxFontPrevWindow Class Referencefinal

#include <fntctrl.hxx>

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

Public Member Functions

 SvxFontPrevWindow ()
 
virtual ~SvxFontPrevWindow () override
 
SvxFontGetFont ()
 
const SvxFontGetFont () const
 
void SetFont (const SvxFont &rNormalFont, const SvxFont &rCJKFont, const SvxFont &rCTLFont)
 
SvxFontGetCJKFont ()
 
SvxFontGetCTLFont ()
 
void SetColor (const Color &rColor)
 
void ResetColor ()
 
void SetTextLineColor (const Color &rColor)
 
void SetOverlineColor (const Color &rColor)
 
void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
 
bool IsTwoLines () const
 
void SetTwoLines (bool bSet)
 
void SetBrackets (sal_Unicode cStart, sal_Unicode cEnd)
 
void SetFontWidthScale (sal_uInt16 nScaleInPercent)
 
void AutoCorrectFontColor ()
 
void SetPreviewText (const OUString &rString)
 
void SetFontNameAsPreviewText ()
 
void SetFromItemSet (const SfxItemSet &rSet, bool bPreviewBackgroundToCharacter)
 
- 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 SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 

Static Private Member Functions

static SVX_DLLPRIVATE void ApplySettings (vcl::RenderContext &rRenderContext)
 
static SVX_DLLPRIVATE void SetFontSize (const SfxItemSet &rSet, sal_uInt16 nSlot, SvxFont &rFont)
 
static SVX_DLLPRIVATE void SetFontLang (const SfxItemSet &rSet, sal_uInt16 nSlot, SvxFont &rFont)
 

Private Attributes

std::unique_ptr< FontPrevWin_ImplpImpl
 

Additional Inherited Members

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

Detailed Description

Definition at line 31 of file fntctrl.hxx.

Constructor & Destructor Documentation

◆ SvxFontPrevWindow()

SvxFontPrevWindow::SvxFontPrevWindow ( )

Definition at line 510 of file fntctrl.cxx.

◆ ~SvxFontPrevWindow()

SvxFontPrevWindow::~SvxFontPrevWindow ( )
overridevirtual

Definition at line 514 of file fntctrl.cxx.

Member Function Documentation

◆ ApplySettings()

void SvxFontPrevWindow::ApplySettings ( vcl::RenderContext rRenderContext)
staticprivate

◆ AutoCorrectFontColor()

void SvxFontPrevWindow::AutoCorrectFontColor ( )

Definition at line 806 of file fntctrl.cxx.

References COL_AUTO(), COL_BLACK(), COL_WHITE(), Color::IsDark(), and pImpl.

Referenced by SetFromItemSet().

◆ GetCJKFont()

SvxFont & SvxFontPrevWindow::GetCJKFont ( )

Definition at line 523 of file fntctrl.cxx.

References pImpl.

Referenced by SetFromItemSet().

◆ GetCTLFont()

SvxFont & SvxFontPrevWindow::GetCTLFont ( )

Definition at line 518 of file fntctrl.cxx.

References pImpl.

Referenced by SetFromItemSet().

◆ GetFont() [1/2]

SvxFont & SvxFontPrevWindow::GetFont ( )

Definition at line 528 of file fntctrl.cxx.

References pImpl.

Referenced by SetFromItemSet().

◆ GetFont() [2/2]

const SvxFont & SvxFontPrevWindow::GetFont ( ) const

Definition at line 534 of file fntctrl.cxx.

References pImpl.

◆ IsTwoLines()

bool SvxFontPrevWindow::IsTwoLines ( ) const

Definition at line 784 of file fntctrl.cxx.

References pImpl.

Referenced by Paint().

◆ Paint()

void SvxFontPrevWindow::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle  
)
overridevirtual

◆ ResetColor()

void SvxFontPrevWindow::ResetColor ( )

Definition at line 566 of file fntctrl.cxx.

References weld::CustomWidgetController::Invalidate(), and pImpl.

◆ SetBrackets()

void SvxFontPrevWindow::SetBrackets ( sal_Unicode  cStart,
sal_Unicode  cEnd 
)

Definition at line 794 of file fntctrl.cxx.

References pImpl.

◆ SetColor()

void SvxFontPrevWindow::SetColor ( const Color rColor)

Definition at line 560 of file fntctrl.cxx.

References weld::CustomWidgetController::Invalidate(), and pImpl.

◆ SetDrawingArea()

void SvxFontPrevWindow::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overrideprivatevirtual

◆ SetFont()

void SvxFontPrevWindow::SetFont ( const SvxFont rNormalFont,
const SvxFont rCJKFont,
const SvxFont rCTLFont 
)

Definition at line 550 of file fntctrl.cxx.

References weld::CustomWidgetController::Invalidate(), and pImpl.

◆ SetFontLang()

void SvxFontPrevWindow::SetFontLang ( const SfxItemSet rSet,
sal_uInt16  nSlot,
SvxFont rFont 
)
staticprivate

Definition at line 839 of file fntctrl.cxx.

References SfxItemSet::Get(), GetLanguage(), GetWhich(), LANGUAGE_NONE, and rSet.

Referenced by SetFromItemSet().

◆ SetFontNameAsPreviewText()

void SvxFontPrevWindow::SetFontNameAsPreviewText ( )

Definition at line 545 of file fntctrl.cxx.

References pImpl.

Referenced by SetFromItemSet().

◆ SetFontSize()

void SvxFontPrevWindow::SetFontSize ( const SfxItemSet rSet,
sal_uInt16  nSlot,
SvxFont rFont 
)
staticprivate

◆ SetFontWidthScale()

void SvxFontPrevWindow::SetFontWidthScale ( sal_uInt16  nScaleInPercent)

Definition at line 800 of file fntctrl.cxx.

References weld::CustomWidgetController::Invalidate(), n, and pImpl.

Referenced by SetFromItemSet().

◆ SetFromItemSet()

void SvxFontPrevWindow::SetFromItemSet ( const SfxItemSet rSet,
bool  bPreviewBackgroundToCharacter 
)

◆ SetOverlineColor()

void SvxFontPrevWindow::SetOverlineColor ( const Color rColor)

Definition at line 578 of file fntctrl.cxx.

References weld::CustomWidgetController::Invalidate(), and pImpl.

◆ SetPreviewText()

void SvxFontPrevWindow::SetPreviewText ( const OUString &  rString)

Definition at line 539 of file fntctrl.cxx.

References pImpl.

Referenced by SetFromItemSet().

◆ SetTextLineColor()

void SvxFontPrevWindow::SetTextLineColor ( const Color rColor)

Definition at line 572 of file fntctrl.cxx.

References weld::CustomWidgetController::Invalidate(), and pImpl.

◆ SetTwoLines()

void SvxFontPrevWindow::SetTwoLines ( bool  bSet)

Definition at line 789 of file fntctrl.cxx.

References pImpl.

Member Data Documentation

◆ pImpl

std::unique_ptr<FontPrevWin_Impl> SvxFontPrevWindow::pImpl
private

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