summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/drwtxtex.cxx
blob: 25da3bd8db9ffba6bfc4f10025afc83abbeb06d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>

#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <i18npool/mslangid.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <tools/shl.hxx>
#include <svx/svdview.hxx>
#include <editeng/spltitem.hxx>
#include <editeng/orphitem.hxx>
#include <editeng/brkitem.hxx>
#include <editeng/widwitem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/escpitem.hxx>
#include <editeng/lspcitem.hxx>
#include <editeng/adjitem.hxx>
#include <editeng/crsditem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/cntritem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <svx/svdoutl.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/whiter.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <svtools/langtab.hxx>
#include <svl/languageoptions.hxx>
#include <vcl/msgbox.hxx>
#include <editeng/flditem.hxx>
#include <editeng/editstat.hxx>
#include <svx/hlnkitem.hxx>
#include <svx/htmlmode.hxx>
#include <svl/slstitm.hxx>
#include <editeng/langitem.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/scripttypeitem.hxx>
#include <editeng/writingmodeitem.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/editeng.hxx>
#include <editeng/editdata.hxx>
#include <editeng/outliner.hxx>
#include <vcl/window.hxx>
#include <editeng/editview.hxx>
#include <vcl/outdev.hxx>
#include <editeng/hyznitem.hxx>

#include <cmdid.h>
#include <doc.hxx>
#include <docstat.hxx>
#include <drwtxtsh.hxx>
#include <edtwin.hxx>
#include <globals.hrc>
#include <hintids.hxx>
#include <initui.hxx>               // fuer SpellPointer
#include <langhelper.hxx>
#include <pardlg.hxx>
#include <shells.hrc>
#include <string.h>
#include <swdtflvr.hxx>
#include <swmodule.hxx>
#include <swwait.hxx>
#include <uitool.hxx>
#include <viewopt.hxx>
#include <wrtsh.hxx>
#include <wview.hxx>
#include <wordcountdialog.hxx>

#include "swabstdlg.hxx"
#include "chrdlg.hrc"
#include "misc.hrc"


using namespace ::com::sun::star;

void SwDrawTextShell::Execute( SfxRequest &rReq )
{
    SwWrtShell &rSh = GetShell();
        OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
        SfxItemSet aEditAttr(pOLV->GetAttribs());
    SfxItemSet aNewAttr(*aEditAttr.GetPool(), aEditAttr.GetRanges());

    sal_uInt16 nSlot = rReq.GetSlot();

    sal_uInt16 nWhich = GetPool().GetWhich(nSlot);
    const SfxItemSet *pNewAttrs = rReq.GetArgs();

    bool bRestoreSelection = false;
    ESelection aOldSelection;

    sal_uInt16 nEEWhich = 0;
    switch (nSlot)
    {
        case SID_LANGUAGE_STATUS:
        {
            aOldSelection = pOLV->GetSelection();
            if (!pOLV->GetEditView().HasSelection())
            {
                bRestoreSelection   = true;
                pOLV->GetEditView().SelectCurrentWord();
            }

            bRestoreSelection = SwLangHelper::SetLanguageStatus(pOLV,rReq,GetView(),rSh);
            break;
        }

        case SID_THES:
        {
            String aReplaceText;
            SFX_REQUEST_ARG( rReq, pItem2, SfxStringItem, SID_THES, sal_False );
            if (pItem2)
                aReplaceText = pItem2->GetValue();
            if (aReplaceText.Len() > 0)
                ReplaceTextWithSynonym( pOLV->GetEditView(), aReplaceText );
            break;
        }

        case SID_ATTR_CHAR_FONT:
        case SID_ATTR_CHAR_FONTHEIGHT:
        case SID_ATTR_CHAR_WEIGHT:
        case SID_ATTR_CHAR_POSTURE:
        {
            SfxItemPool* pPool2 = aEditAttr.GetPool()->GetSecondaryPool();
            if( !pPool2 )
                pPool2 = aEditAttr.GetPool();
            SvxScriptSetItem aSetItem( nSlot, *pPool2 );

            // #i78017 establish the same behaviour as in Writer
            sal_uInt16 nScriptTypes = SCRIPTTYPE_LATIN | SCRIPTTYPE_ASIAN | SCRIPTTYPE_COMPLEX;
            if (nSlot == SID_ATTR_CHAR_FONT)
                nScriptTypes = pOLV->GetSelectedScriptType();

            if (pNewAttrs)
            {
                aSetItem.PutItemForScriptType( nScriptTypes, pNewAttrs->Get( nWhich ) );
                aNewAttr.Put( aSetItem.GetItemSet() );
            }
        }
        break;

        case SID_ATTR_CHAR_COLOR: nEEWhich = EE_CHAR_COLOR; break;

        case SID_ATTR_CHAR_UNDERLINE:
        {
             FontUnderline eFU = ((const SvxUnderlineItem&)aEditAttr.Get(EE_CHAR_UNDERLINE)).GetLineStyle();
            aNewAttr.Put(SvxUnderlineItem(eFU == UNDERLINE_SINGLE ? UNDERLINE_NONE : UNDERLINE_SINGLE, EE_CHAR_UNDERLINE));
        }
        break;

        case SID_ATTR_CHAR_OVERLINE:
        {
             FontUnderline eFO = ((const SvxOverlineItem&)aEditAttr.Get(EE_CHAR_OVERLINE)).GetLineStyle();
            aNewAttr.Put(SvxOverlineItem(eFO == UNDERLINE_SINGLE ? UNDERLINE_NONE : UNDERLINE_SINGLE, EE_CHAR_OVERLINE));
        }
        break;

        case SID_ATTR_CHAR_CONTOUR:     nEEWhich = EE_CHAR_OUTLINE; break;
        case SID_ATTR_CHAR_SHADOWED:    nEEWhich = EE_CHAR_SHADOW; break;
        case SID_ATTR_CHAR_STRIKEOUT:   nEEWhich = EE_CHAR_STRIKEOUT; break;
        case SID_ATTR_CHAR_WORDLINEMODE: nEEWhich = EE_CHAR_WLM; break;
        case SID_ATTR_CHAR_RELIEF      : nEEWhich = EE_CHAR_RELIEF;  break;
        case SID_ATTR_CHAR_LANGUAGE    : nEEWhich = EE_CHAR_LANGUAGE;break;
        case SID_ATTR_CHAR_KERNING     : nEEWhich = EE_CHAR_KERNING; break;
        case SID_ATTR_CHAR_SCALEWIDTH:   nEEWhich = EE_CHAR_FONTWIDTH; break;
        case SID_ATTR_CHAR_AUTOKERN  :   nEEWhich = EE_CHAR_PAIRKERNING; break;
        case SID_ATTR_CHAR_ESCAPEMENT:   nEEWhich = EE_CHAR_ESCAPEMENT; break;
        case SID_ATTR_PARA_ADJUST_LEFT:
            aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_LEFT, EE_PARA_JUST));
        break;
        case SID_ATTR_PARA_ADJUST_CENTER:
            aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_CENTER, EE_PARA_JUST));
        break;
        case SID_ATTR_PARA_ADJUST_RIGHT:
            aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_RIGHT, EE_PARA_JUST));
        break;
        case SID_ATTR_PARA_ADJUST_BLOCK:
            aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_BLOCK, EE_PARA_JUST));
        break;

        case SID_ATTR_PARA_LINESPACE_10:
        {
            SvxLineSpacingItem aItem(SVX_LINESPACE_ONE_LINE, EE_PARA_SBL);
            aItem.SetPropLineSpace(100);
            aNewAttr.Put(aItem);
        }
        break;
        case SID_ATTR_PARA_LINESPACE_15:
        {
            SvxLineSpacingItem aItem(SVX_LINESPACE_ONE_POINT_FIVE_LINES, EE_PARA_SBL);
            aItem.SetPropLineSpace(150);
            aNewAttr.Put(aItem);
        }
        break;
        case SID_ATTR_PARA_LINESPACE_20:
        {
            SvxLineSpacingItem aItem(SVX_LINESPACE_TWO_LINES, EE_PARA_SBL);
            aItem.SetPropLineSpace(200);
            aNewAttr.Put(aItem);
        }
        break;

        case FN_SET_SUPER_SCRIPT:
        {
            SvxEscapementItem aItem(EE_CHAR_ESCAPEMENT);
            SvxEscapement eEsc = (SvxEscapement ) ( (const SvxEscapementItem&)
                            aEditAttr.Get( EE_CHAR_ESCAPEMENT ) ).GetEnumValue();

            if( eEsc == SVX_ESCAPEMENT_SUPERSCRIPT )
                aItem.SetEscapement( SVX_ESCAPEMENT_OFF );
            else
                aItem.SetEscapement( SVX_ESCAPEMENT_SUPERSCRIPT );
            aNewAttr.Put( aItem, EE_CHAR_ESCAPEMENT );
        }
        break;
        case FN_SET_SUB_SCRIPT:
        {
            SvxEscapementItem aItem(EE_CHAR_ESCAPEMENT);
            SvxEscapement eEsc = (SvxEscapement ) ( (const SvxEscapementItem&)
                            aEditAttr.Get( EE_CHAR_ESCAPEMENT ) ).GetEnumValue();

            if( eEsc == SVX_ESCAPEMENT_SUBSCRIPT )
                aItem.SetEscapement( SVX_ESCAPEMENT_OFF );
            else
                aItem.SetEscapement( SVX_ESCAPEMENT_SUBSCRIPT );
            aNewAttr.Put( aItem, EE_CHAR_ESCAPEMENT );
        }
        break;

        case SID_CHAR_DLG:
        case SID_CHAR_DLG_FOR_PARAGRAPH:
        {
            const SfxItemSet* pArgs = rReq.GetArgs();

            if( !pArgs )
            {
                aOldSelection = pOLV->GetSelection();
                if (nSlot == SID_CHAR_DLG_FOR_PARAGRAPH)
                {
                    // select current paragraph (and restore selection later on...)
                    EditView & rEditView = pOLV->GetEditView();
                    SwLangHelper::SelectPara( rEditView, rEditView.GetSelection() );
                    bRestoreSelection = true;
                }

                SwView* pView = &GetView();
                FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView));
                SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)) );
                SfxItemSet aDlgAttr(GetPool(), EE_ITEMS_START, EE_ITEMS_END);

                // util::Language gibts an der EditEngine nicht! Daher nicht im Set.

                aDlgAttr.Put( aEditAttr );
                aDlgAttr.Put( SvxKerningItem(0, RES_CHRATR_KERNING) );

                SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
                OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");

                SfxAbstractTabDialog* pDlg = pFact->CreateSwCharDlg(pView->GetWindow(), *pView, aDlgAttr, 0, sal_True);
                OSL_ENSURE(pDlg, "Dialogdiet fail!");
                sal_uInt16 nRet = pDlg->Execute();
                if(RET_OK == nRet )
                {
                    rReq.Done( *( pDlg->GetOutputItemSet() ) );
                    aNewAttr.Put(*pDlg->GetOutputItemSet());
                }
                delete( pDlg );
                if(RET_OK != nRet)
                    return ;
            }
            else
                aNewAttr.Put(*pArgs);
        }
        break;
        case FN_FORMAT_FOOTNOTE_DLG:
        {
            SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
            OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");

            VclAbstractDialog* pDlg = pFact->CreateSwFootNoteOptionDlg( GetView().GetWindow(), rView.GetWrtShell(), DLG_DOC_FOOTNOTE );
            OSL_ENSURE(pDlg, "Dialogdiet fail!");
            pDlg->Execute();
            delete pDlg;
            break;
        }
        case FN_NUMBERING_OUTLINE_DLG:
        {
            SfxItemSet aTmp(GetPool(), FN_PARAM_1, FN_PARAM_1);
            SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
            OSL_ENSURE(pFact, "Dialogdiet fail!");
            SfxAbstractTabDialog* pDlg = pFact->CreateSwTabDialog( DLG_TAB_OUTLINE,
                                                        GetView().GetWindow(), &aTmp, GetView().GetWrtShell());
            OSL_ENSURE(pDlg, "Dialogdiet fail!");
            pDlg->Execute();
            delete pDlg;
            rReq.Done();
        }
        break;
        case SID_OPEN_XML_FILTERSETTINGS:
        {
            try
            {
                uno::Reference < ui::dialogs::XExecutableDialog > xDialog(::comphelper::getProcessServiceFactory()->createInstance(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.ui.XSLTFilterDialog"))), uno::UNO_QUERY);
                if( xDialog.is() )
                {
                    xDialog->execute();
                }
            }
            catch (const uno::Exception&)
            {
            }
            rReq.Ignore ();
        }
        break;
        case FN_WORDCOUNT_DIALOG:
        {
            SfxViewFrame* pVFrame = GetView().GetViewFrame();
            if (pVFrame != NULL)
            {
                pVFrame->ToggleChildWindow(FN_WORDCOUNT_DIALOG);
                Invalidate(rReq.GetSlot());

                SwWordCountWrapper *pWrdCnt = (SwWordCountWrapper*)pVFrame->GetChildWindow(SwWordCountWrapper::GetChildWindowId());
                if (pWrdCnt)
                    pWrdCnt->UpdateCounts();
            }
        }
        break;
        case SID_PARA_DLG:
        {
            const SfxItemSet* pArgs = rReq.GetArgs();

            if (!pArgs)
            {
                SwView* pView = &GetView();
                FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, pView));
                SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)) );
                SfxItemSet aDlgAttr(GetPool(),
                                    EE_ITEMS_START, EE_ITEMS_END,
                                    SID_ATTR_PARA_HYPHENZONE, SID_ATTR_PARA_HYPHENZONE,
                                    SID_ATTR_PARA_SPLIT, SID_ATTR_PARA_SPLIT,
                                    SID_ATTR_PARA_WIDOWS, SID_ATTR_PARA_WIDOWS,
                                    SID_ATTR_PARA_ORPHANS, SID_ATTR_PARA_ORPHANS,
                                    0);

                aDlgAttr.Put(aEditAttr);

                aDlgAttr.Put( SvxHyphenZoneItem( sal_False, RES_PARATR_HYPHENZONE) );
                aDlgAttr.Put( SvxFmtBreakItem( SVX_BREAK_NONE, RES_BREAK ) );
                aDlgAttr.Put( SvxFmtSplitItem( sal_True, RES_PARATR_SPLIT ) );
                aDlgAttr.Put( SvxWidowsItem( 0, RES_PARATR_WIDOWS ) );
                aDlgAttr.Put( SvxOrphansItem( 0, RES_PARATR_ORPHANS ) );

                SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
                OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");

                SfxAbstractTabDialog* pDlg = pFact->CreateSwParaDlg( GetView().GetWindow(), GetView(), aDlgAttr,DLG_STD, DLG_PARA, 0, sal_True );
                OSL_ENSURE(pDlg, "Dialogdiet fail!");
                sal_uInt16 nRet = pDlg->Execute();
                if(RET_OK == nRet)
                {
                    rReq.Done( *( pDlg->GetOutputItemSet() ) );
                    aNewAttr.Put(*pDlg->GetOutputItemSet());
                }
                delete( pDlg );
                if(RET_OK != nRet)
                    return;
            }
            else
                aNewAttr.Put(*pArgs);
        }
        break;
        case SID_AUTOSPELL_CHECK:
        {
//!! JP 16.03.2001: why??           pSdrView = rSh.GetDrawView();
//!! JP 16.03.2001: why??           pOutliner = pSdrView->GetTextEditOutliner();
            SdrOutliner * pOutliner = pSdrView->GetTextEditOutliner();
            sal_uInt32 nCtrl = pOutliner->GetControlWord();

            sal_Bool bSet = ((const SfxBoolItem&)rReq.GetArgs()->Get(
                                                    nSlot)).GetValue();
            if(bSet)
                nCtrl |= EE_CNTRL_ONLINESPELLING|EE_CNTRL_ALLOWBIGOBJS;
            else
                nCtrl &= ~EE_CNTRL_ONLINESPELLING;
            pOutliner->SetControlWord(nCtrl);

            rView.ExecuteSlot(rReq);
        }
        break;
        case SID_HYPERLINK_SETLINK:
        {
            const SfxPoolItem* pItem = 0;
            if(pNewAttrs)
                pNewAttrs->GetItemState(nSlot, sal_False, &pItem);

            if(pItem)
            {
                const SvxHyperlinkItem& rHLinkItem = *(const SvxHyperlinkItem *)pItem;
                SvxURLField aFld(rHLinkItem.GetURL(), rHLinkItem.GetName(), SVXURLFORMAT_APPDEFAULT);
                aFld.SetTargetFrame(rHLinkItem.GetTargetFrame());

                const SvxFieldItem* pFieldItem = pOLV->GetFieldAtSelection();

                if (pFieldItem && pFieldItem->GetField()->ISA(SvxURLField))
                {
                    // Feld selektieren, so dass es beim Insert geloescht wird
                    ESelection aSel = pOLV->GetSelection();
                    aSel.nEndPos++;
                    pOLV->SetSelection(aSel);
                }
                pOLV->InsertField(SvxFieldItem(aFld, EE_FEATURE_FIELD));
            }
        }
        break;

        case SID_TEXTDIRECTION_LEFT_TO_RIGHT:
        case SID_TEXTDIRECTION_TOP_TO_BOTTOM:
            // Shellwechsel!
            {
                SdrObject* pTmpObj = pSdrView->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj();
                SdrPageView* pTmpPV = pSdrView->GetSdrPageView();
                SdrView* pTmpView = pSdrView;

                pSdrView->SdrEndTextEdit(sal_True);

                SfxItemSet aAttr( *aNewAttr.GetPool(),
                            SDRATTR_TEXTDIRECTION,
                            SDRATTR_TEXTDIRECTION );

                aAttr.Put( SvxWritingModeItem(
                    nSlot == SID_TEXTDIRECTION_LEFT_TO_RIGHT ?
                        text::WritingMode_LR_TB
                        : text::WritingMode_TB_RL, SDRATTR_TEXTDIRECTION ) );
                pTmpView->SetAttributes( aAttr );

                rSh.GetView().BeginTextEdit( pTmpObj, pTmpPV, &rSh.GetView().GetEditWin(), sal_False);
                rSh.GetView().AttrChangedNotify( &rSh );
            }
            return;

        case SID_ATTR_PARA_LEFT_TO_RIGHT:
        case SID_ATTR_PARA_RIGHT_TO_LEFT:
        {
            SdrObject* pTmpObj = pSdrView->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj();
            SdrPageView* pTmpPV = pSdrView->GetSdrPageView();
            SdrView* pTmpView = pSdrView;

            pSdrView->SdrEndTextEdit(sal_True);
            sal_Bool bLeftToRight = nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT;

            const SfxPoolItem* pPoolItem;
            if( pNewAttrs && SFX_ITEM_SET == pNewAttrs->GetItemState( nSlot, sal_True, &pPoolItem ) )
            {
                if( !( (SfxBoolItem*)pPoolItem)->GetValue() )
                    bLeftToRight = !bLeftToRight;
            }
            SfxItemSet aAttr( *aNewAttr.GetPool(),
                        EE_PARA_JUST, EE_PARA_JUST,
                        EE_PARA_WRITINGDIR, EE_PARA_WRITINGDIR,
                        0 );

            sal_uInt16 nAdjust = SVX_ADJUST_LEFT;
            if( SFX_ITEM_ON == aEditAttr.GetItemState(EE_PARA_JUST, sal_True, &pPoolItem ) )
                nAdjust = ( (SvxAdjustItem*)pPoolItem)->GetEnumValue();

            if( bLeftToRight )
            {
                aAttr.Put( SvxFrameDirectionItem( FRMDIR_HORI_LEFT_TOP, EE_PARA_WRITINGDIR ) );
                if( nAdjust == SVX_ADJUST_RIGHT )
                    aAttr.Put( SvxAdjustItem( SVX_ADJUST_LEFT, EE_PARA_JUST ) );
            }
            else
            {
                aAttr.Put( SvxFrameDirectionItem( FRMDIR_HORI_RIGHT_TOP, EE_PARA_WRITINGDIR ) );
                if( nAdjust == SVX_ADJUST_LEFT )
                    aAttr.Put( SvxAdjustItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ) );
            }
            pTmpView->SetAttributes( aAttr );
            rSh.GetView().BeginTextEdit( pTmpObj, pTmpPV, &rSh.GetView().GetEditWin(), sal_False );
            rSh.GetView().AttrChangedNotify( &rSh );
        }
        return;
        default:
            OSL_ENSURE(!this, "wrong dispatcher");
            return;
    }
    if(nEEWhich && pNewAttrs)
        aNewAttr.Put(pNewAttrs->Get(nWhich), nEEWhich);

    SetAttrToMarked(aNewAttr);

    GetView().GetViewFrame()->GetBindings().InvalidateAll(sal_False);

    if (IsTextEdit() && pOLV->GetOutliner()->IsModified())
        rSh.SetModified();

    if (bRestoreSelection)
    {
        // restore selection
        pOLV->GetEditView().SetSelection( aOldSelection );
    }
}

