22#include <com/sun/star/style/DropCapFormat.hpp>
27#include <libxml/xmlwriter.h>
28#include <osl/diagnose.h>
41 m_pDefinedIn( nullptr ),
51 SwClient( rCpy.GetRegisteredInNonConst() ),
52 m_pDefinedIn( nullptr ),
53 m_nDistance( rCpy.GetDistance() ),
54 m_nLines( rCpy.GetLines() ),
55 m_nChars( rCpy.GetChars() ),
56 m_bWholeWord( rCpy.GetWholeWord() )
80 assert(SfxPoolItem::operator==(rAttr));
103 style::DropCapFormat aDrop;
134 if(nTemp >=1 && nTemp < 0x7f)
142 if(nTemp >=1 && nTemp < 0x7f)
159 auto pDrop = o3tl::doAccess<style::DropCapFormat>(rVal);
170 OSL_FAIL(
"char format cannot be set in PutValue()!");
188 assert(SfxPoolItem::operator==(rAttr));
210 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwNumRuleItem"));
211 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
212 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(
GetValue().toUtf8().getStr()));
213 (void)xmlTextWriterEndElement(pWriter);
constexpr auto convertTwipToMm100(N n)
const OUString & GetValue() const
void SetValue(const OUString &rTheValue)
virtual bool operator==(const SfxPoolItem &) const override
"pure virtual methods" of SfxPoolItem
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual SwNumRuleItem * Clone(SfxItemPool *pPool=nullptr) const override
static SfxPoolItem * CreateDefault()
virtual SwParaConnectBorderItem * Clone(SfxItemPool *pPool=nullptr) const override
"pure virtual methods" of SfxPoolItem
SwParaConnectBorderItem(const bool bConnect=true)
static SfxPoolItem * CreateDefault()
SwRegisterItem(const bool bRegister=false)
virtual SwRegisterItem * Clone(SfxItemPool *pPool=nullptr) const override
"pure virtual methods" of SfxPoolItem
static const OUString & GetProgName(const OUString &rName, SwGetPoolIdFromName)
static const OUString & GetUIName(const OUString &rName, SwGetPoolIdFromName)
struct _xmlTextWriter * xmlTextWriterPtr
virtual OUString GetName() const override
constexpr TypedWhichId< SwFormatDrop > RES_PARATR_DROP(70)
constexpr auto toTwips(N number, Length from)
#define MID_DROPCAP_FORMAT
#define MID_DROPCAP_WHOLE_WORD
#define MID_DROPCAP_COUNT
#define MID_DROPCAP_CHAR_STYLE_NAME
#define MID_DROPCAP_LINES
#define MID_DROPCAP_DISTANCE