30#include <rtl/ustrbuf.hxx>
57#include <libxml/xmlwriter.h>
67 OUString &rText )
const
80 if( rText.getLength() &&
aStr.getLength() )
104 rText =
SwResId( STR_NO_CHARFMT );
156 rText = OUString::number(
GetChars() ) +
" ";
158 rText +=
SwResId( STR_DROP_OVER ) +
165 rText =
SwResId( STR_NO_DROP_LINES );
193 rText =
SwResId( STR_NUMRULE_ON ).replaceFirst(
"%LISTSTYLENAME",
GetValue());
195 rText =
SwResId( STR_NUMRULE_OFF );
224 rText =
SwResId( STR_FRM_WIDTH ) +
" ";
232 rText += ::GetMetricText(
GetWidth(), eCoreUnit, ePresUnit, &rIntl ) +
233 " " + ::EditResId( ::GetMetricId( ePresUnit ) );
238 STR_FRM_FIXEDHEIGHT : STR_FRM_MINHEIGHT;
239 rText +=
", " +
SwResId(pId) +
" ";
247 rText = ::GetMetricText(
GetHeight(), eCoreUnit, ePresUnit, &rIntl ) +
248 " " +
EditResId( ::GetMetricId( ePresUnit ) );
300 case css::text::WrapTextMode_NONE:
301 pId = STR_SURROUND_NONE;
303 case css::text::WrapTextMode_THROUGH:
304 pId = STR_SURROUND_THROUGH;
306 case css::text::WrapTextMode_PARALLEL:
307 pId = STR_SURROUND_PARALLEL;
309 case css::text::WrapTextMode_DYNAMIC:
310 pId = STR_SURROUND_IDEAL;
312 case css::text::WrapTextMode_LEFT:
313 pId = STR_SURROUND_LEFT;
315 case css::text::WrapTextMode_RIGHT:
316 pId = STR_SURROUND_RIGHT;
325 rText +=
" " +
SwResId( STR_SURROUND_ANCHORONLY );
346 rText +=
SwResId( STR_POS_Y ) +
" " +
347 ::GetMetricText(
GetPos(), eCoreUnit, ePresUnit, &rIntl ) +
348 " " +
EditResId( ::GetMetricId( ePresUnit ) );
351 case text::VertOrientation::TOP:
354 case text::VertOrientation::CENTER:
355 pId = STR_VERT_CENTER;
357 case text::VertOrientation::BOTTOM:
358 pId = STR_VERT_BOTTOM;
360 case text::VertOrientation::LINE_TOP:
363 case text::VertOrientation::LINE_CENTER:
364 pId = STR_LINE_CENTER;
366 case text::VertOrientation::LINE_BOTTOM:
367 pId = STR_LINE_BOTTOM;
392 rText +=
SwResId( STR_POS_X ) +
" " +
393 ::GetMetricText(
GetPos(), eCoreUnit, ePresUnit, &rIntl ) +
394 " " +
EditResId( ::GetMetricId( ePresUnit ) );
397 case text::HoriOrientation::RIGHT:
398 pId = STR_HORI_RIGHT;
400 case text::HoriOrientation::CENTER:
401 pId = STR_HORI_CENTER;
403 case text::HoriOrientation::LEFT:
406 case text::HoriOrientation::INSIDE:
407 pId = STR_HORI_INSIDE;
409 case text::HoriOrientation::OUTSIDE:
410 pId = STR_HORI_OUTSIDE;
412 case text::HoriOrientation::FULL:
436 case RndStdIds::FLY_AT_PARA:
437 pId = STR_FLY_AT_PARA;
439 case RndStdIds::FLY_AS_CHAR:
440 pId = STR_FLY_AS_CHAR;
442 case RndStdIds::FLY_AT_CHAR:
443 pId = STR_FLY_AT_CHAR;
445 case RndStdIds::FLY_AT_PAGE:
446 pId = STR_FLY_AT_PAGE;
468 rText =
SwResId( STR_NO_PAGEDESC );
486 rText = OUString::number(nCnt) +
" " +
SwResId( STR_COLUMNS );
490 rText +=
" " +
SwResId( STR_LINE_WIDTH ) +
" " +
491 ::GetMetricText( nWdth, eCoreUnit,
492 MapUnit::MapPoint, &rIntl );
513 rText +=
"Client-Map";
518 rText +=
"URL: " +
m_sURL;
520 rText +=
" (Server-Map)";
540 rText =
SwResId(STR_EDIT_IN_READONLY);
546 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatEditInReadonly"));
547 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
548 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::boolean(
GetValue()).getStr()));
549 (void)xmlTextWriterEndElement(pWriter);
562 rText =
SwResId(STR_LAYOUT_SPLIT);
606 rText +=
SwResId(STR_CONNECT2);
624 rText +=
SwResId(STR_LINECOUNT);
626 rText +=
SwResId(STR_DONTLINECOUNT);
629 rText +=
" " +
SwResId(STR_LINCOUNT_START) +
652 pId = STR_GRID_LINES_ONLY;
655 pId = STR_GRID_LINES_CHARS;
694 rText +=
SwResId( STR_MIRROR_TOGGLE );
703 if( SfxItemPresentation::Complete == ePres )
704 rText =
SwResId( STR_ROTATION );
705 else if( rText.getLength() )
715 if( SfxItemPresentation::Complete == ePres )
716 rText =
SwResId( STR_LUMINANCE );
717 else if( rText.getLength() )
728 if( SfxItemPresentation::Complete == ePres )
729 rText =
SwResId( STR_CONTRAST );
730 else if( rText.getLength() )
741 if( SfxItemPresentation::Complete == ePres )
753 else if( rText.getLength() )
756 else if( rText.getLength() )
767 OUStringBuffer aText;
768 if( SfxItemPresentation::Complete == ePres )
769 aText.append(
SwResId(STR_GAMMA));
772 rText = aText.makeStringAndClear();
781 if( SfxItemPresentation::Complete == ePres )
793 if( SfxItemPresentation::Complete == ePres )
794 rText =
SwResId( STR_TRANSPARENCY );
795 else if( rText.getLength() )
807 if( SfxItemPresentation::Complete == ePres )
813 case GraphicDrawMode::Greys: pId = STR_DRAWMODE_GREY;
break;
814 case GraphicDrawMode::Mono: pId = STR_DRAWMODE_BLACKWHITE;
break;
815 case GraphicDrawMode::Watermark: pId = STR_DRAWMODE_WATERMARK;
break;
816 default: pId = STR_DRAWMODE_STD;
break;
830 if( SfxItemPresentation::Complete == ePres )
840 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatFollowTextFlow"));
841 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
842 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::boolean(
GetValue()).getStr()));
843 (void)xmlTextWriterEndElement(pWriter);
static const AllSettings & GetSettings()
sal_uInt8 GetValue() const
const OUString & GetValue() const
sal_Int16 GetValue() const
const SfxPoolItem * GetCurItem() const
const SfxPoolItem * NextItem()
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
tools::Long GetHeight() const
tools::Long GetWidth() const
void GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText) const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
SwPageDesc * GetPageDesc()
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
const double & GetValue() const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
const OUString & GetName() const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
Degree10 GetValue() const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
SwTextGrid GetGridType() const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
static OUString formatPercent(double dNumber, const LanguageTag &rLangTag)
struct _xmlTextWriter * xmlTextWriterPtr
OUString EditResId(TranslateId aId)
@ Fixed
Frame cannot be moved in Var-direction.
@ Variable
Frame is variable in Var-direction.
constexpr TypedWhichId< SwChannelRGrf > RES_GRFATR_CHANNELR(146)
constexpr TypedWhichId< SwChannelBGrf > RES_GRFATR_CHANNELB(148)
constexpr TypedWhichId< SwChannelGGrf > RES_GRFATR_CHANNELG(147)
OUString SwResId(TranslateId aId)