LibreOffice Module svx (master) 1
Functions
StylesPreviewWindow.cxx File Reference
#include <StylesPreviewWindow.hxx>
#include <comphelper/base64.hxx>
#include <comphelper/lok.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/filter/PngImageWriter.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 <tools/json_writer.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)
 
static OString extractPngString (const BitmapEx &rBitmap)
 
 IMPL_LINK (StylesPreviewWindow_Base, DoJsonProperty, const weld::json_prop_query &, rQuery, bool)
 

Function Documentation

◆ extractPngString()

static OString extractPngString ( const BitmapEx rBitmap)
static

◆ GetBackgroundColorFromItemSet()

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

Definition at line 242 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 251 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 233 of file StylesPreviewWindow.cxx.

References COL_AUTO().

Referenced by StyleItemController::DrawEntry().

◆ GetTextColorFromItemSet()

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

Definition at line 224 of file StylesPreviewWindow.cxx.

References COL_AUTO(), and GetValue.

Referenced by StyleItemController::DrawEntry().

◆ IMPL_LINK() [1/4]

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

Definition at line 498 of file StylesPreviewWindow.cxx.

◆ IMPL_LINK() [2/4]

IMPL_LINK ( StylesPreviewWindow_Base  ,
DoJsonProperty  ,
const weld::json_prop_query ,
rQuery  ,
bool   
)

Definition at line 571 of file StylesPreviewWindow.cxx.

References tools::JsonWriter::put().

◆ IMPL_LINK() [3/4]

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

◆ IMPL_LINK() [4/4]

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