LibreOffice Module sw (master)  1
dbgoutsw.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifdef DBG_UTIL
21 
22 #include <osl/diagnose.h>
23 #include <rtl/ustring.hxx>
24 #include <svl/poolitem.hxx>
25 #include <svl/itemiter.hxx>
26 #include <string>
27 #include <map>
28 #include <node.hxx>
29 #include <ndtxt.hxx>
30 #include <ndhints.hxx>
31 #include <txatbase.hxx>
32 #include <pam.hxx>
33 #include <docary.hxx>
34 #include <swundo.hxx>
35 #include <undobj.hxx>
36 #include <numrule.hxx>
37 #include <doc.hxx>
38 #include <frmfmt.hxx>
39 #include <fmtanchr.hxx>
40 #include <swrect.hxx>
41 #include <ndarr.hxx>
42 #include <paratr.hxx>
43 #include <SwNodeNum.hxx>
44 #include <dbgoutsw.hxx>
45 #include <frameformats.hxx>
46 #include <iostream>
47 #include <cstdio>
48 
49 using namespace std;
50 
51 static OString aDbgOutResult;
52 bool bDbgOutStdErr = false;
53 bool bDbgOutPrintAttrSet = false;
54 
55 template<class T>
56 static OUString lcl_dbg_out_SvPtrArr(const T & rArr)
57 {
58  OUStringBuffer aStr("[ ");
59 
60  for (typename T::const_iterator i(rArr.begin()); i != rArr.end(); ++i)
61  {
62  if (i != rArr.begin())
63  aStr.append(", ");
64 
65  if (*i)
66  aStr.append(lcl_dbg_out(**i));
67  else
68  aStr.append("(null)");
69  }
70 
71  aStr.append(" ]");
72 
73  return aStr.makeStringAndClear();
74 }
75 
76 const char * dbg_out(const void * pVoid)
77 {
78  char sBuffer[1024];
79 
80  sprintf(sBuffer, "%p", pVoid);
81 
82  OUString aTmpStr(sBuffer, strlen(sBuffer), RTL_TEXTENCODING_ASCII_US);
83 
84  return dbg_out(aTmpStr);
85 }
86 
87 const char * dbg_out(const OUString & aStr)
88 {
89  aDbgOutResult = OUStringToOString(aStr, RTL_TEXTENCODING_ASCII_US);
90 
91  if (bDbgOutStdErr)
92  fprintf(stderr, "%s", aDbgOutResult.getStr());
93 
94  return aDbgOutResult.getStr();
95 }
96 
97 static map<sal_uInt16,OUString> & GetItemWhichMap()
98 {
99  static map<sal_uInt16,OUString> aItemWhichMap
100  {
101  { RES_CHRATR_CASEMAP , "CHRATR_CASEMAP" },
102  { RES_CHRATR_CHARSETCOLOR , "CHRATR_CHARSETCOLOR" },
103  { RES_CHRATR_COLOR , "CHRATR_COLOR" },
104  { RES_CHRATR_CONTOUR , "CHRATR_CONTOUR" },
105  { RES_CHRATR_CROSSEDOUT , "CHRATR_CROSSEDOUT" },
106  { RES_CHRATR_ESCAPEMENT , "CHRATR_ESCAPEMENT" },
107  { RES_CHRATR_FONT , "CHRATR_FONT" },
108  { RES_CHRATR_FONTSIZE , "CHRATR_FONTSIZE" },
109  { RES_CHRATR_KERNING , "CHRATR_KERNING" },
110  { RES_CHRATR_LANGUAGE , "CHRATR_LANGUAGE" },
111  { RES_CHRATR_POSTURE , "CHRATR_POSTURE" },
112  { RES_CHRATR_SHADOWED , "CHRATR_SHADOWED" },
113  { RES_CHRATR_UNDERLINE , "CHRATR_UNDERLINE" },
114  { RES_CHRATR_OVERLINE , "CHRATR_OVERLINE" },
115  { RES_CHRATR_WEIGHT , "CHRATR_WEIGHT" },
116  { RES_CHRATR_WORDLINEMODE , "CHRATR_WORDLINEMODE" },
117  { RES_CHRATR_AUTOKERN , "CHRATR_AUTOKERN" },
118  { RES_CHRATR_BLINK , "CHRATR_BLINK" },
119  { RES_CHRATR_NOHYPHEN , "CHRATR_NOHYPHEN" },
120  { RES_CHRATR_BACKGROUND , "CHRATR_BACKGROUND" },
121  { RES_CHRATR_HIGHLIGHT , "CHRATR_HIGHLIGHT" },
122  { RES_CHRATR_CJK_FONT , "CHRATR_CJK_FONT" },
123  { RES_CHRATR_CJK_FONTSIZE , "CHRATR_CJK_FONTSIZE" },
124  { RES_CHRATR_CJK_LANGUAGE , "CHRATR_CJK_LANGUAGE" },
125  { RES_CHRATR_CJK_POSTURE , "CHRATR_CJK_POSTURE" },
126  { RES_CHRATR_CJK_WEIGHT , "CHRATR_CJK_WEIGHT" },
127  { RES_CHRATR_CTL_FONT , "CHRATR_CTL_FONT" },
128  { RES_CHRATR_CTL_FONTSIZE , "CHRATR_CTL_FONTSIZE" },
129  { RES_CHRATR_CTL_LANGUAGE , "CHRATR_CTL_LANGUAGE" },
130  { RES_CHRATR_CTL_POSTURE , "CHRATR_CTL_POSTURE" },
131  { RES_CHRATR_CTL_WEIGHT , "CHRATR_CTL_WEIGHT" },
132  { RES_CHRATR_ROTATE , "CHRATR_ROTATE" },
133  { RES_CHRATR_EMPHASIS_MARK , "CHRATR_EMPHASIS_MARK" },
134  { RES_CHRATR_TWO_LINES , "CHRATR_TWO_LINES" },
135  { RES_CHRATR_SCALEW , "CHRATR_SCALEW" },
136  { RES_CHRATR_RELIEF , "CHRATR_RELIEF" },
137  { RES_CHRATR_HIDDEN , "CHRATR_HIDDEN" },
138  { RES_CHRATR_BOX , "CHRATR_BOX" },
139  { RES_CHRATR_SHADOW , "CHRATR_SHADOW" },
140  { RES_TXTATR_AUTOFMT , "TXTATR_AUTOFMT" },
141  { RES_TXTATR_INETFMT , "TXTATR_INETFMT" },
142  { RES_TXTATR_REFMARK , "TXTATR_REFMARK" },
143  { RES_TXTATR_TOXMARK , "TXTATR_TOXMARK" },
144  { RES_TXTATR_CHARFMT , "TXTATR_CHARFMT" },
145  { RES_TXTATR_INPUTFIELD , "RES_TXTATR_INPUTFIELD" },
146  { RES_TXTATR_CJK_RUBY , "TXTATR_CJK_RUBY" },
147  { RES_TXTATR_UNKNOWN_CONTAINER , "TXTATR_UNKNOWN_CONTAINER" },
148  { RES_TXTATR_META , "TXTATR_META" },
149  { RES_TXTATR_METAFIELD , "TXTATR_METAFIELD" },
150  { RES_TXTATR_FIELD , "TXTATR_FIELD" },
151  { RES_TXTATR_FLYCNT , "TXTATR_FLYCNT" },
152  { RES_TXTATR_FTN , "TXTATR_FTN" },
153  { RES_TXTATR_ANNOTATION , "TXTATR_ANNOTATION" },
154  { RES_TXTATR_DUMMY3 , "TXTATR_DUMMY3" },
155  { RES_TXTATR_DUMMY1 , "TXTATR_DUMMY1" },
156  { RES_TXTATR_DUMMY2 , "TXTATR_DUMMY2" },
157  { RES_PARATR_LINESPACING , "PARATR_LINESPACING" },
158  { RES_PARATR_ADJUST , "PARATR_ADJUST" },
159  { RES_PARATR_SPLIT , "PARATR_SPLIT" },
160  { RES_PARATR_ORPHANS , "PARATR_ORPHANS" },
161  { RES_PARATR_WIDOWS , "PARATR_WIDOWS" },
162  { RES_PARATR_TABSTOP , "PARATR_TABSTOP" },
163  { RES_PARATR_HYPHENZONE , "PARATR_HYPHENZONE" },
164  { RES_PARATR_DROP , "PARATR_DROP" },
165  { RES_PARATR_REGISTER , "PARATR_REGISTER" },
166  { RES_PARATR_NUMRULE , "PARATR_NUMRULE" },
167  { RES_PARATR_SCRIPTSPACE , "PARATR_SCRIPTSPACE" },
168  { RES_PARATR_HANGINGPUNCTUATION , "PARATR_HANGINGPUNCTUATION" },
169  { RES_PARATR_FORBIDDEN_RULES , "PARATR_FORBIDDEN_RULES" },
170  { RES_PARATR_VERTALIGN , "PARATR_VERTALIGN" },
171  { RES_PARATR_SNAPTOGRID , "PARATR_SNAPTOGRID" },
172  { RES_PARATR_CONNECT_BORDER , "PARATR_CONNECT_BORDER" },
173  { RES_FILL_ORDER , "FILL_ORDER" },
174  { RES_FRM_SIZE , "FRM_SIZE" },
175  { RES_PAPER_BIN , "PAPER_BIN" },
176  { RES_LR_SPACE , "LR_SPACE" },
177  { RES_UL_SPACE , "UL_SPACE" },
178  { RES_PAGEDESC , "PAGEDESC" },
179  { RES_BREAK , "BREAK" },
180  { RES_CNTNT , "CNTNT" },
181  { RES_HEADER , "HEADER" },
182  { RES_FOOTER , "FOOTER" },
183  { RES_PRINT , "PRINT" },
184  { RES_OPAQUE , "OPAQUE" },
185  { RES_PROTECT , "PROTECT" },
186  { RES_SURROUND , "SURROUND" },
187  { RES_VERT_ORIENT , "VERT_ORIENT" },
188  { RES_HORI_ORIENT , "HORI_ORIENT" },
189  { RES_ANCHOR , "ANCHOR" },
190  { RES_BACKGROUND , "BACKGROUND" },
191  { RES_BOX , "BOX" },
192  { RES_SHADOW , "SHADOW" },
193  { RES_FRMMACRO , "FRMMACRO" },
194  { RES_COL , "COL" },
195  { RES_KEEP , "KEEP" },
196  { RES_URL , "URL" },
197  { RES_EDIT_IN_READONLY , "EDIT_IN_READONLY" },
198  { RES_LAYOUT_SPLIT , "LAYOUT_SPLIT" },
199  { RES_CHAIN , "CHAIN" },
200  { RES_TEXTGRID , "TEXTGRID" },
201  { RES_LINENUMBER , "LINENUMBER" },
202  { RES_FTN_AT_TXTEND , "FTN_AT_TXTEND" },
203  { RES_END_AT_TXTEND , "END_AT_TXTEND" },
204  { RES_COLUMNBALANCE , "COLUMNBALANCE" },
205  { RES_FRAMEDIR , "FRAMEDIR" },
206  { RES_HEADER_FOOTER_EAT_SPACING , "HEADER_FOOTER_EAT_SPACING" },
207  { RES_ROW_SPLIT , "ROW_SPLIT" },
208  { RES_GRFATR_MIRRORGRF , "GRFATR_MIRRORGRF" },
209  { RES_GRFATR_CROPGRF , "GRFATR_CROPGRF" },
210  { RES_GRFATR_ROTATION , "GRFATR_ROTATION" },
211  { RES_GRFATR_LUMINANCE , "GRFATR_LUMINANCE" },
212  { RES_GRFATR_CONTRAST , "GRFATR_CONTRAST" },
213  { RES_GRFATR_CHANNELR , "GRFATR_CHANNELR" },
214  { RES_GRFATR_CHANNELG , "GRFATR_CHANNELG" },
215  { RES_GRFATR_CHANNELB , "GRFATR_CHANNELB" },
216  { RES_GRFATR_GAMMA , "GRFATR_GAMMA" },
217  { RES_GRFATR_INVERT , "GRFATR_INVERT" },
218  { RES_GRFATR_TRANSPARENCY , "GRFATR_TRANSPARENCY" },
219  { RES_GRFATR_DRAWMODE , "GRFATR_DRAWMODE" },
220  { RES_BOXATR_FORMAT , "BOXATR_FORMAT" },
221  { RES_BOXATR_FORMULA , "BOXATR_FORMULA" },
222  { RES_BOXATR_VALUE , "BOXATR_VALUE" },
223  };
224 
225  return aItemWhichMap;
226 }
227 
228 static OUString lcl_dbg_out(const SfxPoolItem & rItem)
229 {
230  OUString aStr("[ ");
231 
232  if (GetItemWhichMap().find(rItem.Which()) != GetItemWhichMap().end())
233  aStr += GetItemWhichMap()[rItem.Which()];
234  else
235  aStr += OUString::number(rItem.Which());
236 
237  aStr += " ]";
238 
239  return aStr;
240 }
241 
242 const char * dbg_out(const SfxPoolItem & rItem)
243 {
244  return dbg_out(lcl_dbg_out(rItem));
245 }
246 
247 const char * dbg_out(const SfxPoolItem * pItem)
248 {
249  return dbg_out(pItem ? lcl_dbg_out(*pItem) : OUString("(nil)"));
250 }
251 
252 static OUString lcl_dbg_out(const SfxItemSet & rSet)
253 {
254  SfxItemIter aIter(rSet);
255  bool bFirst = true;
256  OUStringBuffer aStr = "[ ";
257 
258  for (const SfxPoolItem* pItem = aIter.GetCurItem(); pItem; pItem = aIter.NextItem())
259  {
260  if (!bFirst)
261  aStr.append(", ");
262 
263  if (reinterpret_cast<sal_uIntPtr>(pItem) != SAL_MAX_SIZE)
264  aStr.append(lcl_dbg_out(*pItem));
265  else
266  aStr.append("invalid");
267 
268  bFirst = false;
269  }
270 
271  aStr.append(" ]");
272 
273  return aStr.makeStringAndClear();
274 }
275 
276 const char * dbg_out(const SfxItemSet & rSet)
277 {
278  return dbg_out(lcl_dbg_out(rSet));
279 }
280 
281 static OUString lcl_dbg_out(const SwTextAttr & rAttr)
282 {
283  OUString aStr =
284  "[ " +
285  OUString::number(rAttr.GetStart()) +
286  "->" +
287  OUString::number(*rAttr.End()) +
288  " " +
289  lcl_dbg_out(rAttr.GetAttr()) +
290  " ]";
291 
292  return aStr;
293 }
294 
295 const char * dbg_out(const SwTextAttr & rAttr)
296 {
297  return dbg_out(lcl_dbg_out(rAttr));
298 }
299 
300 static OUString lcl_dbg_out(const SwpHints & rHints)
301 {
302  OUStringBuffer aStr("[ SwpHints\n");
303 
304  for (size_t i = 0; i < rHints.Count(); ++i)
305  {
306  aStr.append(" ");
307  aStr.append(lcl_dbg_out(*rHints.Get(i)));
308  aStr.append("\n");
309  }
310 
311  aStr.append("]\n");
312 
313  return aStr.makeStringAndClear();
314 }
315 
316 const char * dbg_out(const SwpHints &rHints)
317 {
318  return dbg_out(lcl_dbg_out(rHints));
319 }
320 
321 static OUString lcl_dbg_out(const SwPosition & rPos)
322 {
323  OUString aStr =
324  "( " +
325  OUString::number(rPos.nNode.GetIndex()) +
326  ", " +
327  OUString::number(rPos.nContent.GetIndex()) +
328  ": " +
329  OUString::number(reinterpret_cast<sal_IntPtr>(rPos.nContent.GetIdxReg()), 16) +
330  " )";
331 
332  return aStr;
333 }
334 
335 const char * dbg_out(const SwPosition & rPos)
336 {
337  return dbg_out(lcl_dbg_out(rPos));
338 }
339 
340 static OUString lcl_dbg_out(const SwPaM & rPam)
341 {
342  OUString aStr =
343  "[ Pt: " +
344  lcl_dbg_out(*rPam.GetPoint());
345 
346  if (rPam.HasMark())
347  {
348  aStr += ", Mk: " + lcl_dbg_out(*rPam.GetMark());
349  }
350 
351  aStr += " ]";
352 
353  return aStr;
354 }
355 
356 const char * dbg_out(const SwPaM & rPam)
357 {
358  return dbg_out(lcl_dbg_out(rPam));
359 }
360 
361 static OUString lcl_dbg_out(const SwNodeNum & )
362 {
363  return OUString();/*rNum.ToString();*/
364 }
365 
366 const char * dbg_out(const SwNodeNum & rNum)
367 {
368  return dbg_out(lcl_dbg_out(rNum));
369 }
370 
371 static OUString lcl_dbg_out(const SwRect & rRect)
372 {
373  OUString aResult =
374  "[ [" +
375  OUString::number(rRect.Left()) +
376  ", " +
377  OUString::number(rRect.Top()) +
378  "], [" +
379  OUString::number(rRect.Right()) +
380  ", " +
381  OUString::number(rRect.Bottom()) +
382  "] ]";
383 
384  return aResult;
385 }
386 
387 const char * dbg_out(const SwRect & rRect)
388 {
389  return dbg_out(lcl_dbg_out(rRect));
390 }
391 
392 static OUString lcl_dbg_out(const SwFrameFormat & rFrameFormat)
393 {
394  char sBuffer[256];
395  sprintf(sBuffer, "%p", &rFrameFormat);
396 
397  OUString aResult = "[ " +
398  OUString(sBuffer, strlen(sBuffer), RTL_TEXTENCODING_ASCII_US) +
399  "(" +
400  rFrameFormat.GetName() + ")";
401 
402  if (rFrameFormat.IsAuto())
403  aResult += "*";
404 
405  aResult += " ," + lcl_dbg_out(rFrameFormat.FindLayoutRect()) + " ]";
406 
407  return aResult;
408 }
409 
410 const char * dbg_out(const SwFrameFormat & rFrameFormat)
411 {
412  return dbg_out(lcl_dbg_out(rFrameFormat));
413 }
414 
415 static OUString lcl_AnchoredFrames(const SwNode & rNode)
416 {
417  OUStringBuffer aResult("[");
418 
419  const SwDoc * pDoc = rNode.GetDoc();
420  if (pDoc)
421  {
422  const SwFrameFormats * pFrameFormats = pDoc->GetSpzFrameFormats();
423 
424  if (pFrameFormats)
425  {
426  bool bFirst = true;
427  for (SwFrameFormats::const_iterator i(pFrameFormats->begin());
428  i != pFrameFormats->end(); ++i)
429  {
430  const SwFormatAnchor & rAnchor = (*i)->GetAnchor();
431  const SwPosition * pPos = rAnchor.GetContentAnchor();
432 
433  if (pPos && &pPos->nNode.GetNode() == &rNode)
434  {
435  if (! bFirst)
436  aResult.append(", ");
437 
438  if (*i)
439  aResult.append(lcl_dbg_out(**i));
440  bFirst = false;
441  }
442  }
443  }
444  }
445 
446  aResult.append("]");
447 
448  return aResult.makeStringAndClear();
449 }
450 
451 static OUString lcl_dbg_out_NumType(sal_Int16 nType)
452 {
453  OUString aTmpStr;
454 
455  switch (nType)
456  {
457  case SVX_NUM_NUMBER_NONE:
458  aTmpStr += " NONE";
459 
460  break;
462  aTmpStr += " CHARS_UPPER_LETTER";
463 
464  break;
466  aTmpStr += " CHARS_LOWER_LETTER";
467 
468  break;
469  case SVX_NUM_ROMAN_UPPER:
470  aTmpStr += " ROMAN_UPPER";
471 
472  break;
473  case SVX_NUM_ROMAN_LOWER:
474  aTmpStr += " ROMAN_LOWER";
475 
476  break;
477  case SVX_NUM_ARABIC:
478  aTmpStr += " ARABIC";
479 
480  break;
481  default:
482  aTmpStr += " ??";
483 
484  break;
485  }
486 
487  return aTmpStr;
488 }
489 
490 static OUString lcl_dbg_out(const SwNode & rNode)
491 {
492  char aBuffer[128];
493  sprintf(aBuffer, "%p", &rNode);
494 
495  OUString aTmpStr = "<node "
496  "index=\"" +
497  OUString::number(rNode.GetIndex()) +
498  "\""
499  " serial=\"" +
500  OUString::number(rNode.GetSerial()) +
501  "\""
502  " type=\"" +
503  OUString::number(sal_Int32( rNode.GetNodeType() ) ) +
504  "\""
505  " pointer=\"" +
506  OUString(aBuffer, strlen(aBuffer), RTL_TEXTENCODING_ASCII_US) +
507  "\">";
508 
509  const SwTextNode * pTextNode = rNode.GetTextNode();
510 
511  if (rNode.IsTextNode())
512  {
513  const SfxItemSet * pAttrSet = pTextNode->GetpSwAttrSet();
514 
515  aTmpStr += "<txt>" + (pTextNode->GetText().getLength() > 10 ? pTextNode->GetText().copy(0, 10) : pTextNode->GetText()) + "</txt>";
516 
517  if (rNode.IsTableNode())
518  aTmpStr += "<tbl/>";
519 
520  aTmpStr += "<outlinelevel>" + OUString::number(pTextNode->GetAttrOutlineLevel()-1) + "</outlinelevel>";
521 
522  const SwNumRule * pNumRule = pTextNode->GetNumRule();
523 
524  if (pNumRule != nullptr)
525  {
526  aTmpStr += "<number>";
527  if ( pTextNode->GetNum() )
528  {
529  aTmpStr += lcl_dbg_out(*(pTextNode->GetNum()));
530  }
531  aTmpStr += "</number><rule>" +
532  pNumRule->GetName();
533 
534  const SfxPoolItem * pItem = nullptr;
535 
536  if (pAttrSet && SfxItemState::SET ==
537  pAttrSet->GetItemState(RES_PARATR_NUMRULE, false, &pItem))
538  {
539  aTmpStr += "(" +
540  static_cast<const SwNumRuleItem *>(pItem)->GetValue() + ")*";
541  }
542 
543  const SwNumFormat * pNumFormat = nullptr;
544  aTmpStr += "</rule>";
545 
546  if (pTextNode->GetActualListLevel() > 0)
547  pNumFormat = pNumRule->GetNumFormat( static_cast< sal_uInt16 >(pTextNode->GetActualListLevel()) );
548 
549  if (pNumFormat)
550  {
551  aTmpStr += "<numformat>" +
552  lcl_dbg_out_NumType(pNumFormat->GetNumberingType()) + "</numformat>";
553  }
554  }
555 
556  if (pTextNode->IsCountedInList())
557  aTmpStr += "<counted/>";
558 
559  SwFormatColl * pColl = pTextNode->GetFormatColl();
560 
561  if (pColl)
562  {
563  aTmpStr += "<coll>" + pColl->GetName() + "(";
564 
565  SwTextFormatColl *pTextColl = static_cast<SwTextFormatColl*>(pColl);
566  if (pTextColl->IsAssignedToListLevelOfOutlineStyle())
567  {
568  aTmpStr += OUString::number(pTextColl->GetAssignedOutlineStyleLevel());
569  }
570  else
571  {
572  aTmpStr += OUString::number(-1);
573  }
574 
575  const SwNumRuleItem & rItem =
577  const OUString& sNumruleName = rItem.GetValue();
578 
579  if (!sNumruleName.isEmpty())
580  {
581  aTmpStr += ", " + sNumruleName;
582  }
583  aTmpStr += ")"
584  "</coll>";
585  }
586 
587  SwFormatColl * pCColl = pTextNode->GetCondFormatColl();
588 
589  if (pCColl)
590  {
591  aTmpStr += "<ccoll>" + pCColl->GetName() + "</ccoll>";
592  }
593 
594  aTmpStr += "<frms>" + lcl_AnchoredFrames(rNode) + "</frms>";
595 
597  {
598  aTmpStr += "<attrs>" + lcl_dbg_out(pTextNode->GetSwAttrSet()) + "</attrs>";
599  }
600  }
601  else if (rNode.IsStartNode())
602  {
603  aTmpStr += "<start end=\"";
604 
605  const SwStartNode * pStartNode = dynamic_cast<const SwStartNode *> (&rNode);
606  if (pStartNode != nullptr)
607  aTmpStr += OUString::number(pStartNode->EndOfSectionNode()->GetIndex());
608 
609  aTmpStr += "\"/>";
610  }
611  else if (rNode.IsEndNode())
612  aTmpStr += "<end/>";
613 
614  aTmpStr += "</node>";
615 
616  return aTmpStr;
617 }
618 
619 const char * dbg_out(const SwNode & rNode)
620 {
621  return dbg_out(lcl_dbg_out(rNode));
622 }
623 
624 const char * dbg_out(const SwNode * pNode)
625 {
626  if (nullptr != pNode)
627  return dbg_out(*pNode);
628  else
629  return nullptr;
630 }
631 
632 const char * dbg_out(const SwContentNode * pNode)
633 {
634  if (nullptr != pNode)
635  return dbg_out(*pNode);
636  else
637  return nullptr;
638 }
639 
640 const char * dbg_out(const SwTextNode * pNode)
641 {
642  if (nullptr != pNode)
643  return dbg_out(*pNode);
644  else
645  return nullptr;
646 }
647 
648 static OUString lcl_dbg_out(const SwUndo & rUndo)
649 {
650  return "[ " + OUString::number(static_cast<int>(rUndo.GetId()))
651  + ": " + rUndo.GetComment() + " ]";
652 }
653 
654 const char * dbg_out(const SwUndo & rUndo)
655 {
656  return dbg_out(lcl_dbg_out(rUndo));
657 }
658 
659 static OUString lcl_dbg_out(SwOutlineNodes const & rNodes)
660 {
661  OUStringBuffer aStr("[\n");
662 
663  for (size_t i = 0; i < rNodes.size(); i++)
664  {
665  aStr.append(lcl_dbg_out(*rNodes[i]));
666  aStr.append("\n");
667  }
668 
669  aStr.append("]\n");
670 
671  return aStr.makeStringAndClear();
672 }
673 
674 const char * dbg_out( SwOutlineNodes const & rNodes)
675 {
676  return dbg_out(lcl_dbg_out(rNodes));
677 }
678 
679 static OUString lcl_dbg_out(const SvxNumberFormat & rFormat)
680 {
681  OUString aResult = lcl_dbg_out_NumType(rFormat.GetNumberingType());
682  return aResult;
683 }
684 
685 static OUString lcl_dbg_out(const SwNumRule & rRule)
686 {
687  OUStringBuffer aResult("[ ");
688 
689  aResult.append(rRule.GetName());
690  aResult.append(" [");
691 
692  for (sal_uInt8 n = 0; n < MAXLEVEL; n++)
693  {
694  if (n > 0)
695  aResult.append(", ");
696 
697  aResult.append(lcl_dbg_out(rRule.Get(n)));
698  }
699 
700  aResult.append("]");
701 
702  aResult.append("]");
703 
704  return aResult.makeStringAndClear();
705 }
706 
707 const char * dbg_out(const SwNumRule & rRule)
708 {
709  return dbg_out(lcl_dbg_out(rRule));
710 }
711 
712 static OUString lcl_dbg_out(const SwTextFormatColl & rFormat)
713 {
714  return rFormat.GetName() + "(" +
715  OUString::number(rFormat.GetAttrOutlineLevel()) + ")";
716 }
717 
718 const char * dbg_out(const SwTextFormatColl & rFormat)
719 {
720  return dbg_out(lcl_dbg_out(rFormat));
721 }
722 
723 static OUString lcl_dbg_out(const SwFrameFormats & rFrameFormats)
724 {
725  return lcl_dbg_out_SvPtrArr<SwFrameFormats>(rFrameFormats);
726 }
727 
728 const char * dbg_out(const SwFrameFormats & rFrameFormats)
729 {
730  return dbg_out(lcl_dbg_out(rFrameFormats));
731 }
732 
733 static OUString lcl_dbg_out(const SwNumRuleTable & rTable)
734 {
735  OUStringBuffer aResult("[");
736 
737  for (size_t n = 0; n < rTable.size(); n++)
738  {
739  if (n > 0)
740  aResult.append(", ");
741 
742  aResult.append(rTable[n]->GetName());
743 
744  char sBuffer[256];
745  sprintf(sBuffer, "(%p)", rTable[n]);
746  aResult.appendAscii(sBuffer);
747  }
748 
749  aResult.append("]");
750 
751  return aResult.makeStringAndClear();
752 }
753 
754 const char * dbg_out(const SwNumRuleTable & rTable)
755 {
756  return dbg_out(lcl_dbg_out(rTable));
757 }
758 
759 static OUString lcl_TokenType2Str(FormTokenType nType)
760 {
761  switch(nType)
762  {
763  case TOKEN_ENTRY_NO:
764  return "NO";
765  case TOKEN_ENTRY_TEXT:
766  return "ENTRY_TEXT";
767  case TOKEN_ENTRY:
768  return "ENTRY";
769  case TOKEN_TAB_STOP:
770  return "TAB_STOP";
771  case TOKEN_TEXT:
772  return "TOKEN_TEXT";
773  case TOKEN_PAGE_NUMS:
774  return "NUMS";
775  case TOKEN_CHAPTER_INFO:
776  return "CHAPTER_INFO";
777  case TOKEN_LINK_START:
778  return "LINK_START";
779  case TOKEN_LINK_END:
780  return "LINK_END";
781  case TOKEN_AUTHORITY:
782  return "AUTHORITY";
783  case TOKEN_END:
784  return "END";
785  default:
786  OSL_FAIL("should not be reached");
787  return "??";
788  }
789 }
790 
791 static OUString lcl_dbg_out(const SwFormToken & rToken)
792 {
793  return rToken.GetString();
794 }
795 
796 const char * dbg_out(const SwFormToken & rToken)
797 {
798  return dbg_out(lcl_dbg_out(rToken));
799 }
800 
801 static OUString lcl_dbg_out(const SwFormTokens & rTokens)
802 {
803  OUStringBuffer aStr("[");
804 
805  SwFormTokens::const_iterator aIt;
806 
807  for (aIt = rTokens.begin(); aIt != rTokens.end(); ++aIt)
808  {
809  if (aIt != rTokens.begin())
810  aStr.append(", ");
811 
812  aStr.append(lcl_TokenType2Str(aIt->eTokenType));
813  aStr.append(": ");
814  aStr.append(lcl_dbg_out(*aIt));
815  }
816 
817  aStr.append("]");
818 
819  return aStr.makeStringAndClear();
820 }
821 
822 const char * dbg_out(const SwFormTokens & rTokens)
823 {
824  return dbg_out(lcl_dbg_out(rTokens));
825 }
826 
827 static OUString lcl_dbg_out(const SwNodeRange & rRange)
828 {
829  OUString aStr =
830  "[" +
831  lcl_dbg_out(SwPosition(rRange.aStart)) +
832  ", " +
833  lcl_dbg_out(SwPosition(rRange.aEnd)) +
834  "]";
835 
836  return aStr;
837 }
838 
839 const char * dbg_out(const SwNodeRange & rRange)
840 {
841  return dbg_out(lcl_dbg_out(rRange));
842 }
843 
844 #endif // DEBUG
845 
846 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr TypedWhichId< SwCropGrf > RES_GRFATR_CROPGRF(132)
constexpr TypedWhichId< SwDrawModeGrf > RES_GRFATR_DRAWMODE(142)
SvxNumType GetNumberingType() const
const SwEndNode * EndOfSectionNode() const
Definition: node.hxx:682
std::vector< SwFormToken > SwFormTokens
Vector of tokens.
Definition: tox.hxx:249
Starts a section of nodes in the document model.
Definition: node.hxx:303
constexpr TypedWhichId< SvxProtectItem > RES_PROTECT(100)
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(120)
constexpr TypedWhichId< SvxBlinkItem > RES_CHRATR_BLINK(18)
constexpr TypedWhichId< SwFormatEndAtTextEnd > RES_END_AT_TXTEND(118)
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(93)
constexpr TypedWhichId< SvxCrossedOutItem > RES_CHRATR_CROSSEDOUT(5)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(101)
constexpr TypedWhichId< SwFormatFillOrder > RES_FILL_ORDER(RES_FRMATR_BEGIN)
sal_uLong GetIndex() const
Definition: node.hxx:282
constexpr TypedWhichId< SwHeaderAndFooterEatSpacingItem > RES_HEADER_FOOTER_EAT_SPACING(121)
int GetAssignedOutlineStyleLevel() const
Definition: fmtcol.cxx:587
Represents the style of a paragraph.
Definition: fmtcol.hxx:55
Marks a position in the document model.
Definition: pam.hxx:35
constexpr TypedWhichId< SvxTabStopItem > RES_PARATR_TABSTOP(68)
constexpr TypedWhichId< SvxParaGridItem > RES_PARATR_SNAPTOGRID(77)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
constexpr TypedWhichId< SvxEscapementItem > RES_CHRATR_ESCAPEMENT(6)
const SwNodeNum * GetNum(SwRootFrame const *pLayout=nullptr) const
Definition: ndtxt.cxx:3959
constexpr TypedWhichId< SvxPrintItem > RES_PRINT(98)
constexpr TypedWhichId< SwFormatMeta > RES_TXTATR_METAFIELD(49)
static OUString lcl_dbg_out_SvPtrArr(const T &rArr)
Definition: dbgoutsw.cxx:56
constexpr TypedWhichId< SwTableBoxNumFormat > RES_BOXATR_FORMAT(RES_BOXATR_BEGIN)
const OUString & GetText() const
Definition: ndtxt.hxx:211
constexpr TypedWhichId< SwFormatHeader > RES_HEADER(96)
constexpr TypedWhichId< SwFormatEditInReadonly > RES_EDIT_IN_READONLY(112)
std::string GetValue
constexpr TypedWhichId< SwFormatCol > RES_COL(109)
constexpr TypedWhichId< SwTableBoxValue > RES_BOXATR_VALUE(150)
SwFormatColl * GetCondFormatColl() const
Definition: node.hxx:711
constexpr TypedWhichId< SwFormatMeta > RES_TXTATR_META(48)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(110)
SwNodeIndex nNode
Definition: pam.hxx:37
const_iterator begin() const
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
static OString aDbgOutResult
Definition: dbgoutsw.cxx:51
SVX_NUM_NUMBER_NONE
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr TypedWhichId< SwNumRuleItem > RES_PARATR_NUMRULE(72)
SwRect FindLayoutRect(const bool bPrtArea=false, const Point *pPoint=nullptr) const
Definition: atrfrm.cxx:2648
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
const SwPosition * GetMark() const
Definition: pam.hxx:209
constexpr TypedWhichId< SwRotationGrf > RES_GRFATR_ROTATION(133)
constexpr TypedWhichId< SvxPaperBinItem > RES_PAPER_BIN(90)
SVX_NUM_CHARS_UPPER_LETTER
constexpr TypedWhichId< SwRegisterItem > RES_PARATR_REGISTER(71)
sal_Int64 n
Definition: doc.hxx:186
constexpr TypedWhichId< SwFormatFlyCnt > RES_TXTATR_FLYCNT(57)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(94)
constexpr TypedWhichId< SvxUnderlineItem > RES_CHRATR_UNDERLINE(14)
constexpr TypedWhichId< SvxAutoKernItem > RES_CHRATR_AUTOKERN(17)
constexpr TypedWhichId< SwGammaGrf > RES_GRFATR_GAMMA(139)
SwNode & GetNode() const
Definition: ndindex.hxx:119
const OUString & GetName() const
Definition: numrule.hxx:222
constexpr TypedWhichId< SvxHangingPunctuationItem > RES_PARATR_HANGINGPUNCTUATION(74)
constexpr TypedWhichId< SwInvertGrf > RES_GRFATR_INVERT(140)
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(99)
constexpr TypedWhichId< SvxBoxItem > RES_CHRATR_BOX(40)
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
const_iterator end() const
SwUndoId GetId() const
Definition: undobj.hxx:100
constexpr TypedWhichId< SwFormatField > RES_TXTATR_ANNOTATION(59)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CJK_POSTURE(25)
int GetActualListLevel() const
Returns the actual list level of this text node, when it is a list item.
Definition: ndtxt.cxx:4089
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
const SwFrameFormats * GetSpzFrameFormats() const
Definition: doc.hxx:741
constexpr TypedWhichId< SvxTwoLinesItem > RES_CHRATR_TWO_LINES(34)
int GetAttrOutlineLevel() const
Returns outline level of this text node.
Definition: ndtxt.cxx:4024
constexpr TypedWhichId< SwLuminanceGrf > RES_GRFATR_LUMINANCE(134)
constexpr TypedWhichId< SwFormatLayoutSplit > RES_LAYOUT_SPLIT(113)
constexpr TypedWhichId< SwChannelBGrf > RES_GRFATR_CHANNELB(138)
static map< sal_uInt16, OUString > & GetItemWhichMap()
Definition: dbgoutsw.cxx:97
constexpr TypedWhichId< SvxCaseMapItem > RES_CHRATR_CASEMAP(RES_CHRATR_BEGIN)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(102)
const SfxPoolItem * NextItem()
bool IsAssignedToListLevelOfOutlineStyle() const
Definition: fmtcol.hxx:109
void Top(const long nTop)
Definition: swrect.hxx:204
SwNodeType GetNodeType() const
Definition: node.hxx:144
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(103)
SwIndex nContent
Definition: pam.hxx:38
constexpr TypedWhichId< SvxShadowItem > RES_CHRATR_SHADOW(41)
SwNodeIndex aStart
Definition: ndindex.hxx:132
static OUString lcl_AnchoredFrames(const SwNode &rNode)
Definition: dbgoutsw.cxx:415
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
const OUString & GetName() const
Definition: format.hxx:111
constexpr TypedWhichId< SwFormatDrop > RES_PARATR_DROP(70)
sal_uLong GetIndex() const
Definition: ndindex.hxx:152
SVX_NUM_ARABIC
sal_Int32 GetStart() const
Definition: txatbase.hxx:82
const sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:95
bool IsStartNode() const
Definition: node.hxx:624
SVX_NUM_ROMAN_UPPER
constexpr TypedWhichId< SwFormatRuby > RES_TXTATR_CJK_RUBY(53)
constexpr TypedWhichId< SwFormatCharFormat > RES_TXTATR_CHARFMT(52)
SVX_NUM_ROMAN_LOWER
constexpr TypedWhichId< SvxCharReliefItem > RES_CHRATR_RELIEF(36)
constexpr TypedWhichId< SwFormatAutoFormat > RES_TXTATR_AUTOFMT(50)
void Right(const long nRight)
Definition: swrect.hxx:200
size_type size() const
constexpr TypedWhichId< SwFormatFootnote > RES_TXTATR_FTN(58)
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
constexpr TypedWhichId< SfxBoolItem > RES_TXTATR_DUMMY2(62)
Specific frame formats (frames, DrawObjects).
constexpr TypedWhichId< SvxHyphenZoneItem > RES_PARATR_HYPHENZONE(69)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
constexpr TypedWhichId< SvxParaVertAlignItem > RES_PARATR_VERTALIGN(76)
constexpr TypedWhichId< SwFormatRowSplit > RES_ROW_SPLIT(122)
bool bDbgOutStdErr
Definition: dbgoutsw.cxx:52
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
OUString GetString() const
Definition: tox.cxx:644
const SwAttrSet * GetpSwAttrSet() const
Definition: node.hxx:443
constexpr TypedWhichId< SwFormatField > RES_TXTATR_FIELD(RES_TXTATR_NOEND_BEGIN)
Style of a layout element.
Definition: frmfmt.hxx:57
SVX_NUM_CHARS_LOWER_LETTER
size_t Count() const
Definition: ndhints.hxx:142
constexpr TypedWhichId< SfxBoolItem > RES_TXTATR_DUMMY1(61)
SwTextAttr * Get(size_t nPos) const
Definition: ndhints.hxx:144
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
int i
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, const OUString &_rVal, const ::comphelper::UStringMixEqual &_rCase)
const SwPosition * GetPoint() const
Definition: pam.hxx:207
bool bDbgOutPrintAttrSet
Definition: dbgoutsw.cxx:53
constexpr TypedWhichId< SvxMacroItem > RES_FRMMACRO(108)
const SwPosition * GetContentAnchor() const
Definition: fmtanchr.hxx:67
constexpr TypedWhichId< SwFormatURL > RES_URL(111)
const OUString & GetValue() const
FlyAnchors.
Definition: fmtanchr.hxx:34
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
Definition: pam.hxx:205
SwDoc * GetDoc()
Definition: node.hxx:702
constexpr TypedWhichId< SvxShadowedItem > RES_CHRATR_SHADOWED(13)
size_t size() const
Definition: docary.hxx:84
const char * dbg_out(const void *pVoid)
Definition: dbgoutsw.cxx:76
SwNumRule * GetNumRule(bool bInParent=true) const
Returns numbering rule of this text node.
Definition: ndtxt.cxx:2805
constexpr TypedWhichId< SvxLineSpacingItem > RES_PARATR_LINESPACING(RES_PARATR_BEGIN)
constexpr TypedWhichId< SwContrastGrf > RES_GRFATR_CONTRAST(135)
bool IsEndNode() const
Definition: node.hxx:632
long GetSerial() const
Definition: node.hxx:125
constexpr TypedWhichId< SvxOverlineItem > RES_CHRATR_OVERLINE(38)
constexpr TypedWhichId< SvxEmphasisMarkItem > RES_CHRATR_EMPHASIS_MARK(33)
virtual OUString GetComment() const override
Returns textual comment for this undo object.
Definition: undobj.cxx:657
constexpr TypedWhichId< SwFormatContent > RES_CNTNT(95)
constexpr TypedWhichId< SvxCharScaleWidthItem > RES_CHRATR_SCALEW(35)
constexpr TypedWhichId< SvxCharHiddenItem > RES_CHRATR_HIDDEN(37)
static OUString lcl_dbg_out(const SfxPoolItem &rItem)
Definition: dbgoutsw.cxx:228
OString OUStringToOString(const OUString &str, ConnectionSettings const *settings)
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_COLOR(3)
constexpr TypedWhichId< SvxScriptSpaceItem > RES_PARATR_SCRIPTSPACE(73)
const SwNumFormat & Get(sal_uInt16 i) const
Definition: number.cxx:78
void Left(const long nLeft)
Definition: swrect.hxx:195
constexpr TypedWhichId< SwMirrorGrf > RES_GRFATR_MIRRORGRF(RES_GRFATR_BEGIN)
constexpr TypedWhichId< SvxBrushItem > RES_CHRATR_BACKGROUND(21)
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:80
void Bottom(const long nBottom)
Definition: swrect.hxx:209
constexpr TypedWhichId< SwFormatChain > RES_CHAIN(114)
std::unique_ptr< char[]> aBuffer
constexpr TypedWhichId< SwTableBoxFormula > RES_BOXATR_FORMULA(149)
constexpr TypedWhichId< SwTextGridItem > RES_TEXTGRID(115)
constexpr TypedWhichId< SvxOrphansItem > RES_PARATR_ORPHANS(66)
An SwTextAttr container, stores all directly formatted text portions for a text node.
Definition: ndhints.hxx:67
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(105)
ByPos::const_iterator const_iterator
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CJK_WEIGHT(26)
constexpr TypedWhichId< SvxFormatSplitItem > RES_PARATR_SPLIT(65)
constexpr TypedWhichId< SfxBoolItem > RES_TXTATR_DUMMY3(60)
unsigned char sal_uInt8
constexpr TypedWhichId< SvxWordLineModeItem > RES_CHRATR_WORDLINEMODE(16)
constexpr TypedWhichId< SwChannelRGrf > RES_GRFATR_CHANNELR(136)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_CTL_WEIGHT(31)
constexpr TypedWhichId< SvxForbiddenRuleItem > RES_PARATR_FORBIDDEN_RULES(75)
constexpr TypedWhichId< SwFormatNoBalancedColumns > RES_COLUMNBALANCE(119)
sal_Int32 GetIndex() const
Definition: index.hxx:95
bool IsCountedInList() const
Definition: ndtxt.cxx:4232
constexpr TypedWhichId< SwTransparencyGrf > RES_GRFATR_TRANSPARENCY(141)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_CTL_POSTURE(30)
SwNodeIndex aEnd
Definition: ndindex.hxx:133
static OUString lcl_dbg_out_NumType(sal_Int16 nType)
Definition: dbgoutsw.cxx:451
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_CHARSETCOLOR(2)
const sal_Int32 * End() const
Definition: txatbase.hxx:148
const SfxPoolItem & GetFormatAttr(sal_uInt16 nWhich, bool bInParents=true) const
If bInParents is FALSE, search only in this format for attribute.
Definition: format.cxx:377
constexpr TypedWhichId< SwTOXMark > RES_TXTATR_TOXMARK(47)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
constexpr TypedWhichId< SwFormatField > RES_TXTATR_INPUTFIELD(55)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
Definition: node.hxx:723
const SfxPoolItem & GetAttr() const
Definition: txatbase.hxx:159
constexpr TypedWhichId< SwChannelGGrf > RES_GRFATR_CHANNELG(137)
constexpr TypedWhichId< SwFormatFooter > RES_FOOTER(97)
bool IsTableNode() const
Definition: node.hxx:640
static OUString lcl_TokenType2Str(FormTokenType nType)
Definition: dbgoutsw.cxx:759
constexpr TypedWhichId< SwFormatLineNumber > RES_LINENUMBER(116)
SwFormatColl * GetFormatColl() const
Definition: node.hxx:447
constexpr TypedWhichId< SvxCharRotateItem > RES_CHRATR_ROTATE(32)
constexpr TypedWhichId< SvxNoHyphenItem > RES_CHRATR_NOHYPHEN(19)
constexpr TypedWhichId< SwFormatRefMark > RES_TXTATR_REFMARK(RES_TXTATR_WITHEND_BEGIN)
int GetAttrOutlineLevel() const
Definition: fmtcol.cxx:582
const SwIndexReg * GetIdxReg() const
Definition: index.hxx:101
constexpr TypedWhichId< SwParaConnectBorderItem > RES_PARATR_CONNECT_BORDER(78)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CTL_FONTSIZE(28)
bool IsTextNode() const
Definition: node.hxx:636
constexpr TypedWhichId< SvxBrushItem > RES_CHRATR_HIGHLIGHT(42)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
constexpr TypedWhichId< SvxKerningItem > RES_CHRATR_KERNING(9)
bool IsAuto() const
Query / set AutoFormat-flag.
Definition: format.hxx:158
aStr
FormTokenType
Definition: tox.hxx:191
constexpr TypedWhichId< SwFormatFootnoteAtTextEnd > RES_FTN_AT_TXTEND(117)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
sal_uInt16 Which() const
constexpr TypedWhichId< SvxAdjustItem > RES_PARATR_ADJUST(64)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(107)
constexpr TypedWhichId< SvxWidowsItem > RES_PARATR_WIDOWS(67)
constexpr TypedWhichId< SvXMLAttrContainerItem > RES_TXTATR_UNKNOWN_CONTAINER(54)
const SfxPoolItem * GetCurItem() const
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(104)
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
Definition: ndtxt.hxx:836
Base class of the Writer document model elements.
Definition: node.hxx:79
constexpr TypedWhichId< SvxContourItem > RES_CHRATR_CONTOUR(4)