22#include <osl/diagnose.h>
23#include <rtl/ustring.hxx>
53 OUStringBuffer
aStr(
"[ ");
55 for (
typename T::const_iterator
i(rArr.begin());
i != rArr.end(); ++
i)
57 if (
i != rArr.begin())
63 aStr.append(
"(null)");
68 return aStr.makeStringAndClear();
73 return dbg_out(OUString::number(
reinterpret_cast<sal_uIntPtr
>(pVoid), 16));
76const char *
dbg_out(std::u16string_view aStr)
88 static std::map<sal_uInt16,OUString> aItemWhichMap
220 return aItemWhichMap;
251 OUStringBuffer
aStr =
"[ ";
258 if (
reinterpret_cast<sal_uIntPtr
>(pItem) != SAL_MAX_SIZE)
261 aStr.append(
"invalid");
268 return aStr.makeStringAndClear();
280 OUString::number(rAttr.
GetStart()) +
282 OUString::number(*rAttr.
End()) +
297 OUStringBuffer
aStr(
"[ SwpHints\n");
299 for (
size_t i = 0;
i < rHints.
Count(); ++
i)
306 return aStr.makeStringAndClear();
322 OUString::number(
reinterpret_cast<sal_IntPtr
>(rPos.
GetContentNode()), 16) +
368 OUString::number(rRect.
Left()) +
370 OUString::number(rRect.
Top()) +
372 OUString::number(rRect.
Right()) +
374 OUString::number(rRect.
Bottom()) +
387 OUString aResult =
"[ " +
388 OUString::number(
reinterpret_cast<sal_uIntPtr
>(&rFrameFormat), 16) +
392 if (rFrameFormat.
IsAuto())
407 OUStringBuffer aResult(
"[");
420 if (pPos && *pPos == rNode)
423 aResult.append(
", ");
434 return aResult.makeStringAndClear();
448 aTmpStr +=
" CHARS_UPPER_LETTER";
452 aTmpStr +=
" CHARS_LOWER_LETTER";
456 aTmpStr +=
" ROMAN_UPPER";
460 aTmpStr +=
" ROMAN_LOWER";
464 aTmpStr +=
" ARABIC";
478 OUString aTmpStr =
"<node "
480 OUString::number(sal_Int32(rNode.
GetIndex())) +
486 OUString::number(sal_Int32( rNode.
GetNodeType() ) ) +
489 OUString::number(
reinterpret_cast<sal_uIntPtr
>(&rNode), 16) +
498 aTmpStr +=
"<txt>" + (pTextNode->
GetText().getLength() > 10 ? pTextNode->
GetText().copy(0, 10) : pTextNode->
GetText()) +
"</txt>";
503 aTmpStr +=
"<outlinelevel>" + OUString::number(pTextNode->
GetAttrOutlineLevel()-1) +
"</outlinelevel>";
507 if (pNumRule !=
nullptr)
509 aTmpStr +=
"<number>";
510 if ( pTextNode->
GetNum() )
514 aTmpStr +=
"</number><rule>" +
522 aTmpStr +=
"(" + pItem->
GetValue() +
")*";
526 aTmpStr +=
"</rule>";
533 aTmpStr +=
"<numformat>" +
539 aTmpStr +=
"<counted/>";
545 aTmpStr +=
"<coll>" + pColl->
GetName() +
"(";
554 aTmpStr += OUString::number(-1);
559 const OUString& sNumruleName = rItem.
GetValue();
561 if (!sNumruleName.isEmpty())
563 aTmpStr +=
", " + sNumruleName;
573 aTmpStr +=
"<ccoll>" + pCColl->
GetName() +
"</ccoll>";
585 aTmpStr +=
"<start end=\"";
588 if (pStartNode !=
nullptr)
596 aTmpStr +=
"</node>";
608 if (
nullptr != pNode)
616 if (
nullptr != pNode)
624 if (
nullptr != pNode)
632 return "[ " + OUString::number(
static_cast<int>(rUndo.
GetId()))
643 OUStringBuffer
aStr(
"[\n");
645 for (
size_t i = 0;
i < rNodes.
size();
i++)
652 return aStr.makeStringAndClear();
668 OUStringBuffer aResult(
"[ " + rRule.
GetName() +
" [");
673 aResult.append(
", ");
678 aResult.append(
"]]");
680 return aResult.makeStringAndClear();
690 return rFormat.
GetName() +
"(" +
701 return lcl_dbg_out_SvPtrArr<sw::FrameFormats<sw::SpzFrameFormat*>>(rFrameFormats);
711 OUStringBuffer aResult(
"[");
713 for (
size_t n = 0;
n < rTable.
size();
n++)
716 aResult.append(
", ");
718 aResult.append(rTable[
n]->
GetName());
720 aResult.append(
"(" + OUString::number(
reinterpret_cast<sal_uIntPtr
>(rTable[
n]), 16) +
")");
725 return aResult.makeStringAndClear();
750 return "CHAPTER_INFO";
760 OSL_FAIL(
"should not be reached");
777 OUStringBuffer
aStr(
"[");
779 SwFormTokens::const_iterator aIt;
781 for (aIt = rTokens.begin(); aIt != rTokens.end(); ++aIt)
783 if (aIt != rTokens.begin())
791 return aStr.makeStringAndClear();
const OUString & GetValue() const
const SfxPoolItem * GetCurItem() const
const SfxPoolItem * NextItem()
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SvxNumType GetNumberingType() const
SwFormatColl * GetFormatColl() const
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
const SwAttrSet * GetpSwAttrSet() const
SwFormatColl * GetCondFormatColl() const
const sw::FrameFormats< sw::SpzFrameFormat * > * GetSpzFrameFormats() const
Base class of the Writer document model elements.
SwStartNode * GetStartNode()
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset GetIndex() const
tools::Long GetSerial() const
SwNodeType GetNodeType() const
const SwEndNode * EndOfSectionNode() const
const SwNumFormat * GetNumFormat(sal_uInt16 i) const
const SwNumFormat & Get(sal_uInt16 i) const
const OUString & GetName() const
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
const SwPosition * GetPoint() const
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
Of course Writer needs its own rectangles.
void Top(const tools::Long nTop)
void Right(const tools::Long nRight)
void Bottom(const tools::Long nBottom)
void Left(const tools::Long nLeft)
Starts a section of nodes in the document model.
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
const SfxPoolItem & GetAttr() const
const sal_Int32 * End() const
sal_Int32 GetStart() const
Represents the style of a paragraph.
bool IsAssignedToListLevelOfOutlineStyle() const
int GetAssignedOutlineStyleLevel() const
int GetAttrOutlineLevel() const
SwTextNode is a paragraph in the document model.
const SwNodeNum * GetNum(SwRootFrame const *pLayout=nullptr, SwListRedlineType eRedline=SwListRedlineType::SHOW) const
bool IsCountedInList() const
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.
int GetAttrOutlineLevel() const
Returns outline level of this text node.
const OUString & GetText() const
virtual OUString GetComment() const override
Returns textual comment for this undo object.
An SwTextAttr container, stores all directly formatted text portions for a text node.
SwTextAttr * Get(size_t nPos) const
static std::map< sal_uInt16, OUString > & GetItemWhichMap()
static OUString lcl_TokenType2Str(FormTokenType nType)
static OUString lcl_dbg_out(const SfxPoolItem &rItem)
static OUString lcl_dbg_out_SvPtrArr(const T &rArr)
static OUString lcl_dbg_out_NumType(sal_Int16 nType)
static OString aDbgOutResult
const char * dbg_out(const void *pVoid)
static OUString lcl_AnchoredFrames(const SwNode &rNode)
virtual OUString GetName() const override
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(126)
constexpr TypedWhichId< SwFormatEndAtTextEnd > RES_END_AT_TXTEND(124)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CTL_FONTSIZE(28)
constexpr TypedWhichId< SvxCrossedOutItem > RES_CHRATR_CROSSEDOUT(5)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(116)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
constexpr TypedWhichId< SwFormatFootnoteAtTextEnd > RES_FTN_AT_TXTEND(123)
constexpr TypedWhichId< SwFormatURL > RES_URL(117)
constexpr TypedWhichId< SwLuminanceGrf > RES_GRFATR_LUMINANCE(144)
constexpr TypedWhichId< SwFormatFootnote > RES_TXTATR_FTN(59)
constexpr TypedWhichId< SvxUnderlineItem > RES_CHRATR_UNDERLINE(14)
constexpr TypedWhichId< SvxLeftMarginItem > RES_MARGIN_LEFT(94)
constexpr TypedWhichId< SvxAutoKernItem > RES_CHRATR_AUTOKERN(17)
constexpr TypedWhichId< SvxShadowItem > RES_CHRATR_SHADOW(41)
constexpr TypedWhichId< SvxForbiddenRuleItem > RES_PARATR_FORBIDDEN_RULES(75)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
constexpr TypedWhichId< SwFormatRowSplit > RES_ROW_SPLIT(128)
constexpr TypedWhichId< SwTableBoxValue > RES_BOXATR_VALUE(158)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr TypedWhichId< SvxFirstLineIndentItem > RES_MARGIN_FIRSTLINE(91)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
constexpr TypedWhichId< SwTransparencyGrf > RES_GRFATR_TRANSPARENCY(151)
constexpr TypedWhichId< SvxShadowedItem > RES_CHRATR_SHADOWED(13)
constexpr TypedWhichId< SwFormatHeader > RES_HEADER(102)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
constexpr TypedWhichId< SwFormatCol > RES_COL(115)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(109)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
constexpr TypedWhichId< SwChannelRGrf > RES_GRFATR_CHANNELR(146)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(113)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(108)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
constexpr TypedWhichId< SwContrastGrf > RES_GRFATR_CONTRAST(145)
constexpr TypedWhichId< SwFormatAutoFormat > RES_TXTATR_AUTOFMT(50)
constexpr TypedWhichId< SwFormatLayoutSplit > RES_LAYOUT_SPLIT(119)
constexpr TypedWhichId< SwFormatEditInReadonly > RES_EDIT_IN_READONLY(118)
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(99)
constexpr TypedWhichId< SvxBrushItem > RES_CHRATR_HIGHLIGHT(42)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CTL_WEIGHT(31)
constexpr TypedWhichId< SvxHyphenZoneItem > RES_PARATR_HYPHENZONE(69)
constexpr TypedWhichId< SwDrawModeGrf > RES_GRFATR_DRAWMODE(152)
constexpr TypedWhichId< SvxAdjustItem > RES_PARATR_ADJUST(64)
constexpr TypedWhichId< SvxContourItem > RES_CHRATR_CONTOUR(4)
constexpr TypedWhichId< SvxCharReliefItem > RES_CHRATR_RELIEF(36)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
constexpr TypedWhichId< SvxGutterRightMarginItem > RES_MARGIN_GUTTER_RIGHT(96)
constexpr TypedWhichId< SvxCharHiddenItem > RES_CHRATR_HIDDEN(37)
constexpr TypedWhichId< SwTableBoxFormula > RES_BOXATR_FORMULA(157)
constexpr TypedWhichId< SwChannelBGrf > RES_GRFATR_CHANNELB(148)
constexpr TypedWhichId< SvxEscapementItem > RES_CHRATR_ESCAPEMENT(6)
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_CHARSETCOLOR(2)
constexpr TypedWhichId< SwInvertGrf > RES_GRFATR_INVERT(150)
constexpr TypedWhichId< SvxTabStopItem > RES_PARATR_TABSTOP(68)
constexpr TypedWhichId< SwFormatFillOrder > RES_FILL_ORDER(RES_FRMATR_BEGIN)
constexpr TypedWhichId< SwTextGridItem > RES_TEXTGRID(121)
constexpr TypedWhichId< SvxCharScaleWidthItem > RES_CHRATR_SCALEW(35)
constexpr TypedWhichId< SvxBrushItem > RES_CHRATR_BACKGROUND(21)
constexpr TypedWhichId< SvxCaseMapItem > RES_CHRATR_CASEMAP(RES_CHRATR_BEGIN)
constexpr TypedWhichId< SvxLineSpacingItem > RES_PARATR_LINESPACING(RES_PARATR_BEGIN)
constexpr TypedWhichId< SvxGutterLeftMarginItem > RES_MARGIN_GUTTER(95)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CTL_POSTURE(30)
constexpr TypedWhichId< SwFormatNoBalancedColumns > RES_COLUMNBALANCE(125)
constexpr TypedWhichId< SwFormatField > RES_TXTATR_ANNOTATION(60)
constexpr TypedWhichId< SwHeaderAndFooterEatSpacingItem > RES_HEADER_FOOTER_EAT_SPACING(127)
constexpr TypedWhichId< SvxOrphansItem > RES_PARATR_ORPHANS(66)
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(105)
constexpr TypedWhichId< SvxEmphasisMarkItem > RES_CHRATR_EMPHASIS_MARK(33)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
constexpr TypedWhichId< SwFormatLineNumber > RES_LINENUMBER(122)
constexpr TypedWhichId< SwFormatFooter > RES_FOOTER(103)
constexpr TypedWhichId< SvxProtectItem > RES_PROTECT(106)
constexpr TypedWhichId< SwNumRuleItem > RES_PARATR_NUMRULE(72)
constexpr TypedWhichId< SwFormatContentControl > RES_TXTATR_CONTENTCONTROL(56)
constexpr TypedWhichId< SwFormatField > RES_TXTATR_FIELD(RES_TXTATR_NOEND_BEGIN)
constexpr TypedWhichId< SvxHangingPunctuationItem > RES_PARATR_HANGINGPUNCTUATION(74)
constexpr TypedWhichId< SwFormatCharFormat > RES_TXTATR_CHARFMT(52)
constexpr TypedWhichId< SwMirrorGrf > RES_GRFATR_MIRRORGRF(RES_GRFATR_BEGIN)
constexpr TypedWhichId< SvxBlinkItem > RES_CHRATR_BLINK(18)
constexpr TypedWhichId< SvxOverlineItem > RES_CHRATR_OVERLINE(38)
constexpr TypedWhichId< SwTableBoxNumFormat > RES_BOXATR_FORMAT(RES_BOXATR_BEGIN)
constexpr TypedWhichId< SwChannelGGrf > RES_GRFATR_CHANNELG(147)
constexpr TypedWhichId< SvxMacroItem > RES_FRMMACRO(114)
constexpr TypedWhichId< SvxParaVertAlignItem > RES_PARATR_VERTALIGN(76)
constexpr TypedWhichId< SvxWidowsItem > RES_PARATR_WIDOWS(67)
constexpr TypedWhichId< SwFormatFlyCnt > RES_TXTATR_FLYCNT(58)
constexpr TypedWhichId< SvxParaGridItem > RES_PARATR_SNAPTOGRID(77)
constexpr TypedWhichId< SvxCharRotateItem > RES_CHRATR_ROTATE(32)
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(110)
constexpr TypedWhichId< SwFormatLineBreak > RES_TXTATR_LINEBREAK(61)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
constexpr TypedWhichId< SwRotationGrf > RES_GRFATR_ROTATION(143)
constexpr TypedWhichId< SwFormatDrop > RES_PARATR_DROP(70)
constexpr TypedWhichId< SfxBoolItem > RES_TXTATR_DUMMY1(62)
constexpr TypedWhichId< SwFormatChain > RES_CHAIN(120)
constexpr TypedWhichId< SvxRightMarginItem > RES_MARGIN_RIGHT(93)
constexpr TypedWhichId< SvxTextLeftMarginItem > RES_MARGIN_TEXTLEFT(92)
constexpr TypedWhichId< SvxScriptSpaceItem > RES_PARATR_SCRIPTSPACE(73)
constexpr TypedWhichId< SwFormatMeta > RES_TXTATR_METAFIELD(49)
constexpr TypedWhichId< SvXMLAttrContainerItem > RES_TXTATR_UNKNOWN_CONTAINER(54)
constexpr TypedWhichId< SvxWordLineModeItem > RES_CHRATR_WORDLINEMODE(16)
constexpr TypedWhichId< SwParaConnectBorderItem > RES_PARATR_CONNECT_BORDER(78)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CJK_WEIGHT(26)
constexpr TypedWhichId< SwFormatRefMark > RES_TXTATR_REFMARK(RES_TXTATR_WITHEND_BEGIN)
constexpr TypedWhichId< SvxKerningItem > RES_CHRATR_KERNING(9)
constexpr TypedWhichId< SwFormatMeta > RES_TXTATR_META(48)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(107)
constexpr TypedWhichId< SvxTwoLinesItem > RES_CHRATR_TWO_LINES(34)
constexpr TypedWhichId< SvxFormatSplitItem > RES_PARATR_SPLIT(65)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CJK_POSTURE(25)
constexpr TypedWhichId< SwRegisterItem > RES_PARATR_REGISTER(71)
constexpr TypedWhichId< SwCropGrf > RES_GRFATR_CROPGRF(142)
constexpr TypedWhichId< SvxPaperBinItem > RES_PAPER_BIN(90)
constexpr TypedWhichId< SwTOXMark > RES_TXTATR_TOXMARK(47)
constexpr TypedWhichId< SvxBoxItem > RES_CHRATR_BOX(40)
constexpr TypedWhichId< SwFormatContent > RES_CNTNT(101)
constexpr TypedWhichId< SwFormatRuby > RES_TXTATR_CJK_RUBY(53)
constexpr TypedWhichId< SwFormatField > RES_TXTATR_INPUTFIELD(55)
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_COLOR(3)
constexpr TypedWhichId< SwGammaGrf > RES_GRFATR_GAMMA(149)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
constexpr TypedWhichId< SvxNoHyphenItem > RES_CHRATR_NOHYPHEN(19)
constexpr TypedWhichId< SvxPrintItem > RES_PRINT(104)
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
Marks a position in the document model.
const SwContentNode * GetContentNode() const
SwNodeOffset GetNodeIndex() const
sal_Int32 GetContentIndex() const
SVX_NUM_CHARS_LOWER_LETTER
SVX_NUM_CHARS_UPPER_LETTER
constexpr sal_uInt8 MAXLEVEL
std::vector< SwFormToken > SwFormTokens
Vector of tokens.