LibreOffice Module svx (master) 1
|
#include <StylesPreviewWindow.hxx>
Public Member Functions | |
StyleItemController (std::pair< OUString, OUString > aStyleName) | |
void | Paint (vcl::RenderContext &rRenderContext) |
Private Member Functions | |
void | DrawEntry (vcl::RenderContext &rRenderContext) |
void | DrawText (vcl::RenderContext &rRenderContext) |
void | DrawHighlight (vcl::RenderContext &rRenderContext, Color aFontBack) |
Static Private Member Functions | |
static void | DrawContentBackground (vcl::RenderContext &rRenderContext, const tools::Rectangle &aContentRect, const Color &aColor) |
Private Attributes | |
SfxStyleFamily | m_eStyleFamily |
std::pair< OUString, OUString > | m_aStyleName |
Static Private Attributes | |
static constexpr unsigned | LEFT_MARGIN = 8 |
Definition at line 57 of file StylesPreviewWindow.hxx.
StyleItemController::StyleItemController | ( | std::pair< OUString, OUString > | aStyleName | ) |
Definition at line 181 of file StylesPreviewWindow.cxx.
References Para.
|
staticprivate |
Definition at line 401 of file StylesPreviewWindow.cxx.
References OutputDevice::DrawRect(), OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by DrawEntry().
|
private |
Definition at line 312 of file StylesPreviewWindow.cxx.
References COL_AUTO(), SfxObjectShell::Current(), DrawContentBackground(), DrawHighlight(), DrawText(), SfxStyleSheetBasePool::First(), GetBackgroundColorFromItemSet(), OutputDevice::GetFillColor(), GetFillStyleFromItemSet(), GetFontFromItems(), GetHighlightColorFromItemSet(), SfxStyleSheetBase::GetItemSetForPreview(), OutputDevice::GetLineColor(), SfxObjectShell::GetMapUnit(), SfxStyleSheetBase::GetName(), OutputDevice::GetOutputSizePixel(), MsLangId::getScriptType(), Application::GetSettings(), SfxObjectShell::GetStyleSheetPool(), GetTextColorFromItemSet(), OutputDevice::LogicToPixel(), m_aStyleName, m_eStyleFamily, SfxStyleSheetBasePool::Next(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetLineColor(), and OutputDevice::SetTextColor().
Referenced by Paint().
|
private |
Definition at line 410 of file StylesPreviewWindow.cxx.
References Size::AdjustHeight(), Point::AdjustX(), Point::AdjustY(), tools::Rectangle::Bottom(), OutputDevice::DrawRect(), Size::getHeight(), OutputDevice::GetOutputHeightPixel(), tools::Rectangle::GetSize(), OutputDevice::GetTextBoundRect(), LEFT_MARGIN, m_aStyleName, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), tools::Rectangle::SetPos(), and tools::Rectangle::SetSize().
Referenced by DrawEntry().
|
private |
Definition at line 430 of file StylesPreviewWindow.cxx.
References Point::AdjustX(), Point::AdjustY(), tools::Rectangle::Bottom(), OutputDevice::DrawText(), SalLayoutGlyphsCache::GetLayoutGlyphs(), OutputDevice::GetOutputHeightPixel(), OutputDevice::GetTextBoundRect(), LEFT_MARGIN, m_aStyleName, and SalLayoutGlyphsCache::self().
Referenced by DrawEntry().
void StyleItemController::Paint | ( | vcl::RenderContext & | rRenderContext | ) |
Definition at line 187 of file StylesPreviewWindow.cxx.
References DrawEntry(), vcl::FILLCOLOR, vcl::FONT, OutputDevice::Pop(), OutputDevice::Push(), and vcl::TEXTCOLOR.
Referenced by StylesPreviewWindow_Base::GetCachedPreview().
|
staticconstexprprivate |
Definition at line 59 of file StylesPreviewWindow.hxx.
Referenced by DrawHighlight(), and DrawText().
|
private |
Definition at line 62 of file StylesPreviewWindow.hxx.
Referenced by DrawEntry(), DrawHighlight(), and DrawText().
|
private |
Definition at line 61 of file StylesPreviewWindow.hxx.
Referenced by DrawEntry().