LibreOffice Module svx (master) 1
Functions
StylesPreviewWindow.cxx File Reference
#include <StylesPreviewWindow.hxx>
#include <comphelper/propertyvalue.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <sfx2/objsh.hxx>
#include <svl/itemset.hxx>
#include <sfx2/tbxctrl.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/tplpitem.hxx>
#include <sfx2/viewsh.hxx>
#include <vcl/glyphitemcache.hxx>
#include <vcl/virdev.hxx>
#include <vcl/settings.hxx>
#include <editeng/editids.hrc>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/svxfont.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/cmapitem.hxx>
#include <editeng/emphasismarkitem.hxx>
#include <editeng/brushitem.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xdef.hxx>
#include <svx/xflclit.hxx>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <vcl/commandevent.hxx>
Include dependency graph for StylesPreviewWindow.cxx:

Go to the source code of this file.

Functions

static Color GetTextColorFromItemSet (std::optional< SfxItemSet > const &pItemSet)
 
static Color GetHighlightColorFromItemSet (std::optional< SfxItemSet > const &pItemSet)
 
static Color GetBackgroundColorFromItemSet (std::optional< SfxItemSet > const &pItemSet)
 
static css::drawing::FillStyle GetFillStyleFromItemSet (std::optional< SfxItemSet > const &pItemSet)
 
static SvxFont GetFontFromItems (const SvxFontItem *pFontItem, Size aPixelFontSize, std::optional< SfxItemSet > const &pItemSet)
 
 IMPL_LINK (StylesPreviewWindow_Base, Selected, weld::IconView &, rIconView, void)
 
 IMPL_LINK (StylesPreviewWindow_Base, DoubleClick, weld::IconView &, rIconView, bool)
 
 IMPL_LINK (StylesPreviewWindow_Base, DoCommand, const CommandEvent &, rPos, bool)
 

Function Documentation

◆ GetBackgroundColorFromItemSet()

static Color GetBackgroundColorFromItemSet ( std::optional< SfxItemSet > const &  pItemSet)
static

Definition at line 168 of file StylesPreviewWindow.cxx.

References COL_AUTO(), and XATTR_FILLCOLOR().

Referenced by StyleItemController::DrawEntry().

◆ GetFillStyleFromItemSet()

static css::drawing::FillStyle GetFillStyleFromItemSet ( std::optional< SfxItemSet > const &  pItemSet)
static

Definition at line 177 of file StylesPreviewWindow.cxx.

References GetValue, and XATTR_FILLSTYLE().

Referenced by StyleItemController::DrawEntry().

◆ GetFontFromItems()

static SvxFont GetFontFromItems ( const SvxFontItem pFontItem,
Size  aPixelFontSize,
std::optional< SfxItemSet > const &  pItemSet 
)
static

◆ GetHighlightColorFromItemSet()

static Color GetHighlightColorFromItemSet ( std::optional< SfxItemSet > const &  pItemSet)
static

Definition at line 159 of file StylesPreviewWindow.cxx.

References COL_AUTO().

Referenced by StyleItemController::DrawEntry().

◆ GetTextColorFromItemSet()

static Color GetTextColorFromItemSet ( std::optional< SfxItemSet > const &  pItemSet)
static

Definition at line 150 of file StylesPreviewWindow.cxx.

References COL_AUTO(), and GetValue.

Referenced by StyleItemController::DrawEntry().

◆ IMPL_LINK() [1/3]

IMPL_LINK ( StylesPreviewWindow_Base  ,
DoCommand  ,
const CommandEvent ,
rPos  ,
bool   
)

Definition at line 414 of file StylesPreviewWindow.cxx.

◆ IMPL_LINK() [2/3]

IMPL_LINK ( StylesPreviewWindow_Base  ,
DoubleClick  ,
weld::IconView ,
rIconView  ,
bool   
)

◆ IMPL_LINK() [3/3]

IMPL_LINK ( StylesPreviewWindow_Base  ,
Selected  ,
weld::IconView ,
rIconView  ,
void   
)