LibreOffice Module svx (master)  1
Functions
StylesPreviewWindow.cxx File Reference
#include <StylesPreviewWindow.hxx>
#include <vcl/settings.hxx>
#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/virdev.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 <svx/xfillit0.hxx>
#include <svx/xdef.hxx>
#include <svx/xflclit.hxx>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <cppuhelper/weak.hxx>
#include <vcl/event.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

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

Definition at line 164 of file StylesPreviewWindow.cxx.

References COL_AUTO(), and XATTR_FILLCOLOR().

Referenced by StyleItemController::DrawEntry().

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

Definition at line 173 of file StylesPreviewWindow.cxx.

References GetValue, and XATTR_FILLSTYLE().

Referenced by StyleItemController::DrawEntry().

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

Definition at line 155 of file StylesPreviewWindow.cxx.

References COL_AUTO().

Referenced by StyleItemController::DrawEntry().

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

Definition at line 146 of file StylesPreviewWindow.cxx.

References COL_AUTO(), and GetValue.

Referenced by StyleItemController::DrawEntry().

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

Definition at line 374 of file StylesPreviewWindow.cxx.

References SfxToolBoxControl::Dispatch().

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

Definition at line 387 of file StylesPreviewWindow.cxx.

References SfxToolBoxControl::Dispatch().

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

Definition at line 402 of file StylesPreviewWindow.cxx.