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_MARGIN_FIRSTLINE, "FIRSTLINE" },
166 { RES_MARGIN_TEXTLEFT, "TEXTLEFT" },
167 { RES_MARGIN_RIGHT, "RIGHT" },
168 { RES_MARGIN_LEFT, "LEFT" },
169 { RES_MARGIN_GUTTER, "GUTTER" },
170 { RES_MARGIN_GUTTER_RIGHT, "GUTTER_RIGHT" },
171 { RES_LR_SPACE , "LR_SPACE" },
172 { RES_UL_SPACE , "UL_SPACE" },
173 { RES_PAGEDESC , "PAGEDESC" },
174 { RES_BREAK , "BREAK" },
175 { RES_CNTNT , "CNTNT" },
176 { RES_HEADER , "HEADER" },
177 { RES_FOOTER , "FOOTER" },
178 { RES_PRINT , "PRINT" },
179 { RES_OPAQUE , "OPAQUE" },
180 { RES_PROTECT , "PROTECT" },
181 { RES_SURROUND , "SURROUND" },
182 { RES_VERT_ORIENT , "VERT_ORIENT" },
183 { RES_HORI_ORIENT , "HORI_ORIENT" },
184 { RES_ANCHOR , "ANCHOR" },
185 { RES_BACKGROUND , "BACKGROUND" },
186 { RES_BOX , "BOX" },
187 { RES_SHADOW , "SHADOW" },
188 { RES_FRMMACRO , "FRMMACRO" },
189 { RES_COL , "COL" },
190 { RES_KEEP , "KEEP" },
191 { RES_URL , "URL" },
192 { RES_EDIT_IN_READONLY , "EDIT_IN_READONLY" },
193 { RES_LAYOUT_SPLIT , "LAYOUT_SPLIT" },
194 { RES_CHAIN , "CHAIN" },
195 { RES_TEXTGRID , "TEXTGRID" },
196 { RES_LINENUMBER , "LINENUMBER" },
197 { RES_FTN_AT_TXTEND , "FTN_AT_TXTEND" },
198 { RES_END_AT_TXTEND , "END_AT_TXTEND" },
199 { RES_COLUMNBALANCE , "COLUMNBALANCE" },
200 { RES_FRAMEDIR , "FRAMEDIR" },
201 { RES_HEADER_FOOTER_EAT_SPACING , "HEADER_FOOTER_EAT_SPACING" },
202 { RES_ROW_SPLIT , "ROW_SPLIT" },
203 { RES_GRFATR_MIRRORGRF , "GRFATR_MIRRORGRF" },
204 { RES_GRFATR_CROPGRF , "GRFATR_CROPGRF" },
205 { RES_GRFATR_ROTATION , "GRFATR_ROTATION" },
206 { RES_GRFATR_LUMINANCE , "GRFATR_LUMINANCE" },
207 { RES_GRFATR_CONTRAST , "GRFATR_CONTRAST" },
208 { RES_GRFATR_CHANNELR , "GRFATR_CHANNELR" },
209 { RES_GRFATR_CHANNELG , "GRFATR_CHANNELG" },
210 { RES_GRFATR_CHANNELB , "GRFATR_CHANNELB" },
211 { RES_GRFATR_GAMMA , "GRFATR_GAMMA" },
212 { RES_GRFATR_INVERT , "GRFATR_INVERT" },
213 { RES_GRFATR_TRANSPARENCY , "GRFATR_TRANSPARENCY" },
214 { RES_GRFATR_DRAWMODE , "GRFATR_DRAWMODE" },
215 { RES_BOXATR_FORMAT , "BOXATR_FORMAT" },
216 { RES_BOXATR_FORMULA , "BOXATR_FORMULA" },
217 { RES_BOXATR_VALUE , "BOXATR_VALUE" },
218 };
219
220 return aItemWhichMap;
221}
222
223static OUString lcl_dbg_out(const SfxPoolItem & rItem)
224{
225 OUString aStr("[ ");
226
227 if (GetItemWhichMap().find(rItem.Which()) != GetItemWhichMap().end())
228 aStr += GetItemWhichMap()[rItem.Which()];
229 else
230 aStr += OUString::number(rItem.Which());
231
232 aStr += " ]";
233
234 return aStr;
235}
236
237const char * dbg_out(const SfxPoolItem & rItem)
238{
239 return dbg_out(lcl_dbg_out(rItem));
240}
241
242const char * dbg_out(const SfxPoolItem * pItem)
243{
244 return dbg_out(pItem ? lcl_dbg_out(*pItem) : OUString("(nil)"));
245}
246
247static OUString lcl_dbg_out(const SfxItemSet & rSet)
248{
249 SfxItemIter aIter(rSet);
250 bool bFirst = true;
251 OUStringBuffer aStr = "[ ";
252
253 for (const SfxPoolItem* pItem = aIter.GetCurItem(); pItem; pItem = aIter.NextItem())
254 {
255 if (!bFirst)
256 aStr.append(", ");
257
258 if (reinterpret_cast<sal_uIntPtr>(pItem) != SAL_MAX_SIZE)
259 aStr.append(lcl_dbg_out(*pItem));
260 else
261 aStr.append("invalid");
262
263 bFirst = false;
264 }
265
266 aStr.append(" ]");
267
268 return aStr.makeStringAndClear();
269}
270
271const char * dbg_out(const SfxItemSet & rSet)
272{
273 return dbg_out(lcl_dbg_out(rSet));
274}
275
276static OUString lcl_dbg_out(const SwTextAttr & rAttr)
277{
278 OUString aStr =
279 "[ " +
280 OUString::number(rAttr.GetStart()) +
281 "->" +
282 OUString::number(*rAttr.End()) +
283 " " +
284 lcl_dbg_out(rAttr.GetAttr()) +
285 " ]";
286
287 return aStr;
288}
289
290const char * dbg_out(const SwTextAttr & rAttr)
291{
292 return dbg_out(lcl_dbg_out(rAttr));
293}
294
295static OUString lcl_dbg_out(const SwpHints & rHints)
296{
297 OUStringBuffer aStr("[ SwpHints\n");
298
299 for (size_t i = 0; i < rHints.Count(); ++i)
300 {
301 aStr.append(" " + lcl_dbg_out(*rHints.Get(i)) + "\n");
302 }
303
304 aStr.append("]\n");
305
306 return aStr.makeStringAndClear();
307}
308
309const char * dbg_out(const SwpHints &rHints)
310{
311 return dbg_out(lcl_dbg_out(rHints));
312}
313
314static OUString lcl_dbg_out(const SwPosition & rPos)
315{
316 OUString aStr =
317 "( " +
318 OUString::number(sal_Int32(rPos.GetNodeIndex())) +
319 ", " +
320 OUString::number(rPos.GetContentIndex()) +
321 ": " +
322 OUString::number(reinterpret_cast<sal_IntPtr>(rPos.GetContentNode()), 16) +
323 " )";
324
325 return aStr;
326}
327
328const char * dbg_out(const SwPosition & rPos)
329{
330 return dbg_out(lcl_dbg_out(rPos));
331}
332
333static OUString lcl_dbg_out(const SwPaM & rPam)
334{
335 OUString aStr =
336 "[ Pt: " +
337 lcl_dbg_out(*rPam.GetPoint());
338
339 if (rPam.HasMark())
340 {
341 aStr += ", Mk: " + lcl_dbg_out(*rPam.GetMark());
342 }
343
344 aStr += " ]";
345
346 return aStr;
347}
348
349const char * dbg_out(const SwPaM & rPam)
350{
351 return dbg_out(lcl_dbg_out(rPam));
352}
353
354static OUString lcl_dbg_out(const SwNodeNum & )
355{
356 return OUString();/*rNum.ToString();*/
357}
358
359const char * dbg_out(const SwNodeNum & rNum)
360{
361 return dbg_out(lcl_dbg_out(rNum));
362}
363
364static OUString lcl_dbg_out(const SwRect & rRect)
365{
366 OUString aResult =
367 "[ [" +
368 OUString::number(rRect.Left()) +
369 ", " +
370 OUString::number(rRect.Top()) +
371 "], [" +
372 OUString::number(rRect.Right()) +
373 ", " +
374 OUString::number(rRect.Bottom()) +
375 "] ]";
376
377 return aResult;
378}
379
380const char * dbg_out(const SwRect & rRect)
381{
382 return dbg_out(lcl_dbg_out(rRect));
383}
384
385static OUString lcl_dbg_out(const SwFrameFormat & rFrameFormat)
386{
387 OUString aResult = "[ " +
388 OUString::number(reinterpret_cast<sal_uIntPtr>(&rFrameFormat), 16) +
389 "(" +
390 rFrameFormat.GetName() + ")";
391
392 if (rFrameFormat.IsAuto())
393 aResult += "*";
394
395 aResult += " ," + lcl_dbg_out(rFrameFormat.FindLayoutRect()) + " ]";
396
397 return aResult;
398}
399
400const char * dbg_out(const SwFrameFormat & rFrameFormat)
401{
402 return dbg_out(lcl_dbg_out(rFrameFormat));
403}
404
405static OUString lcl_AnchoredFrames(const SwNode & rNode)
406{
407 OUStringBuffer aResult("[");
408
409 const SwDoc& rDoc = rNode.GetDoc();
410 const sw::SpzFrameFormats* pSpzs = rDoc.GetSpzFrameFormats();
411
412 if (pSpzs)
413 {
414 bool bFirst = true;
415 for(const sw::SpzFrameFormat* pSpz: *pSpzs)
416 {
417 const SwFormatAnchor& rAnchor = pSpz->GetAnchor();
418 const SwNode * pPos = rAnchor.GetAnchorNode();
419
420 if (pPos && *pPos == rNode)
421 {
422 if (! bFirst)
423 aResult.append(", ");
424
425 if (pSpz)
426 aResult.append(lcl_dbg_out(*pSpz));
427 bFirst = false;
428 }
429 }
430 }
431
432 aResult.append("]");
433
434 return aResult.makeStringAndClear();
435}
436
437static OUString lcl_dbg_out_NumType(sal_Int16 nType)
438{
439 OUString aTmpStr;
440
441 switch (nType)
442 {
444 aTmpStr += " NONE";
445
446 break;
448 aTmpStr += " CHARS_UPPER_LETTER";
449
450 break;
452 aTmpStr += " CHARS_LOWER_LETTER";
453
454 break;
456 aTmpStr += " ROMAN_UPPER";
457
458 break;
460 aTmpStr += " ROMAN_LOWER";
461
462 break;
463 case SVX_NUM_ARABIC:
464 aTmpStr += " ARABIC";
465
466 break;
467 default:
468 aTmpStr += " ??";
469
470 break;
471 }
472
473 return aTmpStr;
474}
475
476static OUString lcl_dbg_out(const SwNode & rNode)
477{
478 OUString aTmpStr = "<node "
479 "index=\"" +
480 OUString::number(sal_Int32(rNode.GetIndex())) +
481 "\""
482 " serial=\"" +
483 OUString::number(rNode.GetSerial()) +
484 "\""
485 " type=\"" +
486 OUString::number(sal_Int32( rNode.GetNodeType() ) ) +
487 "\""
488 " pointer=\"" +
489 OUString::number(reinterpret_cast<sal_uIntPtr>(&rNode), 16) +
490 "\">";
491
492 const SwTextNode * pTextNode = rNode.GetTextNode();
493
494 if (rNode.IsTextNode())
495 {
496 const SfxItemSet * pAttrSet = pTextNode->GetpSwAttrSet();
497
498 aTmpStr += "<txt>" + (pTextNode->GetText().getLength() > 10 ? pTextNode->GetText().copy(0, 10) : pTextNode->GetText()) + "</txt>";
499
500 if (rNode.IsTableNode())
501 aTmpStr += "<tbl/>";
502
503 aTmpStr += "<outlinelevel>" + OUString::number(pTextNode->GetAttrOutlineLevel()-1) + "</outlinelevel>";
504
505 const SwNumRule * pNumRule = pTextNode->GetNumRule();
506
507 if (pNumRule != nullptr)
508 {
509 aTmpStr += "<number>";
510 if ( pTextNode->GetNum() )
511 {
512 aTmpStr += lcl_dbg_out(*(pTextNode->GetNum()));
513 }
514 aTmpStr += "</number><rule>" +
515 pNumRule->GetName();
516
517 const SwNumRuleItem * pItem = nullptr;
518
519 if (pAttrSet &&
520 (pItem = pAttrSet->GetItemIfSet(RES_PARATR_NUMRULE, false)))
521 {
522 aTmpStr += "(" + pItem->GetValue() + ")*";
523 }
524
525 const SwNumFormat * pNumFormat = nullptr;
526 aTmpStr += "</rule>";
527
528 if (pTextNode->GetActualListLevel() > 0)
529 pNumFormat = pNumRule->GetNumFormat( static_cast< sal_uInt16 >(pTextNode->GetActualListLevel()) );
530
531 if (pNumFormat)
532 {
533 aTmpStr += "<numformat>" +
534 lcl_dbg_out_NumType(pNumFormat->GetNumberingType()) + "</numformat>";
535 }
536 }
537
538 if (pTextNode->IsCountedInList())
539 aTmpStr += "<counted/>";
540
541 SwFormatColl * pColl = pTextNode->GetFormatColl();
542
543 if (pColl)
544 {
545 aTmpStr += "<coll>" + pColl->GetName() + "(";
546
547 SwTextFormatColl *pTextColl = static_cast<SwTextFormatColl*>(pColl);
549 {
550 aTmpStr += OUString::number(pTextColl->GetAssignedOutlineStyleLevel());
551 }
552 else
553 {
554 aTmpStr += OUString::number(-1);
555 }
556
557 const SwNumRuleItem & rItem =
559 const OUString& sNumruleName = rItem.GetValue();
560
561 if (!sNumruleName.isEmpty())
562 {
563 aTmpStr += ", " + sNumruleName;
564 }
565 aTmpStr += ")"
566 "</coll>";
567 }
568
569 SwFormatColl * pCColl = pTextNode->GetCondFormatColl();
570
571 if (pCColl)
572 {
573 aTmpStr += "<ccoll>" + pCColl->GetName() + "</ccoll>";
574 }
575
576 aTmpStr += "<frms>" + lcl_AnchoredFrames(rNode) + "</frms>";
577
579 {
580 aTmpStr += "<attrs>" + lcl_dbg_out(pTextNode->GetSwAttrSet()) + "</attrs>";
581 }
582 }
583 else if (rNode.IsStartNode())
584 {
585 aTmpStr += "<start end=\"";
586
587 const SwStartNode * pStartNode = rNode.GetStartNode();
588 if (pStartNode != nullptr)
589 aTmpStr += OUString::number(sal_Int32(pStartNode->EndOfSectionNode()->GetIndex()));
590
591 aTmpStr += "\"/>";
592 }
593 else if (rNode.IsEndNode())
594 aTmpStr += "<end/>";
595
596 aTmpStr += "</node>";
597
598 return aTmpStr;
599}
600
601const char * dbg_out(const SwNode & rNode)
602{
603 return dbg_out(lcl_dbg_out(rNode));
604}
605
606const char * dbg_out(const SwNode * pNode)
607{
608 if (nullptr != pNode)
609 return dbg_out(*pNode);
610 else
611 return nullptr;
612}
613
614const char * dbg_out(const SwContentNode * pNode)
615{
616 if (nullptr != pNode)
617 return dbg_out(*pNode);
618 else
619 return nullptr;
620}
621
622const char * dbg_out(const SwTextNode * pNode)
623{
624 if (nullptr != pNode)
625 return dbg_out(*pNode);
626 else
627 return nullptr;
628}
629
630static OUString lcl_dbg_out(const SwUndo & rUndo)
631{
632 return "[ " + OUString::number(static_cast<int>(rUndo.GetId()))
633 + ": " + rUndo.GetComment() + " ]";
634}
635
636const char * dbg_out(const SwUndo & rUndo)
637{
638 return dbg_out(lcl_dbg_out(rUndo));
639}
640
641static OUString lcl_dbg_out(SwOutlineNodes const & rNodes)
642{
643 OUStringBuffer aStr("[\n");
644
645 for (size_t i = 0; i < rNodes.size(); i++)
646 {
647 aStr.append(lcl_dbg_out(*rNodes[i]) + "\n");
648 }
649
650 aStr.append("]\n");
651
652 return aStr.makeStringAndClear();
653}
654
655const char * dbg_out( SwOutlineNodes const & rNodes)
656{
657 return dbg_out(lcl_dbg_out(rNodes));
658}
659
660static OUString lcl_dbg_out(const SvxNumberFormat & rFormat)
661{
662 OUString aResult = lcl_dbg_out_NumType(rFormat.GetNumberingType());
663 return aResult;
664}
665
666static OUString lcl_dbg_out(const SwNumRule & rRule)
667{
668 OUStringBuffer aResult("[ " + rRule.GetName() + " [");
669
670 for (sal_uInt8 n = 0; n < MAXLEVEL; n++)
671 {
672 if (n > 0)
673 aResult.append(", ");
674
675 aResult.append(lcl_dbg_out(rRule.Get(n)));
676 }
677
678 aResult.append("]]");
679
680 return aResult.makeStringAndClear();
681}
682
683const char * dbg_out(const SwNumRule & rRule)
684{
685 return dbg_out(lcl_dbg_out(rRule));
686}
687
688static OUString lcl_dbg_out(const SwTextFormatColl & rFormat)
689{
690 return rFormat.GetName() + "(" +
691 OUString::number(rFormat.GetAttrOutlineLevel()) + ")";
692}
693
694const char * dbg_out(const SwTextFormatColl & rFormat)
695{
696 return dbg_out(lcl_dbg_out(rFormat));
697}
698
699static OUString lcl_dbg_out(const sw::FrameFormats<sw::SpzFrameFormat*>& rFrameFormats)
700{
701 return lcl_dbg_out_SvPtrArr<sw::FrameFormats<sw::SpzFrameFormat*>>(rFrameFormats);
702}
703
704const char * dbg_out(const sw::FrameFormats<sw::SpzFrameFormat*>& rFrameFormats)
705{
706 return dbg_out(lcl_dbg_out(rFrameFormats));
707}
708
709static OUString lcl_dbg_out(const SwNumRuleTable & rTable)
710{
711 OUStringBuffer aResult("[");
712
713 for (size_t n = 0; n < rTable.size(); n++)
714 {
715 if (n > 0)
716 aResult.append(", ");
717
718 aResult.append(rTable[n]->GetName());
719
720 aResult.append("(" + OUString::number(reinterpret_cast<sal_uIntPtr>(rTable[n]), 16) + ")");
721 }
722
723 aResult.append("]");
724
725 return aResult.makeStringAndClear();
726}
727
728const char * dbg_out(const SwNumRuleTable & rTable)
729{
730 return dbg_out(lcl_dbg_out(rTable));
731}
732
733static OUString lcl_TokenType2Str(FormTokenType nType)
734{
735 switch(nType)
736 {
737 case TOKEN_ENTRY_NO:
738 return "NO";
739 case TOKEN_ENTRY_TEXT:
740 return "ENTRY_TEXT";
741 case TOKEN_ENTRY:
742 return "ENTRY";
743 case TOKEN_TAB_STOP:
744 return "TAB_STOP";
745 case TOKEN_TEXT:
746 return "TOKEN_TEXT";
747 case TOKEN_PAGE_NUMS:
748 return "NUMS";
750 return "CHAPTER_INFO";
751 case TOKEN_LINK_START:
752 return "LINK_START";
753 case TOKEN_LINK_END:
754 return "LINK_END";
755 case TOKEN_AUTHORITY:
756 return "AUTHORITY";
757 case TOKEN_END:
758 return "END";
759 default:
760 OSL_FAIL("should not be reached");
761 return "??";
762 }
763}
764
765static OUString lcl_dbg_out(const SwFormToken & rToken)
766{
767 return rToken.GetString();
768}
769
770const char * dbg_out(const SwFormToken & rToken)
771{
772 return dbg_out(lcl_dbg_out(rToken));
773}
774
775static OUString lcl_dbg_out(const SwFormTokens & rTokens)
776{
777 OUStringBuffer aStr("[");
778
779 SwFormTokens::const_iterator aIt;
780
781 for (aIt = rTokens.begin(); aIt != rTokens.end(); ++aIt)
782 {
783 if (aIt != rTokens.begin())
784 aStr.append(", ");
785
786 aStr.append(lcl_TokenType2Str(aIt->eTokenType) + ": " + lcl_dbg_out(*aIt));
787 }
788
789 aStr.append("]");
790
791 return aStr.makeStringAndClear();
792}
793
794const char * dbg_out(const SwFormTokens & rTokens)
795{
796 return dbg_out(lcl_dbg_out(rTokens));
797}
798
799static OUString lcl_dbg_out(const SwNodeRange & rRange)
800{
801 OUString aStr =
802 "[" +
803 lcl_dbg_out(SwPosition(rRange.aStart)) +
804 ", " +
805 lcl_dbg_out(SwPosition(rRange.aEnd)) +
806 "]";
807
808 return aStr;
809}
810
811const char * dbg_out(const SwNodeRange & rRange)
812{
813 return dbg_out(lcl_dbg_out(rRange));
814}
815
816#endif // DEBUG
817
818/* 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:727
const SwAttrSet * GetpSwAttrSet() const
Definition: node.hxx:493
SwFormatColl * GetCondFormatColl() const
Definition: node.hxx:715
Definition: doc.hxx:197
const sw::FrameFormats< sw::SpzFrameFormat * > * GetSpzFrameFormats() const
Definition: doc.hxx:759
FlyAnchors.
Definition: fmtanchr.hxx:37
SwNode * GetAnchorNode() const
Definition: atrfrm.cxx:1614
SwFormatColl is just an SwFormat subclass that defaults to m_bAutoFormat=false, expressing that this ...
Definition: fmtcol.hxx:38
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:72
SwRect FindLayoutRect(const bool bPrtArea=false, const Point *pPoint=nullptr) const
Definition: atrfrm.cxx:2749
SwNodeIndex aStart
Definition: ndindex.hxx:136
SwNodeIndex aEnd
Definition: ndindex.hxx:137
Base class of the Writer document model elements.
Definition: node.hxx:98
SwStartNode * GetStartNode()
Definition: node.hxx:642
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
Definition: ndtxt.hxx:901
SwNodeOffset GetIndex() const
Definition: node.hxx:312
SwDoc & GetDoc()
Definition: node.hxx:233
bool IsEndNode() const
Definition: node.hxx:189
bool IsStartNode() const
Definition: node.hxx:187
bool IsTableNode() const
Definition: node.hxx:191
bool IsTextNode() const
Definition: node.hxx:190
tools::Long GetSerial() const
Definition: node.hxx:147
SwNodeType GetNodeType() const
Definition: node.hxx:166
const SwEndNode * EndOfSectionNode() const
Definition: node.hxx:695
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:188
const SwPosition * GetMark() const
Definition: pam.hxx:255
const SwPosition * GetPoint() const
Definition: pam.hxx:253
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
Definition: pam.hxx:251
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:61
bool IsAssignedToListLevelOfOutlineStyle() const
Definition: fmtcol.hxx:122
int GetAssignedOutlineStyleLevel() const
Definition: fmtcol.cxx:678
int GetAttrOutlineLevel() const
Definition: fmtcol.cxx:673
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:112
const SwNodeNum * GetNum(SwRootFrame const *pLayout=nullptr, SwListRedlineType eRedline=SwListRedlineType::SHOW) const
Definition: ndtxt.cxx:4095
bool IsCountedInList() const
Definition: ndtxt.cxx:4393
SwNumRule * GetNumRule(bool bInParent=true) const
Returns numbering rule of this text node.
Definition: ndtxt.cxx:2921
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:4248
int GetAttrOutlineLevel() const
Returns outline level of this text node.
Definition: ndtxt.cxx:4168
const OUString & GetText() const
Definition: ndtxt.hxx:244
virtual OUString GetComment() const override
Returns textual comment for this undo object.
Definition: undobj.cxx:694
SwUndoId GetId() const
Definition: undobj.hxx:102
size_t size() const
Definition: docary.hxx:88
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:733
static OUString lcl_dbg_out(const SfxPoolItem &rItem)
Definition: dbgoutsw.cxx:223
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:437
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:405
bool bDbgOutStdErr
Definition: dbgoutsw.cxx:47
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)
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:666
Marks a position in the document model.
Definition: pam.hxx:38
const SwContentNode * GetContentNode() const
Definition: pam.hxx:84
SwNodeOffset GetNodeIndex() const
Definition: pam.hxx:78
sal_Int32 GetContentIndex() const
Definition: pam.hxx:85
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