31#include <osl/diagnose.h>
97 bool bStartValue =
false;
129 "outline not expected");
168 "<PRE> was not closed before <OL>." );
169 sal_uInt16 nPrevDepth =
172 for( sal_uInt16
i=nPrevDepth;
i<rInfo.
GetDepth();
i++ )
178 if (rWrt.
mbXHTML &&
i != nPrevDepth)
191 const char *pStr =
nullptr;
246 sal_uInt16 nStartVal = rNumFormat.
GetStart();
247 if( bStartValue && 1 == nStartVal &&
i == rInfo.
GetDepth()-1 )
249 if ( rWrt.
m_pCurrentPam->GetPointNode().GetTextNode()->GetNum() )
251 nStartVal =
static_cast< sal_uInt16
>( rWrt.
m_pCurrentPam->GetPointNode()
252 .GetTextNode()->GetNumberVector()[
i] );
256 OSL_FAIL(
"<OutHTML_NumberBulletListStart(..) - text node has no number." );
291 if (bListEnd || (!bNextIsSubitem && rNextInfo.
IsNumbered()))
304 "<PRE> was not closed before </OL>." );
305 sal_uInt16 nNextDepth =
309 for( sal_uInt16
i=rInfo.
GetDepth();
i>nNextDepth;
i-- )
SvStream & WriteOString(std::string_view rStr)
SvStream & WriteChar(char nChar)
SvxNumType GetNumberingType() const
sal_uInt16 GetDepth() const
bool IsRestart(const SwHTMLNumRuleInfo &rPrev) const
bool mbXHTML
If XHTML markup should be written instead of HTML.
OUString m_aBulletGrfs[MAXLEVEL]
OString GetNamespace() const
Determines the prefix string needed to respect the requested namespace alias.
bool mbReqIF
If the ReqIF subset of XHTML should be written.
SwHTMLNumRuleInfo & GetNumInfo()
void OutNewLine(bool bCheck=false)
std::set< OUString > m_aNumRuleNames
HtmlTokenId m_nLastParaToken
std::unique_ptr< SwHTMLNumRuleInfo > m_pNextNumRuleInfo
void SetNextNumInfo(std::unique_ptr< SwHTMLNumRuleInfo > pNxt)
Base class of the Writer document model elements.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset EndOfSectionIndex() const
const SwNumFormat & Get(sal_uInt16 i) const
const OUString & GetName() const
SwTextNode is a paragraph in the document model.
bool IsOutline() const
Returns if this text node is an outline.
SwNumRule * GetNumRule(bool bInParent=true) const
Returns numbering rule of this text node.
int GetActualListLevel(SwListRedlineType eRedline=SwListRedlineType::SHOW) const
Returns the actual list level of this text node, when it is a list item.
std::shared_ptr< SwUnoCursor > m_pCurrentPam
SwHTMLWriter & OutCSS1_NumberBulletListStyleOpt(SwHTMLWriter &rWrt, const SwNumRule &rNumRule, sal_uInt8 nLevel)
SwHTMLWriter & OutHTML_BulletImage(SwHTMLWriter &rWrt, const char *pTag, const SvxBrushItem *pBrush, const OUString &rGraphicURL)
#define OOO_STRING_SVTOOLS_HTML_orderlist
#define OOO_STRING_SVTOOLS_HTML_ULTYPE_disc
#define OOO_STRING_SVTOOLS_HTML_ULTYPE_square
#define OOO_STRING_SVTOOLS_HTML_O_type
#define OOO_STRING_SVTOOLS_HTML_ULTYPE_circle
#define OOO_STRING_SVTOOLS_HTML_O_start
#define OOO_STRING_SVTOOLS_HTML_unorderlist
#define OOO_STRING_SVTOOLS_HTML_li
#define HTML_BULLETCHAR_SQUARE
#define HTML_BULLETCHAR_CIRCLE
#define HTML_BULLETCHAR_DISC
SwHTMLWriter & OutHTML_NumberBulletListEnd(SwHTMLWriter &rWrt, const SwHTMLNumRuleInfo &rNextInfo)
SwHTMLWriter & OutHTML_NumberBulletListStart(SwHTMLWriter &rWrt, const SwHTMLNumRuleInfo &rInfo)
SwNumRule * GetNumRule(SwTextFormatColl &rTextFormatColl)
determines the list style, which directly set at the given paragraph style
static SVT_DLLPUBLIC SvStream & Out_AsciiTag(SvStream &, std::string_view rStr, bool bOn=true)
SVX_NUM_CHARS_LOWER_LETTER_N
SVX_NUM_CHARS_LOWER_LETTER
SVX_NUM_CHARS_UPPER_LETTER
SVX_NUM_CHARS_UPPER_LETTER_N