34 #include <osl/diagnose.h>
36 #include <rtl/strbuf.hxx>
75 bool bSet = SfxItemState::SET == rObjItemSet.
GetItemState( nEEWhich,
false,
78 sal_uInt16 nSwWhich = 0;
121 "There is a Draw-Obj with no Draw-Model?" );
126 pTextObj->GetOutlinerParaObject();
127 if( !pOutlinerParaObj )
134 const SfxItemSet& rItemSet = pTextObj->GetMergedItemSet();
138 OSL_ENSURE( SdrTextAniKind::Scroll==eAniKind ||
139 SdrTextAniKind::Alternate==eAniKind ||
140 SdrTextAniKind::Slide==eAniKind,
141 "Text-Draw-Object not suitable for marquee" );
143 const char *pStr =
nullptr;
173 "=\"") + pStr +
"\"");
179 nCount = SdrTextAniKind::Slide==eAniKind ? 1 : -1;
181 OString::number(nCount) +
"\"");
186 "=\"" + OString::number(nDelay) +
"\"");
198 MapMode(MapUnit::MapTwip) ).Width();
203 "=\"" + OString::number(nAmount) +
"\"");
206 Size aTwipSz( pTextObj->GetLogicRect().GetSize() );
207 if( pTextObj->IsAutoGrowWidth() )
213 if( pTextObj->IsAutoGrowHeight() )
215 aTwipSz.setHeight( pTextObj->GetMinTextFrameHeight() );
216 if(
MINFLY==aTwipSz.Height() )
217 aTwipSz.setHeight( 0 );
220 if( (aTwipSz.Width() || aTwipSz.Height()) &&
226 if( !aPixelSz.
Width() && aTwipSz.Width() )
228 if( !aPixelSz.
Height() && aTwipSz.Height() )
231 if( aPixelSz.
Width() )
234 "=\"" + OString::number(aPixelSz.
Width()) +
"\"");
240 "=\"" + OString::number(aPixelSz.
Height()) +
"\"");
247 if( drawing::FillStyle_SOLID==eFillStyle )
249 const Color& rFillColor =
271 Outliner aOutliner(
nullptr, OutlinerMode::TextObject);
273 aOutliner.
SetText( *pOutlinerParaObj );
280 if( !aEndTags.isEmpty() )
static const SdrObject * GetMarqueeTextObj(const SwDrawFrameFormat &rFormat)
constexpr TypedWhichId< SvxCrossedOutItem > RES_CHRATR_CROSSEDOUT(5)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
#define OOO_STRING_SVTOOLS_HTML_BEHAV_alternate
constexpr TypedWhichId< SvxKerningItem > EE_CHAR_KERNING(EE_CHAR_START+12)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
constexpr TypedWhichId< SvxEscapementItem > RES_CHRATR_ESCAPEMENT(6)
void setWidth(tools::Long nWidth)
#define OOO_STRING_SVTOOLS_HTML_O_bgcolor
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
#define OOO_STRING_SVTOOLS_HTML_O_behavior
const HtmlFrmOpts HTML_FRMOPTS_MARQUEE
constexpr TypedWhichId< SvxUnderlineItem > RES_CHRATR_UNDERLINE(14)
sal_Int32 GetParagraphCount() const
static SVT_DLLPUBLIC SvStream & Out_AsciiTag(SvStream &, std::string_view rStr, bool bOn=true)
constexpr TypedWhichId< SdrTextAniCountItem > SDRATTR_TEXT_ANICOUNT(SDRATTR_MISC_FIRST+18)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CJK_POSTURE(25)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
static SVT_DLLPUBLIC SvStream & Out_Color(SvStream &, const Color &, bool bXHTML=false)
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
static OutputDevice * GetDefaultDevice()
constexpr tools::Long Width() const
#define OOO_STRING_SVTOOLS_HTML_O_height
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
bool IsHTMLMode(sal_uInt32 nMode) const
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
void SetText(const OutlinerParaObject &)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
#define OOO_STRING_SVTOOLS_HTML_O_direction
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
#define OOO_STRING_SVTOOLS_HTML_AL_left
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CJK(EE_CHAR_START+21)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CTL(EE_CHAR_START+24)
OUString GetText(Paragraph const *pPara, sal_Int32 nParaCount=1) const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
Writer & OutHTML_DrawFrameFormatAsMarquee(Writer &rWrt, const SwDrawFrameFormat &rFormat, const SdrObject &rSdrObject)
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
SfxItemPool * GetPool() const
const HtmlFrmOpts HTML_FRMOPTS_MARQUEE_CSS1
Paragraph * GetParagraph(sal_Int32 nAbsPos) const
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_COLOR(3)
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
#define OOO_STRING_SVTOOLS_HTML_AL_right
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CJK_WEIGHT(26)
static SVT_DLLPUBLIC SvStream & Out_String(SvStream &, const OUString &, OUString *pNonConvertableChars=nullptr)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CTL(EE_CHAR_START+20)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
SvStream & WriteOString(std::string_view rStr)
#define OOO_STRING_SVTOOLS_HTML_BEHAV_slide
constexpr tools::Long Height() const
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CTL_WEIGHT(31)
const SfxItemSet & GetMergedItemSet() const
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CTL(EE_CHAR_START+22)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CTL_POSTURE(30)
OString GetNamespace() const
Determines the prefix string needed to respect the requested namespace alias.
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
#define OOO_STRING_SVTOOLS_HTML_BEHAV_scroll
bool SetUpdateLayout(bool bUpdate)
SvStream & WriteChar(char nChar)
void setHeight(tools::Long nHeight)
#define OOO_STRING_SVTOOLS_HTML_O_scrollamount
#define OOO_STRING_SVTOOLS_HTML_O_scrolldelay
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CJK(EE_CHAR_START+23)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CJK(EE_CHAR_START+19)
constexpr TypedWhichId< SdrTextAniDelayItem > SDRATTR_TEXT_ANIDELAY(SDRATTR_MISC_FIRST+19)
static void GetEEAttrsFromDrwObj(SfxItemSet &rItemSet, const SdrObject *pObj)
#define OOO_STRING_SVTOOLS_HTML_marquee
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CTL_FONTSIZE(28)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
constexpr TypedWhichId< SvxKerningItem > RES_CHRATR_KERNING(9)
#define HTMLMODE_ABS_POS_DRAW
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
#define OOO_STRING_SVTOOLS_HTML_O_width
#define OOO_STRING_SVTOOLS_HTML_O_loop
OString OutFrameFormatOptions(const SwFrameFormat &rFrameFormat, const OUString &rAltText, HtmlFrmOpts nFrameOpts)
constexpr TypedWhichId< SdrTextAniAmountItem > SDRATTR_TEXT_ANIAMOUNT(SDRATTR_MISC_FIRST+20)
void OutCSS1_FrameFormatOptions(const SwFrameFormat &rFrameFormat, HtmlFrmOpts nFrameOpts, const SdrObject *pSdrObj=nullptr, const SfxItemSet *pItemSet=nullptr)