LibreOffice Module svx (master) 1
|
#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>
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) | |
|
static |
Definition at line 549 of file StylesPreviewWindow.cxx.
References aBuffer, aSeq, comphelper::Base64::encode(), SvMemoryStream::GetData(), comphelper::makePropertyValue(), vcl::PngImageWriter::setParameters(), SvStream::Tell(), and vcl::PngImageWriter::write().
Referenced by StylesPreviewWindow_Base::GetCachedPreviewJson().
|
static |
Definition at line 242 of file StylesPreviewWindow.cxx.
References COL_AUTO(), and XATTR_FILLCOLOR().
Referenced by StyleItemController::DrawEntry().
|
static |
Definition at line 251 of file StylesPreviewWindow.cxx.
References GetValue, and XATTR_FILLSTYLE().
Referenced by StyleItemController::DrawEntry().
|
static |
Definition at line 260 of file StylesPreviewWindow.cxx.
References GetCaseMap(), SvxFontItem::GetFamilyName(), SvxFontItem::GetStyleName(), GetValue, and SvxFont::SetCaseMap().
Referenced by StyleItemController::DrawEntry().
|
static |
Definition at line 233 of file StylesPreviewWindow.cxx.
References COL_AUTO().
Referenced by StyleItemController::DrawEntry().
|
static |
Definition at line 224 of file StylesPreviewWindow.cxx.
References COL_AUTO(), and GetValue.
Referenced by StyleItemController::DrawEntry().
IMPL_LINK | ( | StylesPreviewWindow_Base | , |
DoCommand | , | ||
const CommandEvent & | , | ||
rPos | , | ||
bool | |||
) |
Definition at line 498 of file StylesPreviewWindow.cxx.
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 | ( | StylesPreviewWindow_Base | , |
DoubleClick | , | ||
weld::IconView & | , | ||
rIconView | , | ||
bool | |||
) |
Definition at line 483 of file StylesPreviewWindow.cxx.
References SfxToolBoxControl::Dispatch(), m_xFrame, and comphelper::makePropertyValue().
IMPL_LINK | ( | StylesPreviewWindow_Base | , |
Selected | , | ||
weld::IconView & | , | ||
rIconView | , | ||
void | |||
) |
Definition at line 470 of file StylesPreviewWindow.cxx.
References SfxToolBoxControl::Dispatch(), m_xFrame, and comphelper::makePropertyValue().