25#include <editeng/editids.hrc>
26#include <osl/diagnose.h>
27#include <rtl/ustrbuf.hxx>
38#define GLOB_NAME_CALC 0
39#define GLOB_NAME_IMPRESS 1
40#define GLOB_NAME_DRAW 2
41#define GLOB_NAME_MATH 3
42#define GLOB_NAME_CHART 4
66 OSL_FAIL(
"no caption option in sw/web!");
89 OSL_FAIL(
"no caption option in sw/web!");
125 m_aInsertConfig(false),
126 m_aWebInsertConfig(true),
127 m_aTableConfig(false),
128 m_aWebTableConfig(true),
129 m_bHideFieldTips(false)
135 OUStringBuffer sReturn;
136 const sal_Int32 nDelimLen = aDelim.size();
139 for (sal_Int32
i = 0;
i < nDelimLen; )
143 if (c ==
'\\' &&
i < nDelimLen )
147 case 'n': sReturn.append(
"\n");
break;
148 case 't': sReturn.append(
"\t");
break;
149 case '\\': sReturn.append(
"\\");
break;
154 bool bValidData =
true;
155 for( sal_Int32
n = 0;
n < 2 &&
i < nDelimLen; ++
n, ++
i )
158 if( (nVal >=
'0') && ( nVal <=
'9') )
160 else if( (nVal >=
'A') && (nVal <=
'F') )
162 else if( (nVal >=
'a') && (nVal <=
'f') )
166 OSL_FAIL(
"wrong hex value" );
175 sReturn.append(nChar);
180 sReturn.append(
"\\");
191 for (sal_Int32
i = 0;
i < nDelimLen; ++
i)
197 case '\n': sReturn.append(
"\\n");
break;
198 case '\t': sReturn.append(
"\\t");
break;
199 case '\\': sReturn.append(
"\\\\");
break;
202 if( c <= 0x1f || c >= 0x7f )
204 sReturn.append(
"\\x" + OUString::number(
static_cast<sal_Int32
>(c), 16 ));
213 return sReturn.makeStringAndClear();
220 "TextDisplay/Insert/Attribute",
221 "TextDisplay/Insert/Color",
222 "TextDisplay/Delete/Attribute",
223 "TextDisplay/Delete/Color",
224 "TextDisplay/ChangedAttribute/Attribute",
225 "TextDisplay/ChangedAttribute/Color",
259 case SID_ATTR_CHAR_WEIGHT: nRet = 1;
break;
260 case SID_ATTR_CHAR_POSTURE: nRet = 2;
break;
262 case SID_ATTR_CHAR_STRIKEOUT: nRet = 3;
break;
263 case SID_ATTR_CHAR_CASEMAP:
267 case SvxCaseMap::Uppercase : nRet = 5;
break;
268 case SvxCaseMap::Lowercase : nRet = 6;
break;
269 case SvxCaseMap::SmallCaps : nRet = 7;
break;
270 case SvxCaseMap::Capitalize: nRet = 8;
break;
275 case SID_ATTR_BRUSH : nRet = 9;
break;
288 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
314 rAttr.
m_nItemId = SID_ATTR_CHAR_STRIKEOUT;
319 rAttr.
m_nItemId = SID_ATTR_CHAR_UNDERLINE;
324 case 5: rAttr.
m_nItemId = SID_ATTR_CHAR_CASEMAP; rAttr.
m_nAttr = sal_uInt16(SvxCaseMap::Uppercase);
break;
325 case 6: rAttr.
m_nItemId = SID_ATTR_CHAR_CASEMAP; rAttr.
m_nAttr = sal_uInt16(SvxCaseMap::Lowercase);
break;
326 case 7: rAttr.
m_nItemId = SID_ATTR_CHAR_CASEMAP; rAttr.
m_nAttr = sal_uInt16(SvxCaseMap::SmallCaps);
break;
327 case 8: rAttr.
m_nItemId = SID_ATTR_CHAR_CASEMAP; rAttr.
m_nAttr = sal_uInt16(SvxCaseMap::Capitalize);
break;
328 case 9: rAttr.
m_nItemId = SID_ATTR_BRUSH;
break;
336 assert(aValues.getLength() == aNames.getLength());
337 for (sal_Int32 nProp = 0; nProp < aNames.getLength(); ++nProp)
351 case 6 :
m_nMarkAlign = sal::static_int_cast< sal_uInt16, sal_Int32>(nVal);
break;
362 INS_PROP_TABLE_HEADER = 0,
363 INS_PROP_TABLE_REPEATHEADER,
364 INS_PROP_TABLE_BORDER,
365 INS_PROP_TABLE_SPLIT,
366 INS_PROP_CAP_AUTOMATIC,
367 INS_PROP_CAP_CAPTIONORDERNUMBERINGFIRST,
368 INS_PROP_CAP_OBJECT_TABLE_ENABLE,
369 INS_PROP_CAP_OBJECT_TABLE_CATEGORY,
370 INS_PROP_CAP_OBJECT_TABLE_NUMBERING,
371 INS_PROP_CAP_OBJECT_TABLE_NUMBERINGSEPARATOR,
372 INS_PROP_CAP_OBJECT_TABLE_CAPTIONTEXT,
373 INS_PROP_CAP_OBJECT_TABLE_DELIMITER,
374 INS_PROP_CAP_OBJECT_TABLE_LEVEL,
375 INS_PROP_CAP_OBJECT_TABLE_POSITION,
376 INS_PROP_CAP_OBJECT_TABLE_CHARACTERSTYLE,
377 INS_PROP_CAP_OBJECT_FRAME_ENABLE,
378 INS_PROP_CAP_OBJECT_FRAME_CATEGORY,
379 INS_PROP_CAP_OBJECT_FRAME_NUMBERING,
380 INS_PROP_CAP_OBJECT_FRAME_NUMBERINGSEPARATOR,
381 INS_PROP_CAP_OBJECT_FRAME_CAPTIONTEXT,
382 INS_PROP_CAP_OBJECT_FRAME_DELIMITER,
383 INS_PROP_CAP_OBJECT_FRAME_LEVEL,
384 INS_PROP_CAP_OBJECT_FRAME_POSITION,
385 INS_PROP_CAP_OBJECT_FRAME_CHARACTERSTYLE,
386 INS_PROP_CAP_OBJECT_GRAPHIC_ENABLE,
387 INS_PROP_CAP_OBJECT_GRAPHIC_CATEGORY,
388 INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERING,
389 INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERINGSEPARATOR,
390 INS_PROP_CAP_OBJECT_GRAPHIC_CAPTIONTEXT,
391 INS_PROP_CAP_OBJECT_GRAPHIC_DELIMITER,
392 INS_PROP_CAP_OBJECT_GRAPHIC_LEVEL,
393 INS_PROP_CAP_OBJECT_GRAPHIC_POSITION,
394 INS_PROP_CAP_OBJECT_GRAPHIC_CHARACTERSTYLE,
395 INS_PROP_CAP_OBJECT_GRAPHIC_APPLYATTRIBUTES,
396 INS_PROP_CAP_OBJECT_CALC_ENABLE,
397 INS_PROP_CAP_OBJECT_CALC_CATEGORY,
398 INS_PROP_CAP_OBJECT_CALC_NUMBERING,
399 INS_PROP_CAP_OBJECT_CALC_NUMBERINGSEPARATOR,
400 INS_PROP_CAP_OBJECT_CALC_CAPTIONTEXT,
401 INS_PROP_CAP_OBJECT_CALC_DELIMITER,
402 INS_PROP_CAP_OBJECT_CALC_LEVEL,
403 INS_PROP_CAP_OBJECT_CALC_POSITION,
404 INS_PROP_CAP_OBJECT_CALC_CHARACTERSTYLE,
405 INS_PROP_CAP_OBJECT_CALC_APPLYATTRIBUTES,
406 INS_PROP_CAP_OBJECT_IMPRESS_ENABLE,
407 INS_PROP_CAP_OBJECT_IMPRESS_CATEGORY,
408 INS_PROP_CAP_OBJECT_IMPRESS_NUMBERING,
409 INS_PROP_CAP_OBJECT_IMPRESS_NUMBERINGSEPARATOR,
410 INS_PROP_CAP_OBJECT_IMPRESS_CAPTIONTEXT,
411 INS_PROP_CAP_OBJECT_IMPRESS_DELIMITER,
412 INS_PROP_CAP_OBJECT_IMPRESS_LEVEL,
413 INS_PROP_CAP_OBJECT_IMPRESS_POSITION,
414 INS_PROP_CAP_OBJECT_IMPRESS_CHARACTERSTYLE,
415 INS_PROP_CAP_OBJECT_IMPRESS_APPLYATTRIBUTES,
416 INS_PROP_CAP_OBJECT_CHART_ENABLE,
417 INS_PROP_CAP_OBJECT_CHART_CATEGORY,
418 INS_PROP_CAP_OBJECT_CHART_NUMBERING,
419 INS_PROP_CAP_OBJECT_CHART_NUMBERINGSEPARATOR,
420 INS_PROP_CAP_OBJECT_CHART_CAPTIONTEXT,
421 INS_PROP_CAP_OBJECT_CHART_DELIMITER,
422 INS_PROP_CAP_OBJECT_CHART_LEVEL,
423 INS_PROP_CAP_OBJECT_CHART_POSITION,
424 INS_PROP_CAP_OBJECT_CHART_CHARACTERSTYLE,
425 INS_PROP_CAP_OBJECT_CHART_APPLYATTRIBUTES,
426 INS_PROP_CAP_OBJECT_FORMULA_ENABLE,
427 INS_PROP_CAP_OBJECT_FORMULA_CATEGORY,
428 INS_PROP_CAP_OBJECT_FORMULA_NUMBERING,
429 INS_PROP_CAP_OBJECT_FORMULA_NUMBERINGSEPARATOR,
430 INS_PROP_CAP_OBJECT_FORMULA_CAPTIONTEXT,
431 INS_PROP_CAP_OBJECT_FORMULA_DELIMITER,
432 INS_PROP_CAP_OBJECT_FORMULA_LEVEL,
433 INS_PROP_CAP_OBJECT_FORMULA_POSITION,
434 INS_PROP_CAP_OBJECT_FORMULA_CHARACTERSTYLE,
435 INS_PROP_CAP_OBJECT_FORMULA_APPLYATTRIBUTES,
436 INS_PROP_CAP_OBJECT_DRAW_ENABLE,
437 INS_PROP_CAP_OBJECT_DRAW_CATEGORY,
438 INS_PROP_CAP_OBJECT_DRAW_NUMBERING,
439 INS_PROP_CAP_OBJECT_DRAW_NUMBERINGSEPARATOR,
440 INS_PROP_CAP_OBJECT_DRAW_CAPTIONTEXT,
441 INS_PROP_CAP_OBJECT_DRAW_DELIMITER,
442 INS_PROP_CAP_OBJECT_DRAW_LEVEL,
443 INS_PROP_CAP_OBJECT_DRAW_POSITION,
444 INS_PROP_CAP_OBJECT_DRAW_CHARACTERSTYLE,
445 INS_PROP_CAP_OBJECT_DRAW_APPLYATTRIBUTES,
446 INS_PROP_CAP_OBJECT_OLEMISC_ENABLE,
447 INS_PROP_CAP_OBJECT_OLEMISC_CATEGORY,
448 INS_PROP_CAP_OBJECT_OLEMISC_NUMBERING,
449 INS_PROP_CAP_OBJECT_OLEMISC_NUMBERINGSEPARATOR,
450 INS_PROP_CAP_OBJECT_OLEMISC_CAPTIONTEXT,
451 INS_PROP_CAP_OBJECT_OLEMISC_DELIMITER,
452 INS_PROP_CAP_OBJECT_OLEMISC_LEVEL,
453 INS_PROP_CAP_OBJECT_OLEMISC_POSITION,
454 INS_PROP_CAP_OBJECT_OLEMISC_CHARACTERSTYLE,
455 INS_PROP_CAP_OBJECT_OLEMISC_APPLYATTRIBUTES
465 "Table/RepeatHeader",
469 "Caption/CaptionOrderNumberingFirst",
470 "Caption/WriterObject/Table/Enable",
471 "Caption/WriterObject/Table/Settings/Category",
472 "Caption/WriterObject/Table/Settings/Numbering",
473 "Caption/WriterObject/Table/Settings/NumberingSeparator",
474 "Caption/WriterObject/Table/Settings/CaptionText",
475 "Caption/WriterObject/Table/Settings/Delimiter",
476 "Caption/WriterObject/Table/Settings/Level",
477 "Caption/WriterObject/Table/Settings/Position",
478 "Caption/WriterObject/Table/Settings/CharacterStyle",
479 "Caption/WriterObject/Frame/Enable",
480 "Caption/WriterObject/Frame/Settings/Category",
481 "Caption/WriterObject/Frame/Settings/Numbering",
482 "Caption/WriterObject/Frame/Settings/NumberingSeparator",
483 "Caption/WriterObject/Frame/Settings/CaptionText",
484 "Caption/WriterObject/Frame/Settings/Delimiter",
485 "Caption/WriterObject/Frame/Settings/Level",
486 "Caption/WriterObject/Frame/Settings/Position",
487 "Caption/WriterObject/Frame/Settings/CharacterStyle",
488 "Caption/WriterObject/Graphic/Enable",
489 "Caption/WriterObject/Graphic/Settings/Category",
490 "Caption/WriterObject/Graphic/Settings/Numbering",
491 "Caption/WriterObject/Graphic/Settings/NumberingSeparator",
492 "Caption/WriterObject/Graphic/Settings/CaptionText",
493 "Caption/WriterObject/Graphic/Settings/Delimiter",
494 "Caption/WriterObject/Graphic/Settings/Level",
495 "Caption/WriterObject/Graphic/Settings/Position",
496 "Caption/WriterObject/Graphic/Settings/CharacterStyle",
497 "Caption/WriterObject/Graphic/Settings/ApplyAttributes",
498 "Caption/OfficeObject/Calc/Enable",
499 "Caption/OfficeObject/Calc/Settings/Category",
500 "Caption/OfficeObject/Calc/Settings/Numbering",
501 "Caption/OfficeObject/Calc/Settings/NumberingSeparator",
502 "Caption/OfficeObject/Calc/Settings/CaptionText",
503 "Caption/OfficeObject/Calc/Settings/Delimiter",
504 "Caption/OfficeObject/Calc/Settings/Level",
505 "Caption/OfficeObject/Calc/Settings/Position",
506 "Caption/OfficeObject/Calc/Settings/CharacterStyle",
507 "Caption/OfficeObject/Calc/Settings/ApplyAttributes",
508 "Caption/OfficeObject/Impress/Enable",
509 "Caption/OfficeObject/Impress/Settings/Category",
510 "Caption/OfficeObject/Impress/Settings/Numbering",
511 "Caption/OfficeObject/Impress/Settings/NumberingSeparator",
512 "Caption/OfficeObject/Impress/Settings/CaptionText",
513 "Caption/OfficeObject/Impress/Settings/Delimiter",
514 "Caption/OfficeObject/Impress/Settings/Level",
515 "Caption/OfficeObject/Impress/Settings/Position",
516 "Caption/OfficeObject/Impress/Settings/CharacterStyle",
517 "Caption/OfficeObject/Impress/Settings/ApplyAttributes",
518 "Caption/OfficeObject/Chart/Enable",
519 "Caption/OfficeObject/Chart/Settings/Category",
520 "Caption/OfficeObject/Chart/Settings/Numbering",
521 "Caption/OfficeObject/Chart/Settings/NumberingSeparator",
522 "Caption/OfficeObject/Chart/Settings/CaptionText",
523 "Caption/OfficeObject/Chart/Settings/Delimiter",
524 "Caption/OfficeObject/Chart/Settings/Level",
525 "Caption/OfficeObject/Chart/Settings/Position",
526 "Caption/OfficeObject/Chart/Settings/CharacterStyle",
527 "Caption/OfficeObject/Chart/Settings/ApplyAttributes",
528 "Caption/OfficeObject/Formula/Enable",
529 "Caption/OfficeObject/Formula/Settings/Category",
530 "Caption/OfficeObject/Formula/Settings/Numbering",
531 "Caption/OfficeObject/Formula/Settings/NumberingSeparator",
532 "Caption/OfficeObject/Formula/Settings/CaptionText",
533 "Caption/OfficeObject/Formula/Settings/Delimiter",
534 "Caption/OfficeObject/Formula/Settings/Level",
535 "Caption/OfficeObject/Formula/Settings/Position",
536 "Caption/OfficeObject/Formula/Settings/CharacterStyle",
537 "Caption/OfficeObject/Formula/Settings/ApplyAttributes",
538 "Caption/OfficeObject/Draw/Enable",
539 "Caption/OfficeObject/Draw/Settings/Category",
540 "Caption/OfficeObject/Draw/Settings/Numbering",
541 "Caption/OfficeObject/Draw/Settings/NumberingSeparator",
542 "Caption/OfficeObject/Draw/Settings/CaptionText",
543 "Caption/OfficeObject/Draw/Settings/Delimiter",
544 "Caption/OfficeObject/Draw/Settings/Level",
545 "Caption/OfficeObject/Draw/Settings/Position",
546 "Caption/OfficeObject/Draw/Settings/CharacterStyle",
547 "Caption/OfficeObject/Draw/Settings/ApplyAttributes",
548 "Caption/OfficeObject/OLEMisc/Enable",
549 "Caption/OfficeObject/OLEMisc/Settings/Category",
550 "Caption/OfficeObject/OLEMisc/Settings/Numbering",
551 "Caption/OfficeObject/OLEMisc/Settings/NumberingSeparator",
552 "Caption/OfficeObject/OLEMisc/Settings/CaptionText",
553 "Caption/OfficeObject/OLEMisc/Settings/Delimiter",
554 "Caption/OfficeObject/OLEMisc/Settings/Level",
555 "Caption/OfficeObject/OLEMisc/Settings/Position",
556 "Caption/OfficeObject/OLEMisc/Settings/CharacterStyle",
557 "Caption/OfficeObject/OLEMisc/Settings/ApplyAttributes"
559 static Sequence<OUString> const aWebNames(aNames.getArray(), INS_PROP_TABLE_BORDER + 1);
560 return m_bIsWeb ? aWebNames : aNames;
564 ConfigItem(bWeb ? OUString(
"Office.WriterWeb/Insert") : OUString(
"Office.Writer/Insert"),
566 m_bInsWithCaption( false ),
567 m_bCaptionOrderNumberingFirst( false ),
598 case 6:
pValues[nProp] <<=
static_cast<sal_Int32
>(rOpt.
GetLevel());
break;
599 case 7:
pValues[nProp] <<=
static_cast<sal_Int32
>(rOpt.
GetPos());
break;
613 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
636 case INS_PROP_TABLE_HEADER:
639 case INS_PROP_TABLE_REPEATHEADER:
642 case INS_PROP_TABLE_BORDER:
645 case INS_PROP_TABLE_SPLIT:
648 case INS_PROP_CAP_AUTOMATIC:
651 case INS_PROP_CAP_CAPTIONORDERNUMBERINGFIRST:
655 case INS_PROP_CAP_OBJECT_TABLE_ENABLE:
656 case INS_PROP_CAP_OBJECT_TABLE_CATEGORY:
657 case INS_PROP_CAP_OBJECT_TABLE_NUMBERING:
658 case INS_PROP_CAP_OBJECT_TABLE_NUMBERINGSEPARATOR:
659 case INS_PROP_CAP_OBJECT_TABLE_CAPTIONTEXT:
660 case INS_PROP_CAP_OBJECT_TABLE_DELIMITER:
661 case INS_PROP_CAP_OBJECT_TABLE_LEVEL:
662 case INS_PROP_CAP_OBJECT_TABLE_POSITION:
663 case INS_PROP_CAP_OBJECT_TABLE_CHARACTERSTYLE:
667 case INS_PROP_CAP_OBJECT_FRAME_ENABLE:
668 case INS_PROP_CAP_OBJECT_FRAME_CATEGORY:
669 case INS_PROP_CAP_OBJECT_FRAME_NUMBERING:
670 case INS_PROP_CAP_OBJECT_FRAME_NUMBERINGSEPARATOR:
671 case INS_PROP_CAP_OBJECT_FRAME_CAPTIONTEXT:
672 case INS_PROP_CAP_OBJECT_FRAME_DELIMITER:
673 case INS_PROP_CAP_OBJECT_FRAME_LEVEL:
674 case INS_PROP_CAP_OBJECT_FRAME_POSITION:
675 case INS_PROP_CAP_OBJECT_FRAME_CHARACTERSTYLE:
679 case INS_PROP_CAP_OBJECT_GRAPHIC_ENABLE:
680 case INS_PROP_CAP_OBJECT_GRAPHIC_CATEGORY:
681 case INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERING:
682 case INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERINGSEPARATOR:
683 case INS_PROP_CAP_OBJECT_GRAPHIC_CAPTIONTEXT:
684 case INS_PROP_CAP_OBJECT_GRAPHIC_DELIMITER:
685 case INS_PROP_CAP_OBJECT_GRAPHIC_LEVEL:
686 case INS_PROP_CAP_OBJECT_GRAPHIC_POSITION:
687 case INS_PROP_CAP_OBJECT_GRAPHIC_CHARACTERSTYLE:
688 case INS_PROP_CAP_OBJECT_GRAPHIC_APPLYATTRIBUTES:
689 if(pWriterGraphicOpt)
690 lcl_WriteOpt(*pWriterGraphicOpt,
pValues, nProp, nProp - INS_PROP_CAP_OBJECT_GRAPHIC_ENABLE);
692 case INS_PROP_CAP_OBJECT_CALC_ENABLE:
693 case INS_PROP_CAP_OBJECT_CALC_CATEGORY:
694 case INS_PROP_CAP_OBJECT_CALC_NUMBERING:
695 case INS_PROP_CAP_OBJECT_CALC_NUMBERINGSEPARATOR:
696 case INS_PROP_CAP_OBJECT_CALC_CAPTIONTEXT:
697 case INS_PROP_CAP_OBJECT_CALC_DELIMITER:
698 case INS_PROP_CAP_OBJECT_CALC_LEVEL:
699 case INS_PROP_CAP_OBJECT_CALC_POSITION:
700 case INS_PROP_CAP_OBJECT_CALC_CHARACTERSTYLE:
701 case INS_PROP_CAP_OBJECT_CALC_APPLYATTRIBUTES:
705 case INS_PROP_CAP_OBJECT_IMPRESS_ENABLE:
706 case INS_PROP_CAP_OBJECT_IMPRESS_CATEGORY:
707 case INS_PROP_CAP_OBJECT_IMPRESS_NUMBERING:
708 case INS_PROP_CAP_OBJECT_IMPRESS_NUMBERINGSEPARATOR:
709 case INS_PROP_CAP_OBJECT_IMPRESS_CAPTIONTEXT:
710 case INS_PROP_CAP_OBJECT_IMPRESS_DELIMITER:
711 case INS_PROP_CAP_OBJECT_IMPRESS_LEVEL:
712 case INS_PROP_CAP_OBJECT_IMPRESS_POSITION:
713 case INS_PROP_CAP_OBJECT_IMPRESS_CHARACTERSTYLE:
714 case INS_PROP_CAP_OBJECT_IMPRESS_APPLYATTRIBUTES:
718 case INS_PROP_CAP_OBJECT_CHART_ENABLE:
719 case INS_PROP_CAP_OBJECT_CHART_CATEGORY:
720 case INS_PROP_CAP_OBJECT_CHART_NUMBERING:
721 case INS_PROP_CAP_OBJECT_CHART_NUMBERINGSEPARATOR:
722 case INS_PROP_CAP_OBJECT_CHART_CAPTIONTEXT:
723 case INS_PROP_CAP_OBJECT_CHART_DELIMITER:
724 case INS_PROP_CAP_OBJECT_CHART_LEVEL:
725 case INS_PROP_CAP_OBJECT_CHART_POSITION:
726 case INS_PROP_CAP_OBJECT_CHART_CHARACTERSTYLE:
727 case INS_PROP_CAP_OBJECT_CHART_APPLYATTRIBUTES:
731 case INS_PROP_CAP_OBJECT_FORMULA_ENABLE:
732 case INS_PROP_CAP_OBJECT_FORMULA_CATEGORY:
733 case INS_PROP_CAP_OBJECT_FORMULA_NUMBERING:
734 case INS_PROP_CAP_OBJECT_FORMULA_NUMBERINGSEPARATOR:
735 case INS_PROP_CAP_OBJECT_FORMULA_CAPTIONTEXT:
736 case INS_PROP_CAP_OBJECT_FORMULA_DELIMITER:
737 case INS_PROP_CAP_OBJECT_FORMULA_LEVEL:
738 case INS_PROP_CAP_OBJECT_FORMULA_POSITION:
739 case INS_PROP_CAP_OBJECT_FORMULA_CHARACTERSTYLE:
740 case INS_PROP_CAP_OBJECT_FORMULA_APPLYATTRIBUTES:
744 case INS_PROP_CAP_OBJECT_DRAW_ENABLE:
745 case INS_PROP_CAP_OBJECT_DRAW_CATEGORY:
746 case INS_PROP_CAP_OBJECT_DRAW_NUMBERING:
747 case INS_PROP_CAP_OBJECT_DRAW_NUMBERINGSEPARATOR:
748 case INS_PROP_CAP_OBJECT_DRAW_CAPTIONTEXT:
749 case INS_PROP_CAP_OBJECT_DRAW_DELIMITER:
750 case INS_PROP_CAP_OBJECT_DRAW_LEVEL:
751 case INS_PROP_CAP_OBJECT_DRAW_POSITION:
752 case INS_PROP_CAP_OBJECT_DRAW_CHARACTERSTYLE:
753 case INS_PROP_CAP_OBJECT_DRAW_APPLYATTRIBUTES:
757 case INS_PROP_CAP_OBJECT_OLEMISC_ENABLE:
758 case INS_PROP_CAP_OBJECT_OLEMISC_CATEGORY:
759 case INS_PROP_CAP_OBJECT_OLEMISC_NUMBERING:
760 case INS_PROP_CAP_OBJECT_OLEMISC_NUMBERINGSEPARATOR:
761 case INS_PROP_CAP_OBJECT_OLEMISC_CAPTIONTEXT:
762 case INS_PROP_CAP_OBJECT_OLEMISC_DELIMITER:
763 case INS_PROP_CAP_OBJECT_OLEMISC_LEVEL:
764 case INS_PROP_CAP_OBJECT_OLEMISC_POSITION:
765 case INS_PROP_CAP_OBJECT_OLEMISC_CHARACTERSTYLE:
766 case INS_PROP_CAP_OBJECT_OLEMISC_APPLYATTRIBUTES:
785 OUString sTemp;
pValues[nProp] >>= sTemp;
793 rOpt.
SetNumType(sal::static_int_cast< sal_uInt16, sal_Int32>(nTemp));
798 OUString sTemp;
pValues[nProp] >>= sTemp;
804 OUString sTemp;
pValues[nProp] >>= sTemp;
819 rOpt.
SetLevel(sal::static_int_cast< sal_uInt16, sal_Int32>(nTemp));
826 rOpt.
SetPos(sal::static_int_cast< sal_uInt16, sal_Int32>(nTemp));
831 OUString sTemp;
pValues[nProp] >>= sTemp;
848 assert(aValues.getLength() == aNames.getLength());
872 for (sal_Int32 nProp = 0; nProp < aNames.getLength(); ++nProp)
876 bool bBool = nProp < INS_PROP_CAP_OBJECT_TABLE_ENABLE && *o3tl::doAccess<bool>(
pValues[nProp]);
879 case INS_PROP_TABLE_HEADER:
885 case INS_PROP_TABLE_REPEATHEADER:
891 case INS_PROP_TABLE_BORDER:
897 case INS_PROP_TABLE_SPLIT:
903 case INS_PROP_CAP_AUTOMATIC:
907 case INS_PROP_CAP_OBJECT_TABLE_ENABLE:
908 case INS_PROP_CAP_OBJECT_TABLE_CATEGORY:
909 case INS_PROP_CAP_OBJECT_TABLE_NUMBERING:
910 case INS_PROP_CAP_OBJECT_TABLE_NUMBERINGSEPARATOR:
911 case INS_PROP_CAP_OBJECT_TABLE_CAPTIONTEXT:
912 case INS_PROP_CAP_OBJECT_TABLE_DELIMITER:
913 case INS_PROP_CAP_OBJECT_TABLE_LEVEL:
914 case INS_PROP_CAP_OBJECT_TABLE_POSITION:
915 case INS_PROP_CAP_OBJECT_TABLE_CHARACTERSTYLE:
921 lcl_ReadOpt(*pWriterTableOpt,
pValues, nProp, nProp - INS_PROP_CAP_OBJECT_TABLE_ENABLE);
923 case INS_PROP_CAP_OBJECT_FRAME_ENABLE:
924 case INS_PROP_CAP_OBJECT_FRAME_CATEGORY:
925 case INS_PROP_CAP_OBJECT_FRAME_NUMBERING:
926 case INS_PROP_CAP_OBJECT_FRAME_NUMBERINGSEPARATOR:
927 case INS_PROP_CAP_OBJECT_FRAME_CAPTIONTEXT:
928 case INS_PROP_CAP_OBJECT_FRAME_DELIMITER:
929 case INS_PROP_CAP_OBJECT_FRAME_LEVEL:
930 case INS_PROP_CAP_OBJECT_FRAME_POSITION:
931 case INS_PROP_CAP_OBJECT_FRAME_CHARACTERSTYLE:
937 lcl_ReadOpt(*pWriterFrameOpt,
pValues, nProp, nProp - INS_PROP_CAP_OBJECT_FRAME_ENABLE);
939 case INS_PROP_CAP_OBJECT_GRAPHIC_ENABLE:
940 case INS_PROP_CAP_OBJECT_GRAPHIC_CATEGORY:
941 case INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERING:
942 case INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERINGSEPARATOR:
943 case INS_PROP_CAP_OBJECT_GRAPHIC_CAPTIONTEXT:
944 case INS_PROP_CAP_OBJECT_GRAPHIC_DELIMITER:
945 case INS_PROP_CAP_OBJECT_GRAPHIC_LEVEL:
946 case INS_PROP_CAP_OBJECT_GRAPHIC_POSITION:
947 case INS_PROP_CAP_OBJECT_GRAPHIC_CHARACTERSTYLE:
948 case INS_PROP_CAP_OBJECT_GRAPHIC_APPLYATTRIBUTES:
949 if(!pWriterGraphicOpt)
954 lcl_ReadOpt(*pWriterGraphicOpt,
pValues, nProp, nProp - INS_PROP_CAP_OBJECT_GRAPHIC_ENABLE);
956 case INS_PROP_CAP_OBJECT_CALC_ENABLE:
957 case INS_PROP_CAP_OBJECT_CALC_CATEGORY:
958 case INS_PROP_CAP_OBJECT_CALC_NUMBERING:
959 case INS_PROP_CAP_OBJECT_CALC_NUMBERINGSEPARATOR:
960 case INS_PROP_CAP_OBJECT_CALC_CAPTIONTEXT:
961 case INS_PROP_CAP_OBJECT_CALC_DELIMITER:
962 case INS_PROP_CAP_OBJECT_CALC_LEVEL:
963 case INS_PROP_CAP_OBJECT_CALC_POSITION:
964 case INS_PROP_CAP_OBJECT_CALC_CHARACTERSTYLE:
965 case INS_PROP_CAP_OBJECT_CALC_APPLYATTRIBUTES:
973 case INS_PROP_CAP_OBJECT_IMPRESS_ENABLE:
974 case INS_PROP_CAP_OBJECT_IMPRESS_CATEGORY:
975 case INS_PROP_CAP_OBJECT_IMPRESS_NUMBERING:
976 case INS_PROP_CAP_OBJECT_IMPRESS_NUMBERINGSEPARATOR:
977 case INS_PROP_CAP_OBJECT_IMPRESS_CAPTIONTEXT:
978 case INS_PROP_CAP_OBJECT_IMPRESS_DELIMITER:
979 case INS_PROP_CAP_OBJECT_IMPRESS_LEVEL:
980 case INS_PROP_CAP_OBJECT_IMPRESS_POSITION:
981 case INS_PROP_CAP_OBJECT_IMPRESS_CHARACTERSTYLE:
982 case INS_PROP_CAP_OBJECT_IMPRESS_APPLYATTRIBUTES:
988 lcl_ReadOpt(*pOLEImpressOpt,
pValues, nProp, nProp - INS_PROP_CAP_OBJECT_IMPRESS_ENABLE);
990 case INS_PROP_CAP_OBJECT_CHART_ENABLE:
991 case INS_PROP_CAP_OBJECT_CHART_CATEGORY:
992 case INS_PROP_CAP_OBJECT_CHART_NUMBERING:
993 case INS_PROP_CAP_OBJECT_CHART_NUMBERINGSEPARATOR:
994 case INS_PROP_CAP_OBJECT_CHART_CAPTIONTEXT:
995 case INS_PROP_CAP_OBJECT_CHART_DELIMITER:
996 case INS_PROP_CAP_OBJECT_CHART_LEVEL:
997 case INS_PROP_CAP_OBJECT_CHART_POSITION:
998 case INS_PROP_CAP_OBJECT_CHART_CHARACTERSTYLE:
999 case INS_PROP_CAP_OBJECT_CHART_APPLYATTRIBUTES:
1005 lcl_ReadOpt(*pOLEChartOpt,
pValues, nProp, nProp - INS_PROP_CAP_OBJECT_CHART_ENABLE);
1007 case INS_PROP_CAP_OBJECT_FORMULA_ENABLE:
1008 case INS_PROP_CAP_OBJECT_FORMULA_CATEGORY:
1009 case INS_PROP_CAP_OBJECT_FORMULA_NUMBERING:
1010 case INS_PROP_CAP_OBJECT_FORMULA_NUMBERINGSEPARATOR:
1011 case INS_PROP_CAP_OBJECT_FORMULA_CAPTIONTEXT:
1012 case INS_PROP_CAP_OBJECT_FORMULA_DELIMITER:
1013 case INS_PROP_CAP_OBJECT_FORMULA_LEVEL:
1014 case INS_PROP_CAP_OBJECT_FORMULA_POSITION:
1015 case INS_PROP_CAP_OBJECT_FORMULA_CHARACTERSTYLE:
1016 case INS_PROP_CAP_OBJECT_FORMULA_APPLYATTRIBUTES:
1022 lcl_ReadOpt(*pOLEFormulaOpt,
pValues, nProp, nProp - INS_PROP_CAP_OBJECT_FORMULA_ENABLE);
1024 case INS_PROP_CAP_OBJECT_DRAW_ENABLE:
1025 case INS_PROP_CAP_OBJECT_DRAW_CATEGORY:
1026 case INS_PROP_CAP_OBJECT_DRAW_NUMBERING:
1027 case INS_PROP_CAP_OBJECT_DRAW_NUMBERINGSEPARATOR:
1028 case INS_PROP_CAP_OBJECT_DRAW_CAPTIONTEXT:
1029 case INS_PROP_CAP_OBJECT_DRAW_DELIMITER:
1030 case INS_PROP_CAP_OBJECT_DRAW_LEVEL:
1031 case INS_PROP_CAP_OBJECT_DRAW_POSITION:
1032 case INS_PROP_CAP_OBJECT_DRAW_CHARACTERSTYLE:
1033 case INS_PROP_CAP_OBJECT_DRAW_APPLYATTRIBUTES:
1041 case INS_PROP_CAP_OBJECT_OLEMISC_ENABLE:
1042 case INS_PROP_CAP_OBJECT_OLEMISC_CATEGORY:
1043 case INS_PROP_CAP_OBJECT_OLEMISC_NUMBERING:
1044 case INS_PROP_CAP_OBJECT_OLEMISC_NUMBERINGSEPARATOR:
1045 case INS_PROP_CAP_OBJECT_OLEMISC_CAPTIONTEXT:
1046 case INS_PROP_CAP_OBJECT_OLEMISC_DELIMITER:
1047 case INS_PROP_CAP_OBJECT_OLEMISC_LEVEL:
1048 case INS_PROP_CAP_OBJECT_OLEMISC_POSITION:
1049 case INS_PROP_CAP_OBJECT_OLEMISC_CHARACTERSTYLE:
1050 case INS_PROP_CAP_OBJECT_OLEMISC_APPLYATTRIBUTES:
1059 else if (nProp == INS_PROP_CAP_CAPTIONORDERNUMBERINGFIRST)
1077 "Input/NumberRecognition",
1078 "Input/NumberFormatRecognition",
1080 "Input/SplitVerticalByDefault"
1086 : ConfigItem(bWeb ? OUString(
"Office.WriterWeb/Table") : OUString(
"Office.Writer/Table"),
1090 , m_nTableHInsert(0)
1091 , m_nTableVInsert(0)
1093 , m_bInsTableFormatNum(false)
1094 , m_bInsTableChangeNumFormat(false)
1095 , m_bInsTableAlignNum(false)
1096 , m_bSplitVerticalByDefault(false)
1113 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
1135 const Any*
pValues = aValues.getConstArray();
1136 assert(aValues.getLength() == aNames.getLength());
1137 for (sal_Int32 nProp = 0; nProp < aNames.getLength(); ++nProp)
1139 if (
pValues[nProp].hasValue())
1141 sal_Int32 nTemp = 0;
1160 m_bDefaultFontsInCurrDocOnly(false),
1161 m_bShowIndexPreview(false),
1162 m_bGrfToGalleryAsLnk(true),
1163 m_bNumAlignSize(true),
1164 m_bSinglePrintJob(false),
1165 m_bIsNameFromColumn(true),
1166 m_bIsPasswordFromColumn(false),
1167 m_bAskForMailMergeInPrint(true),
1181 "Statistics/WordNumber/Delimiter",
1182 "DefaultFont/Document",
1183 "Index/ShowPreview",
1184 "Misc/GraphicToGalleryAsLink",
1185 "Numbering/Graphic/KeepRatio",
1186 "FormLetter/PrintOutput/SinglePrintJobs",
1187 "FormLetter/MailingOutput/Format",
1188 "FormLetter/FileOutput/FileName/FromDatabaseField",
1189 "FormLetter/FileOutput/Path",
1190 "FormLetter/FileOutput/FileName/FromManualSetting",
1191 "FormLetter/FileOutput/FileName/Generation",
1192 "FormLetter/PrintOutput/AskForMerge",
1193 "FormLetter/FileOutput/FilePassword/FromDatabaseField",
1194 "FormLetter/FileOutput/FilePassword/Generation"
1207 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
1237 const Any*
pValues = aValues.getConstArray();
1238 assert(aValues.getLength() == aNames.getLength());
1240 for (sal_Int32 nProp = 0; nProp < aNames.getLength(); ++nProp)
1242 if (
pValues[nProp].hasValue())
1246 case 0 :
pValues[nProp] >>= sTmp;
1315 const Any*
pValues = aValues.getConstArray();
1316 assert(aValues.getLength() == aNames.getLength());
1317 for (sal_Int32 nProp = 0; nProp < aNames.getLength(); nProp++)
1319 if (
pValues[nProp].hasValue())
const PropertyValue * pValues
constexpr auto convertTwipToMm100(N n)
InsCaptionOpt * Find(const SwCapObjType eType, const SvGlobalName *pOleId=nullptr)
void Insert(InsCaptionOpt *pObj)
InsCapOptArr m_InsCapOptArr
void SetCategory(const OUString &rCat)
const OUString & GetCategory() const
void SetNumType(const sal_uInt16 nNT)
void SetLevel(const sal_uInt16 nLvl)
const OUString & GetNumSeparator() const
sal_uInt16 GetPos() const
const OUString & GetCharacterStyle() const
sal_uInt16 GetNumType() const
void SetCaption(const OUString &rCap)
const OUString & GetCaption() const
void SetSeparator(const OUString &rSep)
void SetPos(const sal_uInt16 nP)
const SvGlobalName & GetOleId() const
const OUString & GetSeparator() const
SwCapObjType GetObjType() const
void SetCharacterStyle(const OUString &rStyle)
sal_uInt16 GetLevel() const
void SetNumSeparator(const OUString &rSet)
virtual void ImplCommit() override
static const css::uno::Sequence< OUString > & GetPropertyNames()
bool m_bStoreRsid
Compare/Settings/Store RSID.
virtual ~SwCompareConfig() override
SwInsertTableOptions m_aInsTableOpts
std::unique_ptr< InsCaptionOpt > m_pOLEMiscOpt
SvGlobalName m_aGlobalNames[5]
const css::uno::Sequence< OUString > & GetPropertyNames() const
bool m_bCaptionOrderNumberingFirst
virtual ~SwInsertConfig() override
virtual void ImplCommit() override
std::unique_ptr< InsCaptionOptArr > m_pCapOptions
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
SwInsertConfig(bool bWeb)
bool m_bIsPasswordFromColumn
OUString m_sWordDelimiter
static const css::uno::Sequence< OUString > & GetPropertyNames()
OUString m_sNameFromColumn
OUString m_sPasswordFromColumn
bool m_bDefaultFontsInCurrDocOnly
MailTextFormats m_nMailingFormats
virtual ~SwMiscConfig() override
bool m_bAskForMailMergeInPrint
bool m_bGrfToGalleryAsLnk
virtual void ImplCommit() override
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
SwInsertConfig m_aInsertConfig
bool SetCapOption(bool bHTML, const InsCaptionOpt *pOpt)
const InsCaptionOpt * GetCapOption(bool bHTML, const SwCapObjType eType, const SvGlobalName *pOleId)
static OUString ConvertWordDelimiter(std::u16string_view aDelim, bool bFromUI)
AuthorCharAttr m_aInsertAttr
AuthorCharAttr m_aDeletedAttr
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual void ImplCommit() override
virtual ~SwRevisionConfig() override
AuthorCharAttr m_aFormatAttr
static const css::uno::Sequence< OUString > & GetPropertyNames()
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
bool m_bInsTableFormatNum
sal_uInt16 m_nTableVInsert
static const css::uno::Sequence< OUString > & GetPropertyNames()
virtual ~SwTableConfig() override
bool m_bInsTableChangeNumFormat
sal_uInt16 m_nTableHInsert
TableChgMode m_eTableChgMode
virtual void ImplCommit() override
bool m_bSplitVerticalByDefault
#define SO3_SDRAW_CLASSID
#define SO3_SIMPRESS_CLASSID
static bool PutProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
static css::uno::Sequence< css::uno::Any > GetProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
static void lcl_WriteOpt(const InsCaptionOpt &rOpt, Any *pValues, sal_Int32 nProp, sal_Int32 nOffset)
#define GLOB_NAME_IMPRESS
static void lcl_ReadOpt(InsCaptionOpt &rOpt, const Any *pValues, sal_Int32 nProp, sal_Int32 nOffset)
static sal_Int32 lcl_ConvertAttrToCfg(const AuthorCharAttr &rAttr)
static void lcl_ConvertCfgToAttr(sal_Int32 nVal, AuthorCharAttr &rAttr, bool bDelete=false)
constexpr auto toTwips(N number, Length from)
sal_uInt16 mnRowsToRepeat
SwInsertTableFlags mnInsMode