void SwDrawTextShell::GetState(SfxItemSet& rSet)
{
    if (!IsTextEdit())  // Sonst manchmal Absturz!
        return;

    OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
    SfxWhichIter aIter(rSet);
    sal_uInt16 nWhich = aIter.FirstWhich();

    SfxItemSet aEditAttr( pOLV->GetAttribs() );
    const SfxPoolItem *pAdjust = 0, *pLSpace = 0, *pEscItem = 0;
    int eAdjust, nLSpace, nEsc;

    while(nWhich)
    {
        sal_uInt16 nSlotId = GetPool().GetSlotId( nWhich );
        sal_Bool bFlag = sal_False;
        switch( nSlotId )
        {
            case SID_LANGUAGE_STATUS://20412:
            {
                nSlotId = SwLangHelper::GetLanguageStatus(pOLV,rSet);
                break;
            }

            case SID_THES:
            {
                String          aStatusVal;
                LanguageType    nLang = LANGUAGE_NONE;
                bool bIsLookUpWord = GetStatusValueForThesaurusFromContext( aStatusVal, nLang, pOLV->GetEditView() );
                rSet.Put( SfxStringItem( SID_THES, aStatusVal ) );

                // disable "Thesaurus" context menu entry if there is nothing to look up
                uno::Reference< linguistic2::XThesaurus >  xThes( ::GetThesaurus() );
                if (!bIsLookUpWord ||
                    !xThes.is() || nLang == LANGUAGE_NONE || !xThes->hasLocale( LanguageTag( nLang ).getLocale() ))
                    rSet.DisableItem( SID_THES );

                //! avoid puting the same item as SfxBoolItem at the end of this function
                nSlotId = 0;
                break;
            }

        case SID_ATTR_PARA_ADJUST_LEFT:     eAdjust = SVX_ADJUST_LEFT; goto ASK_ADJUST;
        case SID_ATTR_PARA_ADJUST_RIGHT:    eAdjust = SVX_ADJUST_RIGHT; goto ASK_ADJUST;
        case SID_ATTR_PARA_ADJUST_CENTER:   eAdjust = SVX_ADJUST_CENTER; goto ASK_ADJUST;
        case SID_ATTR_PARA_ADJUST_BLOCK:    eAdjust = SVX_ADJUST_BLOCK; goto ASK_ADJUST;
ASK_ADJUST:
            {
                if( !pAdjust )
                    aEditAttr.GetItemState( EE_PARA_JUST, sal_False, &pAdjust);

                if( !pAdjust || IsInvalidItem( pAdjust ))
                    rSet.InvalidateItem( nSlotId ), nSlotId = 0;
                else
                    bFlag = eAdjust == ((SvxAdjustItem*)pAdjust)->GetAdjust();
            }
            break;

        case SID_ATTR_PARA_LINESPACE_10:    nLSpace = 100;  goto ASK_LINESPACE;
        case SID_ATTR_PARA_LINESPACE_15:    nLSpace = 150;  goto ASK_LINESPACE;
        case SID_ATTR_PARA_LINESPACE_20:    nLSpace = 200;  goto ASK_LINESPACE;
ASK_LINESPACE:
            {
                if( !pLSpace )
                    aEditAttr.GetItemState( EE_PARA_SBL, sal_False, &pLSpace );

                if( !pLSpace || IsInvalidItem( pLSpace ))
                    rSet.InvalidateItem( nSlotId ), nSlotId = 0;
                else if( nLSpace == ((const SvxLineSpacingItem*)pLSpace)->
                                                GetPropLineSpace() )
                    bFlag = sal_True;
                else
                    nSlotId = 0;
            }
            break;

        case FN_SET_SUPER_SCRIPT:   nEsc = SVX_ESCAPEMENT_SUPERSCRIPT;
                                    goto ASK_ESCAPE;
        case FN_SET_SUB_SCRIPT:     nEsc = SVX_ESCAPEMENT_SUBSCRIPT;
                                    goto ASK_ESCAPE;
ASK_ESCAPE:
            {
                if( !pEscItem )
                    pEscItem = &aEditAttr.Get( EE_CHAR_ESCAPEMENT );

                if( nEsc == ((const SvxEscapementItem*)
                                                pEscItem)->GetEnumValue() )
                    bFlag = sal_True;
                else
                    nSlotId = 0;
            }
            break;

        case SID_THESAURUS:
        {
            // disable "Thesaurus" if the language is not supported
            const SfxPoolItem &rItem = GetShell().GetDoc()->GetDefault(
                            GetWhichOfScript( RES_CHRATR_LANGUAGE,
                            GetI18NScriptTypeOfLanguage( (sal_uInt16)GetAppLanguage())) );
            LanguageType nLang = ((const SvxLanguageItem &) rItem).GetLanguage();

            uno::Reference< linguistic2::XThesaurus >  xThes( ::GetThesaurus() );
            if (!xThes.is() || nLang == LANGUAGE_NONE || !xThes->hasLocale( LanguageTag( nLang ).getLocale() ))
                rSet.DisableItem( SID_THESAURUS );
            nSlotId = 0;
        }
        break;
        case SID_HANGUL_HANJA_CONVERSION:
        case SID_CHINESE_CONVERSION:
        {
            if (!SvtCJKOptions().IsAnyEnabled())
            {
                GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich, sal_False );
                rSet.DisableItem(nWhich);
            }
            else
                GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich, sal_True );
        }
        break;

        case SID_TEXTDIRECTION_LEFT_TO_RIGHT:
        case SID_TEXTDIRECTION_TOP_TO_BOTTOM:
            if ( !SvtLanguageOptions().IsVerticalTextEnabled() )
            {
                rSet.DisableItem( nSlotId );
                nSlotId = 0;
            }
            else
            {
                SdrOutliner * pOutliner = pSdrView->GetTextEditOutliner();
                if( pOutliner )
                    bFlag = pOutliner->IsVertical() ==
                            (SID_TEXTDIRECTION_TOP_TO_BOTTOM == nSlotId);
                else
                {
                    text::WritingMode eMode = (text::WritingMode)
                                    ( (const SvxWritingModeItem&) aEditAttr.Get( SDRATTR_TEXTDIRECTION ) ).GetValue();

                    if( nSlotId == SID_TEXTDIRECTION_LEFT_TO_RIGHT )
                    {
                        bFlag = eMode == text::WritingMode_LR_TB;
                    }
                    else
                    {
                        bFlag = eMode != text::WritingMode_TB_RL;
                    }
                }
            }
            break;
        case SID_ATTR_PARA_LEFT_TO_RIGHT:
        case SID_ATTR_PARA_RIGHT_TO_LEFT:
        {
            if ( !SvtLanguageOptions().IsCTLFontEnabled() )
            {
                rSet.DisableItem( nWhich );
                nSlotId = 0;
            }
            else
            {
                SdrOutliner * pOutliner = pSdrView->GetTextEditOutliner();
                if(pOutliner && pOutliner->IsVertical())
                {
                    rSet.DisableItem( nWhich );
                    nSlotId = 0;
                }
                else
                {
                    switch( ( ( (SvxFrameDirectionItem&) aEditAttr.Get( EE_PARA_WRITINGDIR ) ) ).GetValue() )
                    {
                        case FRMDIR_HORI_LEFT_TOP:
                            bFlag = nWhich == SID_ATTR_PARA_LEFT_TO_RIGHT;
                        break;

                        case FRMDIR_HORI_RIGHT_TOP:
                            bFlag = nWhich != SID_ATTR_PARA_LEFT_TO_RIGHT;
                        break;
                    }
                }
            }
        }
        break;
        case SID_TRANSLITERATE_HALFWIDTH:
        case SID_TRANSLITERATE_FULLWIDTH:
        case SID_TRANSLITERATE_HIRAGANA:
        case SID_TRANSLITERATE_KATAGANA:
        {
            SvtCJKOptions aCJKOptions;
            if(!aCJKOptions.IsChangeCaseMapEnabled())
            {
                rSet.DisableItem(nWhich);
                GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich, sal_False );
            }
            else
                GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich, sal_True );
        }
        break;
        case SID_INSERT_RLM :
        case SID_INSERT_LRM :
        case SID_INSERT_ZWNBSP :
        case SID_INSERT_ZWSP:
        {
            SvtCTLOptions aCTLOptions;
            sal_Bool bEnabled = aCTLOptions.IsCTLFontEnabled();
            GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich, bEnabled );
            if(!bEnabled)
                rSet.DisableItem(nWhich);
        }
        break;
        default:
            nSlotId = 0;                // don't know this slot
            break;
        }

        if( nSlotId )
            rSet.Put( SfxBoolItem( nWhich, bFlag ));

        nWhich = aIter.NextWhich();
    }
}

void SwDrawTextShell::GetDrawTxtCtrlState(SfxItemSet& rSet)
{
    if (!IsTextEdit())  // Sonst Absturz!
        return;

    OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
    SfxItemSet aEditAttr(pOLV->GetAttribs());

    SfxWhichIter aIter(rSet);
    sal_uInt16 nWhich = aIter.FirstWhich();
    sal_uInt16 nScriptType = pOLV->GetSelectedScriptType();
    while(nWhich)
    {
        sal_uInt16 nEEWhich = 0;
        sal_uInt16 nSlotId = GetPool().GetSlotId( nWhich );
        switch( nSlotId )
        {
            case SID_ATTR_CHAR_FONT:
            case SID_ATTR_CHAR_FONTHEIGHT:
            case SID_ATTR_CHAR_WEIGHT:
            case SID_ATTR_CHAR_POSTURE:
            {
                SfxItemPool* pEditPool = aEditAttr.GetPool()->GetSecondaryPool();
                if( !pEditPool )
                    pEditPool = aEditAttr.GetPool();
                SvxScriptSetItem aSetItem( nSlotId, *pEditPool );
                aSetItem.GetItemSet().Put( aEditAttr, sal_False );
                const SfxPoolItem* pI = aSetItem.GetItemOfScript( nScriptType );
                if( pI )
                    rSet.Put( *pI, nWhich );
                else
                    rSet.InvalidateItem( nWhich );
            }
            break;
            case SID_ATTR_CHAR_COLOR: nEEWhich = EE_CHAR_COLOR; break;
            case SID_ATTR_CHAR_UNDERLINE: nEEWhich = EE_CHAR_UNDERLINE;break;
            case SID_ATTR_CHAR_OVERLINE: nEEWhich = EE_CHAR_OVERLINE;break;
            case SID_ATTR_CHAR_CONTOUR: nEEWhich = EE_CHAR_OUTLINE; break;
            case SID_ATTR_CHAR_SHADOWED:  nEEWhich = EE_CHAR_SHADOW;break;
            case SID_ATTR_CHAR_STRIKEOUT: nEEWhich = EE_CHAR_STRIKEOUT;break;
            case SID_AUTOSPELL_CHECK:
            {
                const SfxPoolItem* pState = rView.GetSlotState(nWhich);
                if (pState)
                    rSet.Put(SfxBoolItem(nWhich, ((const SfxBoolItem*)pState)->GetValue()));
                else
                    rSet.DisableItem( nWhich );
                break;
            }
            case SID_ATTR_CHAR_WORDLINEMODE: nEEWhich = EE_CHAR_WLM; break;
            case SID_ATTR_CHAR_RELIEF      : nEEWhich = EE_CHAR_RELIEF;  break;
            case SID_ATTR_CHAR_LANGUAGE    : nEEWhich = EE_CHAR_LANGUAGE;break;
            case SID_ATTR_CHAR_KERNING     : nEEWhich = EE_CHAR_KERNING; break;
            case SID_ATTR_CHAR_SCALEWIDTH:   nEEWhich = EE_CHAR_FONTWIDTH;break;
            case SID_ATTR_CHAR_AUTOKERN  :   nEEWhich = EE_CHAR_PAIRKERNING; break;
            case SID_ATTR_CHAR_ESCAPEMENT:   nEEWhich = EE_CHAR_ESCAPEMENT; break;
        }
        if(nEEWhich)
            rSet.Put(aEditAttr.Get(nEEWhich, sal_True), nWhich);

        nWhich = aIter.NextWhich();
    }
}

