22#include <com/sun/star/uno/Any.hxx>
23#include <com/sun/star/awt/FontDescriptor.hpp>
34#include <vcl/font.hxx>
49 rFont.
SetCharSet(
static_cast<rtl_TextEncoding
>(rDesc.CharSet) );
52 rFont.
SetKerning( rDesc.Kerning ? FontKerning::FontSpecific : FontKerning::NONE );
64 rDesc.Width = sal::static_int_cast< sal_Int16 >(rFont.
GetFontSize().
Width());
66 rDesc.Family = sal::static_int_cast< sal_Int16 >(rFont.
GetFamilyType());
68 rDesc.Pitch = sal::static_int_cast< sal_Int16 >(rFont.
GetPitch());
73 rDesc.Underline = sal::static_int_cast< sal_Int16 >(rFont.
GetUnderline());
74 rDesc.Strikeout = sal::static_int_cast< sal_Int16 >(rFont.
GetStrikeout());
94 aTemp <<= static_cast<float>(rDesc.Height);
101 aTemp <<= rDesc.Slant;
108 aTemp <<= rDesc.Underline;
115 aTemp <<= rDesc.Weight;
122 aTemp <<= rDesc.Strikeout;
140 rDesc.Family = sal::static_int_cast< sal_Int16 >(
143 rDesc.Pitch = sal::static_int_cast< sal_Int16 >(
150 aHeight >>= rDesc.Height;
156 aFontSlant >>= rDesc.Slant;
162 aUnderline >>= rDesc.Underline;
168 aWeight >>= rDesc.Weight;
174 aStrikeOut >>= rDesc.Strikeout;
178 rDesc.WordLineMode = pWLMItem->
GetValue();
219 awt::FontDescriptor aDesc;
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
static bool IsWhich(sal_uInt16 nId)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void InvalidateItem(sal_uInt16 nWhich)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
This item describes a Font.
void SetStyleName(const OUString &rStyleName)
FontFamily GetFamily() const
FontPitch GetPitch() const
void SetFamily(FontFamily _eFamily)
void SetPitch(FontPitch _ePitch)
const OUString & GetStyleName() const
void SetFamilyName(const OUString &rFamilyName)
rtl_TextEncoding GetCharSet() const
const OUString & GetFamilyName() const
void SetCharSet(rtl_TextEncoding _eEncoding)
static void ConvertFromFont(const vcl::Font &rFont, css::awt::FontDescriptor &rDesc)
static void ConvertToFont(const css::awt::FontDescriptor &rDesc, vcl::Font &rFont)
static css::uno::Any getPropertyDefault(SfxItemPool *pPool)
static void FillItemSet(const css::awt::FontDescriptor &rDesc, SfxItemSet &rSet)
static void setPropertyToDefault(SfxItemSet &rSet)
static void FillFromItemSet(const SfxItemSet &rSet, css::awt::FontDescriptor &rDesc)
void SetFontSize(const Size &)
void SetOrientation(Degree10 nLineOrientation)
FontFamily GetFamilyType()
void SetStyleName(const OUString &rStyleName)
void SetWordLineMode(bool bWordLine)
void SetPitch(FontPitch ePitch)
const OUString & GetStyleName() const
FontStrikeout GetStrikeout() const
void SetItalic(FontItalic)
void SetWeight(FontWeight)
const OUString & GetFamilyName() const
void SetFamily(FontFamily)
void SetUnderline(FontLineStyle)
void SetCharSet(rtl_TextEncoding)
const Size & GetFontSize() const
void SetKerning(FontKerning nKerning)
void SetFamilyName(const OUString &rFamilyName)
FontLineStyle GetUnderline() const
rtl_TextEncoding GetCharSet() const
bool IsWordLineMode() const
Degree10 GetOrientation() const
void SetStrikeout(FontStrikeout)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
constexpr TypedWhichId< SvxWordLineModeItem > EE_CHAR_WLM(EE_CHAR_START+13)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
VCL_DLLPUBLIC css::awt::FontSlant ConvertFontSlant(FontItalic eWeight)
VCL_DLLPUBLIC float ConvertFontWeight(FontWeight eWeight)
UNDERLYING_TYPE get() const