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