24#include <com/sun/star/table/CellHoriJustify.hpp>
25#include <com/sun/star/style/ParagraphAdjust.hpp>
26#include <com/sun/star/table/CellJustifyMethod.hpp>
27#include <com/sun/star/table/CellVertJustify2.hpp>
28#include <com/sun/star/style/VerticalAlignment.hpp>
44 const sal_uInt16 nId ) :
64 nMemberId &= ~CONVERT_TWIPS;
69 table::CellHoriJustify eUno = table::CellHoriJustify_STANDARD;
87 style::ParagraphAdjust
nAdjust = style::ParagraphAdjust_LEFT;
98 rVal <<= static_cast<sal_Int16>(
nAdjust);
107 nMemberId &= ~CONVERT_TWIPS;
112 table::CellHoriJustify eUno;
118 eUno =
static_cast<table::CellHoriJustify
>(
nValue);
137 sal_Int16 nVal = sal_Int16();
142 switch (
static_cast<style::ParagraphAdjust
>(nVal))
147 case style::ParagraphAdjust_STRETCH:
161 return EditResId(RID_SVXITEMS_HORJUST[
static_cast<size_t>(nVal)]);
181 const sal_uInt16 nId ) :
202 nMemberId &= ~CONVERT_TWIPS;
207 style::VerticalAlignment eUno = style::VerticalAlignment_TOP;
220 sal_Int32 nUno = table::CellVertJustify2::STANDARD;
239 nMemberId &= ~CONVERT_TWIPS;
245 style::VerticalAlignment nVal = style::VerticalAlignment_TOP;
262 sal_Int32 eUno = table::CellVertJustify2::STANDARD;
286 return EditResId(RID_SVXITEMS_VERJUST[
static_cast<size_t>(nVal)]);
300 const sal_uInt16 nId ) :
320 sal_Int32 nUno = table::CellJustifyMethod::AUTO;
333 sal_Int32 nVal = table::CellJustifyMethod::AUTO;
334 if (!(rVal >>= nVal))
340 case table::CellJustifyMethod::AUTO:
343 case table::CellJustifyMethod::DISTRIBUTE:
355 return EditResId(RID_SVXITEMS_JUSTMETHOD[
static_cast<size_t>(nVal)]);
void SetValue(EnumT nTheValue)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
static OUString GetValueText(SvxCellHorJustify nVal)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
virtual sal_uInt16 GetValueCount() const override
virtual SvxHorJustifyItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SvxHorJustifyItem(const sal_uInt16 nId)
virtual sal_uInt16 GetValueCount() const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
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
SvxJustifyMethodItem(const SvxCellJustifyMethod eMethod, const sal_uInt16 nId)
virtual SvxJustifyMethodItem * Clone(SfxItemPool *pPool=nullptr) const override
static OUString GetValueText(SvxCellJustifyMethod nVal)
static SfxPoolItem * CreateDefault()
virtual SvxVerJustifyItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual sal_uInt16 GetValueCount() const override
SvxVerJustifyItem(const sal_uInt16 nId)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static OUString GetValueText(SvxCellVerJustify nVal)
OUString EditResId(TranslateId aId)
#define MID_HORJUST_ADJUST
#define MID_HORJUST_HORJUST