|
LibreOffice Module svx (master) 1
|
#include <fntctrl.hxx>
Public Member Functions | |
| SvxFontPrevWindow () | |
| virtual | ~SvxFontPrevWindow () override |
| SvxFont & | GetFont () |
| const SvxFont & | GetFont () const |
| void | SetFont (const SvxFont &rNormalFont, const SvxFont &rCJKFont, const SvxFont &rCTLFont) |
| SvxFont & | GetCJKFont () |
| SvxFont & | GetCTLFont () |
| 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::DrawingArea * | GetDrawingArea () 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 | |
| CustomWidgetController & | operator= (CustomWidgetController const &)=default |
| CustomWidgetController & | operator= (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_Impl > | pImpl |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
| static bool | IsUpdateMode () |
Definition at line 31 of file fntctrl.hxx.
| SvxFontPrevWindow::SvxFontPrevWindow | ( | ) |
Definition at line 510 of file fntctrl.cxx.
|
overridevirtual |
Definition at line 514 of file fntctrl.cxx.
|
staticprivate |
Definition at line 476 of file fntctrl.cxx.
References COL_AUTO(), COL_BLACK(), COL_WHITE(), svtools::DOCCOLOR, svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), Color::IsDark(), svtools::ColorConfigValue::nColor, OutputDevice::SetBackground(), and OutputDevice::SetTextColor().
Referenced by Paint().
| 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().
| SvxFont & SvxFontPrevWindow::GetCJKFont | ( | ) |
| SvxFont & SvxFontPrevWindow::GetCTLFont | ( | ) |
| SvxFont & SvxFontPrevWindow::GetFont | ( | ) |
| const SvxFont & SvxFontPrevWindow::GetFont | ( | ) | const |
Definition at line 534 of file fntctrl.cxx.
References pImpl.
| bool SvxFontPrevWindow::IsTwoLines | ( | ) | const |
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 584 of file fntctrl.cxx.
References vcl::ALL, ApplySettings(), ASIAN, COMPLEX, SfxViewShell::Current(), OutputDevice::DrawLine(), SvxFont::DrawPrev(), OutputDevice::DrawRect(), OutputDevice::Erase(), 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, 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 566 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
| void SvxFontPrevWindow::SetBrackets | ( | sal_Unicode | cStart, |
| sal_Unicode | cEnd | ||
| ) |
Definition at line 794 of file fntctrl.cxx.
References pImpl.
| void SvxFontPrevWindow::SetColor | ( | const Color & | rColor | ) |
Definition at line 560 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 486 of file fntctrl.cxx.
References VclPtr< class 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 550 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
|
staticprivate |
Definition at line 839 of file fntctrl.cxx.
References SfxItemSet::Get(), GetLanguage(), GetWhich(), LANGUAGE_NONE, and rSet.
Referenced by SetFromItemSet().
| void SvxFontPrevWindow::SetFontNameAsPreviewText | ( | ) |
|
staticprivate |
Definition at line 823 of file fntctrl.cxx.
References SfxItemSet::Get(), SvxFontHeightItem::GetHeight(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), GetWhich(), OutputDevice::LogicToLogic(), and rSet.
Referenced by SetFromItemSet().
| void SvxFontPrevWindow::SetFontWidthScale | ( | sal_uInt16 | nScaleInPercent | ) |
Definition at line 800 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), n, and pImpl.
Referenced by SetFromItemSet().
| void SvxFontPrevWindow::SetFromItemSet | ( | const SfxItemSet & | rSet, |
| bool | bPreviewBackgroundToCharacter | ||
| ) |
Definition at line 850 of file fntctrl.cxx.
References AutoCorrectFontColor(), COL_TRANSPARENT(), DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, DFLT_ESC_SUB, DFLT_ESC_SUPER, svtools::DOCCOLOR, SfxItemSet::Get(), GetCJKFont(), SvxBrushItem::GetColor(), svtools::ColorConfig::GetColorValue(), 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(), svtools::ColorConfigValue::nColor, pImpl, rSet, SvxFont::SetCaseMap(), SetFontLang(), SetFontNameAsPreviewText(), SetFontSize(), SetFontWidthScale(), SetPrevFont(), SetPrevFontEscapement(), SetPrevFontStyle(), SetPreviewText(), and STRIKEOUT_NONE.
| void SvxFontPrevWindow::SetOverlineColor | ( | const Color & | rColor | ) |
Definition at line 578 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
| void SvxFontPrevWindow::SetPreviewText | ( | const OUString & | rString | ) |
| void SvxFontPrevWindow::SetTextLineColor | ( | const Color & | rColor | ) |
Definition at line 572 of file fntctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pImpl.
| void SvxFontPrevWindow::SetTwoLines | ( | bool | bSet | ) |
Definition at line 789 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().