diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-15 08:47:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-15 09:31:07 +0100 |
commit | 16d26d178785bead496af0850604d7816f0e453a (patch) | |
tree | 39fddcec02b5f12f6ad7c713f0c694f4eec0db36 /svx | |
parent | bf17db716f4ecaf28c2a0797bf90c9b0731015d6 (diff) |
clang-tidy modernize-concat-nested-namespace in svx
Change-Id: I8a00f2823aa956afb995ee68c9f995bf08ad5239
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86824
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
162 files changed, 346 insertions, 688 deletions
diff --git a/svx/source/accessibility/AccessibleFrameSelector.cxx b/svx/source/accessibility/AccessibleFrameSelector.cxx index cb8d1346b4fa..2f4885297b97 100644 --- a/svx/source/accessibility/AccessibleFrameSelector.cxx +++ b/svx/source/accessibility/AccessibleFrameSelector.cxx @@ -38,8 +38,7 @@ #include <svx/strings.hrc> #include <frmsel.hrc> -namespace svx { -namespace a11y { +namespace svx::a11y { using ::com::sun::star::uno::Any; using ::com::sun::star::uno::UNO_QUERY; @@ -393,6 +392,5 @@ void AccFrameSelectorChild::Invalidate() } } -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/dialog/ClassificationCommon.cxx b/svx/source/dialog/ClassificationCommon.cxx index 7c609b4d70fe..d34b3a501c53 100644 --- a/svx/source/dialog/ClassificationCommon.cxx +++ b/svx/source/dialog/ClassificationCommon.cxx @@ -17,9 +17,7 @@ using namespace css; -namespace svx -{ -namespace classification +namespace svx::classification { OUString convertClassificationResultToString(std::vector<svx::ClassificationResult> const& rResults) { @@ -121,7 +119,6 @@ void insertCreationOrigin(uno::Reference<beans::XPropertyContainer> const& rxPro : OUString("MANUAL"); addOrInsertDocumentProperty(rxPropertyContainer, rKeyCreator.makeCreationOriginKey(), sValue); } -} } // end svx::classification namespace /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx index 75b9f3b87042..456a1fdfef03 100644 --- a/svx/source/dialog/docrecovery.cxx +++ b/svx/source/dialog/docrecovery.cxx @@ -54,8 +54,7 @@ #include <unotools/pathoptions.hxx> #include <officecfg/Office/Recovery.hxx> -namespace svx{ - namespace DocRecovery{ +namespace svx::DocRecovery{ using namespace ::osl; @@ -1105,6 +1104,5 @@ void BrokenRecoveryDialog::impl_askForSavePath() } } -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx index b4548c6ebed9..69cb10704817 100644 --- a/svx/source/dialog/framelink.cxx +++ b/svx/source/dialog/framelink.cxx @@ -34,8 +34,7 @@ using namespace ::com::sun::star; using namespace editeng; -namespace svx { -namespace frame { +namespace svx::frame { // Classes void Style::implEnsureImplStyle() @@ -316,6 +315,5 @@ bool Style::operator<( const Style& rOther) const return false; } } -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/dialog/framelinkarray.cxx b/svx/source/dialog/framelinkarray.cxx index d93e50e1c21c..40ec9b91968a 100644 --- a/svx/source/dialog/framelinkarray.cxx +++ b/svx/source/dialog/framelinkarray.cxx @@ -30,8 +30,7 @@ #include <svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> -namespace svx { -namespace frame { +namespace svx::frame { namespace { @@ -1289,6 +1288,5 @@ drawinglayer::primitive2d::Primitive2DContainer Array::CreateB2DPrimitiveArray() #undef DBG_FRAME_CHECK } -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/engine3d/helperminimaldepth3d.cxx b/svx/source/engine3d/helperminimaldepth3d.cxx index 298174047fbd..918e207b6e7d 100644 --- a/svx/source/engine3d/helperminimaldepth3d.cxx +++ b/svx/source/engine3d/helperminimaldepth3d.cxx @@ -30,9 +30,7 @@ #include <svx/scene3d.hxx> -namespace drawinglayer -{ - namespace processor3d +namespace drawinglayer::processor3d { namespace { @@ -138,8 +136,7 @@ namespace drawinglayer } } } - } // end of namespace processor3d -} // end of namespace drawinglayer + } // end of namespace drawinglayer // changed to create values using VCs, Primitive3DContainer and ViewInformation3D to allow diff --git a/svx/source/form/dbcharsethelper.cxx b/svx/source/form/dbcharsethelper.cxx index cee4cc927f1c..fb5f6f9bdb08 100644 --- a/svx/source/form/dbcharsethelper.cxx +++ b/svx/source/form/dbcharsethelper.cxx @@ -24,7 +24,7 @@ using namespace ::dbtools; -namespace svxform { namespace charset_helper +namespace svxform::charset_helper { sal_Int32 getSupportedTextEncodings( ::std::vector< rtl_TextEncoding >& _rEncs ) @@ -44,7 +44,6 @@ namespace svxform { namespace charset_helper } } -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/gallery2/GalleryControl.cxx b/svx/source/gallery2/GalleryControl.cxx index 83979938b00d..c3fc9a1cbcef 100644 --- a/svx/source/gallery2/GalleryControl.cxx +++ b/svx/source/gallery2/GalleryControl.cxx @@ -28,7 +28,7 @@ #include <vcl/settings.hxx> #include <sfx2/sidebar/Theme.hxx> -namespace svx { namespace sidebar { +namespace svx::sidebar { static const sal_Int32 gnInitialVerticalSplitPosition (150); @@ -239,6 +239,6 @@ IMPL_LINK_NOARG( GalleryControl, SplitHdl, Splitter*, void ) } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/animation/animationstate.cxx b/svx/source/sdr/animation/animationstate.cxx index 4b3b5f2fa08e..68746d908aac 100644 --- a/svx/source/sdr/animation/animationstate.cxx +++ b/svx/source/sdr/animation/animationstate.cxx @@ -27,9 +27,7 @@ #include <comphelper/lok.hxx> -namespace sdr -{ - namespace animation +namespace sdr::animation { double PrimitiveAnimation::getSmallestNextTime(double fCurrentTime) { @@ -132,7 +130,6 @@ namespace sdr // re-setup prepareNextEvent(); } - } // end of namespace animation -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/animation/objectanimator.cxx b/svx/source/sdr/animation/objectanimator.cxx index 830056fa0993..378b3e993069 100644 --- a/svx/source/sdr/animation/objectanimator.cxx +++ b/svx/source/sdr/animation/objectanimator.cxx @@ -21,9 +21,7 @@ #include <svx/sdr/animation/animationstate.hxx> -namespace sdr -{ - namespace animation +namespace sdr::animation { primitiveAnimator::primitiveAnimator() : Scheduler() @@ -33,7 +31,6 @@ namespace sdr primitiveAnimator::~primitiveAnimator() { } - } // end of namespace animation -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/animation/scheduler.cxx b/svx/source/sdr/animation/scheduler.cxx index 4f32f101f999..a9e93d01ce45 100644 --- a/svx/source/sdr/animation/scheduler.cxx +++ b/svx/source/sdr/animation/scheduler.cxx @@ -25,9 +25,7 @@ // event class -namespace sdr -{ - namespace animation +namespace sdr::animation { Event::Event() : mnTime(0) { @@ -167,7 +165,6 @@ namespace sdr checkTimeout(); } } - } // end of namespace animation -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx b/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx index 696f94c1df87..7fe63399e16c 100644 --- a/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx +++ b/svx/source/sdr/attribute/sdrallfillattributeshelper.cxx @@ -29,9 +29,7 @@ ////////////////////////////////////////////////////////////////////////////// -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { void SdrAllFillAttributesHelper::createPrimitive2DSequence( const basegfx::B2DRange& rPaintRange, @@ -253,7 +251,6 @@ namespace drawinglayer // color fill return false; } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrfilltextattribute.cxx b/svx/source/sdr/attribute/sdrfilltextattribute.cxx index 7d53ec205d3b..2660ed795b27 100644 --- a/svx/source/sdr/attribute/sdrfilltextattribute.cxx +++ b/svx/source/sdr/attribute/sdrfilltextattribute.cxx @@ -21,9 +21,7 @@ #include <sdr/attribute/sdrfilltextattribute.hxx> -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { SdrFillTextAttribute::SdrFillTextAttribute( const SdrFillAttribute& rFill, @@ -64,7 +62,6 @@ namespace drawinglayer && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient() && getText() == rCandidate.getText()); } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrformtextattribute.cxx b/svx/source/sdr/attribute/sdrformtextattribute.cxx index 74bf9926622c..487affa5e60e 100644 --- a/svx/source/sdr/attribute/sdrformtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextattribute.cxx @@ -140,9 +140,7 @@ namespace } // end of anonymous namespace -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { class ImpSdrFormTextAttribute { @@ -371,7 +369,6 @@ namespace drawinglayer { return mpSdrFormTextAttribute->getFormTextOutline(); } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx b/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx index 72529a3c0652..416d746325a9 100644 --- a/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx @@ -24,9 +24,7 @@ #include <rtl/instance.hxx> -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { class ImpSdrFormTextOutlineAttribute { @@ -137,7 +135,6 @@ namespace drawinglayer { return mpSdrFormTextOutlineAttribute->getTransparence(); } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrlinefillshadowtextattribute.cxx b/svx/source/sdr/attribute/sdrlinefillshadowtextattribute.cxx index 22022e8f432c..ed359ba9bdef 100644 --- a/svx/source/sdr/attribute/sdrlinefillshadowtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrlinefillshadowtextattribute.cxx @@ -21,9 +21,7 @@ #include <svx/sdr/attribute/sdrlinefillshadowtextattribute.hxx> -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { SdrLineFillShadowTextAttribute::SdrLineFillShadowTextAttribute( const SdrLineAttribute& rLine, @@ -74,7 +72,6 @@ namespace drawinglayer && getFill() == rCandidate.getFill() && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient()); } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrlineshadowtextattribute.cxx b/svx/source/sdr/attribute/sdrlineshadowtextattribute.cxx index fb232e3c677a..df964b32e367 100644 --- a/svx/source/sdr/attribute/sdrlineshadowtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrlineshadowtextattribute.cxx @@ -21,9 +21,7 @@ #include <svx/sdr/attribute/sdrlineshadowtextattribute.hxx> -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { SdrLineShadowTextAttribute::SdrLineShadowTextAttribute( const SdrLineAttribute& rLine, @@ -72,7 +70,6 @@ namespace drawinglayer && getLine() == rCandidate.getLine() && getLineStartEnd() == rCandidate.getLineStartEnd()); } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrshadowtextattribute.cxx b/svx/source/sdr/attribute/sdrshadowtextattribute.cxx index fd4f12ff3293..16947d8b6436 100644 --- a/svx/source/sdr/attribute/sdrshadowtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrshadowtextattribute.cxx @@ -21,9 +21,7 @@ #include <svx/sdr/attribute/sdrshadowtextattribute.hxx> -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { SdrShadowTextAttribute::SdrShadowTextAttribute( const SdrShadowAttribute& rShadow, @@ -64,7 +62,6 @@ namespace drawinglayer return (getShadow() == rCandidate.getShadow() && getText() == rCandidate.getText()); } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/attribute/sdrtextattribute.cxx b/svx/source/sdr/attribute/sdrtextattribute.cxx index 81889f5cc52a..cb0c88d845a4 100644 --- a/svx/source/sdr/attribute/sdrtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrtextattribute.cxx @@ -28,9 +28,7 @@ #include <rtl/instance.hxx> -namespace drawinglayer -{ - namespace attribute +namespace drawinglayer::attribute { class ImpSdrTextAttribute { @@ -420,7 +418,6 @@ namespace drawinglayer getSdrText().GetObject().impGetScrollTextTiming(rAnimList, fFrameLength, fTextLength); } } - } // end of namespace attribute -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/displayinfo.cxx b/svx/source/sdr/contact/displayinfo.cxx index e3fc6b91664a..aba8fcffebf9 100644 --- a/svx/source/sdr/contact/displayinfo.cxx +++ b/svx/source/sdr/contact/displayinfo.cxx @@ -20,9 +20,7 @@ #include <svx/sdr/contact/displayinfo.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { DisplayInfo::DisplayInfo() : maProcessLayers(true), // init layer info with all bits set to draw everything on default @@ -85,7 +83,6 @@ namespace sdr } } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/objectcontact.cxx b/svx/source/sdr/contact/objectcontact.cxx index a8ee40706d99..41d6226c5e95 100644 --- a/svx/source/sdr/contact/objectcontact.cxx +++ b/svx/source/sdr/contact/objectcontact.cxx @@ -27,7 +27,7 @@ using namespace com::sun::star; -namespace sdr { namespace contact { +namespace sdr::contact { bool ObjectContact::supportsGridOffsets() const { @@ -213,6 +213,6 @@ void ObjectContact::resetAllGridOffsets() } } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx index 2626d5340676..0f4a01623432 100644 --- a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx +++ b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx @@ -32,7 +32,7 @@ #include <vcl/gdimtf.hxx> #include <memory> -namespace sdr { namespace contact { +namespace sdr::contact { ObjectContactPainter::ObjectContactPainter() { @@ -185,6 +185,6 @@ OutputDevice* ObjectContactOfPagePainter::TryToGetOutputDevice() const return mrOriginalObjectContact.TryToGetOutputDevice(); } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx index 2718c491732f..9a1acfc71b88 100644 --- a/svx/source/sdr/contact/objectcontactofpageview.cxx +++ b/svx/source/sdr/contact/objectcontactofpageview.cxx @@ -44,9 +44,7 @@ using namespace com::sun::star; -namespace sdr -{ - namespace contact +namespace sdr::contact { // internal access to SdrPage of SdrPageView SdrPage* ObjectContactOfPageView::GetSdrPage() const @@ -441,7 +439,6 @@ namespace sdr } } } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/sdrmediawindow.cxx b/svx/source/sdr/contact/sdrmediawindow.cxx index a804a1423ac1..086e12cee0c4 100644 --- a/svx/source/sdr/contact/sdrmediawindow.cxx +++ b/svx/source/sdr/contact/sdrmediawindow.cxx @@ -26,7 +26,7 @@ #include <vcl/commandevent.hxx> #include <vcl/event.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { SdrMediaWindow::SdrMediaWindow( vcl::Window* pParent, ViewObjectContactOfSdrMediaObj& rViewObjContact ) : @@ -169,6 +169,6 @@ void SdrMediaWindow::StartDrag( sal_Int8 nAction, const Point& rPosPixel ) } } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontact.cxx b/svx/source/sdr/contact/viewcontact.cxx index c591e6ca9df9..c3b08c1fcc0e 100644 --- a/svx/source/sdr/contact/viewcontact.cxx +++ b/svx/source/sdr/contact/viewcontact.cxx @@ -28,7 +28,7 @@ #include <svx/sdr/contact/objectcontactofpageview.hxx> #include <tools/debug.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. Default is to create @@ -285,6 +285,6 @@ void ViewContact::flushViewObjectContacts(bool bWithHierarchy) deleteAllVOCs(); } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofe3d.cxx b/svx/source/sdr/contact/viewcontactofe3d.cxx index c9bb60423e56..3d5770ffe856 100644 --- a/svx/source/sdr/contact/viewcontactofe3d.cxx +++ b/svx/source/sdr/contact/viewcontactofe3d.cxx @@ -65,7 +65,7 @@ const sdr::contact::ViewContactOfE3dScene* tryToFindVCOfE3DScene( } // end of anonymous namespace -namespace sdr { namespace contact { +namespace sdr::contact { drawinglayer::primitive2d::Primitive2DContainer ViewContactOfE3d::impCreateWithGivenPrimitive3DContainer( const drawinglayer::primitive3d::Primitive3DContainer& rxContent3D) const @@ -191,6 +191,6 @@ ViewObjectContact& ViewContactOfE3d::CreateObjectSpecificViewObjectContact(Objec return *pRetval; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofe3dcube.cxx b/svx/source/sdr/contact/viewcontactofe3dcube.cxx index d68778029a5f..885fc5ef243d 100644 --- a/svx/source/sdr/contact/viewcontactofe3dcube.cxx +++ b/svx/source/sdr/contact/viewcontactofe3dcube.cxx @@ -27,9 +27,7 @@ #include <memory> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfE3dCube::ViewContactOfE3dCube(E3dCubeObj& rCubeObj) : ViewContactOfE3d(rCubeObj) @@ -85,7 +83,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofe3dextrude.cxx b/svx/source/sdr/contact/viewcontactofe3dextrude.cxx index fa2d7645991c..c51651414e00 100644 --- a/svx/source/sdr/contact/viewcontactofe3dextrude.cxx +++ b/svx/source/sdr/contact/viewcontactofe3dextrude.cxx @@ -27,9 +27,7 @@ #include <memory> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfE3dExtrude::ViewContactOfE3dExtrude(E3dExtrudeObj& rExtrude) : ViewContactOfE3d(rExtrude) @@ -80,7 +78,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofe3dlathe.cxx b/svx/source/sdr/contact/viewcontactofe3dlathe.cxx index aee851a80bc6..95242e9428ed 100644 --- a/svx/source/sdr/contact/viewcontactofe3dlathe.cxx +++ b/svx/source/sdr/contact/viewcontactofe3dlathe.cxx @@ -27,9 +27,7 @@ #include <memory> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfE3dLathe::ViewContactOfE3dLathe(E3dLatheObj& rLathe) : ViewContactOfE3d(rLathe) @@ -93,7 +91,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofe3dpolygon.cxx b/svx/source/sdr/contact/viewcontactofe3dpolygon.cxx index 67ce76105e7d..6191af22b993 100644 --- a/svx/source/sdr/contact/viewcontactofe3dpolygon.cxx +++ b/svx/source/sdr/contact/viewcontactofe3dpolygon.cxx @@ -28,9 +28,7 @@ #include <memory> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfE3dPolygon::ViewContactOfE3dPolygon(E3dPolygonObj& rPolygon) : ViewContactOfE3d(rPolygon) @@ -166,7 +164,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofe3dscene.cxx b/svx/source/sdr/contact/viewcontactofe3dscene.cxx index 87401bef06c4..e2b4a636bbc6 100644 --- a/svx/source/sdr/contact/viewcontactofe3dscene.cxx +++ b/svx/source/sdr/contact/viewcontactofe3dscene.cxx @@ -132,7 +132,7 @@ void createSubPrimitive3DVector( } -namespace sdr { namespace contact { +namespace sdr::contact { // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. @@ -453,6 +453,6 @@ basegfx::B3DRange ViewContactOfE3dScene::getAllContentRange3D() const return aAllContentRange3D; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofe3dsphere.cxx b/svx/source/sdr/contact/viewcontactofe3dsphere.cxx index 18a818dbf0a2..1a1dc1564d6a 100644 --- a/svx/source/sdr/contact/viewcontactofe3dsphere.cxx +++ b/svx/source/sdr/contact/viewcontactofe3dsphere.cxx @@ -26,9 +26,7 @@ #include <memory> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfE3dSphere::ViewContactOfE3dSphere(E3dSphereObj& rSphere) : ViewContactOfE3d(rSphere) @@ -77,7 +75,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofgraphic.cxx b/svx/source/sdr/contact/viewcontactofgraphic.cxx index 3951159be56b..de4c0c9e4114 100644 --- a/svx/source/sdr/contact/viewcontactofgraphic.cxx +++ b/svx/source/sdr/contact/viewcontactofgraphic.cxx @@ -53,9 +53,7 @@ #include <bitmaps.hlst> -namespace sdr -{ - namespace contact +namespace sdr::contact { // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. @@ -412,7 +410,6 @@ namespace sdr return GraphicType::NONE == rGraphicObject.GetType() || GraphicType::Default == rGraphicObject.GetType(); } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofgroup.cxx b/svx/source/sdr/contact/viewcontactofgroup.cxx index 2e2ad8a50eca..ad2fc2195a93 100644 --- a/svx/source/sdr/contact/viewcontactofgroup.cxx +++ b/svx/source/sdr/contact/viewcontactofgroup.cxx @@ -31,9 +31,7 @@ #include <vcl/canvastools.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. @@ -84,7 +82,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx b/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx index fa79f10b7354..c275b184e846 100644 --- a/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx +++ b/svx/source/sdr/contact/viewcontactofmasterpagedescriptor.cxx @@ -37,9 +37,7 @@ #include <drawinglayer/attribute/fillgradientattribute.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewObjectContact& ViewContactOfMasterPageDescriptor::CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) { @@ -105,7 +103,6 @@ namespace sdr { return &(GetMasterPageDescriptor().GetOwnerPage().GetViewContact()); } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofpageobj.cxx b/svx/source/sdr/contact/viewcontactofpageobj.cxx index 3032bfdb95a1..a14572e9c686 100644 --- a/svx/source/sdr/contact/viewcontactofpageobj.cxx +++ b/svx/source/sdr/contact/viewcontactofpageobj.cxx @@ -30,7 +30,7 @@ #include <basegfx/polygon/b2dpolygontools.hxx> #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { ViewObjectContact& ViewContactOfPageObj::CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) { @@ -79,6 +79,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfPageObj::createView return drawinglayer::primitive2d::Primitive2DContainer { xReference }; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx b/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx index f9c9041904b4..082ed9d760f5 100644 --- a/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrcaptionobj.cxx @@ -43,9 +43,7 @@ using namespace com::sun::star; -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfSdrCaptionObj::ViewContactOfSdrCaptionObj(SdrCaptionObj& rCaptionObj) : ViewContactOfSdrRectObj(rCaptionObj) @@ -192,7 +190,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx b/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx index 6b1253d57ee0..b76448c4a6d9 100644 --- a/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx @@ -28,9 +28,7 @@ #include <vcl/canvastools.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfSdrCircObj::ViewContactOfSdrCircObj(SdrCircObj& rCircObj) : ViewContactOfSdrRectObj(rCircObj) @@ -98,7 +96,6 @@ namespace sdr return drawinglayer::primitive2d::Primitive2DContainer { xReference }; } } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdredgeobj.cxx b/svx/source/sdr/contact/viewcontactofsdredgeobj.cxx index 37eb5267cd5f..f8a7819d6e14 100644 --- a/svx/source/sdr/contact/viewcontactofsdredgeobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdredgeobj.cxx @@ -25,9 +25,7 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfSdrEdgeObj::ViewContactOfSdrEdgeObj(SdrEdgeObj& rEdgeObj) : ViewContactOfTextObj(rEdgeObj) @@ -62,7 +60,6 @@ namespace sdr return drawinglayer::primitive2d::Primitive2DContainer { xReference }; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrmeasureobj.cxx b/svx/source/sdr/contact/viewcontactofsdrmeasureobj.cxx index cdaed5a5b5e5..9452127278bb 100644 --- a/svx/source/sdr/contact/viewcontactofsdrmeasureobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrmeasureobj.cxx @@ -30,9 +30,7 @@ #include <svx/sxmtpitm.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfSdrMeasureObj::ViewContactOfSdrMeasureObj(SdrMeasureObj& rMeasureObj) : ViewContactOfTextObj(rMeasureObj) @@ -124,7 +122,6 @@ namespace sdr return drawinglayer::primitive2d::Primitive2DContainer { xReference }; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx b/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx index 80373d8df122..3351cfd5eddb 100644 --- a/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx @@ -25,7 +25,7 @@ #include <avmedia/mediawindow.hxx> #include <vcl/canvastools.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { ViewContactOfSdrMediaObj::ViewContactOfSdrMediaObj( SdrMediaObj& rMediaObj ) : ViewContactOfSdrObj( rMediaObj ) @@ -125,6 +125,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrMediaObj::create return drawinglayer::primitive2d::Primitive2DContainer { xRetval }; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrobj.cxx b/svx/source/sdr/contact/viewcontactofsdrobj.cxx index 91e09e73e7c0..cf5bd082f74e 100644 --- a/svx/source/sdr/contact/viewcontactofsdrobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrobj.cxx @@ -35,7 +35,7 @@ #include <svx/sdrpaintwindow.hxx> #include <svx/svdhdl.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. @@ -194,6 +194,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrObj::embedToObje return aSource; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrobjcustomshape.cxx b/svx/source/sdr/contact/viewcontactofsdrobjcustomshape.cxx index 8630b6dd1923..0443be3193c1 100644 --- a/svx/source/sdr/contact/viewcontactofsdrobjcustomshape.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrobjcustomshape.cxx @@ -33,9 +33,7 @@ #include <sal/log.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfSdrObjCustomShape::ViewContactOfSdrObjCustomShape(SdrObjCustomShape& rCustomShape) : ViewContactOfTextObj(rCustomShape) @@ -251,7 +249,6 @@ namespace sdr return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrole2obj.cxx b/svx/source/sdr/contact/viewcontactofsdrole2obj.cxx index a492585bebc1..04191602e075 100644 --- a/svx/source/sdr/contact/viewcontactofsdrole2obj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrole2obj.cxx @@ -38,7 +38,7 @@ #include <svx/charthelper.hxx> #include <svtools/embedhlp.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. @@ -208,6 +208,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrOle2Obj::createV return createPrimitive2DSequenceWithParameters(); } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrpage.cxx b/svx/source/sdr/contact/viewcontactofsdrpage.cxx index e446851fee08..defe3962e222 100644 --- a/svx/source/sdr/contact/viewcontactofsdrpage.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrpage.cxx @@ -41,7 +41,7 @@ #include <drawinglayer/attribute/sdrfillattribute.hxx> #include <bitmaps.hlst> -namespace sdr { namespace contact { +namespace sdr::contact { ViewContactOfPageSubObject::ViewContactOfPageSubObject(ViewContactOfSdrPage& rParentViewContactOfSdrPage) : mrParentViewContactOfSdrPage(rParentViewContactOfSdrPage) @@ -620,6 +620,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrPage::createView return xRetval; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx index 393676f9b4c7..6879f226fd3e 100644 --- a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx @@ -30,9 +30,7 @@ #include <basegfx/polygon/b2dpolygontools.hxx> #include <vcl/canvastools.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewContactOfSdrPathObj::ViewContactOfSdrPathObj(SdrPathObj& rPathObj) : ViewContactOfTextObj(rPathObj) @@ -202,7 +200,6 @@ namespace sdr return drawinglayer::primitive2d::Primitive2DContainer { xReference }; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrrectobj.cxx b/svx/source/sdr/contact/viewcontactofsdrrectobj.cxx index 91a64b02ae84..75c3c097d7e3 100644 --- a/svx/source/sdr/contact/viewcontactofsdrrectobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrrectobj.cxx @@ -28,7 +28,7 @@ #include <vcl/canvastools.hxx> #include <svx/sdmetitm.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { ViewContactOfSdrRectObj::ViewContactOfSdrRectObj(SdrRectObj& rRectObj) : ViewContactOfTextObj(rRectObj) @@ -84,6 +84,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrRectObj::createV return drawinglayer::primitive2d::Primitive2DContainer{ xReference }; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactoftextobj.cxx b/svx/source/sdr/contact/viewcontactoftextobj.cxx index 89c503987ee0..265b594b9a03 100644 --- a/svx/source/sdr/contact/viewcontactoftextobj.cxx +++ b/svx/source/sdr/contact/viewcontactoftextobj.cxx @@ -20,7 +20,7 @@ #include <svx/sdr/contact/viewcontactoftextobj.hxx> #include <svx/svdotext.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { ViewContactOfTextObj::ViewContactOfTextObj(SdrTextObj& rTextObj) : ViewContactOfSdrObj(rTextObj) @@ -31,6 +31,6 @@ ViewContactOfTextObj::~ViewContactOfTextObj() { } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofunocontrol.cxx b/svx/source/sdr/contact/viewcontactofunocontrol.cxx index 2c34c56a7c07..31838118f3b1 100644 --- a/svx/source/sdr/contact/viewcontactofunocontrol.cxx +++ b/svx/source/sdr/contact/viewcontactofunocontrol.cxx @@ -37,7 +37,7 @@ #include <drawinglayer/primitive2d/sdrdecompositiontools2d.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { using ::com::sun::star::awt::XControl; @@ -130,7 +130,7 @@ namespace sdr { namespace contact { } -} } // namespace sdr::contact +} // namespace sdr::contact /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofvirtobj.cxx b/svx/source/sdr/contact/viewcontactofvirtobj.cxx index 4efb3d65797d..2726f122b93b 100644 --- a/svx/source/sdr/contact/viewcontactofvirtobj.cxx +++ b/svx/source/sdr/contact/viewcontactofvirtobj.cxx @@ -25,7 +25,7 @@ #include <vcl/outdev.hxx> #include <drawinglayer/primitive2d/sdrdecompositiontools2d.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { ViewContactOfVirtObj::ViewContactOfVirtObj(SdrVirtObj& rObj) : ViewContactOfSdrObj(rObj) @@ -96,7 +96,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfVirtObj::createView } } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx index 9d52001d9bde..4a7adf2c61b0 100644 --- a/svx/source/sdr/contact/viewobjectcontact.cxx +++ b/svx/source/sdr/contact/viewobjectcontact.cxx @@ -150,7 +150,7 @@ void AnimatedExtractingProcessor2D::processBasePrimitive2D(const drawinglayer::p } // end of anonymous namespace -namespace sdr { namespace contact { +namespace sdr::contact { ViewObjectContact::ViewObjectContact(ObjectContact& rObjectContact, ViewContact& rViewContact) : mrObjectContact(rObjectContact), @@ -478,6 +478,6 @@ void ViewObjectContact::resetGridOffset() mxPrimitive2DSequence.clear(); } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofe3d.cxx b/svx/source/sdr/contact/viewobjectcontactofe3d.cxx index 38d092c311ee..64ba2bbd0631 100644 --- a/svx/source/sdr/contact/viewobjectcontactofe3d.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofe3d.cxx @@ -25,9 +25,7 @@ #include <drawinglayer/primitive2d/embedded3dprimitive2d.hxx> #include <svx/sdr/contact/viewcontactofe3dscene.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewObjectContactOfE3d::ViewObjectContactOfE3d(ObjectContact& rObjectContact, ViewContact& rViewContact) : ViewObjectContactOfSdrObj(rObjectContact, rViewContact) @@ -85,7 +83,6 @@ namespace sdr // return current Primitive2DContainer return mxPrimitive3DContainer; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx b/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx index a46f0216a9cd..72a8043e70bc 100644 --- a/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx @@ -52,9 +52,7 @@ namespace } // end of anonymous namespace -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewObjectContactOfE3dScene::ViewObjectContactOfE3dScene(ObjectContact& rObjectContact, ViewContact& rViewContact) : ViewObjectContactOfSdrObj(rObjectContact, rViewContact) @@ -137,7 +135,6 @@ namespace sdr // call parent return ViewObjectContactOfSdrObj::getPrimitive2DSequenceHierarchy(rDisplayInfo); } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx index 30440f6127fc..800c92042002 100644 --- a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx @@ -24,9 +24,7 @@ #include <svx/svdmodel.hxx> #include <svx/svdpage.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { drawinglayer::primitive2d::Primitive2DContainer ViewObjectContactOfGraphic::createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const { @@ -61,7 +59,6 @@ namespace sdr ViewObjectContactOfGraphic::~ViewObjectContactOfGraphic() { } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofgroup.cxx b/svx/source/sdr/contact/viewobjectcontactofgroup.cxx index 0aa5178fd70e..5f3ad6ee594d 100644 --- a/svx/source/sdr/contact/viewobjectcontactofgroup.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofgroup.cxx @@ -32,9 +32,7 @@ using namespace com::sun::star; -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewObjectContactOfGroup::ViewObjectContactOfGroup(ObjectContact& rObjectContact, ViewContact& rViewContact) : ViewObjectContactOfSdrObj(rObjectContact, rViewContact) @@ -106,7 +104,6 @@ namespace sdr aObjectLayers &= aLayers; return !aObjectLayers.IsEmpty(); } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofmasterpagedescriptor.cxx b/svx/source/sdr/contact/viewobjectcontactofmasterpagedescriptor.cxx index 712c23498e7f..38e598d8b41b 100644 --- a/svx/source/sdr/contact/viewobjectcontactofmasterpagedescriptor.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofmasterpagedescriptor.cxx @@ -30,9 +30,7 @@ #include <basegfx/polygon/b2dpolygon.hxx> -namespace sdr -{ - namespace contact +namespace sdr::contact { ViewObjectContactOfMasterPageDescriptor::ViewObjectContactOfMasterPageDescriptor(ObjectContact& rObjectContact, ViewContact& rViewContact) : ViewObjectContact(rObjectContact, rViewContact) @@ -130,7 +128,6 @@ namespace sdr // return grouped primitive return xRetval; } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx index ef2247a746e0..5da45eabed5c 100644 --- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx @@ -36,7 +36,7 @@ using namespace com::sun::star; -namespace sdr { namespace contact { +namespace sdr::contact { class PagePrimitiveExtractor : public ObjectContactOfPagePainter, public Idle { @@ -314,6 +314,6 @@ ViewObjectContactOfPageObj::~ViewObjectContactOfPageObj() } } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrmediaobj.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrmediaobj.cxx index 23684f55901c..0326256de89a 100644 --- a/svx/source/sdr/contact/viewobjectcontactofsdrmediaobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofsdrmediaobj.cxx @@ -30,7 +30,7 @@ #include <avmedia/mediaitem.hxx> #include "sdrmediawindow.hxx" -namespace sdr { namespace contact { +namespace sdr::contact { ViewObjectContactOfSdrMediaObj::ViewObjectContactOfSdrMediaObj( ObjectContact& rObjectContact, ViewContact& rViewContact, @@ -138,6 +138,6 @@ void ViewObjectContactOfSdrMediaObj::executeMediaItem( const ::avmedia::MediaIte } -}} // end of namespace sdr::contact +} // end of namespace sdr::contact /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx index d21fddcb14b6..6fc561a67d3c 100644 --- a/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx @@ -35,7 +35,7 @@ #include <fmobj.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { const SdrObject& ViewObjectContactOfSdrObj::getSdrObject() const { @@ -189,6 +189,6 @@ const OutputDevice* ViewObjectContactOfSdrObj::getPageViewOutputDevice() const return nullptr; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrole2obj.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrole2obj.cxx index 134643b55e41..37c162229566 100644 --- a/svx/source/sdr/contact/viewobjectcontactofsdrole2obj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofsdrole2obj.cxx @@ -35,7 +35,7 @@ using namespace com::sun::star; -namespace sdr { namespace contact { +namespace sdr::contact { drawinglayer::primitive2d::Primitive2DContainer ViewObjectContactOfSdrOle2Obj::createPrimitive2DSequence( const DisplayInfo& /*rDisplayInfo*/) const @@ -145,6 +145,6 @@ ViewObjectContactOfSdrOle2Obj::~ViewObjectContactOfSdrOle2Obj() { } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx index 5ef073a414b6..1e6102f114dc 100644 --- a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx @@ -35,7 +35,7 @@ using namespace com::sun::star; -namespace sdr { namespace contact { +namespace sdr::contact { const SdrPage& ViewObjectContactOfPageSubObject::getPage() const { @@ -628,6 +628,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewObjectContactOfSdrPage::getP return xRetval; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx index f4703d348adb..54c5f857fedf 100644 --- a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx @@ -98,7 +98,7 @@ form control artifacts when scrolling a text fast */ -namespace sdr { namespace contact { +namespace sdr::contact { using namespace ::com::sun::star::awt::InvalidateStyle; @@ -1783,7 +1783,7 @@ namespace sdr { namespace contact { } -} } // namespace sdr::contact +} // namespace sdr::contact /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewobjectcontactredirector.cxx b/svx/source/sdr/contact/viewobjectcontactredirector.cxx index 53265cf3b252..ad37059f4561 100644 --- a/svx/source/sdr/contact/viewobjectcontactredirector.cxx +++ b/svx/source/sdr/contact/viewobjectcontactredirector.cxx @@ -21,7 +21,7 @@ #include <svx/sdr/contact/viewobjectcontact.hxx> #include <svx/sdr/contact/viewcontact.hxx> -namespace sdr { namespace contact { +namespace sdr::contact { // basic constructor. ViewObjectContactRedirector::ViewObjectContactRedirector() @@ -40,6 +40,6 @@ drawinglayer::primitive2d::Primitive2DContainer ViewObjectContactRedirector::cre return rOriginal.createPrimitive2DSequence(rDisplayInfo); } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/event/eventhandler.cxx b/svx/source/sdr/event/eventhandler.cxx index f8fcdb10ac3f..b45b5a12c42f 100644 --- a/svx/source/sdr/event/eventhandler.cxx +++ b/svx/source/sdr/event/eventhandler.cxx @@ -22,11 +22,4 @@ #include <algorithm> #include <tools/debug.hxx> -namespace sdr -{ - namespace event - { - } // end of namespace mixer -} // end of namespace sdr - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayanimatedbitmapex.cxx b/svx/source/sdr/overlay/overlayanimatedbitmapex.cxx index e358b1b01216..3bd86110785a 100644 --- a/svx/source/sdr/overlay/overlayanimatedbitmapex.cxx +++ b/svx/source/sdr/overlay/overlayanimatedbitmapex.cxx @@ -24,9 +24,7 @@ #include <sdr/overlay/overlaytools.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayAnimatedBitmapEx::createOverlayObjectPrimitive2DSequence() { @@ -111,7 +109,6 @@ namespace sdr objectChange(); } } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlaybitmapex.cxx b/svx/source/sdr/overlay/overlaybitmapex.cxx index 647522204a03..675aa0a242aa 100644 --- a/svx/source/sdr/overlay/overlaybitmapex.cxx +++ b/svx/source/sdr/overlay/overlaybitmapex.cxx @@ -24,9 +24,7 @@ #include <sdr/overlay/overlaytools.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayBitmapEx::createOverlayObjectPrimitive2DSequence() { @@ -70,7 +68,6 @@ namespace sdr OverlayBitmapEx::~OverlayBitmapEx() { } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlaycrosshair.cxx b/svx/source/sdr/overlay/overlaycrosshair.cxx index edeb97c67ec2..f2d8ac1414ab 100644 --- a/svx/source/sdr/overlay/overlaycrosshair.cxx +++ b/svx/source/sdr/overlay/overlaycrosshair.cxx @@ -23,9 +23,7 @@ #include <svx/sdr/overlay/overlaymanager.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayCrosshairStriped::createOverlayObjectPrimitive2DSequence() { @@ -64,7 +62,6 @@ namespace sdr OverlayCrosshairStriped::~OverlayCrosshairStriped() { } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayhandle.cxx b/svx/source/sdr/overlay/overlayhandle.cxx index 450a11d9c1bb..f2aaa111205e 100644 --- a/svx/source/sdr/overlay/overlayhandle.cxx +++ b/svx/source/sdr/overlay/overlayhandle.cxx @@ -28,7 +28,7 @@ #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> -namespace sdr { namespace overlay { +namespace sdr::overlay { using namespace drawinglayer; using namespace basegfx; @@ -58,6 +58,6 @@ OverlayHandle::~OverlayHandle() { } -}} // end of namespace sdr::overlay +} // end of namespace sdr::overlay /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayhelpline.cxx b/svx/source/sdr/overlay/overlayhelpline.cxx index a6f644ba6220..b009b3882f3a 100644 --- a/svx/source/sdr/overlay/overlayhelpline.cxx +++ b/svx/source/sdr/overlay/overlayhelpline.cxx @@ -24,9 +24,7 @@ #include <svx/sdr/overlay/overlaymanager.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayHelplineStriped::createOverlayObjectPrimitive2DSequence() { @@ -73,7 +71,6 @@ namespace sdr OverlayHelplineStriped::~OverlayHelplineStriped() { } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayline.cxx b/svx/source/sdr/overlay/overlayline.cxx index de5cf042ba1e..7c3e6b1c60a7 100644 --- a/svx/source/sdr/overlay/overlayline.cxx +++ b/svx/source/sdr/overlay/overlayline.cxx @@ -27,9 +27,7 @@ #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayLineStriped::createOverlayObjectPrimitive2DSequence() { @@ -75,7 +73,6 @@ namespace sdr OverlayLineStriped::~OverlayLineStriped() { } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlaymanager.cxx b/svx/source/sdr/overlay/overlaymanager.cxx index 26671f8fb1e2..8ab62835fd97 100644 --- a/svx/source/sdr/overlay/overlaymanager.cxx +++ b/svx/source/sdr/overlay/overlaymanager.cxx @@ -34,9 +34,7 @@ using namespace com::sun::star; -namespace sdr -{ - namespace overlay +namespace sdr::overlay { void OverlayManager::ImpDrawMembers(const basegfx::B2DRange& rRange, OutputDevice& rDestinationDevice) const { @@ -347,7 +345,6 @@ namespace sdr } } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx index 6aa571b3486d..9025147d161f 100644 --- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx +++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx @@ -30,9 +30,7 @@ #include <vcl/dibtools.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { void OverlayManagerBuffered::ImpPrepareBufferDevice() { @@ -441,7 +439,6 @@ namespace sdr } } } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayobject.cxx b/svx/source/sdr/overlay/overlayobject.cxx index d480007d4852..6ad51df18b50 100644 --- a/svx/source/sdr/overlay/overlayobject.cxx +++ b/svx/source/sdr/overlay/overlayobject.cxx @@ -30,9 +30,7 @@ #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> #include <drawinglayer/primitive2d/transformprimitive2d.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { void OverlayObject::objectChange() { @@ -208,13 +206,10 @@ namespace sdr { // default does not need to do anything } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr -namespace sdr -{ - namespace overlay +namespace sdr::overlay { OverlayObjectWithBasePosition::OverlayObjectWithBasePosition(const basegfx::B2DPoint& rBasePos, Color aBaseColor) : OverlayObject(aBaseColor), @@ -237,7 +232,6 @@ namespace sdr objectChange(); } } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayobjectcell.cxx b/svx/source/sdr/overlay/overlayobjectcell.cxx index 2508c19dbd81..14187d74b793 100644 --- a/svx/source/sdr/overlay/overlayobjectcell.cxx +++ b/svx/source/sdr/overlay/overlayobjectcell.cxx @@ -30,9 +30,7 @@ using namespace ::basegfx; -namespace sdr -{ - namespace overlay +namespace sdr::overlay { OverlayObjectCell::OverlayObjectCell( const Color& rColor, const RangeVector& rRects ) : OverlayObject( rColor ), @@ -80,7 +78,6 @@ namespace sdr return aRetval; } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayobjectlist.cxx b/svx/source/sdr/overlay/overlayobjectlist.cxx index 182acf22e38b..3d89d04524f3 100644 --- a/svx/source/sdr/overlay/overlayobjectlist.cxx +++ b/svx/source/sdr/overlay/overlayobjectlist.cxx @@ -30,9 +30,7 @@ #define DEFAULT_VALUE_FOR_HITTEST_PIXEL (2) #define DEFAULT_VALUE_FOR_HITTEST_TWIP (30) -namespace sdr -{ - namespace overlay +namespace sdr::overlay { OverlayObjectList::~OverlayObjectList() { @@ -142,7 +140,6 @@ namespace sdr return aRetval; } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlaypolypolygon.cxx b/svx/source/sdr/overlay/overlaypolypolygon.cxx index dda687298a31..cc109ab9496c 100644 --- a/svx/source/sdr/overlay/overlaypolypolygon.cxx +++ b/svx/source/sdr/overlay/overlaypolypolygon.cxx @@ -25,9 +25,7 @@ #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayPolyPolygonStripedAndFilled::createOverlayObjectPrimitive2DSequence() { @@ -81,7 +79,6 @@ namespace sdr OverlayPolyPolygonStripedAndFilled::~OverlayPolyPolygonStripedAndFilled() { } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx b/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx index 16a3429fb003..87e599566f54 100644 --- a/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx +++ b/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx @@ -23,9 +23,7 @@ #include <svx/sdr/overlay/overlaymanager.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayPrimitive2DSequenceObject::createOverlayObjectPrimitive2DSequence() { @@ -41,7 +39,6 @@ namespace sdr OverlayPrimitive2DSequenceObject::~OverlayPrimitive2DSequenceObject() { } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayrectangle.cxx b/svx/source/sdr/overlay/overlayrectangle.cxx index 8b117072f054..39977a620eb6 100644 --- a/svx/source/sdr/overlay/overlayrectangle.cxx +++ b/svx/source/sdr/overlay/overlayrectangle.cxx @@ -29,9 +29,7 @@ #include <vcl/settings.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayRectangle::createOverlayObjectPrimitive2DSequence() { @@ -114,8 +112,7 @@ namespace sdr objectChange(); } } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayrollingrectangle.cxx b/svx/source/sdr/overlay/overlayrollingrectangle.cxx index a0022b08fed0..6ac840e1e539 100644 --- a/svx/source/sdr/overlay/overlayrollingrectangle.cxx +++ b/svx/source/sdr/overlay/overlayrollingrectangle.cxx @@ -27,9 +27,7 @@ #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayRollingRectangleStriped::createOverlayObjectPrimitive2DSequence() { @@ -116,7 +114,6 @@ namespace sdr objectChange(); } } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlayselection.cxx b/svx/source/sdr/overlay/overlayselection.cxx index 14f49046893e..2afd382c00f0 100644 --- a/svx/source/sdr/overlay/overlayselection.cxx +++ b/svx/source/sdr/overlay/overlayselection.cxx @@ -31,9 +31,7 @@ #include <svx/sdr/overlay/overlaymanager.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { // combine rages geometrically to a single, ORed polygon static basegfx::B2DPolyPolygon impCombineRangesToPolyPolygon(const std::vector< basegfx::B2DRange >& rRanges) @@ -219,7 +217,6 @@ namespace sdr objectChange(); } } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlaytools.cxx b/svx/source/sdr/overlay/overlaytools.cxx index a511bd045276..a44feb9bc2be 100644 --- a/svx/source/sdr/overlay/overlaytools.cxx +++ b/svx/source/sdr/overlay/overlaytools.cxx @@ -33,9 +33,7 @@ #include <vcl/settings.hxx> -namespace drawinglayer -{ -namespace primitive2d +namespace drawinglayer::primitive2d { OverlayStaticRectanglePrimitive::OverlayStaticRectanglePrimitive( @@ -121,11 +119,9 @@ bool OverlayStaticRectanglePrimitive::operator==(const BasePrimitive2D& rPrimiti ImplPrimitive2DIDBlock(OverlayStaticRectanglePrimitive, PRIMITIVE2D_ID_OVERLAYRECTANGLEPRIMITIVE) -}} // end of namespace drawinglayer::primitive2d +} // end of namespace drawinglayer::primitive2d -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { OverlayBitmapExPrimitive::OverlayBitmapExPrimitive( const BitmapEx& rBitmapEx, @@ -205,13 +201,10 @@ namespace drawinglayer ImplPrimitive2DIDBlock(OverlayBitmapExPrimitive, PRIMITIVE2D_ID_OVERLAYBITMAPEXPRIMITIVE) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { OverlayCrosshairPrimitive::OverlayCrosshairPrimitive( const basegfx::B2DPoint& rBasePosition, @@ -273,13 +266,10 @@ namespace drawinglayer ImplPrimitive2DIDBlock(OverlayCrosshairPrimitive, PRIMITIVE2D_ID_OVERLAYCROSSHAIRPRIMITIVE) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { OverlayRectanglePrimitive::OverlayRectanglePrimitive( const basegfx::B2DRange& rObjectRange, @@ -406,13 +396,10 @@ namespace drawinglayer ImplPrimitive2DIDBlock(OverlayRectanglePrimitive, PRIMITIVE2D_ID_OVERLAYRECTANGLEPRIMITIVE) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { OverlayHelplineStripedPrimitive::OverlayHelplineStripedPrimitive( const basegfx::B2DPoint& rBasePosition, @@ -517,13 +504,10 @@ namespace drawinglayer ImplPrimitive2DIDBlock(OverlayHelplineStripedPrimitive, PRIMITIVE2D_ID_OVERLAYHELPLINESTRIPEDPRIMITIVE) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { OverlayRollingRectanglePrimitive::OverlayRollingRectanglePrimitive( const basegfx::B2DRange& aRollingRectangle, @@ -608,7 +592,6 @@ namespace drawinglayer ImplPrimitive2DIDBlock(OverlayRollingRectanglePrimitive, PRIMITIVE2D_ID_OVERLAYROLLINGRECTANGLEPRIMITIVE) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/overlay/overlaytriangle.cxx b/svx/source/sdr/overlay/overlaytriangle.cxx index 0938b50aa184..50536b139818 100644 --- a/svx/source/sdr/overlay/overlaytriangle.cxx +++ b/svx/source/sdr/overlay/overlaytriangle.cxx @@ -28,9 +28,7 @@ #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> -namespace sdr -{ - namespace overlay +namespace sdr::overlay { drawinglayer::primitive2d::Primitive2DContainer OverlayTriangle::createOverlayObjectPrimitive2DSequence() { @@ -64,7 +62,6 @@ namespace sdr { } - } // end of namespace overlay -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrattributecreator.cxx b/svx/source/sdr/primitive2d/sdrattributecreator.cxx index cb9c2f50c909..48aad6c480e4 100644 --- a/svx/source/sdr/primitive2d/sdrattributecreator.cxx +++ b/svx/source/sdr/primitive2d/sdrattributecreator.cxx @@ -216,9 +216,7 @@ namespace drawinglayer } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { attribute::SdrLineAttribute createNewSdrLineAttribute(const SfxItemSet& rSet) { @@ -1092,7 +1090,6 @@ namespace drawinglayer return attribute::SdrFillTextAttribute(); } - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx index 6b9d6d50fb41..f9959c17c1fb 100644 --- a/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrcaptionprimitive2d.cxx @@ -29,9 +29,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrCaptionPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -164,7 +162,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrCaptionPrimitive2D, PRIMITIVE2D_ID_SDRCAPTIONPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx index 88f64cf92bb2..5a3e8ed40a72 100644 --- a/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrconnectorprimitive2d.cxx @@ -29,9 +29,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrConnectorPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -103,7 +101,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrConnectorPrimitive2D, PRIMITIVE2D_ID_SDRCONNECTORPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrcustomshapeprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrcustomshapeprimitive2d.cxx index fb3018f7ff88..a9281abfa02e 100644 --- a/svx/source/sdr/primitive2d/sdrcustomshapeprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrcustomshapeprimitive2d.cxx @@ -30,9 +30,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrCustomShapePrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -109,7 +107,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrCustomShapePrimitive2D, PRIMITIVE2D_ID_SDRCUSTOMSHAPEPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx index 6787e0d5a322..adcecf39fa56 100644 --- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx +++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx @@ -49,9 +49,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { class TransparencePrimitive2D; @@ -518,7 +516,6 @@ namespace drawinglayer return rContent; } } - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx index 21c41439a90d..d09c03dff575 100644 --- a/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrellipseprimitive2d.cxx @@ -32,9 +32,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrEllipsePrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -137,13 +135,10 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrEllipsePrimitive2D, PRIMITIVE2D_ID_SDRELLIPSEPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrEllipseSegmentPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -266,7 +261,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrEllipseSegmentPrimitive2D, PRIMITIVE2D_ID_SDRELLIPSESEGMENTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx index 903a75ea2fe0..6bee840ace8f 100644 --- a/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx @@ -642,9 +642,7 @@ namespace } } -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { SdrFrameBorderData::SdrConnectStyleData::SdrConnectStyleData( const svx::frame::Style& rStyle, @@ -748,12 +746,9 @@ namespace drawinglayer return fRetval; } - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrFrameBorderPrimitive2D::create2DDecomposition( Primitive2DContainer& rContainer, @@ -925,7 +920,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrFrameBorderPrimitive2D, PRIMITIVE2D_ID_SDRFRAMEBORDERTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx index fa8c554fa0be..837df2f3bc13 100644 --- a/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx @@ -28,9 +28,7 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> #include <drawinglayer/primitive2d/transformprimitive2d.hxx> -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrGrafPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -167,7 +165,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrGrafPrimitive2D, PRIMITIVE2D_ID_SDRGRAFPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx index f9bcc0290bc4..2768161d7c75 100644 --- a/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx @@ -34,9 +34,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { Primitive2DReference SdrMeasurePrimitive2D::impCreatePart( const attribute::SdrLineAttribute& rLineAttribute, @@ -495,7 +493,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrMeasurePrimitive2D, PRIMITIVE2D_ID_SDRMEASUREPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx b/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx index 68c264dd039e..2aa33542338a 100644 --- a/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrole2primitive2d.cxx @@ -29,9 +29,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { SdrOle2Primitive2D::SdrOle2Primitive2D( const Primitive2DContainer& rOLEContent, @@ -171,7 +169,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrOle2Primitive2D, PRIMITIVE2D_ID_SDROLE2PRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrolecontentprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrolecontentprimitive2d.cxx index a22b9172dbfb..9e6b2bbeeb6f 100644 --- a/svx/source/sdr/primitive2d/sdrolecontentprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrolecontentprimitive2d.cxx @@ -29,9 +29,7 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrOleContentPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -174,7 +172,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrOleContentPrimitive2D, PRIMITIVE2D_ID_SDROLECONTENTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx index 804cccf67e80..5554b6db495a 100644 --- a/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrpathprimitive2d.cxx @@ -28,9 +28,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrPathPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -153,7 +151,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrPathPrimitive2D, PRIMITIVE2D_ID_SDRPATHPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx index e71fe38fd6dc..722b15f3a3e4 100644 --- a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx +++ b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx @@ -25,9 +25,7 @@ // helper methods -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { BitmapEx createDefaultCross_3x3(const basegfx::BColor& rBColor) { @@ -61,7 +59,6 @@ namespace drawinglayer return aRetVal.get() ? *aRetVal.get() : BitmapEx(); } - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx index b8acf2355687..46dfd599dcb9 100644 --- a/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrrectangleprimitive2d.cxx @@ -30,9 +30,7 @@ using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrRectanglePrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*aViewInformation*/) const { @@ -148,7 +146,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrRectanglePrimitive2D, PRIMITIVE2D_ID_SDRRECTANGLEPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx index 00a5aa89c17c..fe8e701d3d12 100644 --- a/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx @@ -83,9 +83,7 @@ namespace } // end of anonymous namespace -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { // support for XTEXT_PAINTSHAPE_BEGIN/XTEXT_PAINTSHAPE_END Metafile comments // for slideshow. This uses TextHierarchyBlockPrimitive2D to mark a text block. @@ -238,13 +236,10 @@ namespace drawinglayer // call parent BufferedDecompositionPrimitive2D::get2DDecomposition(rVisitor, rViewInformation); } - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrContourTextPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const { @@ -290,13 +285,10 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrContourTextPrimitive2D, PRIMITIVE2D_ID_SDRCONTOURTEXTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrPathTextPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const { @@ -345,13 +337,10 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrPathTextPrimitive2D, PRIMITIVE2D_ID_SDRPATHTEXTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrBlockTextPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const { @@ -421,13 +410,10 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrBlockTextPrimitive2D, PRIMITIVE2D_ID_SDRBLOCKTEXTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { void SdrAutoFitTextPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const { @@ -469,12 +455,9 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrAutoFitTextPrimitive2D, PRIMITIVE2D_ID_SDRAUTOFITTEXTPRIMITIVE2D) - } // end of namespace primitive2d - } // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { SdrChainedTextPrimitive2D::SdrChainedTextPrimitive2D( @@ -512,13 +495,10 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrChainedTextPrimitive2D, PRIMITIVE2D_ID_SDRCHAINEDTEXTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer - namespace drawinglayer - { - namespace primitive2d + namespace drawinglayer::primitive2d { void SdrStretchTextPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const { @@ -564,7 +544,6 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrStretchTextPrimitive2D, PRIMITIVE2D_ID_SDRSTRETCHTEXTPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/primitive3d/sdrattributecreator3d.cxx b/svx/source/sdr/primitive3d/sdrattributecreator3d.cxx index 5fe17f59dbad..416a27830148 100644 --- a/svx/source/sdr/primitive3d/sdrattributecreator3d.cxx +++ b/svx/source/sdr/primitive3d/sdrattributecreator3d.cxx @@ -29,9 +29,7 @@ #include <drawinglayer/attribute/sdrobjectattribute3d.hxx> -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { attribute::Sdr3DObjectAttribute* createNewSdr3DObjectAttribute(const SfxItemSet& rSet) { @@ -142,7 +140,6 @@ namespace drawinglayer aTextureKind, aTextureMode, aMaterial, bInvertNormals, bDoubleSided, bShadow3D, bTextureFilter, bReducedLineGeometry); } - } // end of namespace primitive2d -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/attributeproperties.cxx b/svx/source/sdr/properties/attributeproperties.cxx index 7e9d500d8719..7e53de8a8850 100644 --- a/svx/source/sdr/properties/attributeproperties.cxx +++ b/svx/source/sdr/properties/attributeproperties.cxx @@ -44,9 +44,7 @@ #include <svx/svdtrans.hxx> #include <svx/svdpage.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { void AttributeProperties::ImpSetParentAtSfxItemSet(bool bDontRemoveHardAttr) { @@ -530,7 +528,6 @@ namespace sdr } return false; } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/captionproperties.cxx b/svx/source/sdr/properties/captionproperties.cxx index 431f9a39bd16..012a9008dd1c 100644 --- a/svx/source/sdr/properties/captionproperties.cxx +++ b/svx/source/sdr/properties/captionproperties.cxx @@ -27,9 +27,7 @@ #include <svx/svdocapt.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> CaptionProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -96,7 +94,6 @@ namespace sdr // reset to default mpItemSet->ClearItem(XATTR_LINESTYLE); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/circleproperties.cxx b/svx/source/sdr/properties/circleproperties.cxx index 0ce76a2371f9..acd076cd4d9e 100644 --- a/svx/source/sdr/properties/circleproperties.cxx +++ b/svx/source/sdr/properties/circleproperties.cxx @@ -29,9 +29,7 @@ #include <svx/sxciaitm.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> CircleProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -120,7 +118,6 @@ namespace sdr // SdrCircKindItem RectangleProperties::ForceDefaultAttributes(); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/connectorproperties.cxx b/svx/source/sdr/properties/connectorproperties.cxx index 12629b001482..fcc0a59f32b3 100644 --- a/svx/source/sdr/properties/connectorproperties.cxx +++ b/svx/source/sdr/properties/connectorproperties.cxx @@ -27,9 +27,7 @@ #include <svx/svdoedge.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> ConnectorProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -84,7 +82,6 @@ namespace sdr SdrEdgeObj& rObj = static_cast<SdrEdgeObj&>(GetSdrObject()); rObj.ImpSetAttrToEdgeInfo(); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/customshapeproperties.cxx b/svx/source/sdr/properties/customshapeproperties.cxx index 9252cee5f581..3c3ea1d58b38 100644 --- a/svx/source/sdr/properties/customshapeproperties.cxx +++ b/svx/source/sdr/properties/customshapeproperties.cxx @@ -29,9 +29,7 @@ #include <svl/hint.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { void CustomShapeProperties::UpdateTextFrameStatus(bool bInvalidateRenderGeometry) { @@ -225,7 +223,6 @@ namespace sdr // update bTextFrame and RenderGeometry UpdateTextFrameStatus(bRemoveRenderGeometry); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/defaultproperties.cxx b/svx/source/sdr/properties/defaultproperties.cxx index f9461f796b53..f90a1d064286 100644 --- a/svx/source/sdr/properties/defaultproperties.cxx +++ b/svx/source/sdr/properties/defaultproperties.cxx @@ -33,9 +33,7 @@ #include <svx/svdmodel.hxx> #include <svx/svdtrans.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { std::unique_ptr<SfxItemSet> DefaultProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) { @@ -237,7 +235,6 @@ namespace sdr mpItemSet->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/e3dcompoundproperties.cxx b/svx/source/sdr/properties/e3dcompoundproperties.cxx index a7e4395665b7..5a3443bc8079 100644 --- a/svx/source/sdr/properties/e3dcompoundproperties.cxx +++ b/svx/source/sdr/properties/e3dcompoundproperties.cxx @@ -23,9 +23,7 @@ #include <svx/scene3d.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { E3dCompoundProperties::E3dCompoundProperties(SdrObject& rObj) : E3dProperties(rObj) @@ -141,7 +139,6 @@ namespace sdr } } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/e3dextrudeproperties.cxx b/svx/source/sdr/properties/e3dextrudeproperties.cxx index 9755e2d623a1..552060005bac 100644 --- a/svx/source/sdr/properties/e3dextrudeproperties.cxx +++ b/svx/source/sdr/properties/e3dextrudeproperties.cxx @@ -22,9 +22,7 @@ #include <svx/extrud3d.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { E3dExtrudeProperties::E3dExtrudeProperties(SdrObject& rObj) : E3dCompoundProperties(rObj) @@ -72,7 +70,6 @@ namespace sdr } } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/e3dlatheproperties.cxx b/svx/source/sdr/properties/e3dlatheproperties.cxx index a12270f07dd6..6b99ddcfddcb 100644 --- a/svx/source/sdr/properties/e3dlatheproperties.cxx +++ b/svx/source/sdr/properties/e3dlatheproperties.cxx @@ -22,9 +22,7 @@ #include <svx/lathe3d.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { E3dLatheProperties::E3dLatheProperties(SdrObject& rObj) : E3dCompoundProperties(rObj) @@ -82,7 +80,6 @@ namespace sdr } } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/e3dproperties.cxx b/svx/source/sdr/properties/e3dproperties.cxx index 21737a40b58f..3bdf1c7c8168 100644 --- a/svx/source/sdr/properties/e3dproperties.cxx +++ b/svx/source/sdr/properties/e3dproperties.cxx @@ -25,9 +25,7 @@ #include <svx/obj3d.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> E3dProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -72,7 +70,6 @@ namespace sdr // local changes rObj.StructureChanged(); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/e3dsceneproperties.cxx b/svx/source/sdr/properties/e3dsceneproperties.cxx index 065bd5bba5de..e37b8f6925eb 100644 --- a/svx/source/sdr/properties/e3dsceneproperties.cxx +++ b/svx/source/sdr/properties/e3dsceneproperties.cxx @@ -26,9 +26,7 @@ #include <memory> -namespace sdr -{ - namespace properties +namespace sdr::properties { E3dSceneProperties::E3dSceneProperties(SdrObject& rObj) : E3dProperties(rObj) @@ -290,7 +288,6 @@ namespace sdr // FocalLength mpItemSet->Put(makeSvx3DFocalLengthItem(static_cast<sal_uInt32>((aSceneCam.GetFocalLength() * 100.0) + 0.5))); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/e3dsphereproperties.cxx b/svx/source/sdr/properties/e3dsphereproperties.cxx index 0fefba58697c..d10b35ea5251 100644 --- a/svx/source/sdr/properties/e3dsphereproperties.cxx +++ b/svx/source/sdr/properties/e3dsphereproperties.cxx @@ -22,9 +22,7 @@ #include <svx/sphere3d.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { E3dSphereProperties::E3dSphereProperties(SdrObject& rObj) : E3dCompoundProperties(rObj) @@ -67,7 +65,6 @@ namespace sdr } } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/emptyproperties.cxx b/svx/source/sdr/properties/emptyproperties.cxx index 8c32d6c97dcf..bf9760f26f59 100644 --- a/svx/source/sdr/properties/emptyproperties.cxx +++ b/svx/source/sdr/properties/emptyproperties.cxx @@ -27,9 +27,7 @@ #include <vcl/outdev.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> EmptyProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -118,7 +116,6 @@ namespace sdr assert(!"EmptyProperties::GetStyleSheet() should never be called"); return nullptr; } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/graphicproperties.cxx b/svx/source/sdr/properties/graphicproperties.cxx index a558a83428b6..114b707793c6 100644 --- a/svx/source/sdr/properties/graphicproperties.cxx +++ b/svx/source/sdr/properties/graphicproperties.cxx @@ -36,9 +36,7 @@ #include <svx/xfillit0.hxx> #include <svx/xlineit0.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { void GraphicProperties::applyDefaultStyleSheetFromSdrModel() { @@ -143,7 +141,6 @@ namespace sdr mpItemSet->Put( SdrGrafModeItem( GraphicDrawMode::Standard ) ); mpItemSet->Put( SdrGrafCropItem( 0, 0, 0, 0 ) ); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/groupproperties.cxx b/svx/source/sdr/properties/groupproperties.cxx index b5be536ede5b..560adc8c4d2f 100644 --- a/svx/source/sdr/properties/groupproperties.cxx +++ b/svx/source/sdr/properties/groupproperties.cxx @@ -29,9 +29,7 @@ #include <svx/svdpage.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> GroupProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -262,7 +260,6 @@ namespace sdr pSub->GetObj(a)->GetProperties().ForceStyleToHardAttributes(); } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/itemsettools.cxx b/svx/source/sdr/properties/itemsettools.cxx index a47e22dcd091..a691212f4aab 100644 --- a/svx/source/sdr/properties/itemsettools.cxx +++ b/svx/source/sdr/properties/itemsettools.cxx @@ -28,9 +28,7 @@ // class to remember broadcast start positions -namespace sdr -{ - namespace properties +namespace sdr::properties { ItemChangeBroadcaster::ItemChangeBroadcaster(const SdrObject& rObj) { @@ -54,13 +52,10 @@ namespace sdr maRectangles.push_back(rObj.GetLastBoundRect()); } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr -namespace sdr -{ - namespace properties +namespace sdr::properties { void ScaleItemSet(SfxItemSet& rSet, const Fraction& rScale) { @@ -90,7 +85,6 @@ namespace sdr nWhich = aIter.NextWhich(); } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/measureproperties.cxx b/svx/source/sdr/properties/measureproperties.cxx index 845a744249ee..f0ac9df3112c 100644 --- a/svx/source/sdr/properties/measureproperties.cxx +++ b/svx/source/sdr/properties/measureproperties.cxx @@ -35,9 +35,7 @@ #include <basegfx/polygon/b2dpolygon.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> MeasureProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -125,7 +123,6 @@ namespace sdr mpItemSet->Put(XLineEndWidthItem(200)); mpItemSet->Put(XLineStyleItem(css::drawing::LineStyle_SOLID)); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/oleproperties.cxx b/svx/source/sdr/properties/oleproperties.cxx index a2a8773987ea..a8f05a3b7c5a 100644 --- a/svx/source/sdr/properties/oleproperties.cxx +++ b/svx/source/sdr/properties/oleproperties.cxx @@ -24,9 +24,7 @@ #include <svx/svdobj.hxx> #include <svx/svdmodel.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { void OleProperties::applyDefaultStyleSheetFromSdrModel() { @@ -71,7 +69,6 @@ namespace sdr // force ItemSet GetObjectItemSet(); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/pageproperties.cxx b/svx/source/sdr/properties/pageproperties.cxx index 7f5e92e4b377..7b21f30bf1be 100644 --- a/svx/source/sdr/properties/pageproperties.cxx +++ b/svx/source/sdr/properties/pageproperties.cxx @@ -28,9 +28,7 @@ #include <tools/debug.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { // create a new itemset std::unique_ptr<SfxItemSet> PageProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) @@ -98,7 +96,6 @@ namespace sdr { // simply ignore item clearing on page objects } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/properties.cxx b/svx/source/sdr/properties/properties.cxx index c76ecba49c8a..cb8c5c22e15d 100644 --- a/svx/source/sdr/properties/properties.cxx +++ b/svx/source/sdr/properties/properties.cxx @@ -31,9 +31,7 @@ using namespace com::sun::star; -namespace sdr -{ - namespace properties +namespace sdr::properties { BaseProperties::BaseProperties(SdrObject& rObj) : mrObject(rObj) @@ -190,7 +188,6 @@ namespace sdr } } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/rectangleproperties.cxx b/svx/source/sdr/properties/rectangleproperties.cxx index cff115198b62..66a5b4c9a548 100644 --- a/svx/source/sdr/properties/rectangleproperties.cxx +++ b/svx/source/sdr/properties/rectangleproperties.cxx @@ -21,9 +21,7 @@ #include <svx/svdorect.hxx> -namespace sdr -{ - namespace properties +namespace sdr::properties { RectangleProperties::RectangleProperties(SdrObject& rObj) : TextProperties(rObj) @@ -65,7 +63,6 @@ namespace sdr SdrRectObj& rObj = static_cast<SdrRectObj&>(GetSdrObject()); rObj.SetXPolyDirty(); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx index 1ba561ef527c..364f0f1618f5 100644 --- a/svx/source/sdr/properties/textproperties.cxx +++ b/svx/source/sdr/properties/textproperties.cxx @@ -45,9 +45,7 @@ using namespace com::sun::star; -namespace sdr -{ - namespace properties +namespace sdr::properties { std::unique_ptr<SfxItemSet> TextProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) { @@ -609,7 +607,6 @@ namespace sdr { return maVersion; } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/EmptyPanel.cxx b/svx/source/sidebar/EmptyPanel.cxx index a43bb33e9c04..23bf1ab2c17a 100644 --- a/svx/source/sidebar/EmptyPanel.cxx +++ b/svx/source/sidebar/EmptyPanel.cxx @@ -21,7 +21,7 @@ #include <svx/strings.hrc> #include <svx/dialmgr.hxx> -namespace svx { namespace sidebar { +namespace svx::sidebar { EmptyPanel::EmptyPanel (vcl::Window* pParent) : Control(pParent) @@ -57,6 +57,6 @@ void EmptyPanel::Resize() } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/SelectionAnalyzer.cxx b/svx/source/sidebar/SelectionAnalyzer.cxx index ea4fb5db2d7f..4dfe18cd07b4 100644 --- a/svx/source/sidebar/SelectionAnalyzer.cxx +++ b/svx/source/sidebar/SelectionAnalyzer.cxx @@ -28,7 +28,7 @@ using vcl::EnumContext; -namespace svx { namespace sidebar { +namespace svx::sidebar { EnumContext::Context SelectionAnalyzer::GetContextForSelection_SC (const SdrMarkList& rMarkList) { @@ -476,6 +476,6 @@ bool SelectionAnalyzer::IsTextObjType (const sal_uInt16 nType) } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/SelectionChangeHandler.cxx b/svx/source/sidebar/SelectionChangeHandler.cxx index ba00836deb22..580b67625c1e 100644 --- a/svx/source/sidebar/SelectionChangeHandler.cxx +++ b/svx/source/sidebar/SelectionChangeHandler.cxx @@ -30,7 +30,7 @@ using namespace css; using namespace css::uno; -namespace svx { namespace sidebar { +namespace svx::sidebar { SelectionChangeHandler::SelectionChangeHandler ( const std::function<OUString()>& rSelectionChangeCallback, @@ -99,6 +99,6 @@ void SelectionChangeHandler::Disconnect() } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/area/AreaPropertyPanel.cxx b/svx/source/sidebar/area/AreaPropertyPanel.cxx index 4ed887fb1469..19bfb333eb62 100644 --- a/svx/source/sidebar/area/AreaPropertyPanel.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanel.cxx @@ -36,7 +36,7 @@ using namespace css; using namespace css::uno; -namespace svx { namespace sidebar { +namespace svx::sidebar { AreaPropertyPanel::AreaPropertyPanel( vcl::Window* pParent, @@ -152,6 +152,6 @@ void AreaPropertyPanel::setFillStyleAndBitmap(const XFillStyleItem* pStyleItem, : std::initializer_list<SfxPoolItem const*>{ &rBitmapItem }); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index e04a8f1532e1..f9b800d25479 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -44,7 +44,7 @@ using namespace css::uno; const char SIDEBARGRADIENT[] = "sidebargradient"; -namespace svx { namespace sidebar { +namespace svx::sidebar { namespace { @@ -1438,6 +1438,6 @@ sal_Int32 AreaPropertyPanelBase::GetSelectedTransparencyTypeIndex() const return mxLBTransType->get_active(); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx b/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx index 7bb81287e104..ff0d5b1fc693 100644 --- a/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx +++ b/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx @@ -23,7 +23,7 @@ #include <svx/xflftrit.hxx> #include <svx/xgrad.hxx> -namespace svx { namespace sidebar { +namespace svx::sidebar { AreaTransparencyGradientPopup::AreaTransparencyGradientPopup(AreaPropertyPanelBase& rPanel, weld::Widget* pParent) : mrAreaPropertyPanel(rPanel) @@ -170,6 +170,6 @@ IMPL_LINK_NOARG(AreaTransparencyGradientPopup, Right_Click45_Impl, const OString ExecuteValueModify(nStartCol, nEndCol); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx index 9709834ef5ec..0d21d84397e4 100644 --- a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx +++ b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx @@ -32,7 +32,7 @@ using namespace css::uno; // namespace open -namespace svx { namespace sidebar { +namespace svx::sidebar { GraphicPropertyPanel::GraphicPropertyPanel( @@ -410,6 +410,6 @@ void GraphicPropertyPanel::NotifyItemUpdate( // namespace close -}} // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx index 344d8a02961b..2667ffe749a7 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.cxx +++ b/svx/source/sidebar/line/LinePropertyPanel.cxx @@ -44,7 +44,7 @@ using namespace css; using namespace css::uno; -namespace svx { namespace sidebar { +namespace svx::sidebar { LinePropertyPanel::LinePropertyPanel( vcl::Window* pParent, @@ -247,6 +247,6 @@ void LinePropertyPanel::setLineWidth(const XLineWidthItem& rItem) SfxCallMode::RECORD, { &rItem }); } -}} // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx index 75d84db0a6a5..fd17197df3f1 100644 --- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx +++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx @@ -53,7 +53,7 @@ using namespace css::uno; const char SELECTWIDTH[] = "SelectWidth"; -namespace svx { namespace sidebar { +namespace svx::sidebar { LinePropertyPanelBase::LinePropertyPanelBase( vcl::Window* pParent, @@ -802,6 +802,6 @@ void LinePropertyPanelBase::enableArrowHead() ActivateControls(); } -}} // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx index 206d41635a12..56a8f130f778 100644 --- a/svx/source/sidebar/line/LineWidthPopup.cxx +++ b/svx/source/sidebar/line/LineWidthPopup.cxx @@ -28,7 +28,7 @@ #include "LineWidthValueSet.hxx" #include <bitmaps.hlst> -namespace svx { namespace sidebar { +namespace svx::sidebar { LineWidthPopup::LineWidthPopup(weld::Widget* pParent, LinePropertyPanelBase& rParent) : m_rParent(rParent) @@ -220,6 +220,6 @@ IMPL_LINK_NOARG(LineWidthPopup, FocusHdl, weld::Widget&, void) m_xMFWidth->grab_focus(); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/line/LineWidthValueSet.cxx b/svx/source/sidebar/line/LineWidthValueSet.cxx index ce3a6ca7b1e1..df4afd8fdef7 100644 --- a/svx/source/sidebar/line/LineWidthValueSet.cxx +++ b/svx/source/sidebar/line/LineWidthValueSet.cxx @@ -23,7 +23,7 @@ #include <vcl/settings.hxx> #include <vcl/svapp.hxx> -namespace svx { namespace sidebar { +namespace svx::sidebar { LineWidthValueSet::LineWidthValueSet() : SvtValueSet(nullptr) @@ -167,6 +167,6 @@ void LineWidthValueSet::SetDrawingArea(weld::DrawingArea* pDrawingArea) SetOutputSizePixel(aSize); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/lists/ListsPropertyPanel.cxx b/svx/source/sidebar/lists/ListsPropertyPanel.cxx index 7e871222042f..7d2fcd3b9660 100644 --- a/svx/source/sidebar/lists/ListsPropertyPanel.cxx +++ b/svx/source/sidebar/lists/ListsPropertyPanel.cxx @@ -23,9 +23,7 @@ using namespace css; using namespace css::uno; -namespace svx -{ -namespace sidebar +namespace svx::sidebar { VclPtr<vcl::Window> ListsPropertyPanel::Create(vcl::Window* pParent, @@ -62,7 +60,6 @@ void ListsPropertyPanel::dispose() PanelLayout::dispose(); } -} } // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/media/MediaPlaybackPanel.cxx b/svx/source/sidebar/media/MediaPlaybackPanel.cxx index f6a6e54950a1..5fb0e2c8e86f 100644 --- a/svx/source/sidebar/media/MediaPlaybackPanel.cxx +++ b/svx/source/sidebar/media/MediaPlaybackPanel.cxx @@ -30,7 +30,7 @@ using namespace avmedia; -namespace svx { namespace sidebar { +namespace svx::sidebar { MediaPlaybackPanel::MediaPlaybackPanel ( vcl::Window* pParent, @@ -199,6 +199,6 @@ IMPL_LINK( MediaPlaybackPanel, PlayToolBoxSelectHdl, ToolBox*, pControl, void) } } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index b2a7b06793a2..2f18654af52f 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -64,7 +64,7 @@ using namespace com::sun::star::text; using namespace com::sun::star::container; using namespace com::sun::star::style; -namespace svx { namespace sidebar { +namespace svx::sidebar { namespace { @@ -918,6 +918,6 @@ bool OutlineTypeMgr::IsCustomized(sal_uInt16 nIndex) } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/nbdtmgfact.cxx b/svx/source/sidebar/nbdtmgfact.cxx index ff6589fc7c9a..b5263c7619dc 100644 --- a/svx/source/sidebar/nbdtmgfact.cxx +++ b/svx/source/sidebar/nbdtmgfact.cxx @@ -19,7 +19,7 @@ #include <svx/nbdtmgfact.hxx> -namespace svx { namespace sidebar { namespace NBOutlineTypeMgrFact { +namespace svx::sidebar::NBOutlineTypeMgrFact { NBOTypeMgrBase* CreateInstance(const NBOType aType) { @@ -38,6 +38,6 @@ NBOTypeMgrBase* CreateInstance(const NBOType aType) return nullptr; } -}}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index b14ca89aebdf..e22cd4bbda27 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -37,7 +37,7 @@ using namespace css; using namespace css::uno; -namespace svx {namespace sidebar { +namespace svx::sidebar { #define DEFAULT_VALUE 0 #define MAX_DURCH 5670 @@ -521,6 +521,6 @@ void ParaPropertyPanel::dispose() PanelLayout::dispose(); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index d902c27d84c2..c9f4b5d34c7d 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -53,7 +53,7 @@ using namespace css::uno; const char USERITEM_NAME[] = "FitItem"; -namespace svx { namespace sidebar { +namespace svx::sidebar { PosSizePropertyPanel::PosSizePropertyPanel( vcl::Window* pParent, @@ -1033,6 +1033,6 @@ void PosSizePropertyPanel::UpdateUIScale() } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx index b641101a6f79..5b97a5f619a0 100644 --- a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx +++ b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx @@ -34,7 +34,7 @@ using namespace css; using namespace css::uno; -namespace svx { namespace sidebar { +namespace svx::sidebar { ShadowPropertyPanel::ShadowPropertyPanel( vcl::Window* pParent, @@ -340,6 +340,4 @@ VclPtr<vcl::Window> ShadowPropertyPanel::Create ( } } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/shapes/DefaultShapesPanel.cxx b/svx/source/sidebar/shapes/DefaultShapesPanel.cxx index 04c855169296..86764f3af904 100644 --- a/svx/source/sidebar/shapes/DefaultShapesPanel.cxx +++ b/svx/source/sidebar/shapes/DefaultShapesPanel.cxx @@ -23,7 +23,7 @@ #include <vcl/outdev.hxx> #include <vcl/commandinfoprovider.hxx> -namespace svx { namespace sidebar { +namespace svx::sidebar { DefaultShapesPanel::DefaultShapesPanel ( vcl::Window* pParent, @@ -155,6 +155,6 @@ void DefaultShapesPanel::populateShapes() } } -} } // end of namespace sd::sidebar +} // end of namespace sd::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/shapes/ShapesUtil.cxx b/svx/source/sidebar/shapes/ShapesUtil.cxx index 0c87543edc27..ffd1acb62926 100644 --- a/svx/source/sidebar/shapes/ShapesUtil.cxx +++ b/svx/source/sidebar/shapes/ShapesUtil.cxx @@ -21,7 +21,7 @@ #include <map> #include <rtl/ustring.hxx> -namespace svx{ namespace sidebar{ +namespace svx::sidebar{ SvxShapeCommandsMap::SvxShapeCommandsMap() { mpLineShapes = decltype(mpLineShapes){ @@ -207,6 +207,6 @@ SvxShapeCommandsMap::SvxShapeCommandsMap() {7, ".uno:HalfSphere"} }; } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/svx/source/sidebar/styles/StylesPropertyPanel.cxx b/svx/source/sidebar/styles/StylesPropertyPanel.cxx index d06dcd3687c3..24189c80cfc7 100644 --- a/svx/source/sidebar/styles/StylesPropertyPanel.cxx +++ b/svx/source/sidebar/styles/StylesPropertyPanel.cxx @@ -7,7 +7,7 @@ using namespace css; using namespace css::uno; -namespace svx { namespace sidebar { +namespace svx::sidebar { VclPtr<vcl::Window> StylesPropertyPanel::Create ( vcl::Window* pParent, @@ -37,4 +37,4 @@ void StylesPropertyPanel::DataChanged( const DataChangedEvent& /*rEvent*/) } -}} +} diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx index eae6f95aa366..d96d51c86446 100644 --- a/svx/source/sidebar/text/TextPropertyPanel.cxx +++ b/svx/source/sidebar/text/TextPropertyPanel.cxx @@ -26,7 +26,7 @@ using namespace css; -namespace svx { namespace sidebar { +namespace svx::sidebar { VclPtr<vcl::Window> TextPropertyPanel::Create ( vcl::Window* pParent, @@ -111,6 +111,6 @@ void TextPropertyPanel::HandleContextChange ( mpToolBoxBackgroundColor->Show(bDrawText); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index c26a3220089b..92356778d333 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -28,7 +28,7 @@ #include <vcl/settings.hxx> #include <vcl/svapp.hxx> -namespace svx { namespace sidebar { +namespace svx::sidebar { ValueSetWithTextControl::ValueSetWithTextControl() : SvtValueSet(nullptr) @@ -119,6 +119,6 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) pDev->Pop(); } -} } // end of namespace svx::sidebar +} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index 67511b76fcc3..f4842d7d710d 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -145,9 +145,7 @@ SdrText* CellTextProvider::getText(sal_Int32 nIndex) const } -namespace sdr -{ - namespace properties +namespace sdr::properties { class CellProperties : public TextProperties { @@ -379,10 +377,9 @@ namespace sdr AttributeProperties::ItemChange( nWhich, pNewItem ); } - } // end of namespace properties -} // end of namespace sdr + } // end of namespace sdr -namespace sdr { namespace table { +namespace sdr::table { // Cell @@ -1701,6 +1698,6 @@ void Cell::dumpAsXml(xmlTextWriterPtr pWriter, sal_Int32 nRow, sal_Int32 nCol) c xmlTextWriterEndElement(pWriter); } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/cellcursor.cxx b/svx/source/table/cellcursor.cxx index 09197d1be194..8adecf6316e7 100644 --- a/svx/source/table/cellcursor.cxx +++ b/svx/source/table/cellcursor.cxx @@ -37,7 +37,7 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::table; -namespace sdr { namespace table { +namespace sdr::table { CellCursor::CellCursor( const TableModelRef & xTable, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) : CellCursorBase( xTable, nLeft, nTop, nRight, nBottom ) @@ -540,6 +540,6 @@ sal_Bool SAL_CALL CellCursor::isMergeable( ) } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/cellrange.cxx b/svx/source/table/cellrange.cxx index 416d104d8a9a..c0a7eee72261 100644 --- a/svx/source/table/cellrange.cxx +++ b/svx/source/table/cellrange.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::table; -namespace sdr { namespace table { +namespace sdr::table { CellRange::CellRange( const TableModelRef & xTable, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) : mxTable( xTable ) @@ -111,6 +111,6 @@ Reference< XCellRange > SAL_CALL CellRange::getCellRangeByName( const OUString& } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/propertyset.cxx b/svx/source/table/propertyset.cxx index 5a59e40143f1..300c877bf67e 100644 --- a/svx/source/table/propertyset.cxx +++ b/svx/source/table/propertyset.cxx @@ -24,7 +24,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; -namespace sdr { namespace table { +namespace sdr::table { FastPropertySetInfo::FastPropertySetInfo( const PropertyVector& rProps ) { @@ -201,6 +201,6 @@ void SAL_CALL FastPropertySet::firePropertiesChangeEvent( const Sequence< OUStri { } -}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index 50fb4cc94f39..45f89f38268f 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -82,7 +82,7 @@ using namespace ::com::sun::star::text; using namespace ::com::sun::star::container; using namespace ::com::sun::star::style; -namespace sdr { namespace table { +namespace sdr::table { namespace { @@ -2533,6 +2533,6 @@ bool SdrTableObj::createTableEdgesJson(boost::property_tree::ptree & rJsonRoot) return true; } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablecolumn.cxx b/svx/source/table/tablecolumn.cxx index 2342c6f10c87..016746a1eea9 100644 --- a/svx/source/table/tablecolumn.cxx +++ b/svx/source/table/tablecolumn.cxx @@ -34,7 +34,7 @@ using namespace ::com::sun::star::table; using namespace ::com::sun::star::beans; -namespace sdr { namespace table { +namespace sdr::table { const sal_Int32 Property_Width = 0; const sal_Int32 Property_OptimalWidth = 1; @@ -283,6 +283,6 @@ sal_Int32 TableColumn::getWidth() const return mnWidth; } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablecolumns.cxx b/svx/source/table/tablecolumns.cxx index d56a124f05a3..1b033c14eae0 100644 --- a/svx/source/table/tablecolumns.cxx +++ b/svx/source/table/tablecolumns.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::table; -namespace sdr { namespace table { +namespace sdr::table { TableColumns::TableColumns( const TableModelRef& xTableModel ) : mxTableModel( xTableModel ) @@ -115,6 +115,6 @@ sal_Bool SAL_CALL TableColumns::hasElements() } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 3b53fe2f7e61..54c67302cd9a 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -110,7 +110,7 @@ enum class CellPosFlag // signals the relative position of a cell to a selectio namespace o3tl { template<> struct typed_flags<CellPosFlag> : is_typed_flags<CellPosFlag, 0xff> {}; } -namespace sdr { namespace table { +namespace sdr::table { namespace { @@ -3253,6 +3253,6 @@ bool SvxTableController::setCursorLogicPosition(const Point& rPosition, bool bPo return false; } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tabledesign.cxx b/svx/source/table/tabledesign.cxx index c80f4ace3f60..153cfc3f72c4 100644 --- a/svx/source/table/tabledesign.cxx +++ b/svx/source/table/tabledesign.cxx @@ -61,7 +61,7 @@ using ::osl::MutexGuard; using ::osl::ClearableMutexGuard; using ::cppu::OInterfaceContainerHelper; -namespace sdr { namespace table { +namespace sdr::table { typedef std::map< OUString, sal_Int32 > CellStyleNameMap; @@ -720,6 +720,6 @@ Reference< XNameAccess > CreateTableDesignFamily() return new TableDesignFamily; } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablehandles.cxx b/svx/source/table/tablehandles.cxx index ea7fd2e3306f..86a60dc3c717 100644 --- a/svx/source/table/tablehandles.cxx +++ b/svx/source/table/tablehandles.cxx @@ -39,7 +39,7 @@ #include <sdr/overlay/overlayrectangle.hxx> #include <drawinglayer/primitive2d/hiddengeometryprimitive2d.hxx> -namespace sdr { namespace table { +namespace sdr::table { namespace { @@ -312,7 +312,6 @@ void TableBorderHdl::CreateB2dIAObject() } -} // end of namespace table } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx index 11ac8da225d8..492208a99586 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -47,7 +47,7 @@ using namespace ::com::sun::star::table; using namespace ::com::sun::star::text; -namespace sdr { namespace table { +namespace sdr::table { static SvxBorderLine gEmptyBorder; @@ -1314,6 +1314,6 @@ void TableLayouter::Layout::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterEndElement(pWriter); } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx index 7b0cc4de5806..464f862c0947 100644 --- a/svx/source/table/tablemodel.cxx +++ b/svx/source/table/tablemodel.cxx @@ -52,7 +52,7 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::util; -namespace sdr { namespace table { +namespace sdr::table { // removes the given range from a vector @@ -1112,6 +1112,6 @@ void TableModel::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterEndElement(pWriter); } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablerow.cxx b/svx/source/table/tablerow.cxx index f7ca4d8d40d0..2bb1f15d5c6f 100644 --- a/svx/source/table/tablerow.cxx +++ b/svx/source/table/tablerow.cxx @@ -35,7 +35,7 @@ using namespace ::com::sun::star::table; using namespace ::com::sun::star::beans; -namespace sdr { namespace table { +namespace sdr::table { const sal_Int32 Property_Height = 0; const sal_Int32 Property_OptimalHeight = 1; @@ -346,6 +346,6 @@ rtl::Reference< FastPropertySetInfo > TableRow::getStaticPropertySetInfo() } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablerows.cxx b/svx/source/table/tablerows.cxx index 572210ce1bb3..479098ae817d 100644 --- a/svx/source/table/tablerows.cxx +++ b/svx/source/table/tablerows.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::table; -namespace sdr { namespace table { +namespace sdr::table { TableRows::TableRows( const TableModelRef& xTableModel ) : mxTableModel( xTableModel ) @@ -109,6 +109,6 @@ sal_Bool SAL_CALL TableRows::hasElements() } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablertfexporter.cxx b/svx/source/table/tablertfexporter.cxx index ef1823cf7fed..4a27e670a7f8 100644 --- a/svx/source/table/tablertfexporter.cxx +++ b/svx/source/table/tablertfexporter.cxx @@ -46,7 +46,7 @@ using namespace ::com::sun::star::table; using namespace ::com::sun::star::container; using namespace ::com::sun::star::beans; -namespace sdr { namespace table { +namespace sdr::table { class SdrTableRtfExporter { @@ -240,6 +240,6 @@ void SdrTableRtfExporter::WriteCell( sal_Int32 nCol, sal_Int32 nRow ) mrStrm.WriteCharPtr( OOO_STRING_SVTOOLS_RTF_PLAIN ); } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tablertfimporter.cxx b/svx/source/table/tablertfimporter.cxx index 267c6a9c6519..d342856bedee 100644 --- a/svx/source/table/tablertfimporter.cxx +++ b/svx/source/table/tablertfimporter.cxx @@ -47,7 +47,7 @@ using namespace ::com::sun::star::table; using namespace ::com::sun::star::container; using namespace ::com::sun::star::beans; -namespace sdr { namespace table { +namespace sdr::table { namespace { @@ -504,6 +504,6 @@ void SdrTableObj::ImportAsRTF( SvStream& rStream, SdrTableObj& rObj ) aParser.Read( rStream ); } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/tableundo.cxx b/svx/source/table/tableundo.cxx index 7b1b070b4458..d0433bbe9b54 100644 --- a/svx/source/table/tableundo.cxx +++ b/svx/source/table/tableundo.cxx @@ -32,7 +32,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::table; -namespace sdr { namespace table { +namespace sdr::table { CellUndo::CellUndo( const tools::WeakReference<SdrObject>& xObjRef, const CellRef& xCell ) : SdrUndoAction(xCell->GetObject().getSdrModelFromSdrObject()) @@ -513,6 +513,6 @@ void TableStyleUndo::getData( Data& rData ) } } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/table/viewcontactoftableobj.cxx b/svx/source/table/viewcontactoftableobj.cxx index 3687df3424e9..24efdd8d3663 100644 --- a/svx/source/table/viewcontactoftableobj.cxx +++ b/svx/source/table/viewcontactoftableobj.cxx @@ -50,9 +50,7 @@ using editeng::SvxBorderLine; using namespace com::sun::star; -namespace drawinglayer -{ - namespace primitive2d +namespace drawinglayer::primitive2d { namespace { @@ -146,12 +144,9 @@ namespace drawinglayer // provide unique ID ImplPrimitive2DIDBlock(SdrCellPrimitive2D, PRIMITIVE2D_ID_SDRCELLPRIMITIVE2D) - } // end of namespace primitive2d -} // end of namespace drawinglayer + } // end of namespace drawinglayer -namespace sdr -{ - namespace contact +namespace sdr::contact { static svx::frame::Style impGetLineStyle( const sdr::table::TableLayouter& rLayouter, @@ -421,7 +416,6 @@ namespace sdr ViewContactOfTableObj::~ViewContactOfTableObj() { } - } // end of namespace contact -} // end of namespace sdr + } // end of namespace sdr /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 14f9313c625d..a75d159dd41d 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -56,7 +56,7 @@ using namespace com::sun::star; using namespace com::sun::star::uno; using namespace com::sun::star::io; -namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } +namespace com::sun::star::uno { class XComponentContext; } #define XML_GRAPHICSTORAGE_NAME "Pictures" #define XML_GRAPHICOBJECT_URL_BASE "vnd.sun.star.GraphicObject:" |