void SwDrawTextShell::ExecClpbrd(SfxRequest &rReq)
{
    if (!IsTextEdit())  // Sonst Absturz!
        return;

    OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();

    ESelection aSel(pOLV->GetSelection());
    const sal_Bool bCopy = (aSel.nStartPara != aSel.nEndPara) || (aSel.nStartPos != aSel.nEndPos);
    sal_uInt16 nId = rReq.GetSlot();
    switch( nId )
    {
        case SID_CUT:
            if (bCopy)
                pOLV->Cut();
            return;

        case SID_COPY:
            if (bCopy)
                pOLV->Copy();
            return;

        case SID_PASTE:
            pOLV->PasteSpecial();
            break;

        default:
            OSL_FAIL("wrong dispatcher");
            return;
    }
}

/*--------------------------------------------------------------------
    Beschreibung:   ClipBoard-Status
 --------------------------------------------------------------------*/
void SwDrawTextShell::StateClpbrd(SfxItemSet &rSet)
{
    if (!IsTextEdit())  // Sonst Absturz!
        return;

    OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
    ESelection aSel(pOLV->GetSelection());
    const sal_Bool bCopy = (aSel.nStartPara != aSel.nEndPara) ||
                           (aSel.nStartPos != aSel.nEndPos);


    SfxWhichIter aIter(rSet);
    sal_uInt16 nWhich = aIter.FirstWhich();

    while(nWhich)
    {
        switch(nWhich)
        {
            case SID_CUT:
            case SID_COPY:
                if( !bCopy )
                    rSet.DisableItem( nWhich );
                break;

            case SID_PASTE:
                {
                    TransferableDataHelper aDataHelper(
                        TransferableDataHelper::CreateFromSystemClipboard(
                                &GetView().GetEditWin() ) );

                    if( !aDataHelper.GetXTransferable().is() ||
                        !SwTransferable::IsPaste( GetShell(), aDataHelper ))
                        rSet.DisableItem( SID_PASTE );
                }
                break;

            case SID_PASTE_SPECIAL:
                rSet.DisableItem( SID_PASTE_SPECIAL );
                break;
            // #151110#
            case SID_CLIPBOARD_FORMAT_ITEMS:
                rSet.DisableItem( SID_CLIPBOARD_FORMAT_ITEMS );
                break;
        }
        nWhich = aIter.NextWhich();
    }
}

/*--------------------------------------------------------------------
    Beschreibung:   Hyperlink-Status
 --------------------------------------------------------------------*/
