LibreOffice Module svx (master)
1
|
#include <fntctrl.hxx>
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_Impl > | pImpl |
Additional Inherited Members | |
![]() | |
static bool | IsUpdateMode () |
Definition at line 31 of file fntctrl.hxx.
SvxFontPrevWindow::SvxFontPrevWindow | ( | ) |
Definition at line 532 of file fntctrl.cxx.
|
overridevirtual |
Definition at line 536 of file fntctrl.cxx.
|
staticprivate |
Definition at line 502 of file fntctrl.cxx.
References svtools::DOCCOLOR, svtools::FONTCOLOR, OutputDevice::SetBackground(), and OutputDevice::SetTextColor().
Referenced by Paint().
void SvxFontPrevWindow::AutoCorrectFontColor | ( | ) |
Definition at line 829 of file fntctrl.cxx.
References COL_AUTO(), COL_BLACK, COL_WHITE, Color::IsDark(), and pImpl.
Referenced by SetFromItemSet().
SvxFont & SvxFontPrevWindow::GetCJKFont | ( | ) |
SvxFont & SvxFontPrevWindow::GetCTLFont | ( | ) |
SvxFont & SvxFontPrevWindow::GetFont | ( | ) |
const SvxFont & SvxFontPrevWindow::GetFont | ( | ) | const |
Definition at line 556 of file fntctrl.cxx.
References pImpl.
bool SvxFontPrevWindow::IsTwoLines | ( | ) | const |
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 606 of file fntctrl.cxx.
References vcl::ALL, ApplySettings(), ASIAN, COMPLEX, SfxViewShell::Current(), OutputDevice::DrawLine(), SvxFont::DrawPrev(), OutputDevice::DrawRect(), OutputDevice::GetFillColor(), OutputDevice::GetLineColor(), OutputDevice::GetOutputSize(), SfxViewShell::GetSelectionText(), Application::GetSettings(), AllSettings::GetStyleSettings(), SvxFont::GetTextSize(), StyleSettings::GetWindowColor(), Size::Height(), weld::CustomWidgetController::IsEnabled(), IsTwoLines(), LATIN, makeRepresentativeTextForFont(), pImpl, Point, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), OutputDevice::SetOverlineColor(), OutputDevice::SetTextLineColor(), TEXT_WIDTH, and Size::Width().
void SvxFontPrevWindow::ResetColor | ( | ) |
Definition at line 588 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
void SvxFontPrevWindow::SetBrackets | ( | sal_Unicode | cStart, |
sal_Unicode | cEnd | ||
) |
Definition at line 817 of file fntctrl.cxx.
References pImpl.
Definition at line 582 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 508 of file fntctrl.cxx.
References VclPtr< reference_type >::Create(), SfxViewShell::Current(), weld::DrawingArea::get_ref_device(), getPreviewStripSize(), SfxViewShell::GetPrinter(), Size::Height(), weld::CustomWidgetController::Invalidate(), pImpl, weld::Widget::set_size_request(), and Size::Width().
void SvxFontPrevWindow::SetFont | ( | const SvxFont & | rNormalFont, |
const SvxFont & | rCJKFont, | ||
const SvxFont & | rCTLFont | ||
) |
Definition at line 572 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
|
staticprivate |
Definition at line 862 of file fntctrl.cxx.
References SfxItemSet::Get(), GetLanguage(), GetWhich(), and LANGUAGE_NONE.
Referenced by SetFromItemSet().
void SvxFontPrevWindow::SetFontNameAsPreviewText | ( | ) |
|
staticprivate |
Definition at line 846 of file fntctrl.cxx.
References SfxItemSet::Get(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), GetWhich(), and OutputDevice::LogicToLogic().
Referenced by SetFromItemSet().
void SvxFontPrevWindow::SetFontWidthScale | ( | sal_uInt16 | nScaleInPercent | ) |
Definition at line 823 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
Referenced by SetFromItemSet().
void SvxFontPrevWindow::SetFromItemSet | ( | const SfxItemSet & | rSet, |
bool | bPreviewBackgroundToCharacter | ||
) |
Definition at line 873 of file fntctrl.cxx.
References AutoCorrectFontColor(), DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, DFLT_ESC_SUB, DFLT_ESC_SUPER, SfxItemSet::Get(), GetCJKFont(), SvxBrushItem::GetColor(), GetCTLFont(), SvxEmphasisMarkItem::GetEmphasisMark(), SvxEscapementItem::GetEsc(), GetFont(), SvxBrushItem::GetGraphicPos(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SvxEscapementItem::GetProportionalHeight(), SvxColorItem::GetValue(), CntUnencodedStringItem::GetValue(), GetWhich(), GPOS_NONE, weld::CustomWidgetController::Invalidate(), Color::IsTransparent(), LINESTYLE_NONE, OutputDevice::LogicToLogic(), pImpl, SvxFont::SetCaseMap(), SvxFont::SetFixKerning(), SetFontLang(), SetFontNameAsPreviewText(), SetFontSize(), SetFontWidthScale(), SetPrevFont(), SetPrevFontEscapement(), SetPrevFontStyle(), SetPreviewText(), and STRIKEOUT_NONE.
Definition at line 600 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
void SvxFontPrevWindow::SetPreviewText | ( | const OUString & | rString | ) |
Definition at line 594 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
void SvxFontPrevWindow::SetTwoLines | ( | bool | bSet | ) |
Definition at line 812 of file fntctrl.cxx.
References pImpl.
|
private |
Definition at line 34 of file fntctrl.hxx.
Referenced by AutoCorrectFontColor(), GetCJKFont(), GetCTLFont(), GetFont(), IsTwoLines(), Paint(), ResetColor(), SetBrackets(), SetColor(), SetDrawingArea(), SetFont(), SetFontNameAsPreviewText(), SetFontWidthScale(), SetFromItemSet(), SetOverlineColor(), SetPreviewText(), SetTextLineColor(), and SetTwoLines().