LibreOffice Module svx (master)
1
|
#include <CommonStylePreviewRenderer.hxx>
Public Member Functions | |
CommonStylePreviewRenderer (const SfxObjectShell &rShell, OutputDevice &rOutputDev, SfxStyleSheetBase *pStyle, tools::Long nMaxHeight) | |
virtual | ~CommonStylePreviewRenderer () override |
virtual bool | recalculate () override |
virtual bool | render (const tools::Rectangle &aRectangle, RenderAlign eRenderAlign=RenderAlign::CENTER) override |
![]() | |
StylePreviewRenderer (const SfxObjectShell &rShell, OutputDevice &rOutputDev, SfxStyleSheetBase *pStyle, tools::Long nMaxHeight) | |
virtual | ~StylePreviewRenderer () |
Private Member Functions | |
Size | getRenderSize () const |
Private Attributes | |
std::unique_ptr< SvxFont > | m_pFont |
Color | maFontColor |
Color | maHighlightColor |
Color | maBackgroundColor |
Size | maPixelSize |
OUString | maStyleName |
Additional Inherited Members | |
![]() | |
enum | RenderAlign { RenderAlign::TOP, RenderAlign::CENTER } |
![]() | |
const SfxObjectShell & | mrShell |
OutputDevice & | mrOutputDev |
SfxStyleSheetBase * | mpStyle |
tools::Long | mnMaxHeight |
Definition at line 26 of file CommonStylePreviewRenderer.hxx.
svx::CommonStylePreviewRenderer::CommonStylePreviewRenderer | ( | const SfxObjectShell & | rShell, |
OutputDevice & | rOutputDev, | ||
SfxStyleSheetBase * | pStyle, | ||
tools::Long | nMaxHeight | ||
) |
Definition at line 45 of file CommonStylePreviewRenderer.cxx.
References COL_AUTO(), and maBackgroundColor.
|
overridevirtual |
Definition at line 58 of file CommonStylePreviewRenderer.cxx.
|
private |
Definition at line 181 of file CommonStylePreviewRenderer.cxx.
References assert(), Size::Height(), m_pFont, maStyleName, sfx2::StylePreviewRenderer::mnMaxHeight, sfx2::StylePreviewRenderer::mrOutputDev, and Size::setHeight().
Referenced by recalculate().
|
overridevirtual |
Implements sfx2::StylePreviewRenderer.
Definition at line 61 of file CommonStylePreviewRenderer.cxx.
References tools::Rectangle::Bottom(), GetCaseMap(), SfxStyleSheetBase::GetFamily(), SvxFontItem::GetFamilyName(), OutputDevice::GetFont(), SvxFontHeightItem::GetHeight(), SfxStyleSheetBase::GetItemSetForPreview(), SfxObjectShell::GetMapUnit(), SfxStyleSheetBase::GetName(), getRenderSize(), SvxFontItem::GetStyleName(), OutputDevice::GetTextBoundRect(), GetValue, IsStarSymbol(), OutputDevice::LogicToPixel(), m_pFont, maBackgroundColor, maFontColor, maHighlightColor, maPixelSize, sfx2::StylePreviewRenderer::mnMaxHeight, sfx2::StylePreviewRenderer::mpStyle, sfx2::StylePreviewRenderer::mrOutputDev, sfx2::StylePreviewRenderer::mrShell, SvxFontItem::SetFamilyName(), OutputDevice::SetFont(), XATTR_FILLCOLOR(), and XATTR_FILLSTYLE().
|
overridevirtual |
Implements sfx2::StylePreviewRenderer.
Definition at line 192 of file CommonStylePreviewRenderer.cxx.
References sfx2::StylePreviewRenderer::CENTER, COL_AUTO(), OutputDevice::DrawRect(), OutputDevice::DrawText(), OutputDevice::GetFont(), vcl::Font::GetFontSize(), tools::Rectangle::GetHeight(), m_pFont, maBackgroundColor, maFontColor, maHighlightColor, maPixelSize, maStyleName, sfx2::StylePreviewRenderer::mrOutputDev, Point, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), and tools::Rectangle::TopLeft().
|
private |
Definition at line 28 of file CommonStylePreviewRenderer.hxx.
Referenced by getRenderSize(), recalculate(), and render().
|
private |
Definition at line 31 of file CommonStylePreviewRenderer.hxx.
Referenced by recalculate(), and render().
|
private |
Definition at line 29 of file CommonStylePreviewRenderer.hxx.
Referenced by recalculate(), and render().
|
private |
Definition at line 30 of file CommonStylePreviewRenderer.hxx.
Referenced by recalculate(), and render().
|
private |
Definition at line 32 of file CommonStylePreviewRenderer.hxx.
Referenced by recalculate(), and render().
|
private |
Definition at line 33 of file CommonStylePreviewRenderer.hxx.
Referenced by getRenderSize(), and render().