void SwDrawTextShell::StateInsert(SfxItemSet &rSet)
{
    if (!IsTextEdit())  // Sonst Absturz!
        return;

    OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
    SfxWhichIter aIter(rSet);
    sal_uInt16 nWhich = aIter.FirstWhich();

    while(nWhich)
    {
        switch(nWhich)
        {
            case SID_HYPERLINK_GETLINK:
                {
                    SvxHyperlinkItem aHLinkItem;
                    aHLinkItem.SetInsertMode(HLINK_FIELD);

                    const SvxFieldItem* pFieldItem = pOLV->GetFieldAtSelection();

                    if (pFieldItem)
                    {
                        const SvxFieldData* pField = pFieldItem->GetField();

                        if (pField->ISA(SvxURLField))
                        {
                            aHLinkItem.SetName(((const SvxURLField*) pField)->GetRepresentation());
                            aHLinkItem.SetURL(((const SvxURLField*) pField)->GetURL());
                            aHLinkItem.SetTargetFrame(((const SvxURLField*) pField)->GetTargetFrame());
                        }
                    }
                    else
                    {
                        String sSel(pOLV->GetSelected());
                        sSel.Erase(255);
                        aHLinkItem.SetName(comphelper::string::stripEnd(sSel, ' '));
                    }

                    sal_uInt16 nHtmlMode = ::GetHtmlMode(GetView().GetDocShell());
                    aHLinkItem.SetInsertMode((SvxLinkInsertMode)(aHLinkItem.GetInsertMode() |
                        ((nHtmlMode & HTMLMODE_ON) != 0 ? HLINK_HTMLMODE : 0)));

                    rSet.Put(aHLinkItem);
                }
                break;
        }
        nWhich = aIter.NextWhich();
    }
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
e519f1abdd4b0e9a'>include/oox/export/shapes.hxx8
-rw-r--r--include/oox/export/utils.hxx4
-rw-r--r--include/oox/export/vmlexport.hxx4
-rw-r--r--include/oox/helper/attributelist.hxx6
-rw-r--r--include/oox/helper/binaryinputstream.hxx4
-rw-r--r--include/oox/helper/binaryoutputstream.hxx4
-rw-r--r--include/oox/helper/binarystreambase.hxx4
-rw-r--r--include/oox/helper/containerhelper.hxx4
-rw-r--r--include/oox/helper/grabbagstack.hxx4
-rw-r--r--include/oox/helper/graphichelper.hxx4
-rw-r--r--include/oox/helper/modelobjecthelper.hxx4
-rw-r--r--include/oox/helper/progressbar.hxx4
-rw-r--r--include/oox/helper/propertymap.hxx4
-rw-r--r--include/oox/helper/propertyset.hxx4
-rw-r--r--include/oox/helper/storagebase.hxx4
-rw-r--r--include/oox/helper/textinputstream.hxx4
-rw-r--r--include/oox/helper/zipstorage.hxx4
-rw-r--r--include/oox/mathml/importutils.hxx6
-rw-r--r--include/oox/ole/axbinaryreader.hxx2
-rw-r--r--include/oox/ole/axcontrol.hxx4
-rw-r--r--include/oox/ole/axcontrolfragment.hxx2
-rw-r--r--include/oox/ole/olehelper.hxx4
-rw-r--r--include/oox/ole/oleobjecthelper.hxx4
-rw-r--r--include/oox/ole/olestorage.hxx4
-rw-r--r--include/oox/ole/vbacontrol.hxx4
-rw-r--r--include/oox/ole/vbaexport.hxx4
-rw-r--r--include/oox/ole/vbamodule.hxx4
-rw-r--r--include/oox/ole/vbaproject.hxx6
-rw-r--r--include/oox/ppt/animationspersist.hxx4
-rw-r--r--include/oox/ppt/backgroundproperties.hxx6
-rw-r--r--include/oox/ppt/comments.hxx4
-rw-r--r--include/oox/ppt/customshowlistcontext.hxx4
-rw-r--r--include/oox/ppt/headerfooter.hxx4
-rw-r--r--include/oox/ppt/layoutfragmenthandler.hxx6
-rw-r--r--include/oox/ppt/pptfilterhelpers.hxx8
-rw-r--r--include/oox/ppt/pptgraphicshapecontext.hxx6
-rw-r--r--include/oox/ppt/pptimport.hxx10
-rw-r--r--include/oox/ppt/pptshape.hxx8
-rw-r--r--include/oox/ppt/pptshapecontext.hxx6
-rw-r--r--include/oox/ppt/pptshapegroupcontext.hxx4
-rw-r--r--include/oox/ppt/pptshapepropertiescontext.hxx4
-rw-r--r--include/oox/ppt/presentationfragmenthandler.hxx6
-rw-r--r--include/oox/ppt/slidefragmenthandler.hxx6
-rw-r--r--include/oox/ppt/slidemastertextstylescontext.hxx4
-rw-r--r--include/oox/ppt/slidepersist.hxx12
-rw-r--r--include/oox/ppt/slidetimingcontext.hxx4
-rw-r--r--include/oox/ppt/slidetransition.hxx8
-rw-r--r--include/oox/ppt/slidetransitioncontext.hxx4
-rw-r--r--include/oox/ppt/soundactioncontext.hxx4
-rw-r--r--include/oox/ppt/timenode.hxx10
-rw-r--r--include/oox/ppt/timenodelistcontext.hxx10
-rw-r--r--include/oox/shape/ShapeFilterBase.hxx4
-rw-r--r--include/oox/vml/vmldrawing.hxx4
-rw-r--r--include/oox/vml/vmldrawingfragment.hxx6
-rw-r--r--include/oox/vml/vmlformatting.hxx4
-rw-r--r--include/oox/vml/vmlinputstream.hxx4
-rw-r--r--include/oox/vml/vmlshape.hxx4
-rw-r--r--include/oox/vml/vmlshapecontainer.hxx4
-rw-r--r--include/oox/vml/vmltextbox.hxx4
-rw-r--r--include/sax/fastattribs.hxx6
-rw-r--r--include/sax/fastparser.hxx10
-rw-r--r--include/sax/fshelper.hxx2
-rw-r--r--include/sax/tools/converter.hxx4
-rw-r--r--include/sfx2/DocumentMetadataAccess.hxx8
-rw-r--r--include/sfx2/Metadatable.hxx4
-rw-r--r--include/sfx2/XmlIdRegistry.hxx4
-rw-r--r--include/sfx2/dinfdlg.hxx4
-rw-r--r--include/sfx2/docinf.hxx4
-rw-r--r--include/sfx2/frmhtmlw.hxx4
-rw-r--r--include/sfx2/linkmgr.hxx4
-rw-r--r--include/sfx2/linksrc.hxx4
-rw-r--r--include/sfx2/lnkbase.hxx4
-rw-r--r--include/sfx2/module.hxx4
-rw-r--r--include/sfx2/objsh.hxx4
-rw-r--r--include/sfx2/sfxbasemodel.hxx4
-rw-r--r--include/sfx2/sidebar/AsynchronousCall.hxx4
-rw-r--r--include/sfx2/sidebar/Context.hxx4
-rw-r--r--include/sfx2/sidebar/ControllerItem.hxx4
-rw-r--r--include/sfx2/sidebar/Deck.hxx4
-rw-r--r--include/sfx2/sidebar/FocusManager.hxx4
-rw-r--r--include/sfx2/sidebar/IContextChangeReceiver.hxx4
-rw-r--r--include/sfx2/sidebar/ILayoutableWindow.hxx4
-rw-r--r--include/sfx2/sidebar/Panel.hxx4
-rw-r--r--include/sfx2/sidebar/ResourceManager.hxx8
-rw-r--r--include/sfx2/sidebar/Sidebar.hxx4
-rw-r--r--include/sfx2/sidebar/SidebarChildWindow.hxx4
-rw-r--r--include/sfx2/sidebar/SidebarController.hxx4
-rw-r--r--include/sfx2/sidebar/SidebarDockingWindow.hxx4
-rw-r--r--include/sfx2/sidebar/SidebarModelUpdate.hxx4
-rw-r--r--include/sfx2/sidebar/SidebarPanelBase.hxx4
-rw-r--r--include/sfx2/sidebar/SidebarToolBox.hxx4
-rw-r--r--include/sfx2/sidebar/TabBar.hxx4
-rw-r--r--include/sfx2/sidebar/Theme.hxx4
-rw-r--r--include/sfx2/templatedlg.hxx4
-rw-r--r--include/sfx2/viewsh.hxx4
-rw-r--r--include/sot/exchange.hxx6
-rw-r--r--include/sot/stg.hxx6
-rw-r--r--include/sot/storage.hxx6
-rw-r--r--include/svl/asiancfg.hxx4
-rw-r--r--include/svl/documentlockfile.hxx4
-rw-r--r--include/svl/ilstitem.hxx2
-rw-r--r--include/svl/instrm.hxx4
-rw-r--r--include/svl/outstrm.hxx4
-rw-r--r--include/svl/ownlist.hxx9
-rw-r--r--include/svl/sharecontrolfile.hxx10
-rw-r--r--include/svl/sigstruct.hxx2
-rw-r--r--include/svl/slstitm.hxx2
-rw-r--r--include/svl/undo.hxx4
-rw-r--r--include/svl/urihelper.hxx4
-rw-r--r--include/svl/zforlist.hxx13
-rw-r--r--include/svl/zformat.hxx2
-rw-r--r--include/svtools/DocumentInfoPreview.hxx4
-rw-r--r--include/svtools/DocumentToGraphicRenderer.hxx4
-rw-r--r--include/svtools/embedhlp.hxx4
-rw-r--r--include/svtools/openfiledroptargetlistener.hxx4
-rw-r--r--include/svtools/parhtml.hxx4
-rw-r--r--include/svtools/restartdialog.hxx4
-rw-r--r--include/svtools/textwindowpeer.hxx4
-rw-r--r--include/svx/AccessibleControlShape.hxx4
-rw-r--r--include/svx/AccessibleOLEShape.hxx4
-rw-r--r--include/svx/AccessibleShape.hxx4
-rw-r--r--include/svx/AccessibleShapeInfo.hxx4
-rw-r--r--include/svx/AccessibleShapeTreeInfo.hxx4
-rw-r--r--include/svx/AccessibleTextHelper.hxx4
-rw-r--r--include/svx/ChildrenManager.hxx4
-rw-r--r--include/svx/SmartTagItem.hxx13
-rw-r--r--include/svx/SmartTagMgr.hxx28
-rw-r--r--include/svx/charmap.hxx4
-rw-r--r--include/svx/charthelper.hxx4
-rw-r--r--include/svx/cube3d.hxx2
-rw-r--r--include/svx/dlgctrl.hxx4
-rw-r--r--include/svx/e3dsceneupdater.hxx4
-rw-r--r--include/svx/fmpage.hxx4
-rw-r--r--include/svx/fmshell.hxx4
-rw-r--r--include/svx/fmview.hxx8
-rw-r--r--include/svx/helperhittest3d.hxx4
-rw-r--r--include/svx/nbdtmg.hxx4
-rw-r--r--include/svx/nbdtmgfact.hxx5
-rw-r--r--include/svx/numvset.hxx4
-rw-r--r--include/svx/obj3d.hxx4
-rw-r--r--include/svx/scene3d.hxx4
-rw-r--r--include/svx/sdr/contact/objectcontact.hxx4
-rw-r--r--include/svx/sdr/contact/viewcontact.hxx4
-rw-r--r--include/svx/sdr/contact/viewcontactofe3dscene.hxx4
-rw-r--r--include/svx/sdr/contact/viewcontactofsdrmediaobj.hxx4
-rw-r--r--include/svx/sdr/contact/viewcontactofsdrobj.hxx4
-rw-r--r--include/svx/sdr/contact/viewcontactofvirtobj.hxx4
-rw-r--r--include/svx/sdr/contact/viewobjectcontact.hxx8
-rw-r--r--include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx4
-rw-r--r--include/svx/sdr/contact/viewobjectcontactredirector.hxx4
-rw-r--r--include/svx/sdr/overlay/overlaymanager.hxx4
-rw-r--r--include/svx/sdr/table/tablecontroller.hxx4
-rw-r--r--include/svx/sdr/table/tabledesign.hxx4
-rw-r--r--include/svx/sdrhittesthelper.hxx4
-rw-r--r--include/svx/sdrpagewindow.hxx2
-rw-r--r--include/svx/sidebar/AreaPropertyPanelBase.hxx4
-rw-r--r--include/svx/sidebar/AreaTransparencyGradientPopup.hxx4
-rw-r--r--include/svx/sidebar/LineWidthPopup.hxx4
-rw-r--r--include/svx/sidebar/SelectionAnalyzer.hxx4
-rw-r--r--include/svx/sidebar/SelectionChangeHandler.hxx4
-rw-r--r--include/svx/sidebar/ValueSetWithTextControl.hxx4
-rw-r--r--include/svx/svdedxv.hxx4
-rw-r--r--include/svx/svdetc.hxx4
-rw-r--r--include/svx/svdhdl.hxx4
-rw-r--r--include/svx/svdocapt.hxx4
-rw-r--r--include/svx/svdocirc.hxx4
-rw-r--r--include/svx/svdoedge.hxx4
-rw-r--r--include/svx/svdomeas.hxx4
-rw-r--r--include/svx/svdomedia.hxx2
-rw-r--r--include/svx/svdoole2.hxx4
-rw-r--r--include/svx/svdorect.hxx4
-rw-r--r--include/svx/svdotable.hxx8
-rw-r--r--include/svx/svdotext.hxx20
-rw-r--r--include/svx/svdouno.hxx4
-rw-r--r--include/svx/svdpage.hxx2
-rw-r--r--include/svx/svdpntv.hxx10
-rw-r--r--include/svx/svdtext.hxx4
-rw-r--r--include/svx/svdview.hxx2
-rw-r--r--include/svx/svxdlg.hxx5
-rw-r--r--include/svx/unoshtxt.hxx4
-rw-r--r--include/toolkit/awt/vclxaccessiblecomponent.hxx2
-rw-r--r--include/toolkit/awt/vclxfont.hxx2
-rw-r--r--include/toolkit/awt/vclxtopwindow.hxx2
-rw-r--r--include/toolkit/awt/vclxwindow.hxx2
-rw-r--r--include/toolkit/controls/unocontrolmodel.hxx2
-rw-r--r--include/toolkit/controls/unocontrols.hxx4
-rw-r--r--include/toolkit/helper/accessiblefactory.hxx4
-rw-r--r--include/toolkit/helper/formpdfexport.hxx4
-rw-r--r--include/toolkit/helper/vclunohelper.hxx10
-rw-r--r--include/tools/color.hxx4
-rw-r--r--include/tools/date.hxx2
-rw-r--r--include/tools/gen.hxx4
-rw-r--r--include/tools/link.hxx4
-rw-r--r--include/tools/time.hxx2
-rw-r--r--include/tools/urlobj.hxx6
-rw-r--r--include/ucbhelper/cancelcommandexecution.hxx4
-rw-r--r--include/ucbhelper/content.hxx22
-rw-r--r--include/ucbhelper/contenthelper.hxx10
-rw-r--r--include/ucbhelper/getcomponentcontext.hxx4
-rw-r--r--include/ucbhelper/propertyvalueset.hxx10
-rw-r--r--include/ucbhelper/providerhelper.hxx6
-rw-r--r--include/ucbhelper/proxydecider.hxx4
-rw-r--r--include/ucbhelper/registerucb.hxx7
-rw-r--r--include/ucbhelper/resultset.hxx4
-rw-r--r--include/ucbhelper/resultsethelper.hxx2
-rw-r--r--include/ucbhelper/resultsetmetadata.hxx4
-rw-r--r--include/ucbhelper/simpleauthenticationrequest.hxx4
-rw-r--r--include/ucbhelper/simplecertificatevalidationrequest.hxx4
-rw-r--r--include/unotest/officeconnection.hxx4
-rw-r--r--include/unotools/ZipPackageHelper.hxx6
-rw-r--r--include/unotools/calendarwrapper.hxx16
-rw-r--r--include/unotools/charclass.hxx9
-rw-r--r--include/unotools/closeveto.hxx2
-rw-r--r--include/unotools/cmdoptions.hxx4
-rw-r--r--include/unotools/collatorwrapper.hxx8
-rw-r--r--include/unotools/compatibility.hxx2
-rw-r--r--include/unotools/configitem.hxx4
-rw-r--r--include/unotools/configmgr.hxx6
-rw-r--r--include/unotools/confignode.hxx14
-rw-r--r--include/unotools/configvaluecontainer.hxx4
-rw-r--r--include/unotools/datetime.hxx6
-rw-r--r--include/unotools/dynamicmenuoptions.hxx2
-rw-r--r--include/unotools/eventlisteneradapter.hxx4
-rw-r--r--include/unotools/fontcfg.hxx4
-rw-r--r--include/unotools/historyoptions.hxx2
-rw-r--r--include/unotools/intlwrapper.hxx2
-rw-r--r--include/unotools/lingucfg.hxx4
-rw-r--r--include/unotools/localedatawrapper.hxx17
-rw-r--r--include/unotools/mediadescriptor.hxx4
-rw-r--r--include/unotools/moduleoptions.hxx4
-rw-r--r--include/unotools/nativenumberwrapper.hxx9
-rw-r--r--include/unotools/sharedunocomponent.hxx4
-rw-r--r--include/unotools/textsearch.hxx4
-rw-r--r--include/unotools/transliterationwrapper.hxx11
-rw-r--r--include/unotools/ucbhelper.hxx8
-rw-r--r--include/unotools/viewoptions.hxx2
-rw-r--r--include/vbahelper/vbaapplicationbase.hxx4
-rw-r--r--include/vbahelper/vbacollectionimpl.hxx8
-rw-r--r--include/vbahelper/vbadialogbase.hxx8
-rw-r--r--include/vbahelper/vbadialogsbase.hxx8
-rw-r--r--include/vbahelper/vbadocumentbase.hxx8
-rw-r--r--include/vbahelper/vbadocumentsbase.hxx8
-rw-r--r--include/vbahelper/vbaeventshelperbase.hxx6
-rw-r--r--include/vbahelper/vbafontbase.hxx8
-rw-r--r--include/vbahelper/vbaglobalbase.hxx8
-rw-r--r--include/vbahelper/vbahelper.hxx4
-rw-r--r--include/vbahelper/vbapagesetupbase.hxx8
-rw-r--r--include/vbahelper/vbashape.hxx8
-rw-r--r--include/vbahelper/vbashaperange.hxx8
-rw-r--r--include/vbahelper/vbashapes.hxx8
-rw-r--r--include/vbahelper/vbatextframe.hxx8
-rw-r--r--include/vbahelper/vbawindowbase.hxx8
-rw-r--r--include/vcl/BitmapTools.hxx7
-rw-r--r--include/vcl/FilterConfigItem.hxx8
-rw-r--r--include/vcl/GraphicObject.hxx2
-rw-r--r--include/vcl/ITiledRenderable.hxx2
-rw-r--r--include/vcl/ImageTree.hxx6
-rw-r--r--include/vcl/abstdlg.hxx4
-rw-r--r--include/vcl/accessiblefactory.hxx4
-rw-r--r--include/vcl/accessibletable.hxx7
-rw-r--r--include/vcl/accessibletableprovider.hxx2
-rw-r--r--include/vcl/bitmapex.hxx6
-rw-r--r--include/vcl/builder.hxx2
-rw-r--r--include/vcl/button.hxx2
-rw-r--r--include/vcl/canvastools.hxx10
-rw-r--r--include/vcl/commandinfoprovider.hxx11
-rw-r--r--include/vcl/embeddedfontshelper.hxx4
-rw-r--r--include/vcl/field.hxx2
-rw-r--r--include/vcl/graph.hxx2
-rw-r--r--include/vcl/graphicfilter.hxx4
-rw-r--r--include/vcl/menu.hxx7
-rw-r--r--include/vcl/mnemonic.hxx2
-rw-r--r--include/vcl/notebookbar.hxx2
-rw-r--r--include/vcl/outdev.hxx4
-rw-r--r--include/vcl/pdfwriter.hxx6
-rw-r--r--include/vcl/pngwrite.hxx4
-rw-r--r--include/vcl/textview.hxx7
-rw-r--r--include/vcl/toolbox.hxx4
-rw-r--r--include/vcl/transfer.hxx6
-rw-r--r--include/vcl/uitest/uitest.hxx6
-rw-r--r--include/vcl/unohelp2.hxx8
-rw-r--r--include/vcl/vclevent.hxx8
-rw-r--r--include/vcl/vclptr.hxx4
-rw-r--r--include/vcl/vectorgraphicdata.hxx2
-rw-r--r--include/vcl/window.hxx46
-rw-r--r--include/vcl/wmfexternal.hxx2
-rw-r--r--include/vcl/wrkwin.hxx2
-rw-r--r--include/xmloff/DashStyle.hxx6
-rw-r--r--include/xmloff/GradientStyle.hxx6
-rw-r--r--include/xmloff/HatchStyle.hxx6
-rw-r--r--include/xmloff/ImageStyle.hxx6
-rw-r--r--include/xmloff/MarkerStyle.hxx6
-rw-r--r--include/xmloff/SchXMLImportHelper.hxx8
-rw-r--r--include/xmloff/SchXMLSeriesHelper.hxx8
-rw-r--r--include/xmloff/SettingsExportHelper.hxx10
-rw-r--r--include/xmloff/SinglePropertySetInfoCache.hxx4
-rw-r--r--include/xmloff/XMLBase64ImportContext.hxx6
-rw-r--r--include/xmloff/XMLCharContext.hxx2
-rw-r--r--include/xmloff/XMLEventExport.hxx8
-rw-r--r--include/xmloff/XMLEventsImportContext.hxx8
-rw-r--r--include/xmloff/XMLPageExport.hxx4
-rw-r--r--include/xmloff/XMLSettingsExportContext.hxx2
-rw-r--r--include/xmloff/XMLTextListAutoStylePool.hxx5
-rw-r--r--include/xmloff/XMLTextMasterPageContext.hxx4
-rw-r--r--include/xmloff/XMLTextMasterPageExport.hxx4
-rw-r--r--include/xmloff/animationexport.hxx6
-rw-r--r--include/xmloff/animexp.hxx4
-rw-r--r--include/xmloff/formlayerexport.hxx10
-rw-r--r--include/xmloff/formlayerimport.hxx6
-rw-r--r--include/xmloff/numehelp.hxx4
-rw-r--r--include/xmloff/prstylei.hxx6
-rw-r--r--include/xmloff/settingsstore.hxx6
-rw-r--r--include/xmloff/shapeexport.hxx8
-rw-r--r--include/xmloff/shapeimport.hxx10
-rw-r--r--include/xmloff/styleexp.hxx6
-rw-r--r--include/xmloff/txtimp.hxx6
-rw-r--r--include/xmloff/txtparae.hxx4
-rw-r--r--include/xmloff/xformsexport.hxx4
-rw-r--r--include/xmloff/xformsimport.hxx4
-rw-r--r--include/xmloff/xmlaustp.hxx10
-rw-r--r--include/xmloff/xmlerror.hxx6
-rw-r--r--include/xmloff/xmlevent.hxx10
-rw-r--r--include/xmloff/xmlexp.hxx30
-rw-r--r--include/xmloff/xmlexppr.hxx4
-rw-r--r--include/xmloff/xmlictxt.hxx2
-rw-r--r--include/xmloff/xmlimp.hxx28
-rw-r--r--include/xmloff/xmlimppr.hxx18
-rw-r--r--include/xmloff/xmlmetae.hxx4
-rw-r--r--include/xmloff/xmlmetai.hxx6
-rw-r--r--include/xmloff/xmlnume.hxx8
-rw-r--r--include/xmloff/xmlnumfe.hxx6
-rw-r--r--include/xmloff/xmlnumfi.hxx6
-rw-r--r--include/xmloff/xmlnumi.hxx4
-rw-r--r--include/xmloff/xmlprhdl.hxx2
-rw-r--r--include/xmloff/xmlscripti.hxx4
-rw-r--r--include/xmloff/xmlstyle.hxx4
-rw-r--r--include/xmloff/xmltoken.hxx4
-rw-r--r--include/xmloff/xmluconv.hxx18
-rw-r--r--include/xmlscript/xml_helper.hxx6
-rw-r--r--include/xmlscript/xmldlg_imexp.hxx14
-rw-r--r--include/xmlscript/xmllib_imexp.hxx4
-rw-r--r--include/xmlscript/xmlmod_imexp.hxx4
-rw-r--r--sfx2/inc/sidebar/ControlFactory.hxx4
-rw-r--r--sfx2/inc/sidebar/UnoSidebar.hxx2
486 files changed, 1268 insertions, 1354 deletions
diff --git a/include/basegfx/polygon/b2dpolypolygontools.hxx b/include/basegfx/polygon/b2dpolypolygontools.hxx
index d52cbc5decad..3bf21ada8c59 100644
--- a/include/basegfx/polygon/b2dpolypolygontools.hxx
+++ b/include/basegfx/polygon/b2dpolypolygontools.hxx
@@ -28,7 +28,7 @@
#include <basegfx/basegfxdllapi.h>
-namespace com { namespace sun { namespace star { namespace drawing { struct PolyPolygonBezierCoords; } } } }
+namespace com::sun::star::drawing { struct PolyPolygonBezierCoords; }
namespace basegfx
{
diff --git a/include/basegfx/polygon/b3dpolypolygontools.hxx b/include/basegfx/polygon/b3dpolypolygontools.hxx
index fbaf07e70581..3111c9df50a0 100644
--- a/include/basegfx/polygon/b3dpolypolygontools.hxx
+++ b/include/basegfx/polygon/b3dpolypolygontools.hxx
@@ -25,7 +25,7 @@
#include <basegfx/basegfxdllapi.h>
-namespace com { namespace sun { namespace star { namespace drawing { struct PolyPolygonShape3D; } } } }
+namespace com::sun::star::drawing { struct PolyPolygonShape3D; }
namespace basegfx
{
diff --git a/include/basegfx/utils/canvastools.hxx b/include/basegfx/utils/canvastools.hxx
index fa2ad145c154..794074da0fdb 100644
--- a/include/basegfx/utils/canvastools.hxx
+++ b/include/basegfx/utils/canvastools.hxx
@@ -25,7 +25,7 @@
#include <basegfx/basegfxdllapi.h>
-namespace com { namespace sun { namespace star { namespace geometry
+namespace com::sun::star::geometry
{
struct AffineMatrix2D;
struct AffineMatrix3D;
@@ -36,18 +36,18 @@ namespace com { namespace sun { namespace star { namespace geometry
struct IntegerSize2D;
struct IntegerRectangle2D;
struct RealBezierSegment2D;
-} } } }
+}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com::sun::star::rendering
{
class XGraphicDevice;
class XPolyPolygon2D;
-} } } }
+}
-namespace com { namespace sun { namespace star { namespace awt
+namespace com::sun::star::awt
{
struct Rectangle;
-} } } }
+}
namespace basegfx
{
diff --git a/include/basegfx/utils/keystoplerp.hxx b/include/basegfx/utils/keystoplerp.hxx
index 551e31bcf65a..b35c46e638f1 100644
--- a/include/basegfx/utils/keystoplerp.hxx
+++ b/include/basegfx/utils/keystoplerp.hxx
@@ -23,9 +23,9 @@
#include <vector>
#include <basegfx/basegfxdllapi.h>
-namespace com{ namespace sun{ namespace star{ namespace uno {
+namespace com::sun::star::uno {
template<typename T> class Sequence;
-}}}}
+}
namespace basegfx
{
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx
index 10f734cfebe3..56e230f4d5a6 100644
--- a/include/canvas/canvastools.hxx
+++ b/include/canvas/canvastools.hxx
@@ -43,15 +43,15 @@ namespace basegfx
class B2DPolyPolygon;
}
-namespace com { namespace sun { namespace star { namespace geometry
+namespace com::sun::star::geometry
{
struct RealSize2D;
struct IntegerSize2D;
struct AffineMatrix2D;
struct Matrix2D;
-} } } }
+}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com::sun::star::rendering
{
struct RenderState;
struct ViewState;
@@ -59,17 +59,17 @@ namespace com { namespace sun { namespace star { namespace rendering
class XCanvas;
struct Texture;
class XIntegerBitmapColorSpace;
-} } } }
+}
-namespace com { namespace sun { namespace star { namespace awt
+namespace com::sun::star::awt
{
struct Rectangle;
class XWindow2;
-} } } }
+}
-namespace com { namespace sun { namespace star { namespace beans {
+namespace com::sun::star::beans {
struct PropertyValue;
-} } } }
+}
class Color;
class OutputDevice;
diff --git a/include/codemaker/commoncpp.hxx b/include/codemaker/commoncpp.hxx
index 29e2c9dfc2e1..b7586e872426 100644
--- a/include/codemaker/commoncpp.hxx
+++ b/include/codemaker/commoncpp.hxx
@@ -29,7 +29,7 @@ namespace rtl {
class OUString;
}
-namespace codemaker { namespace cpp {
+namespace codemaker::cpp {
/** Stick a namespace scope to c++ type
@@ -55,7 +55,7 @@ rtl::OString translateUnoToCppIdentifier(
IdentifierTranslationMode transmode = IdentifierTranslationMode::Global,
rtl::OString const * forbidden = nullptr);
-} }
+}
#endif // INCLUDED_CODEMAKER_COMMONCPP_HXX
diff --git a/include/codemaker/commonjava.hxx b/include/codemaker/commonjava.hxx
index d34540f19734..11e1446bf64a 100644
--- a/include/codemaker/commonjava.hxx
+++ b/include/codemaker/commonjava.hxx
@@ -26,7 +26,7 @@
namespace rtl { class OString; }
-namespace codemaker { namespace java {
+namespace codemaker::java {
rtl::OString translateUnoToJavaType(
codemaker::UnoType::Sort sort, rtl::OString const & nucleus,
@@ -35,7 +35,7 @@ rtl::OString translateUnoToJavaType(
rtl::OString translateUnoToJavaIdentifier(
rtl::OString const & identifier, rtl::OString const & prefix);
-} }
+}
#endif // INCLUDED_CODEMAKER_COMMONJAVA_HXX
diff --git a/include/comphelper/SelectionMultiplex.hxx b/include/comphelper/SelectionMultiplex.hxx
index 8ac2cecf407a..46b892c37525 100644
--- a/include/comphelper/SelectionMultiplex.hxx
+++ b/include/comphelper/SelectionMultiplex.hxx
@@ -25,7 +25,7 @@
#include <cppuhelper/implbase.hxx>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace view { class XSelectionSupplier; } } } }
+namespace com::sun::star::view { class XSelectionSupplier; }
//= selection helper classes
diff --git a/include/comphelper/accessibleeventnotifier.hxx b/include/comphelper/accessibleeventnotifier.hxx
index 90df00caabb4..75828cda6319 100644
--- a/include/comphelper/accessibleeventnotifier.hxx
+++ b/include/comphelper/accessibleeventnotifier.hxx
@@ -22,10 +22,10 @@
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
-namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } }
-namespace com { namespace sun { namespace star { namespace accessibility { class XAccessibleEventListener; } } } }
-namespace com { namespace sun { namespace star { namespace accessibility { struct AccessibleEventObject; } } } }
+namespace com::sun::star::uno { class XInterface; }
+namespace com::sun::star::uno { template <class interface_type> class Reference; }
+namespace com::sun::star::accessibility { class XAccessibleEventListener; }
+namespace com::sun::star::accessibility { struct AccessibleEventObject; }
namespace comphelper {
diff --git a/include/comphelper/accessibletexthelper.hxx b/include/comphelper/accessibletexthelper.hxx
index 04de7c7d87e9..576cc89cf4ee 100644
--- a/include/comphelper/accessibletexthelper.hxx
+++ b/include/comphelper/accessibletexthelper.hxx
@@ -26,9 +26,9 @@
#include <cppuhelper/implbase1.hxx>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace i18n { class XBreakIterator; } } } }
-namespace com { namespace sun { namespace star { namespace i18n { class XCharacterClassification; } } } }
-namespace com { namespace sun { namespace star { namespace i18n { struct Boundary; } } } }
+namespace com::sun::star::i18n { class XBreakIterator; }
+namespace com::sun::star::i18n { class XCharacterClassification; }
+namespace com::sun::star::i18n { struct Boundary; }
namespace comphelper
{
diff --git a/include/comphelper/accessiblewrapper.hxx b/include/comphelper/accessiblewrapper.hxx
index 2772084476bc..dd7da31a0c46 100644
--- a/include/comphelper/accessiblewrapper.hxx
+++ b/include/comphelper/accessiblewrapper.hxx
@@ -40,7 +40,7 @@
#include <comphelper/comphelperdllapi.h>
#include <rtl/ref.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::uno { class XComponentContext; }
namespace comphelper
{
diff --git a/include/comphelper/anytostring.hxx b/include/comphelper/anytostring.hxx
index e5a0e4ab2eb0..21afda1a6cd1 100644
--- a/include/comphelper/anytostring.hxx
+++ b/include/comphelper/anytostring.hxx
@@ -23,7 +23,7 @@
#include <rtl/ustring.hxx>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
+namespace com::sun::star::uno { class Any; }
namespace comphelper
{
diff --git a/include/comphelper/base64.hxx b/include/comphelper/base64.hxx
index 763312caaa78..d962aabacda0 100644
--- a/include/comphelper/base64.hxx
+++ b/include/comphelper/base64.hxx
@@ -26,7 +26,7 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/strbuf.hxx>
-namespace com { namespace sun { namespace star { namespace uno { template <class E> class Sequence; } } } }
+namespace com::sun::star::uno { template <class E> class Sequence; }
namespace comphelper {
diff --git a/include/comphelper/basicio.hxx b/include/comphelper/basicio.hxx
index cd54f37a569b..96e185d78838 100644
--- a/include/comphelper/basicio.hxx
+++ b/include/comphelper/basicio.hxx
@@ -24,7 +24,7 @@
#include <com/sun/star/io/XObjectInputStream.hpp>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace awt { struct FontDescriptor; } } } }
+namespace com::sun::star::awt { struct FontDescriptor; }
namespace comphelper
{
diff --git a/include/comphelper/configuration.hxx b/include/comphelper/configuration.hxx
index de65a7ad3f1e..e56951281f9e 100644
--- a/include/comphelper/configuration.hxx
+++ b/include/comphelper/configuration.hxx
@@ -20,7 +20,7 @@
#include <sal/types.h>
#include <memory>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace configuration { class XReadWriteAccess; }
namespace container {
class XHierarchicalNameAccess;
@@ -29,7 +29,7 @@ namespace com { namespace sun { namespace star {
class XNameContainer;
}
namespace uno { class XComponentContext; }
-} } }
+}
namespace comphelper {
diff --git a/include/comphelper/configurationhelper.hxx b/include/comphelper/configurationhelper.hxx
index e09a3a985882..162319316df6 100644
--- a/include/comphelper/configurationhelper.hxx
+++ b/include/comphelper/configurationhelper.hxx
@@ -26,8 +26,8 @@
#include <comphelper/comphelperdllapi.h>
#include <o3tl/typed_flags_set.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace com::sun::star::uno { class XInterface; }
namespace comphelper
{
diff --git a/include/comphelper/configurationlistener.hxx b/include/comphelper/configurationlistener.hxx
index 4897323b8b9e..29a2b578b588 100644
--- a/include/comphelper/configurationlistener.hxx
+++ b/include/comphelper/configurationlistener.hxx
@@ -19,8 +19,8 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/configurationhelper.hxx>
-namespace com { namespace sun { namespace star { namespace beans { struct PropertyChangeEvent; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::beans { struct PropertyChangeEvent; }
+namespace com::sun::star::uno { class XComponentContext; }
namespace comphelper {
diff --git a/include/comphelper/dispatchcommand.hxx b/include/comphelper/dispatchcommand.hxx
index f0b67eda70eb..384536952789 100644
--- a/include/comphelper/dispatchcommand.hxx
+++ b/include/comphelper/dispatchcommand.hxx
@@ -14,9 +14,9 @@
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Reference.hxx>
-namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
-namespace com { namespace sun { namespace star { namespace frame { class XDispatchResultListener; class XFrame; } } } }
-namespace com { namespace sun { namespace star { namespace uno { template <typename > class Sequence; } } } }
+namespace com::sun::star::beans { struct PropertyValue; }
+namespace com::sun::star::frame { class XDispatchResultListener; class XFrame; }
+namespace com::sun::star::uno { template <typename > class Sequence; }
namespace comphelper
{
diff --git a/include/comphelper/docpasswordhelper.hxx b/include/comphelper/docpasswordhelper.hxx
index b45d584c9c7a..7505e3bdf2c4 100644
--- a/include/comphelper/docpasswordhelper.hxx
+++ b/include/comphelper/docpasswordhelper.hxx
@@ -25,9 +25,9 @@
#include <comphelper/docpasswordrequest.hxx>
#include <comphelper/hash.hxx>
-namespace com { namespace sun { namespace star { namespace task { class XInteractionHandler; } } } }
-namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
-namespace com { namespace sun { namespace star { namespace beans { struct NamedValue; } } } }
+namespace com::sun::star::task { class XInteractionHandler; }
+namespace com::sun::star::beans { struct PropertyValue; }
+namespace com::sun::star::beans { struct NamedValue; }
namespace comphelper {
diff --git a/include/comphelper/docpasswordrequest.hxx b/include/comphelper/docpasswordrequest.hxx
index 4f1d034e2eb6..a4e8704eb5e4 100644
--- a/include/comphelper/docpasswordrequest.hxx
+++ b/include/comphelper/docpasswordrequest.hxx
@@ -26,7 +26,7 @@
#include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx>
-namespace com { namespace sun { namespace star { namespace task { class XInteractionAbort; } } } }
+namespace com::sun::star::task { class XInteractionAbort; }
namespace comphelper {
diff --git a/include/comphelper/documentinfo.hxx b/include/comphelper/documentinfo.hxx
index a195722b9169..a7002120a4bf 100644
--- a/include/comphelper/documentinfo.hxx
+++ b/include/comphelper/documentinfo.hxx
@@ -23,8 +23,8 @@
#include <comphelper/comphelperdllapi.h>
#include <rtl/ustring.hxx>
-namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } }
-namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } }
+namespace com::sun::star::frame { class XModel; }
+namespace com::sun::star::uno { template <class interface_type> class Reference; }
namespace comphelper {
diff --git a/include/comphelper/embeddedobjectcontainer.hxx b/include/comphelper/embeddedobjectcontainer.hxx
index 93f7327b5435..130a6a1ad031 100644
--- a/include/comphelper/embeddedobjectcontainer.hxx
+++ b/include/comphelper/embeddedobjectcontainer.hxx
@@ -26,12 +26,12 @@
#include <rtl/ustring.hxx>
#include <memory>
-namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
-namespace com { namespace sun { namespace star { namespace embed { class XEmbeddedObject; } } } }
-namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
-namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
-namespace com { namespace sun { namespace star { namespace task { class XInteractionHandler; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
+namespace com::sun::star::beans { struct PropertyValue; }
+namespace com::sun::star::embed { class XEmbeddedObject; }
+namespace com::sun::star::embed { class XStorage; }
+namespace com::sun::star::io { class XInputStream; }
+namespace com::sun::star::task { class XInteractionHandler; }
+namespace com::sun::star::uno { class XInterface; }
namespace comphelper
{
diff --git a/include/comphelper/eventattachermgr.hxx b/include/comphelper/eventattachermgr.hxx
index 22323514aace..4a2a99909459 100644
--- a/include/comphelper/eventattachermgr.hxx
+++ b/include/comphelper/eventattachermgr.hxx
@@ -23,14 +23,14 @@
#include <com/sun/star/uno/Reference.h>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace uno {
class XComponentContext;
}
namespace script {
class XEventAttacherManager;
}
-} } }
+}
namespace comphelper
diff --git a/include/comphelper/genericpropertyset.hxx b/include/comphelper/genericpropertyset.hxx
index 527b7d8e4960..8f61ac14befb 100644
--- a/include/comphelper/genericpropertyset.hxx
+++ b/include/comphelper/genericpropertyset.hxx
@@ -23,7 +23,7 @@
#include <com/sun/star/uno/Reference.h>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
+namespace com::sun::star::beans { class XPropertySet; }
namespace comphelper { class PropertySetInfo; }
namespace comphelper
diff --git a/include/comphelper/getexpandeduri.hxx b/include/comphelper/getexpandeduri.hxx
index ab73a5ff8596..90eb101b7b2c 100644
--- a/include/comphelper/getexpandeduri.hxx
+++ b/include/comphelper/getexpandeduri.hxx
@@ -15,11 +15,8 @@
#include <comphelper/comphelperdllapi.h>
#include <rtl/ustring.hxx>
-namespace com { namespace sun { namespace star { namespace uno {
- class XComponentContext;
-} } } }
-
-namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace com::sun::star::uno { template <typename > class Reference; }
namespace comphelper {
diff --git a/include/comphelper/interfacecontainer2.hxx b/include/comphelper/interfacecontainer2.hxx
index 63888008d3ea..c049a6c6726e 100644
--- a/include/comphelper/interfacecontainer2.hxx
+++ b/include/comphelper/interfacecontainer2.hxx
@@ -28,7 +28,7 @@
#include <com/sun/star/lang/DisposedException.hpp>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
+namespace com::sun::star::uno { class XInterface; }
namespace osl { class Mutex; }
/** */ //for docpp
diff --git a/include/comphelper/listenernotification.hxx b/include/comphelper/listenernotification.hxx
index ba52983f86af..688571304938 100644
--- a/include/comphelper/listenernotification.hxx
+++ b/include/comphelper/listenernotification.hxx
@@ -27,7 +27,7 @@
#include <memory>
-namespace com { namespace sun { namespace star { namespace lang { class XEventListener; } } } }
+namespace com::sun::star::lang { class XEventListener; }
namespace comphelper
{
diff --git a/include/comphelper/logging.hxx b/include/comphelper/logging.hxx
index d7bd806c8f84..f0a599765b80 100644
--- a/include/comphelper/logging.hxx
+++ b/include/comphelper/logging.hxx
@@ -38,7 +38,7 @@ namespace comphelper
//= EventLogger
- namespace log { namespace convert
+ namespace log::convert
{
inline const OUString& convertLogArgToString( const OUString& _rValue )
{
@@ -59,7 +59,7 @@ namespace comphelper
inline OUString convertLogArgToString( bool _bValue ) { return OUString::boolean( _bValue ); }
void convertLogArgToString(sal_Bool) = delete;
- } } // namespace log::convert
+ } // namespace log::convert
//= EventLogger
diff --git a/include/comphelper/mimeconfighelper.hxx b/include/comphelper/mimeconfighelper.hxx
index c9b38452ad81..f7472dfd2918 100644
--- a/include/comphelper/mimeconfighelper.hxx
+++ b/include/comphelper/mimeconfighelper.hxx
@@ -23,13 +23,13 @@
#include <com/sun/star/uno/Reference.hxx>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace beans { struct NamedValue; } } } }
-namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
-namespace com { namespace sun { namespace star { namespace container { class XContainerQuery; } } } }
-namespace com { namespace sun { namespace star { namespace container { class XNameAccess; } } } }
-namespace com { namespace sun { namespace star { namespace embed { struct VerbDescriptor; } } } }
-namespace com { namespace sun { namespace star { namespace lang { class XMultiServiceFactory; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::beans { struct NamedValue; }
+namespace com::sun::star::beans { struct PropertyValue; }
+namespace com::sun::star::container { class XContainerQuery; }
+namespace com::sun::star::container { class XNameAccess; }
+namespace com::sun::star::embed { struct VerbDescriptor; }
+namespace com::sun::star::lang { class XMultiServiceFactory; }
+namespace com::sun::star::uno { class XComponentContext; }
enum class SfxFilterFlags;
diff --git a/include/comphelper/namecontainer.hxx b/include/comphelper/namecontainer.hxx
index 3df8e1fc3e0b..86553e52ff6c 100644
--- a/include/comphelper/namecontainer.hxx
+++ b/include/comphelper/namecontainer.hxx
@@ -24,7 +24,7 @@
#include <com/sun/star/uno/Reference.h>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace container { class XNameContainer; } } } }
+namespace com::sun::star::container { class XNameContainer; }
namespace comphelper
{
diff --git a/include/comphelper/numberedcollection.hxx b/include/comphelper/numberedcollection.hxx
index f2a9d0b3277a..efb70288f3ba 100644
--- a/include/comphelper/numberedcollection.hxx
+++ b/include/comphelper/numberedcollection.hxx
@@ -32,7 +32,7 @@
#include <unordered_map>
#include <vector>
-namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
+namespace com::sun::star::uno { class XInterface; }
namespace comphelper{
diff --git a/include/comphelper/numbers.hxx b/include/comphelper/numbers.hxx
index 919be8aac187..e486bac0bb3e 100644
--- a/include/comphelper/numbers.hxx
+++ b/include/comphelper/numbers.hxx
@@ -24,8 +24,8 @@
#include <com/sun/star/uno/Reference.h>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace util { class XNumberFormats; } } } }
-namespace com { namespace sun { namespace star { namespace util { class XNumberFormatter; } } } }
+namespace com::sun::star::util { class XNumberFormats; }
+namespace com::sun::star::util { class XNumberFormatter; }
namespace comphelper
{
diff --git a/include/comphelper/ofopxmlhelper.hxx b/include/comphelper/ofopxmlhelper.hxx
index 4679d3fd381c..d4efbf39b4f4 100644
--- a/include/comphelper/ofopxmlhelper.hxx
+++ b/include/comphelper/ofopxmlhelper.hxx
@@ -24,11 +24,11 @@
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace beans { struct StringPair; } } } }
-namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
-namespace com { namespace sun { namespace star { namespace io { class XOutputStream; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } }
+namespace com::sun::star::beans { struct StringPair; }
+namespace com::sun::star::io { class XInputStream; }
+namespace com::sun::star::io { class XOutputStream; }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace com::sun::star::uno { template <class interface_type> class Reference; }
namespace comphelper
{
diff --git a/include/comphelper/processfactory.hxx b/include/comphelper/processfactory.hxx
index 33b72f51cbed..0f74e5b1365d 100644
--- a/include/comphelper/processfactory.hxx
+++ b/include/comphelper/processfactory.hxx
@@ -23,11 +23,10 @@
#include <com/sun/star/uno/Reference.hxx>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace lang {
+namespace com::sun::star::lang {
class XMultiServiceFactory;
-} } } }
-
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+}
+namespace com::sun::star::uno { class XComponentContext; }
namespace comphelper
{
diff --git a/include/comphelper/property.hxx b/include/comphelper/property.hxx
index 1a7f86591fe4..b9787f1308bc 100644
--- a/include/comphelper/property.hxx
+++ b/include/comphelper/property.hxx
@@ -26,7 +26,7 @@
#include <type_traits>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
+namespace com::sun::star::beans { class XPropertySet; }
namespace comphelper
{
diff --git a/include/comphelper/propertycontainer.hxx b/include/comphelper/propertycontainer.hxx
index 63c464f49e9d..2c64b2cdfedf 100644
--- a/include/comphelper/propertycontainer.hxx
+++ b/include/comphelper/propertycontainer.hxx
@@ -25,8 +25,8 @@
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
+namespace com::sun::star::uno { class Any; }
+namespace com::sun::star::uno { class Type; }
namespace comphelper
{
diff --git a/include/comphelper/propmultiplex.hxx b/include/comphelper/propmultiplex.hxx
index 4407e39528ad..38a1ee73056a 100644
--- a/include/comphelper/propmultiplex.hxx
+++ b/include/comphelper/propmultiplex.hxx
@@ -26,9 +26,7 @@
#include <rtl/ref.hxx>
#include <vector>
-namespace com { namespace sun { namespace star { namespace beans {
- class XPropertySet;
-} } } }
+namespace com::sun::star::beans { class XPropertySet; }
//= property helper classes
diff --git a/include/comphelper/proxyaggregation.hxx b/include/comphelper/proxyaggregation.hxx
index 2bd2b47708e8..48444355ce23 100644
--- a/include/comphelper/proxyaggregation.hxx
+++ b/include/comphelper/proxyaggregation.hxx
@@ -27,11 +27,11 @@
#include <cppuhelper/compbase_ex.hxx>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace uno {
+namespace com::sun::star::uno {
class XComponentContext;
-} } } }
-namespace com { namespace sun { namespace star { namespace uno { class XAggregation; } } } }
-namespace com { namespace sun { namespace star { namespace lang { class XComponent; } } } }
+}
+namespace com::sun::star::uno { class XAggregation; }
+namespace com::sun::star::lang { class XComponent; }
/* class hierarchy herein:
diff --git a/include/comphelper/sequenceashashmap.hxx b/include/comphelper/sequenceashashmap.hxx
index 8e0d07c524aa..d6bcd77f0d1a 100644
--- a/include/comphelper/sequenceashashmap.hxx
+++ b/include/comphelper/sequenceashashmap.hxx
@@ -25,8 +25,8 @@
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace beans { struct NamedValue; } } } }
-namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
+namespace com::sun::star::beans { struct NamedValue; }
+namespace com::sun::star::beans { struct PropertyValue; }
namespace comphelper{
diff --git a/include/comphelper/simplefileaccessinteraction.hxx b/include/comphelper/simplefileaccessinteraction.hxx
index 503b70e99c3d..e9295d4d7e83 100644
--- a/include/comphelper/simplefileaccessinteraction.hxx
+++ b/include/comphelper/simplefileaccessinteraction.hxx
@@ -14,8 +14,8 @@
#include <ucbhelper/interceptedinteraction.hxx>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace task { class XInteractionHandler; } } } }
-namespace com { namespace sun { namespace star { namespace task { class XInteractionRequest; } } } }
+namespace com::sun::star::task { class XInteractionHandler; }
+namespace com::sun::star::task { class XInteractionRequest; }
namespace comphelper {
/** An interaction handler wrapper for simple file access.
diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx
index e84f9d405dae..3b5a991eb4e3 100644
--- a/include/comphelper/stl_types.hxx
+++ b/include/comphelper/stl_types.hxx
@@ -26,7 +26,7 @@
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
-namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } }
+namespace com::sun::star::uno { template <typename > class Reference; }
namespace comphelper
{
diff --git a/include/comphelper/storagehelper.hxx b/include/comphelper/storagehelper.hxx
index 2ebec23e1eb7..a4bd3605c296 100644
--- a/include/comphelper/storagehelper.hxx
+++ b/include/comphelper/storagehelper.hxx
@@ -34,7 +34,7 @@
#define PACKAGE_ENCRYPTIONDATA_SHA1MS1252 "PackageSHA1MS1252EncryptionKey"
#define PACKAGE_ENCRYPTIONDATA_SHA1CORRECT "PackageSHA1CorrectEncryptionKey"
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct NamedValue; }
namespace embed { class XStorage; }
namespace io {
@@ -44,7 +44,7 @@ namespace com { namespace sun { namespace star {
}
namespace lang { class XSingleServiceFactory; }
namespace uno { class XComponentContext; }
-} } }
+}
namespace comphelper {
diff --git a/include/comphelper/streamsection.hxx b/include/comphelper/streamsection.hxx
index 5de717824705..c4f945966ab5 100644
--- a/include/comphelper/streamsection.hxx
+++ b/include/comphelper/streamsection.hxx
@@ -24,9 +24,9 @@
#include <com/sun/star/uno/Reference.h>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace io { class XDataInputStream; } } } }
-namespace com { namespace sun { namespace star { namespace io { class XDataOutputStream; } } } }
-namespace com { namespace sun { namespace star { namespace io { class XMarkableStream; } } } }
+namespace com::sun::star::io { class XDataInputStream; }
+namespace com::sun::star::io { class XDataOutputStream; }
+namespace com::sun::star::io { class XMarkableStream; }
namespace comphelper
{
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx
index 3f7ebf958512..1db92036949b 100644
--- a/include/comphelper/string.hxx
+++ b/include/comphelper/string.hxx
@@ -32,13 +32,13 @@
#include <com/sun/star/lang/Locale.hpp>
-namespace com { namespace sun { namespace star { namespace i18n { class XBreakIterator; } } } }
-namespace com { namespace sun { namespace star { namespace i18n { class XCollator; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::i18n { class XBreakIterator; }
+namespace com::sun::star::i18n { class XCollator; }
+namespace com::sun::star::uno { class XComponentContext; }
// OUString helper functions that are not widespread or mature enough to
// go into the stable URE API:
-namespace comphelper { namespace string {
+namespace comphelper::string {
/** Compare an OUString to a single char
@@ -375,7 +375,7 @@ COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const OString &rString);
*/
COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const OUString &rString);
-} }
+}
#endif
diff --git a/include/comphelper/synchronousdispatch.hxx b/include/comphelper/synchronousdispatch.hxx
index 3c2b89b9fbfd..8503b2a431e5 100644
--- a/include/comphelper/synchronousdispatch.hxx
+++ b/include/comphelper/synchronousdispatch.hxx
@@ -25,15 +25,15 @@
#include <com/sun/star/uno/Reference.h>
#include <rtl/ustring.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace uno {
class XInterface; }
namespace lang {
class XComponent; }
-} } }
+}
-namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
-namespace com { namespace sun { namespace star { namespace uno { template <class E> class Sequence; } } } }
+namespace com::sun::star::beans { struct PropertyValue; }
+namespace com::sun::star::uno { template <class E> class Sequence; }
namespace comphelper
diff --git a/include/comphelper/types.hxx b/include/comphelper/types.hxx
index b35fbef5f18f..2cb47f2218bc 100644
--- a/include/comphelper/types.hxx
+++ b/include/comphelper/types.hxx
@@ -25,12 +25,12 @@
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <comphelper/comphelperdllapi.h>
-namespace com { namespace sun { namespace star { namespace awt {
+namespace com::sun::star::awt {
struct FontDescriptor;
-} } } }
+}
-namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
+namespace com::sun::star::uno { class Any; }
+namespace com::sun::star::uno { class XInterface; }
namespace comphelper
diff --git a/include/comphelper/weakeventlistener.hxx b/include/comphelper/weakeventlistener.hxx
index 611744e4796c..dc26966115fc 100644
--- a/include/comphelper/weakeventlistener.hxx
+++ b/include/comphelper/weakeventlistener.hxx
@@ -28,7 +28,7 @@
#include <com/sun/star/lang/XEventListener.hpp>
#include <com/sun/star/lang/XComponent.hpp>
-namespace com { namespace sun { namespace star { namespace uno { class XWeak; } } } }
+namespace com::sun::star::uno { class XWeak; }
namespace comphelper
{
diff --git a/include/connectivity/dbtools.hxx b/include/connectivity/dbtools.hxx
index fdf763dc7a4f..27d965d4b2bb 100644
--- a/include/connectivity/dbtools.hxx
+++ b/include/connectivity/dbtools.hxx
@@ -26,7 +26,7 @@
#include <connectivity/dbtoolsdllapi.hxx>
#include <connectivity/FValue.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace sdb {
class XSingleSelectQueryComposer;
@@ -66,7 +66,7 @@ namespace task {
class XInteractionHandler;
}
-} } }
+}
class SvStream;
diff --git a/include/cppcanvas/bitmap.hxx b/include/cppcanvas/bitmap.hxx
index 0dd3f69f3a84..1b163b82d479 100644
--- a/include/cppcanvas/bitmap.hxx
+++ b/include/cppcanvas/bitmap.hxx
@@ -25,10 +25,10 @@
#include <cppcanvas/bitmapcanvas.hxx>
#include <memory>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com::sun::star::rendering
{
class XBitmap;
-} } } }
+}
/* Definition of Bitmap interface */
diff --git a/include/cppcanvas/canvas.hxx b/include/cppcanvas/canvas.hxx
index ec34af5e0caa..97562ede24fb 100644
--- a/include/cppcanvas/canvas.hxx
+++ b/include/cppcanvas/canvas.hxx
@@ -29,11 +29,11 @@ namespace basegfx
class B2DPolyPolygon;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com::sun::star::rendering
{
class XCanvas;
struct ViewState;
-} } } }
+}
/* Definition of BitmapCanvas */
diff --git a/include/cppcanvas/polypolygon.hxx b/include/cppcanvas/polypolygon.hxx
index 058ea25940d4..917ef4dafb04 100644
--- a/include/cppcanvas/polypolygon.hxx
+++ b/include/cppcanvas/polypolygon.hxx
@@ -25,10 +25,10 @@
#include <cppcanvas/color.hxx>
#include <memory>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com::sun::star::rendering
{
class XPolyPolygon2D;
-} } } }
+}
/* Definition of tools::PolyPolygon interface */
diff --git a/include/cppcanvas/spritecanvas.hxx b/include/cppcanvas/spritecanvas.hxx
index abeef3d2b25f..c4d100dbedb9 100644
--- a/include/cppcanvas/spritecanvas.hxx
+++ b/include/cppcanvas/spritecanvas.hxx
@@ -25,10 +25,10 @@
#include <cppcanvas/customsprite.hxx>
#include <memory>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com::sun::star::rendering
{
class XSpriteCanvas;
-} } } }
+}
/* Definition of SpriteCanvas */
diff --git a/include/cppcanvas/vclfactory.hxx b/include/cppcanvas/vclfactory.hxx
index b36b66a7ad34..73867626d3c0 100644
--- a/include/cppcanvas/vclfactory.hxx
+++ b/include/cppcanvas/vclfactory.hxx
@@ -33,12 +33,12 @@ class BitmapEx;
class GDIMetaFile;
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com::sun::star::rendering
{
class XCanvas;
class XBitmapCanvas;
class XSpriteCanvas;
-} } } }
+}
/* Definition of VCLFactory class */
diff --git a/include/dbaccess/IController.hxx b/include/dbaccess/IController.hxx
index 754667afd4c0..82e8c5603b16 100644
--- a/include/dbaccess/IController.hxx
+++ b/include/dbaccess/IController.hxx
@@ -26,7 +26,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans {
struct PropertyValue;
}
@@ -36,7 +36,7 @@ namespace com { namespace sun { namespace star {
namespace frame {
class XController;
}
-} } }
+}
class NotifyEvent;
diff --git a/include/dbaccess/controllerframe.hxx b/include/dbaccess/controllerframe.hxx
index fd14bb02f92a..97a9c249d43a 100644
--- a/include/dbaccess/controllerframe.hxx
+++ b/include/dbaccess/controllerframe.hxx
@@ -25,9 +25,9 @@
#include <com/sun/star/frame/FrameAction.hpp>
#include <com/sun/star/uno/Reference.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace frame { class XFrame; }
-} } }
+}
namespace dbaui
{
diff --git a/include/dbaccess/dataview.hxx b/include/dbaccess/dataview.hxx
index 738ccc352da1..b599b8c513c5 100644
--- a/include/dbaccess/dataview.hxx
+++ b/include/dbaccess/dataview.hxx
@@ -29,10 +29,10 @@
#include <vcl/vclptr.hxx>
#include <vcl/window.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace frame { class XFrame; }
namespace uno { class XComponentContext; }
-} } }
+}
namespace svt {
class AcceleratorExecute;
diff --git a/include/dbaccess/dbaundomanager.hxx b/include/dbaccess/dbaundomanager.hxx
index b39e36f49783..f6f75c063cc5 100644
--- a/include/dbaccess/dbaundomanager.hxx
+++ b/include/dbaccess/dbaundomanager.hxx
@@ -30,11 +30,11 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace document { class XUndoAction; }
namespace document { class XUndoManagerListener; }
namespace uno { class XInterface; }
-} } }
+}
namespace cppu {
class OWeakObject;
diff --git a/include/dbaccess/dbsubcomponentcontroller.hxx b/include/dbaccess/dbsubcomponentcontroller.hxx
index 01da13c9f8ff..a1bc687ce512 100644
--- a/include/dbaccess/dbsubcomponentcontroller.hxx
+++ b/include/dbaccess/dbsubcomponentcontroller.hxx
@@ -35,7 +35,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { class XPropertySet; }
namespace beans { struct PropertyValue; }
namespace document { class XEmbeddedScripts; }
@@ -45,7 +45,7 @@ namespace com { namespace sun { namespace star {
namespace uno { class XComponentContext; }
namespace util { class XModifyListener; }
namespace util { class XNumberFormatter; }
-} } }
+}
namespace dbtools {
class DatabaseMetaData;
diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx
index 805131548f28..c60cf9feb25c 100644
--- a/include/dbaccess/genericcontroller.hxx
+++ b/include/dbaccess/genericcontroller.hxx
@@ -62,7 +62,7 @@
#include <tools/link.hxx>
#include <vcl/vclptr.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace awt { class XKeyHandler; }
namespace awt { class XMouseClickHandler; }
namespace awt { class XWindow; }
@@ -83,7 +83,7 @@ namespace com { namespace sun { namespace star {
namespace ui { class XSidebarProvider; }
namespace uno { class XComponentContext; }
namespace util { class XURLTransformer; }
-} } }
+}
namespace vcl { class Window; }
namespace weld { class Window; }
diff --git a/include/drawinglayer/attribute/fillgradientattribute.hxx b/include/drawinglayer/attribute/fillgradientattribute.hxx
index 6bea915a8e67..a994c826f48b 100644
--- a/include/drawinglayer/attribute/fillgradientattribute.hxx
+++ b/include/drawinglayer/attribute/fillgradientattribute.hxx
@@ -30,9 +30,9 @@ namespace basegfx {
class BColor;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpFillGradientAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/fillgraphicattribute.hxx b/include/drawinglayer/attribute/fillgraphicattribute.hxx
index 971241f5469a..2cec83c68962 100644
--- a/include/drawinglayer/attribute/fillgraphicattribute.hxx
+++ b/include/drawinglayer/attribute/fillgraphicattribute.hxx
@@ -31,9 +31,9 @@ namespace basegfx {
class B2DRange;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpFillGraphicAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/fillhatchattribute.hxx b/include/drawinglayer/attribute/fillhatchattribute.hxx
index a4ffe4b656a7..7c2f819f0ac1 100644
--- a/include/drawinglayer/attribute/fillhatchattribute.hxx
+++ b/include/drawinglayer/attribute/fillhatchattribute.hxx
@@ -30,9 +30,9 @@ namespace basegfx {
class BColor;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpFillHatchAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/fontattribute.hxx b/include/drawinglayer/attribute/fontattribute.hxx
index 5308ababbd24..a12ffb405001 100644
--- a/include/drawinglayer/attribute/fontattribute.hxx
+++ b/include/drawinglayer/attribute/fontattribute.hxx
@@ -30,9 +30,9 @@ namespace rtl {
class OUString;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpFontAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/linestartendattribute.hxx b/include/drawinglayer/attribute/linestartendattribute.hxx
index 1de23c832bd7..9f87e6cb7ecf 100644
--- a/include/drawinglayer/attribute/linestartendattribute.hxx
+++ b/include/drawinglayer/attribute/linestartendattribute.hxx
@@ -30,9 +30,9 @@ namespace basegfx {
class B2DPolyPolygon;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpLineStartEndAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/materialattribute3d.hxx b/include/drawinglayer/attribute/materialattribute3d.hxx
index c343f7a19a26..4eddfea25109 100644
--- a/include/drawinglayer/attribute/materialattribute3d.hxx
+++ b/include/drawinglayer/attribute/materialattribute3d.hxx
@@ -26,9 +26,9 @@
// predefines
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpMaterialAttribute3D;
-}}
+}
namespace basegfx {
class BColor;
diff --git a/include/drawinglayer/attribute/sdrfillattribute.hxx b/include/drawinglayer/attribute/sdrfillattribute.hxx
index 54567bb1885c..7801f04123d6 100644
--- a/include/drawinglayer/attribute/sdrfillattribute.hxx
+++ b/include/drawinglayer/attribute/sdrfillattribute.hxx
@@ -30,12 +30,12 @@ namespace basegfx {
class BColor;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdrFillAttribute;
class FillGradientAttribute;
class FillHatchAttribute;
class SdrFillGraphicAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrfillgraphicattribute.hxx b/include/drawinglayer/attribute/sdrfillgraphicattribute.hxx
index caebc4adf544..281733132d31 100644
--- a/include/drawinglayer/attribute/sdrfillgraphicattribute.hxx
+++ b/include/drawinglayer/attribute/sdrfillgraphicattribute.hxx
@@ -32,10 +32,10 @@ namespace basegfx {
class B2DVector;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class FillGraphicAttribute;
class ImpSdrFillGraphicAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrlightattribute3d.hxx b/include/drawinglayer/attribute/sdrlightattribute3d.hxx
index 31ee658b3b37..06d024f5b9d4 100644
--- a/include/drawinglayer/attribute/sdrlightattribute3d.hxx
+++ b/include/drawinglayer/attribute/sdrlightattribute3d.hxx
@@ -31,9 +31,9 @@ namespace basegfx {
class B3DVector;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdr3DLightAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrlightingattribute3d.hxx b/include/drawinglayer/attribute/sdrlightingattribute3d.hxx
index 5fa40db3b524..35a4da1c65a8 100644
--- a/include/drawinglayer/attribute/sdrlightingattribute3d.hxx
+++ b/include/drawinglayer/attribute/sdrlightingattribute3d.hxx
@@ -33,10 +33,10 @@ namespace basegfx {
class B3DVector;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdrLightingAttribute;
class Sdr3DLightAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrlineattribute.hxx b/include/drawinglayer/attribute/sdrlineattribute.hxx
index 59c9985f1b27..f0ea867b6616 100644
--- a/include/drawinglayer/attribute/sdrlineattribute.hxx
+++ b/include/drawinglayer/attribute/sdrlineattribute.hxx
@@ -33,9 +33,9 @@ namespace basegfx {
class BColor;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdrLineAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrlinestartendattribute.hxx b/include/drawinglayer/attribute/sdrlinestartendattribute.hxx
index 8c14bc24ebda..e3a90ac6f372 100644
--- a/include/drawinglayer/attribute/sdrlinestartendattribute.hxx
+++ b/include/drawinglayer/attribute/sdrlinestartendattribute.hxx
@@ -30,9 +30,9 @@ namespace basegfx {
class B2DPolyPolygon;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdrLineStartEndAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrobjectattribute3d.hxx b/include/drawinglayer/attribute/sdrobjectattribute3d.hxx
index f0a325d604ad..2e8013dd6d84 100644
--- a/include/drawinglayer/attribute/sdrobjectattribute3d.hxx
+++ b/include/drawinglayer/attribute/sdrobjectattribute3d.hxx
@@ -31,10 +31,10 @@
// predefines
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdr3DObjectAttribute;
class MaterialAttribute3D;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrsceneattribute3d.hxx b/include/drawinglayer/attribute/sdrsceneattribute3d.hxx
index 1e18788b8172..2fca2acb4038 100644
--- a/include/drawinglayer/attribute/sdrsceneattribute3d.hxx
+++ b/include/drawinglayer/attribute/sdrsceneattribute3d.hxx
@@ -29,9 +29,9 @@
// predefines
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdrSceneAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/attribute/sdrshadowattribute.hxx b/include/drawinglayer/attribute/sdrshadowattribute.hxx
index c785a24f1e81..fc797dc9d0a0 100644
--- a/include/drawinglayer/attribute/sdrshadowattribute.hxx
+++ b/include/drawinglayer/attribute/sdrshadowattribute.hxx
@@ -31,9 +31,9 @@ namespace basegfx {
class B2DVector;
}
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class ImpSdrShadowAttribute;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/geometry/viewinformation3d.hxx b/include/drawinglayer/geometry/viewinformation3d.hxx
index e6faece8d01f..77bcec66cd13 100644
--- a/include/drawinglayer/geometry/viewinformation3d.hxx
+++ b/include/drawinglayer/geometry/viewinformation3d.hxx
@@ -28,9 +28,9 @@
// predefines
-namespace drawinglayer { namespace geometry {
+namespace drawinglayer::geometry {
class ImpViewInformation3D;
-}}
+}
namespace basegfx {
class B3DHomMatrix;
diff --git a/include/drawinglayer/primitive2d/fillgradientprimitive2d.hxx b/include/drawinglayer/primitive2d/fillgradientprimitive2d.hxx
index fcd0454cf0c1..635d6bb9d0dc 100644
--- a/include/drawinglayer/primitive2d/fillgradientprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/fillgradientprimitive2d.hxx
@@ -28,7 +28,7 @@
// predefines
namespace basegfx { class B2DPolygon; }
-namespace drawinglayer { namespace texture { struct B2DHomMatrixAndBColor; } }
+namespace drawinglayer::texture { struct B2DHomMatrixAndBColor; }
// FillGradientPrimitive2D class
diff --git a/include/drawinglayer/primitive2d/textbreakuphelper.hxx b/include/drawinglayer/primitive2d/textbreakuphelper.hxx
index ccc7e503ab6d..d32f3ba69ccd 100644
--- a/include/drawinglayer/primitive2d/textbreakuphelper.hxx
+++ b/include/drawinglayer/primitive2d/textbreakuphelper.hxx
@@ -24,7 +24,7 @@
#include <drawinglayer/primitive2d/textlayoutdevice.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
-namespace drawinglayer { namespace primitive2d { class TextSimplePortionPrimitive2D; } }
+namespace drawinglayer::primitive2d { class TextSimplePortionPrimitive2D; }
namespace drawinglayer
diff --git a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
index 30d13b787b37..d39a81f98b8b 100644
--- a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
@@ -24,9 +24,9 @@
#include <drawinglayer/primitive2d/textprimitive2d.hxx>
#include <drawinglayer/primitive2d/textenumsprimitive2d.hxx>
-namespace basegfx { namespace utils {
+namespace basegfx::utils {
class B2DHomMatrixBufferedOnDemandDecompose;
-}}
+}
namespace drawinglayer
{
diff --git a/include/drawinglayer/primitive2d/textlayoutdevice.hxx b/include/drawinglayer/primitive2d/textlayoutdevice.hxx
index fa418e073f21..3f1f189aa03a 100644
--- a/include/drawinglayer/primitive2d/textlayoutdevice.hxx
+++ b/include/drawinglayer/primitive2d/textlayoutdevice.hxx
@@ -32,9 +32,9 @@ namespace vcl { class Font; }
class GDIMetaFile;
namespace tools { class Rectangle; }
enum class DrawTextFlags;
-namespace drawinglayer { namespace attribute {
+namespace drawinglayer::attribute {
class FontAttribute;
-}}
+}
namespace com::sun::star::lang { struct Locale; }
diff --git a/include/drawinglayer/primitive3d/baseprimitive3d.hxx b/include/drawinglayer/primitive3d/baseprimitive3d.hxx
index 2d2fd1b68963..8fab8e6f6089 100644
--- a/include/drawinglayer/primitive3d/baseprimitive3d.hxx
+++ b/include/drawinglayer/primitive3d/baseprimitive3d.hxx
@@ -44,11 +44,11 @@
// predefines
-namespace drawinglayer { namespace geometry {
+namespace drawinglayer::geometry {
class ViewInformation3D;
-}}
+}
-namespace drawinglayer { namespace primitive3d {
+namespace drawinglayer::primitive3d {
/// typedefs for basePrimitive3DImplBase, Primitive3DContainer and Primitive3DReference
typedef cppu::WeakComponentImplHelper< css::graphic::XPrimitive3D > BasePrimitive3DImplBase;
typedef css::uno::Reference< css::graphic::XPrimitive3D > Primitive3DReference;
@@ -72,7 +72,7 @@ namespace drawinglayer { namespace primitive3d {
bool operator!=(const Primitive3DContainer& rB) const { return !operator==(rB); }
basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& aViewInformation) const;
};
-}}
+}
// basePrimitive3D class
diff --git a/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx b/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx
index 8a296b9a334f..621de447986e 100644
--- a/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx
+++ b/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx
@@ -29,9 +29,9 @@
// predefines
-namespace drawinglayer { namespace geometry {
+namespace drawinglayer::geometry {
class ViewInformation3D;
-}}
+}
namespace drawinglayer
diff --git a/include/drawinglayer/processor2d/hittestprocessor2d.hxx b/include/drawinglayer/processor2d/hittestprocessor2d.hxx
index 184149e00412..3b044b451f2f 100644
--- a/include/drawinglayer/processor2d/hittestprocessor2d.hxx
+++ b/include/drawinglayer/processor2d/hittestprocessor2d.hxx
@@ -26,7 +26,7 @@
namespace basegfx { class B2DPolygon; }
namespace basegfx { class B2DPolyPolygon; }
-namespace drawinglayer { namespace primitive2d { class ScenePrimitive2D; }}
+namespace drawinglayer::primitive2d { class ScenePrimitive2D; }
namespace drawinglayer
{
diff --git a/include/drawinglayer/processor2d/objectinfoextractor2d.hxx b/include/drawinglayer/processor2d/objectinfoextractor2d.hxx
index 38612dbaf8a5..59d8fc2b1dc9 100644
--- a/include/drawinglayer/processor2d/objectinfoextractor2d.hxx
+++ b/include/drawinglayer/processor2d/objectinfoextractor2d.hxx
@@ -22,7 +22,7 @@
#include <drawinglayer/drawinglayerdllapi.h>
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
-namespace drawinglayer { namespace primitive2d { class ObjectInfoPrimitive2D; }}
+namespace drawinglayer::primitive2d { class ObjectInfoPrimitive2D; }
namespace drawinglayer
{
diff --git a/include/drawinglayer/processor2d/processor2dtools.hxx b/include/drawinglayer/processor2d/processor2dtools.hxx
index 18ba6b216dc7..95c1c679336c 100644
--- a/include/drawinglayer/processor2d/processor2dtools.hxx
+++ b/include/drawinglayer/processor2d/processor2dtools.hxx
@@ -22,8 +22,8 @@
#include <drawinglayer/drawinglayerdllapi.h>
#include <memory>
-namespace drawinglayer { namespace geometry { class ViewInformation2D; } }
-namespace drawinglayer { namespace processor2d { class BaseProcessor2D; } }
+namespace drawinglayer::geometry { class ViewInformation2D; }
+namespace drawinglayer::processor2d { class BaseProcessor2D; }
class OutputDevice;
diff --git a/include/drawinglayer/processor2d/processorfromoutputdevice.hxx b/include/drawinglayer/processor2d/processorfromoutputdevice.hxx
index 25ea79ff477a..f15a98e34784 100644
--- a/include/drawinglayer/processor2d/processorfromoutputdevice.hxx
+++ b/include/drawinglayer/processor2d/processorfromoutputdevice.hxx
@@ -25,11 +25,11 @@
class OutputDevice;
-namespace drawinglayer { namespace processor2d {
+namespace drawinglayer::processor2d {
class BaseProcessor2D;
-}}
+}
-namespace drawinglayer { namespace geometry { class ViewInformation2D; } }
+namespace drawinglayer::geometry { class ViewInformation2D; }
namespace drawinglayer
{
diff --git a/include/editeng/SpellPortions.hxx b/include/editeng/SpellPortions.hxx
index 89b90d87f09e..0681b5dbbfcc 100644
--- a/include/editeng/SpellPortions.hxx
+++ b/include/editeng/SpellPortions.hxx
@@ -26,9 +26,9 @@
#include <com/sun/star/linguistic2/SingleProofreadingError.hpp>
#include <vector>
-namespace com{ namespace sun{ namespace star{ namespace linguistic2{
+namespace com::sun::star::linguistic2 {
class XSpellAlternatives;
-}}}}
+}
namespace com::sun::star::linguistic2 { class XProofreader; }
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index d8e780e736e8..292b620a9b95 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -46,7 +46,7 @@
template <typename Arg, typename Ret> class Link;
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace linguistic2 {
class XSpellChecker1;
class XHyphenator;
@@ -57,7 +57,7 @@ namespace com { namespace sun { namespace star {
namespace lang {
struct Locale;
}
-}}}
+}
namespace svx {
struct SpellPortion;
diff --git a/include/editeng/edtdlg.hxx b/include/editeng/edtdlg.hxx
index 7aeff9965a5e..1cadb9978042 100644
--- a/include/editeng/edtdlg.hxx
+++ b/include/editeng/edtdlg.hxx
@@ -25,11 +25,11 @@
#include <vcl/abstdlg.hxx>
#include <editeng/hangulhanja.hxx>
-namespace com { namespace sun { namespace star { namespace linguistic2
+namespace com::sun::star::linguistic2
{
class XThesaurus;
class XHyphenator;
-} } } }
+}
template <typename Arg, typename Ret> class Link;
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx
index c7cd1e02209a..2f44c8e2522b 100644
--- a/include/editeng/flditem.hxx
+++ b/include/editeng/flditem.hxx
@@ -27,11 +27,9 @@
#include <com/sun/star/text/textfield/Type.hpp>
-namespace com { namespace sun { namespace star { namespace text {
-
-class XTextContent;
-
-}}}}
+namespace com::sun::star::text {
+ class XTextContent;
+}
class SvNumberFormatter;
class MetaAction;
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx
index 1b8c4b130463..fda3169cbfd9 100644
--- a/include/editeng/numitem.hxx
+++ b/include/editeng/numitem.hxx
@@ -37,11 +37,7 @@ class SvxBrushItem;
namespace vcl { class Font; }
class Graphic;
class SvxNodeNum;
-namespace com{namespace sun{ namespace star{
- namespace text{
- class XNumberingFormatter;
- }
-}}}
+namespace com::sun::star::text { class XNumberingFormatter; }
namespace com::sun::star::lang { struct Locale; }
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 7037e30da288..a048c4e06ac0 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -77,16 +77,16 @@ enum class PointerStyle;
class SvxNumRule;
enum class TextRotation;
-namespace com { namespace sun { namespace star { namespace linguistic2 {
+namespace com::sun::star::linguistic2 {
class XSpellChecker1;
class XHyphenator;
-}}}}
+}
namespace svx{
struct SpellPortion;
typedef std::vector<SpellPortion> SpellPortions;
}
namespace basegfx { class B2DPolyPolygon; }
-namespace com { namespace sun { namespace star { namespace lang { struct Locale; } } } }
+namespace com::sun::star::lang { struct Locale; }
diff --git a/include/editeng/overflowingtxt.hxx b/include/editeng/overflowingtxt.hxx
index 2f5aac938655..ad0a662d1201 100644
--- a/include/editeng/overflowingtxt.hxx
+++ b/include/editeng/overflowingtxt.hxx
@@ -27,10 +27,9 @@
#include <com/sun/star/uno/Reference.h>
#include <memory>
-namespace com { namespace sun { namespace star {
- namespace datatransfer {
- class XTransferable;
-} } } }
+namespace com::sun::star {
+ namespace datatransfer { class XTransferable; }
+}
namespace rtl {
class OUString;
};
diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx
index 69dfbbc6c780..e9c719d45364 100644
--- a/include/editeng/splwrap.hxx
+++ b/include/editeng/splwrap.hxx
@@ -28,11 +28,11 @@
// forward ---------------------------------------------------------------
-namespace com { namespace sun { namespace star { namespace linguistic2 {
+namespace com::sun::star::linguistic2 {
class XDictionary;
class XSpellChecker1;
class XHyphenator;
-}}}}
+}
// misc functions ---------------------------------------------------------------
diff --git a/include/editeng/unolingu.hxx b/include/editeng/unolingu.hxx
index 2deae37c5a13..3032b7b7dc74 100644
--- a/include/editeng/unolingu.hxx
+++ b/include/editeng/unolingu.hxx
@@ -83,9 +83,9 @@ public:
};
-namespace com { namespace sun { namespace star { namespace linguistic2 {
+namespace com::sun::star::linguistic2 {
class XHyphenatedWord;
-}}}}
+}
struct SvxAlternativeSpelling
diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx
index 5a1bf293152c..9acfb51bd892 100644
--- a/include/filter/msfilter/escherex.hxx
+++ b/include/filter/msfilter/escherex.hxx
@@ -44,12 +44,12 @@
class Color;
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace awt { struct Rectangle; }
namespace beans { class XPropertySet; }
namespace drawing { struct EnhancedCustomShapeParameter; }
namespace drawing { struct Hatch; }
-} } }
+}
namespace tools {
class Polygon;
@@ -441,7 +441,7 @@ enum MSOPATHTYPE
const sal_uInt32 DFF_DGG_CLUSTER_SIZE = 0x00000400; /// Shape IDs per cluster in DGG atom.
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace awt {
struct Gradient;
}
@@ -450,7 +450,7 @@ namespace com { namespace sun { namespace star {
class XShape;
class XShapes;
}
-}}}
+}
struct MSFILTER_DLLPUBLIC EscherConnectorListEntry
{
diff --git a/include/filter/msfilter/mscodec.hxx b/include/filter/msfilter/mscodec.hxx
index 47067a38fe5e..a7917ec1aa09 100644
--- a/include/filter/msfilter/mscodec.hxx
+++ b/include/filter/msfilter/mscodec.hxx
@@ -27,9 +27,9 @@
#include <sal/types.h>
#include <vector>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct NamedValue; }
-} } }
+}
namespace msfilter {
diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx
index 2af6fdfa4682..78ea42bae527 100644
--- a/include/filter/msfilter/msdffimp.hxx
+++ b/include/filter/msfilter/msdffimp.hxx
@@ -66,11 +66,11 @@ class SfxItemSet;
struct DffObjData;
class SvGlobalName;
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { class XPropertySet; }
namespace embed { class XEmbeddedObject; }
namespace embed { class XStorage; }
-} } }
+}
class MSFILTER_DLLPUBLIC SvxMSDffClientData
{
diff --git a/include/filter/msfilter/msocximex.hxx b/include/filter/msfilter/msocximex.hxx
index ae29caae8374..89e64de23af4 100644
--- a/include/filter/msfilter/msocximex.hxx
+++ b/include/filter/msfilter/msocximex.hxx
@@ -22,7 +22,7 @@
#include <com/sun/star/uno/Reference.hxx>
#include <filter/msfilter/msfilterdllapi.h>
-namespace com{namespace sun{namespace star{
+namespace com::sun::star {
namespace drawing{
class XDrawPage;
class XShape;
@@ -43,8 +43,7 @@ namespace com{namespace sun{namespace star{
namespace frame{
class XModel;
}
-
-}}}
+}
class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls
{
diff --git a/include/filter/msfilter/msoleexp.hxx b/include/filter/msfilter/msoleexp.hxx
index c6a3eab9d138..77b2cc3b4608 100644
--- a/include/filter/msfilter/msoleexp.hxx
+++ b/include/filter/msfilter/msoleexp.hxx
@@ -23,9 +23,9 @@
#include <filter/msfilter/msfilterdllapi.h>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace embed { class XEmbeddedObject; }
-} } }
+}
namespace svt {
class EmbeddedObjectRef;
diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx
index f3c3e1ac7a47..7ec9ee7c0ab7 100644
--- a/include/filter/msfilter/mstoolbar.hxx
+++ b/include/filter/msfilter/mstoolbar.hxx
@@ -20,13 +20,13 @@
#include <tools/stream.hxx>
#include <vcl/bitmapex.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct PropertyValue; }
namespace container { class XIndexAccess; }
namespace graphic { class XGraphic; }
namespace ui { class XUIConfigurationManager; }
namespace ui { class XUIConfigurationManagerSupplier; }
-} } }
+}
class TBCHeader;
diff --git a/include/filter/msfilter/msvbahelper.hxx b/include/filter/msfilter/msvbahelper.hxx
index 5e142df6b503..673476caa9b6 100644
--- a/include/filter/msfilter/msvbahelper.hxx
+++ b/include/filter/msfilter/msvbahelper.hxx
@@ -31,11 +31,11 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace frame { class XModel; }
namespace uno { class XComponentContext; }
namespace uno { class XInterface; }
-} } }
+}
class SfxObjectShell;
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx
index 9ee6944f1138..eb54305fa968 100644
--- a/include/filter/msfilter/svdfppt.hxx
+++ b/include/filter/msfilter/svdfppt.hxx
@@ -48,12 +48,12 @@
#include <vcl/graph.hxx>
#include <salhelper/simplereferenceobject.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace awt { struct Size; }
namespace drawing { class XShape; }
namespace form { class XFormComponent; }
namespace frame { class XModel; }
-} } }
+}
class SdrPage;
class SdrObject;
diff --git a/include/filter/msfilter/util.hxx b/include/filter/msfilter/util.hxx
index 5b85f749ef75..5ce3b2a2159c 100644
--- a/include/filter/msfilter/util.hxx
+++ b/include/filter/msfilter/util.hxx
@@ -20,10 +20,10 @@
class Color;
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace awt { struct Size; }
namespace lang { struct Locale; }
-} } }
+}
namespace msfilter {
namespace util {
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx
index 185dd7a04ada..ecc9e5dd3f4f 100644
--- a/include/formula/FormulaCompiler.hxx
+++ b/include/formula/FormulaCompiler.hxx
@@ -42,12 +42,12 @@
#define FORMULA_MAXPARAMSII 8 /* maximum number of parameters for functions that have implicit intersection ranges */
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace sheet {
struct FormulaOpCodeMapEntry;
struct FormulaToken;
}
-}}}
+}
class CharClass;
enum class FormulaError : sal_uInt16;
diff --git a/include/formula/FormulaOpCodeMapperObj.hxx b/include/formula/FormulaOpCodeMapperObj.hxx
index 8804e2488d94..bd0595d438d9 100644
--- a/include/formula/FormulaOpCodeMapperObj.hxx
+++ b/include/formula/FormulaOpCodeMapperObj.hxx
@@ -31,12 +31,12 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace sheet { struct FormulaOpCodeMapEntry; }
namespace sheet { struct FormulaToken; }
namespace uno { class XComponentContext; }
namespace uno { class XInterface; }
-} } }
+}
namespace formula
{
diff --git a/include/formula/IFunctionDescription.hxx b/include/formula/IFunctionDescription.hxx
index 5d4616b9b9e5..82fd50d9736c 100644
--- a/include/formula/IFunctionDescription.hxx
+++ b/include/formula/IFunctionDescription.hxx
@@ -29,11 +29,11 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace sheet { struct FormulaToken; }
namespace sheet { class XFormulaOpCodeMapper; }
namespace sheet { class XFormulaParser; }
-} } }
+}
namespace com::sun::star::uno { template <class E> class Sequence; }
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx
index 44122686c158..87377cb228e0 100644
--- a/include/formula/tokenarray.hxx
+++ b/include/formula/tokenarray.hxx
@@ -36,9 +36,9 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace sheet { struct FormulaToken; }
-} } }
+}
namespace com::sun::star::uno { template <typename > class Sequence; }
namespace formula { class FormulaTokenArray; }
diff --git a/include/i18nutil/casefolding.hxx b/include/i18nutil/casefolding.hxx
index 14b0f6bf4333..65dfc2d515d2 100644
--- a/include/i18nutil/casefolding.hxx
+++ b/include/i18nutil/casefolding.hxx
@@ -24,7 +24,7 @@
#include <o3tl/typed_flags_set.hxx>
#include <config_options.h>
-namespace com { namespace sun { namespace star { namespace lang { struct Locale; } } } }
+namespace com::sun::star::lang { struct Locale; }
enum class TransliterationFlags;
diff --git a/include/i18nutil/paper.hxx b/include/i18nutil/paper.hxx
index 99bf5df87116..3590e170a60a 100644
--- a/include/i18nutil/paper.hxx
+++ b/include/i18nutil/paper.hxx
@@ -23,7 +23,7 @@
#include <i18nutil/i18nutildllapi.h>
#include <rtl/string.hxx>
-namespace com { namespace sun { namespace star { namespace lang { struct Locale; } } } }
+namespace com::sun::star::lang { struct Locale; }
//!! The values of the following enumerators must correspond to the array position
//!! of the respective paper size in the file i18nutil/source/utility/paper.cxx
diff --git a/include/i18nutil/widthfolding.hxx b/include/i18nutil/widthfolding.hxx
index 73ad5eb2a558..616b6884e5a1 100644
--- a/include/i18nutil/widthfolding.hxx
+++ b/include/i18nutil/widthfolding.hxx
@@ -24,7 +24,7 @@
#include <i18nutil/i18nutildllapi.h>
#include <config_options.h>
-namespace com { namespace sun { namespace star { namespace uno { template <typename > class Sequence; } } } }
+namespace com::sun::star::uno { template <typename > class Sequence; }
namespace i18nutil { class oneToOneMapping; }
namespace i18nutil {
diff --git a/include/jvmaccess/classpath.hxx b/include/jvmaccess/classpath.hxx
index c3e3f7fe3603..9882a42ce25e 100644
--- a/include/jvmaccess/classpath.hxx
+++ b/include/jvmaccess/classpath.hxx
@@ -27,11 +27,11 @@
#include <jvmaccess/jvmaccessdllapi.h>
#include <rtl/ustring.hxx>
-namespace com { namespace sun { namespace star { namespace uno {
+namespace com::sun::star::uno {
class XComponentContext;
-} } } }
+}
-namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } }
+namespace com::sun::star::uno { template <typename > class Reference; }
namespace jvmaccess {
diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx
index 37a2124d2206..52af61c4e61c 100644
--- a/include/linguistic/lngprophelp.hxx
+++ b/include/linguistic/lngprophelp.hxx
@@ -29,14 +29,8 @@
#include <rtl/ref.hxx>
#include <config_options.h>
-namespace com { namespace sun { namespace star { namespace beans {
- class XPropertySet;
-}}}}
-
-namespace com { namespace sun { namespace star { namespace linguistic2 {
- struct LinguServiceEvent;
-}}}}
-
+namespace com::sun::star::beans { class XPropertySet; }
+namespace com::sun::star::linguistic2 { struct LinguServiceEvent; }
namespace com::sun::star::linguistic2 { class XLinguProperties; }
diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx
index f0186f3dc33f..a251ced79c63 100644
--- a/include/linguistic/misc.hxx
+++ b/include/linguistic/misc.hxx
@@ -33,14 +33,8 @@
#include <vector>
-namespace com { namespace sun { namespace star { namespace beans {
- class XPropertySet;
-}}}}
-
-namespace com { namespace sun { namespace star { namespace frame {
- class XDesktop2;
-}}}}
-
+namespace com::sun::star::beans { class XPropertySet; }
+namespace com::sun::star::frame { class XDesktop2; }
namespace com::sun::star::linguistic2 { class XDictionary; }
namespace com::sun::star::linguistic2 { class XDictionaryEntry; }
namespace com::sun::star::linguistic2 { class XHyphenatedWord; }
diff --git a/include/oox/core/binarycodec.hxx b/include/oox/core/binarycodec.hxx
index 00375842e1ad..2318e52a17cc 100644
--- a/include/oox/core/binarycodec.hxx
+++ b/include/oox/core/binarycodec.hxx
@@ -25,9 +25,9 @@
#include <oox/dllapi.h>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct NamedValue; }
-} } }
+}
namespace oox { class AttributeList; }
diff --git a/include/oox/core/contexthandler.hxx b/include/oox/core/contexthandler.hxx
index 51f442f4731f..f9b4ef9a0f5d 100644
--- a/include/oox/core/contexthandler.hxx
+++ b/include/oox/core/contexthandler.hxx
@@ -32,10 +32,10 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
- namespace xml { namespace sax { class XFastAttributeList; } }
- namespace xml { namespace sax { class XLocator; } }
-} } }
+namespace com::sun::star {
+ namespace xml::sax { class XFastAttributeList; }
+ namespace xml::sax { class XLocator; }
+}
namespace oox { class SequenceInputStream; }
diff --git a/include/oox/core/contexthandler2.hxx b/include/oox/core/contexthandler2.hxx
index 06761ff0797c..02e2cf2a08f1 100644
--- a/include/oox/core/contexthandler2.hxx
+++ b/include/oox/core/contexthandler2.hxx
@@ -30,10 +30,10 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
- namespace xml { namespace sax { class XFastAttributeList; } }
- namespace xml { namespace sax { class XFastContextHandler; } }
-} } }
+namespace com::sun::star {
+ namespace xml::sax { class XFastAttributeList; }
+ namespace xml::sax { class XFastContextHandler; }
+}
namespace oox {
class AttributeList;
diff --git a/include/oox/core/fastparser.hxx b/include/oox/core/fastparser.hxx
index db8057da0d25..fa79aba5d574 100644
--- a/include/oox/core/fastparser.hxx
+++ b/include/oox/core/fastparser.hxx
@@ -26,14 +26,14 @@
#include <sal/types.h>
#include <oox/dllapi.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace io { class XInputStream; }
namespace uno { class XComponentContext; }
- namespace xml { namespace sax { class XFastDocumentHandler; } }
- namespace xml { namespace sax { class XFastParser; } }
- namespace xml { namespace sax { class XFastTokenHandler; } }
- namespace xml { namespace sax { struct InputSource; } }
-} } }
+ namespace xml::sax { class XFastDocumentHandler; }
+ namespace xml::sax { class XFastParser; }
+ namespace xml::sax { class XFastTokenHandler; }
+ namespace xml::sax { struct InputSource; }
+}
namespace oox {
struct NamespaceMap;
diff --git a/include/oox/core/filterbase.hxx b/include/oox/core/filterbase.hxx
index ed4e35f3b52d..e341de4e0885 100644
--- a/include/oox/core/filterbase.hxx
+++ b/include/oox/core/filterbase.hxx
@@ -38,7 +38,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct PropertyValue; }
namespace drawing { class XShape; }
namespace frame { class XFrame; }
@@ -50,7 +50,7 @@ namespace com { namespace sun { namespace star {
namespace lang { class XMultiServiceFactory; }
namespace task { class XStatusIndicator; }
namespace uno { class XComponentContext; }
-} } }
+}
namespace comphelper {
class SequenceAsHashMap;
@@ -64,10 +64,10 @@ namespace oox {
class ModelObjectHelper;
}
-namespace oox { namespace ole {
+namespace oox::ole {
class OleObjectHelper;
class VbaProject;
-} }
+}
namespace oox {
namespace core {
diff --git a/include/oox/core/filterdetect.hxx b/include/oox/core/filterdetect.hxx
index 9b34de75b09c..ccb9fe9170b8 100644
--- a/include/oox/core/filterdetect.hxx
+++ b/include/oox/core/filterdetect.hxx
@@ -33,14 +33,14 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct PropertyValue; }
namespace io { class XInputStream; }
namespace uno { class XComponentContext; }
- namespace xml { namespace sax { class XFastAttributeList; } }
- namespace xml { namespace sax { class XFastContextHandler; } }
- namespace xml { namespace sax { class XLocator; } }
-} } }
+ namespace xml::sax { class XFastAttributeList; }
+ namespace xml::sax { class XFastContextHandler; }
+ namespace xml::sax { class XLocator; }
+}
namespace utl { class MediaDescriptor; }
diff --git a/include/oox/core/fragmenthandler.hxx b/include/oox/core/fragmenthandler.hxx
index 2563a7ac9bf8..5983a50c5e7d 100644
--- a/include/oox/core/fragmenthandler.hxx
+++ b/include/oox/core/fragmenthandler.hxx
@@ -32,12 +32,12 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace io { class XInputStream; }
- namespace xml { namespace sax { class XFastAttributeList; } }
- namespace xml { namespace sax { class XFastContextHandler; } }
- namespace xml { namespace sax { class XLocator; } }
-} } }
+ namespace xml::sax { class XFastAttributeList; }
+ namespace xml::sax { class XFastContextHandler; }
+ namespace xml::sax { class XLocator; }
+}
namespace oox {
namespace core {
diff --git a/include/oox/core/fragmenthandler2.hxx b/include/oox/core/fragmenthandler2.hxx
index 7c64c200041d..93822ceafcca 100644
--- a/include/oox/core/fragmenthandler2.hxx
+++ b/include/oox/core/fragmenthandler2.hxx
@@ -31,10 +31,10 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-namespace com { namespace sun { namespace star {
- namespace xml { namespace sax { class XFastAttributeList; } }
- namespace xml { namespace sax { class XFastContextHandler; } }
-} } }
+namespace com::sun::star {