summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-09 15:54:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-09 20:02:08 +0200
commit32ff26f771a90050f524968dfd5381818274f673 (patch)
treee9630b8d37ed6b4bb5cdfb3bc3975680201a2b51 /sc/source/ui
parentde3ba2df0a5ddccee02d9cf55f60a5ce348c00f1 (diff)
compact namespace in sc
Change-Id: I05ffad6b92883d3eb6d337fe75f5fc7864485861 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93860 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/inc/AccessibleCell.hxx2
-rw-r--r--sc/source/ui/inc/autofmt.hxx2
-rw-r--r--sc/source/ui/inc/checklistmenu.hxx6
-rw-r--r--sc/source/ui/inc/condformatuno.hxx10
-rw-r--r--sc/source/ui/inc/csvcontrol.hxx4
-rw-r--r--sc/source/ui/inc/dbdocfun.hxx9
-rw-r--r--sc/source/ui/inc/dbfunc.hxx5
-rw-r--r--sc/source/ui/inc/docsh.hxx12
-rw-r--r--sc/source/ui/inc/drawsh.hxx4
-rw-r--r--sc/source/ui/inc/drawview.hxx2
-rw-r--r--sc/source/ui/inc/gridwin.hxx4
-rw-r--r--sc/source/ui/inc/optsolver.hxx4
-rw-r--r--sc/source/ui/inc/output.hxx2
-rw-r--r--sc/source/ui/inc/solveroptions.hxx4
-rw-r--r--sc/source/ui/inc/solverutil.hxx4
-rw-r--r--sc/source/ui/inc/tabview.hxx6
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx4
-rw-r--r--sc/source/ui/inc/tbzoomsliderctrl.hxx2
-rw-r--r--sc/source/ui/inc/tphfedit.hxx2
-rw-r--r--sc/source/ui/inc/transobj.hxx4
-rw-r--r--sc/source/ui/inc/viewfunc.hxx4
-rw-r--r--sc/source/ui/sidebar/AlignmentPropertyPanel.hxx4
-rw-r--r--sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx4
-rw-r--r--sc/source/ui/sidebar/CellBorderStyleControl.hxx4
-rw-r--r--sc/source/ui/sidebar/CellLineStyleControl.hxx4
-rw-r--r--sc/source/ui/sidebar/CellLineStyleValueSet.hxx4
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx4
-rw-r--r--sc/source/ui/sidebar/ScPanelFactory.hxx4
-rw-r--r--sc/source/ui/unoobj/celllistsource.hxx4
-rw-r--r--sc/source/ui/unoobj/cellvaluebinding.hxx6
-rw-r--r--sc/source/ui/unoobj/scdetect.hxx4
-rw-r--r--sc/source/ui/vba/excelvbahelper.hxx20
-rw-r--r--sc/source/ui/vba/service.hxx2
-rw-r--r--sc/source/ui/vba/vbaapplication.hxx6
-rw-r--r--sc/source/ui/vba/vbaaxes.hxx4
-rw-r--r--sc/source/ui/vba/vbaborders.hxx6
-rw-r--r--sc/source/ui/vba/vbachartobjects.hxx8
-rw-r--r--sc/source/ui/vba/vbacondition.hxx4
-rw-r--r--sc/source/ui/vba/vbadialogs.hxx4
-rw-r--r--sc/source/ui/vba/vbafiledialog.hxx6
-rw-r--r--sc/source/ui/vba/vbafont.hxx2
-rw-r--r--sc/source/ui/vba/vbaformat.hxx16
-rw-r--r--sc/source/ui/vba/vbaformatconditions.hxx10
-rw-r--r--sc/source/ui/vba/vbaglobals.hxx4
-rw-r--r--sc/source/ui/vba/vbahyperlink.hxx6
-rw-r--r--sc/source/ui/vba/vbamenubars.hxx2
-rw-r--r--sc/source/ui/vba/vbamenuitems.hxx4
-rw-r--r--sc/source/ui/vba/vbamenus.hxx4
-rw-r--r--sc/source/ui/vba/vbaname.hxx4
-rw-r--r--sc/source/ui/vba/vbanames.hxx2
-rw-r--r--sc/source/ui/vba/vbaoutline.hxx4
-rw-r--r--sc/source/ui/vba/vbapagebreak.hxx6
-rw-r--r--sc/source/ui/vba/vbapagebreaks.hxx4
-rw-r--r--sc/source/ui/vba/vbapalette.hxx4
-rw-r--r--sc/source/ui/vba/vbapivottables.hxx2
-rw-r--r--sc/source/ui/vba/vbarange.hxx14
-rw-r--r--sc/source/ui/vba/vbasheetobject.hxx4
-rw-r--r--sc/source/ui/vba/vbasheetobjects.hxx4
-rw-r--r--sc/source/ui/vba/vbastyles.hxx4
-rw-r--r--sc/source/ui/vba/vbavalidation.hxx4
-rw-r--r--sc/source/ui/vba/vbawindows.hxx2
-rw-r--r--sc/source/ui/vba/vbaworksheet.hxx18
-rw-r--r--sc/source/ui/vba/vbaworksheets.hxx8
63 files changed, 148 insertions, 182 deletions
diff --git a/sc/source/ui/inc/AccessibleCell.hxx b/sc/source/ui/inc/AccessibleCell.hxx
index a2f8e5be9113..7cc5683a6633 100644
--- a/sc/source/ui/inc/AccessibleCell.hxx
+++ b/sc/source/ui/inc/AccessibleCell.hxx
@@ -28,7 +28,7 @@
#include <editeng/AccessibleStaticTextBase.hxx>
#include <comphelper/uno3.hxx>
-namespace com { namespace sun { namespace star { namespace accessibility { class XAccessibleRelationSet; } } } }
+namespace com::sun::star::accessibility { class XAccessibleRelationSet; }
namespace utl { class AccessibleRelationSetHelper; }
class ScTabViewShell;
diff --git a/sc/source/ui/inc/autofmt.hxx b/sc/source/ui/inc/autofmt.hxx
index 84a29c6b6d19..682aa019fecc 100644
--- a/sc/source/ui/inc/autofmt.hxx
+++ b/sc/source/ui/inc/autofmt.hxx
@@ -24,7 +24,7 @@
#include <scdllapi.h>
#include <vcl/customweld.hxx>
-namespace com { namespace sun { namespace star { namespace i18n { class XBreakIterator; } } } }
+namespace com::sun::star::i18n { class XBreakIterator; }
class ScAutoFormatData;
class SvxBoxItem;
diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx
index 6fba5f249840..f66e204b6b76 100644
--- a/sc/source/ui/inc/checklistmenu.hxx
+++ b/sc/source/ui/inc/checklistmenu.hxx
@@ -22,13 +22,11 @@
#include <map>
#include <set>
-namespace com { namespace sun { namespace star {
-
+namespace com::sun::star {
namespace accessibility {
class XAccessible;
}
-
-}}}
+}
class ScDocument;
class ScAccessibleFilterMenu;
diff --git a/sc/source/ui/inc/condformatuno.hxx b/sc/source/ui/inc/condformatuno.hxx
index ac34f0a68a0b..c342e78e43ea 100644
--- a/sc/source/ui/inc/condformatuno.hxx
+++ b/sc/source/ui/inc/condformatuno.hxx
@@ -37,15 +37,7 @@ class ScCondDateFormatEntry;
using namespace com::sun::star;
-namespace com { namespace sun { namespace star {
-
-namespace sheet {
-
-class XSheetCellRanges;
-
-}
-
-} } }
+namespace com::sun::star::sheet { class XSheetCellRanges; }
class ScCondFormatsObj : public cppu::WeakImplHelper<css::sheet::XConditionalFormats>,
public SfxListener
diff --git a/sc/source/ui/inc/csvcontrol.hxx b/sc/source/ui/inc/csvcontrol.hxx
index ca7595415122..8a87e306341e 100644
--- a/sc/source/ui/inc/csvcontrol.hxx
+++ b/sc/source/ui/inc/csvcontrol.hxx
@@ -29,9 +29,7 @@
#include <vcl/customweld.hxx>
#include "AccessibleCsvControl.hxx"
-namespace com { namespace sun { namespace star { namespace accessibility {
- class XAccessible;
-} } } }
+namespace com::sun::star::accessibility { class XAccessible; }
/** Minimum character count for a column in separators mode. */
const sal_Int32 CSV_MINCOLWIDTH = 8;
diff --git a/sc/source/ui/inc/dbdocfun.hxx b/sc/source/ui/inc/dbdocfun.hxx
index 8ba37a18f077..827c7c85ccab 100644
--- a/sc/source/ui/inc/dbdocfun.hxx
+++ b/sc/source/ui/inc/dbdocfun.hxx
@@ -34,13 +34,8 @@ class ScDocShell;
class ScDPObject;
class ScDBCollection;
-namespace com { namespace sun { namespace star { namespace uno { template <typename > class Sequence; } } } }
-
-namespace com { namespace sun { namespace star {
- namespace beans {
- struct PropertyValue;
- }
-} } }
+namespace com::sun::star::uno { template <typename > class Sequence; }
+namespace com::sun::star::beans { struct PropertyValue; }
namespace svx {
class ODataAccessDescriptor;
diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx
index 2ec848cc473c..139e9cc926a6 100644
--- a/sc/source/ui/inc/dbfunc.hxx
+++ b/sc/source/ui/inc/dbfunc.hxx
@@ -23,10 +23,7 @@
#include "viewfunc.hxx"
#include <dptypes.hxx>
-namespace com { namespace sun { namespace star { namespace sheet {
- struct DataPilotFieldFilter;
-}}}}
-
+namespace com::sun::star::sheet { struct DataPilotFieldFilter; }
struct ScSortParam;
struct ScQueryParam;
class ScDBData;
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index 26d5d8a0eaf4..e23067503bae 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -58,15 +58,9 @@ class ScSheetSaveData;
class ScFlatBoolRowSegments;
struct ScColWidthParam;
class ScFormulaOptions;
-
-namespace com { namespace sun { namespace star { namespace script { namespace vba {
- class XVBAScriptListener;
-} } } } }
-
-namespace ooo { namespace vba { namespace excel { class XWorkbook; } } }
-
-namespace com { namespace sun { namespace star { namespace datatransfer { class XTransferable2; } } } }
-
+namespace com::sun::star::script::vba { class XVBAScriptListener; }
+namespace ooo::vba::excel { class XWorkbook; }
+namespace com::sun::star::datatransfer { class XTransferable2; }
namespace sfx2 { class FileDialogHelper; }
struct DocShell_Impl;
diff --git a/sc/source/ui/inc/drawsh.hxx b/sc/source/ui/inc/drawsh.hxx
index 082a772c679f..62d3a69515cf 100644
--- a/sc/source/ui/inc/drawsh.hxx
+++ b/sc/source/ui/inc/drawsh.hxx
@@ -35,9 +35,7 @@ class SdrObject;
namespace weld { class Window; }
-namespace svx { namespace sidebar {
-class SelectionChangeHandler;
-} }
+namespace svx::sidebar { class SelectionChangeHandler; }
class ScDrawShell : public SfxShell
{
diff --git a/sc/source/ui/inc/drawview.hxx b/sc/source/ui/inc/drawview.hxx
index 9fe94d062824..444ce0d7b421 100644
--- a/sc/source/ui/inc/drawview.hxx
+++ b/sc/source/ui/inc/drawview.hxx
@@ -24,7 +24,7 @@
#include <global.hxx>
-namespace com { namespace sun { namespace star { namespace datatransfer { class XTransferable; } } } }
+namespace com::sun::star::datatransfer { class XTransferable; }
class ScDocument;
class ScViewData;
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index e712e3dcf634..5f0844a1547f 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -39,7 +39,7 @@ namespace sc {
struct SpellCheckContext;
}
-namespace sdr { namespace overlay { class OverlayManager; } }
+namespace sdr::overlay { class OverlayManager; }
class FmFormView;
struct ScTableInfo;
@@ -80,7 +80,7 @@ struct SpellCallbackInfo;
#define SC_PD_BREAK_V 32
// predefines
-namespace sdr { namespace overlay { class OverlayObjectList; }}
+namespace sdr::overlay { class OverlayObjectList; }
class SAL_DLLPUBLIC_RTTI ScGridWindow : public vcl::Window, public DropTargetHelper, public DragSourceHelper
{
diff --git a/sc/source/ui/inc/optsolver.hxx b/sc/source/ui/inc/optsolver.hxx
index 09ed06d6dd46..313a7e23bdf6 100644
--- a/sc/source/ui/inc/optsolver.hxx
+++ b/sc/source/ui/inc/optsolver.hxx
@@ -26,9 +26,9 @@
#include <vector>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct PropertyValue; }
-} } }
+}
class ScCursorRefEdit : public formula::RefEdit
{
diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx
index 6cb8af794c58..7f84f00d4808 100644
--- a/sc/source/ui/inc/output.hxx
+++ b/sc/source/ui/inc/output.hxx
@@ -36,7 +36,7 @@ namespace sc {
namespace editeng {
struct MisspellRanges;
}
-namespace drawinglayer { namespace processor2d { class BaseProcessor2D; } }
+namespace drawinglayer::processor2d { class BaseProcessor2D; }
namespace vcl { class Font; }
class EditEngine;
diff --git a/sc/source/ui/inc/solveroptions.hxx b/sc/source/ui/inc/solveroptions.hxx
index edce0a56b226..d58244eb27aa 100644
--- a/sc/source/ui/inc/solveroptions.hxx
+++ b/sc/source/ui/inc/solveroptions.hxx
@@ -23,9 +23,9 @@
#include <vcl/weld.hxx>
#include <com/sun/star/uno/Sequence.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct PropertyValue; }
-} } }
+}
class ScSolverOptionsString
{
diff --git a/sc/source/ui/inc/solverutil.hxx b/sc/source/ui/inc/solverutil.hxx
index 7d9667e520f0..fd6a8f26b50f 100644
--- a/sc/source/ui/inc/solverutil.hxx
+++ b/sc/source/ui/inc/solverutil.hxx
@@ -23,10 +23,10 @@
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct PropertyValue; }
namespace sheet { class XSolver; }
-} } }
+}
class ScSolverUtil
{
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index 78182b799489..a46c76666145 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -52,11 +52,7 @@ class SdrObject;
class ScPageBreakData;
class SdrHdlList;
class TabBar;
-
-namespace com { namespace sun { namespace star {
-namespace chart2 { namespace data {
- struct HighlightedRange;
-}}}}}
+namespace com::sun::star::chart2::data { struct HighlightedRange; }
enum HeaderType
{
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 7193f75ceb45..fad4de239c35 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -64,9 +64,7 @@ struct ScHeaderFieldData;
namespace editeng { class SvxBorderLine; }
-namespace com { namespace sun { namespace star { namespace frame {
- class XDispatchProviderInterceptor;
-} } } }
+namespace com::sun::star::frame { class XDispatchProviderInterceptor; }
namespace svx {
class ExtrusionBar;
diff --git a/sc/source/ui/inc/tbzoomsliderctrl.hxx b/sc/source/ui/inc/tbzoomsliderctrl.hxx
index cf380c11b37d..3f22ba1b4b9e 100644
--- a/sc/source/ui/inc/tbzoomsliderctrl.hxx
+++ b/sc/source/ui/inc/tbzoomsliderctrl.hxx
@@ -25,7 +25,7 @@
#include <svtools/InterimItemWindow.hxx>
#include <sfx2/tbxctrl.hxx>
-namespace com { namespace sun { namespace star { namespace frame { class XDispatchProvider; } } } }
+namespace com::sun::star::frame { class XDispatchProvider; }
class SvxZoomSliderItem;
diff --git a/sc/source/ui/inc/tphfedit.hxx b/sc/source/ui/inc/tphfedit.hxx
index d5937766300a..85b8984c821d 100644
--- a/sc/source/ui/inc/tphfedit.hxx
+++ b/sc/source/ui/inc/tphfedit.hxx
@@ -29,7 +29,7 @@
#include <functional>
-namespace com { namespace sun { namespace star { namespace accessibility { class XAccessible; } } } }
+namespace com::sun::star::accessibility { class XAccessible; }
class ScHeaderEditEngine;
class ScPatternAttr;
diff --git a/sc/source/ui/inc/transobj.hxx b/sc/source/ui/inc/transobj.hxx
index c492a291b1dc..dc046fdfea56 100644
--- a/sc/source/ui/inc/transobj.hxx
+++ b/sc/source/ui/inc/transobj.hxx
@@ -30,11 +30,11 @@ class ScDocShell;
class ScMarkData;
enum class ScDragSrc;
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace sheet {
class XSheetCellRanges;
}
-}}}
+}
class SAL_DLLPUBLIC_RTTI ScTransferObj : public TransferDataContainer
{
diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx
index fd1e05fa1a67..a8d4a25985c6 100644
--- a/sc/source/ui/inc/viewfunc.hxx
+++ b/sc/source/ui/inc/viewfunc.hxx
@@ -49,7 +49,7 @@ class ScTableProtection;
enum class CreateNameFlags;
namespace editeng { class SvxBorderLine; }
-namespace com { namespace sun { namespace star { namespace embed { class XEmbeddedObject; } } } }
+namespace com::sun::star::embed { class XEmbeddedObject; }
namespace sc {
@@ -57,7 +57,7 @@ struct ColRowSpan;
}
-namespace com { namespace sun { namespace star { namespace datatransfer { class XTransferable; } } } }
+namespace com::sun::star::datatransfer { class XTransferable; }
struct ScDataFormFragment
{
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
index eeee1a87307f..bcd3e1ebadba 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
@@ -25,7 +25,7 @@
#include <sfx2/sidebar/PanelLayout.hxx>
#include <vcl/EnumContext.hxx>
-namespace sc { namespace sidebar {
+namespace sc::sidebar {
class AlignmentPropertyPanel
: public PanelLayout,
@@ -115,7 +115,7 @@ private:
void Initialize();
};
-} } // end of namespace ::sc::sidebar
+} // end of namespace ::sc::sidebar
#endif
diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
index f0de1df41b60..1747e9f0a37d 100644
--- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
+++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
@@ -28,7 +28,7 @@
class ToolbarUnoDispatcher;
class ToolbarPopupContainer;
-namespace sc { namespace sidebar {
+namespace sc::sidebar {
class CellAppearancePropertyPanel
: public PanelLayout,
@@ -146,7 +146,7 @@ private:
void UpdateCellBorder(bool bTop, bool bBot, bool bLeft, bool bRight, bool bVer, bool bHor);
};
-} } // end of namespace ::sc::sidebar
+} // end of namespace ::sc::sidebar
#endif
diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.hxx b/sc/source/ui/sidebar/CellBorderStyleControl.hxx
index 7602f52b6fb5..8db91ea32891 100644
--- a/sc/source/ui/sidebar/CellBorderStyleControl.hxx
+++ b/sc/source/ui/sidebar/CellBorderStyleControl.hxx
@@ -24,7 +24,7 @@
class SfxDispatcher;
-namespace sc { namespace sidebar {
+namespace sc::sidebar {
class CellBorderStylePopup : public WeldToolbarPopup
{
@@ -48,7 +48,7 @@ public:
virtual ~CellBorderStylePopup() override;
};
-} } // end of namespace svx::sidebar
+} // end of namespace svx::sidebar
#endif // INCLUDED_SC_SOURCE_UI_SIDEBAR_CELLBORDERSTYLECONTROL_HXX
diff --git a/sc/source/ui/sidebar/CellLineStyleControl.hxx b/sc/source/ui/sidebar/CellLineStyleControl.hxx
index 29b10904f514..693641ae9d38 100644
--- a/sc/source/ui/sidebar/CellLineStyleControl.hxx
+++ b/sc/source/ui/sidebar/CellLineStyleControl.hxx
@@ -25,7 +25,7 @@
class SfxDispatcher;
-namespace sc { namespace sidebar {
+namespace sc::sidebar {
class CellLineStylePopup : public WeldToolbarPopup
{
@@ -50,7 +50,7 @@ public:
virtual ~CellLineStylePopup() override;
};
-} } // end of namespace svx::sidebar
+} // end of namespace svx::sidebar
#endif // INCLUDED_SC_SOURCE_UI_SIDEBAR_CELLLINESTYLECONTROL_HXX
diff --git a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
index 598975aa3afb..5e3f55c4ce18 100644
--- a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
+++ b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
@@ -23,7 +23,7 @@
#define CELL_LINE_STYLE_ENTRIES 9
-namespace sc { namespace sidebar {
+namespace sc::sidebar {
class CellLineStyleValueSet : public ValueSet
{
@@ -40,7 +40,7 @@ public:
virtual void UserDraw( const UserDrawEvent& rUDEvt ) override;
};
-} } // end of namespace svx::sidebar
+} // end of namespace svx::sidebar
#endif // INCLUDED_SC_SOURCE_UI_SIDEBAR_CELLLINESTYLEVALUESET_HXX
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
index 3b50b6133054..4eb246dfc7ac 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
@@ -25,7 +25,7 @@
#include <sfx2/sidebar/PanelLayout.hxx>
#include <vcl/EnumContext.hxx>
-namespace sc { namespace sidebar {
+namespace sc::sidebar {
class NumberFormatPropertyPanel
: public PanelLayout,
@@ -94,7 +94,7 @@ private:
void DisableControls();
};
-} } // end of namespace ::sc::sidebar
+} // end of namespace ::sc::sidebar
#endif
diff --git a/sc/source/ui/sidebar/ScPanelFactory.hxx b/sc/source/ui/sidebar/ScPanelFactory.hxx
index ca2eb6ae100b..8154fd9eea45 100644
--- a/sc/source/ui/sidebar/ScPanelFactory.hxx
+++ b/sc/source/ui/sidebar/ScPanelFactory.hxx
@@ -24,7 +24,7 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/ui/XUIElementFactory.hpp>
-namespace sc { namespace sidebar {
+namespace sc::sidebar {
typedef ::cppu::WeakComponentImplHelper <
css::ui::XUIElementFactory, css::lang::XServiceInfo
@@ -54,7 +54,7 @@ public:
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
};
-} } // end of namespace sc::sidebar
+} // end of namespace sc::sidebar
#endif
diff --git a/sc/source/ui/unoobj/celllistsource.hxx b/sc/source/ui/unoobj/celllistsource.hxx
index 9d8d5f5cf2a8..7a09e42cc9db 100644
--- a/sc/source/ui/unoobj/celllistsource.hxx
+++ b/sc/source/ui/unoobj/celllistsource.hxx
@@ -32,8 +32,8 @@
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/util/XModifyListener.hpp>
-namespace com { namespace sun { namespace star { namespace sheet { class XSpreadsheetDocument; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XCellRange; } } } }
+namespace com::sun::star::sheet { class XSpreadsheetDocument; }
+namespace com::sun::star::table { class XCellRange; }
namespace calc
{
diff --git a/sc/source/ui/unoobj/cellvaluebinding.hxx b/sc/source/ui/unoobj/cellvaluebinding.hxx
index 9259de5f9c7a..d68a6569ba62 100644
--- a/sc/source/ui/unoobj/cellvaluebinding.hxx
+++ b/sc/source/ui/unoobj/cellvaluebinding.hxx
@@ -31,9 +31,9 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
-namespace com { namespace sun { namespace star { namespace table { class XCell; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSpreadsheetDocument; } } } }
-namespace com { namespace sun { namespace star { namespace text { class XTextRange; } } } }
+namespace com::sun::star::table { class XCell; }
+namespace com::sun::star::sheet { class XSpreadsheetDocument; }
+namespace com::sun::star::text { class XTextRange; }
namespace calc
{
diff --git a/sc/source/ui/unoobj/scdetect.hxx b/sc/source/ui/unoobj/scdetect.hxx
index b7db12709aa0..4507e75ef1ee 100644
--- a/sc/source/ui/unoobj/scdetect.hxx
+++ b/sc/source/ui/unoobj/scdetect.hxx
@@ -27,9 +27,9 @@
#include <rtl/ustring.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace beans { struct PropertyValue; }
-}}}
+}
class ScFilterDetect : public ::cppu::WeakImplHelper< css::document::XExtendedFilterDetection, css::lang::XServiceInfo >
{
diff --git a/sc/source/ui/vba/excelvbahelper.hxx b/sc/source/ui/vba/excelvbahelper.hxx
index 04007ed16d77..59fa052c3b8e 100644
--- a/sc/source/ui/vba/excelvbahelper.hxx
+++ b/sc/source/ui/vba/excelvbahelper.hxx
@@ -23,17 +23,17 @@
#include <vector>
#include <global.hxx>
-namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::frame { class XModel; }
+namespace com::sun::star::uno { class XComponentContext; }
-namespace com { namespace sun { namespace star { namespace sheet { class XDatabaseRange; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XUnnamedDatabaseRanges; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XCell; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XCellRange; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSheetCellRangeContainer; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSpreadsheet; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSpreadsheetDocument; } } } }
-namespace ooo { namespace vba { class XHelperInterface; } }
+namespace com::sun::star::sheet { class XDatabaseRange; }
+namespace com::sun::star::sheet { class XUnnamedDatabaseRanges; }
+namespace com::sun::star::table { class XCell; }
+namespace com::sun::star::table { class XCellRange; }
+namespace com::sun::star::sheet { class XSheetCellRangeContainer; }
+namespace com::sun::star::sheet { class XSpreadsheet; }
+namespace com::sun::star::sheet { class XSpreadsheetDocument; }
+namespace ooo::vba { class XHelperInterface; }
class ScCellRangesBase;
class ScTabViewShell;
diff --git a/sc/source/ui/vba/service.hxx b/sc/source/ui/vba/service.hxx
index 5735551508e5..06b8e68ba0f1 100644
--- a/sc/source/ui/vba/service.hxx
+++ b/sc/source/ui/vba/service.hxx
@@ -12,7 +12,7 @@
#include <sal/config.h>
-namespace comphelper { namespace service_decl { class ServiceDecl; } }
+namespace comphelper::service_decl { class ServiceDecl; }
namespace application {
extern comphelper::service_decl::ServiceDecl const serviceDecl;
diff --git a/sc/source/ui/vba/vbaapplication.hxx b/sc/source/ui/vba/vbaapplication.hxx
index e0051ba3b966..eac54601d260 100644
--- a/sc/source/ui/vba/vbaapplication.hxx
+++ b/sc/source/ui/vba/vbaapplication.hxx
@@ -27,9 +27,9 @@
#include <vbahelper/vbaapplicationbase.hxx>
#include <cppuhelper/implbase.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace ooo { namespace vba { class XSink; } }
-namespace ooo { namespace vba { namespace excel { class XFileDialog; } } }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace ooo::vba { class XSink; }
+namespace ooo::vba::excel { class XFileDialog; }
typedef cppu::ImplInheritanceHelper< VbaApplicationBase, ov::excel::XApplication, ov::XSinkCaller > ScVbaApplication_BASE;
diff --git a/sc/source/ui/vba/vbaaxes.hxx b/sc/source/ui/vba/vbaaxes.hxx
index 069bc59d1866..ec15beba20f8 100644
--- a/sc/source/ui/vba/vbaaxes.hxx
+++ b/sc/source/ui/vba/vbaaxes.hxx
@@ -22,8 +22,8 @@
#include <ooo/vba/excel/XAxes.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace ooo { namespace vba { namespace excel { class XAxis; } } }
-namespace ooo { namespace vba { namespace excel { class XChart; } } }
+namespace ooo::vba::excel { class XAxis; }
+namespace ooo::vba::excel { class XChart; }
typedef CollTestImplHelper< ov::excel::XAxes > ScVbaAxes_BASE;
class ScVbaAxes : public ScVbaAxes_BASE
diff --git a/sc/source/ui/vba/vbaborders.hxx b/sc/source/ui/vba/vbaborders.hxx
index 422ae237ed5c..14c896c2b864 100644
--- a/sc/source/ui/vba/vbaborders.hxx
+++ b/sc/source/ui/vba/vbaborders.hxx
@@ -23,9 +23,9 @@
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XCellRange; } } } }
+namespace com::sun::star::beans { class XPropertySet; }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace com::sun::star::table { class XCellRange; }
typedef CollTestImplHelper< ov::excel::XBorders > ScVbaBorders_BASE;
class ScVbaPalette;
diff --git a/sc/source/ui/vba/vbachartobjects.hxx b/sc/source/ui/vba/vbachartobjects.hxx
index 4c2d03f96da6..8a958bc93a3d 100644
--- a/sc/source/ui/vba/vbachartobjects.hxx
+++ b/sc/source/ui/vba/vbachartobjects.hxx
@@ -23,10 +23,10 @@
#include <ooo/vba/excel/XChartObjects.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace container { class XEnumeration; } } } }
-namespace com { namespace sun { namespace star { namespace drawing { class XDrawPageSupplier; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XTableCharts; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::container { class XEnumeration; }
+namespace com::sun::star::drawing { class XDrawPageSupplier; }
+namespace com::sun::star::table { class XTableCharts; }
+namespace com::sun::star::uno { class XComponentContext; }
typedef CollTestImplHelper< ov::excel::XChartObjects > ChartObjects_BASE;
diff --git a/sc/source/ui/vba/vbacondition.hxx b/sc/source/ui/vba/vbacondition.hxx
index 01283207e2ad..585e6bc9d2d6 100644
--- a/sc/source/ui/vba/vbacondition.hxx
+++ b/sc/source/ui/vba/vbacondition.hxx
@@ -22,8 +22,8 @@
#include <vbahelper/vbahelperinterface.hxx>
#include <com/sun/star/sheet/ConditionOperator.hpp>
-namespace com { namespace sun { namespace star { namespace sheet { class XCellRangeAddressable; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSheetCondition; } } } }
+namespace com::sun::star::sheet { class XCellRangeAddressable; }
+namespace com::sun::star::sheet { class XSheetCondition; }
template< typename... Ifc >
class ScVbaCondition : public InheritedHelperInterfaceWeakImpl< Ifc... >
diff --git a/sc/source/ui/vba/vbadialogs.hxx b/sc/source/ui/vba/vbadialogs.hxx
index 630896996ec1..aca56b5a6c74 100644
--- a/sc/source/ui/vba/vbadialogs.hxx
+++ b/sc/source/ui/vba/vbadialogs.hxx
@@ -23,8 +23,8 @@
#include <vbahelper/vbadialogsbase.hxx>
#include <cppuhelper/implbase.hxx>
-namespace ooo { namespace vba { class XHelperInterface; } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace ooo::vba { class XHelperInterface; }
+namespace com::sun::star::uno { class XComponentContext; }
typedef cppu::ImplInheritanceHelper< VbaDialogsBase, ov::excel::XDialogs > ScVbaDialogs_BASE;
diff --git a/sc/source/ui/vba/vbafiledialog.hxx b/sc/source/ui/vba/vbafiledialog.hxx
index 68b6288df685..9f2b8e0f2677 100644
--- a/sc/source/ui/vba/vbafiledialog.hxx
+++ b/sc/source/ui/vba/vbafiledialog.hxx
@@ -24,9 +24,9 @@
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace ooo { namespace vba { class XHelperInterface; } }
-namespace ooo { namespace vba { namespace excel { class XFileDialogSelectedItems; } } }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace ooo::vba { class XHelperInterface; }
+namespace ooo::vba::excel { class XFileDialogSelectedItems; }
typedef InheritedHelperInterfaceWeakImpl< ov::excel::XFileDialog > ScVbaFileDialog_BASE;
diff --git a/sc/source/ui/vba/vbafont.hxx b/sc/source/ui/vba/vbafont.hxx
index 9b0a1cf9c369..6be7f26db76f 100644
--- a/sc/source/ui/vba/vbafont.hxx
+++ b/sc/source/ui/vba/vbafont.hxx
@@ -24,7 +24,7 @@
#include <ooo/vba/excel/XFont.hpp>
#include <vbahelper/vbafontbase.hxx>
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
+namespace com::sun::star::beans { class XPropertySet; }
class ScCellRangeObj;
class SfxItemSet;
diff --git a/sc/source/ui/vba/vbaformat.hxx b/sc/source/ui/vba/vbaformat.hxx
index a13f6186a854..0c1819852160 100644
--- a/sc/source/ui/vba/vbaformat.hxx
+++ b/sc/source/ui/vba/vbaformat.hxx
@@ -22,14 +22,14 @@
#include <com/sun/star/lang/Locale.hpp>
#include <vbahelper/vbahelperinterface.hxx>
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
-namespace com { namespace sun { namespace star { namespace beans { class XPropertyState; } } } }
-namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } }
-namespace com { namespace sun { namespace star { namespace util { class XNumberFormats; } } } }
-namespace com { namespace sun { namespace star { namespace util { class XNumberFormatsSupplier; } } } }
-namespace com { namespace sun { namespace star { namespace util { class XNumberFormatTypes; } } } }
-namespace ooo { namespace vba { namespace excel { class XFont; } } }
-namespace ooo { namespace vba { namespace excel { class XInterior; } } }
+namespace com::sun::star::beans { class XPropertySet; }
+namespace com::sun::star::beans { class XPropertyState; }
+namespace com::sun::star::frame { class XModel; }
+namespace com::sun::star::util { class XNumberFormats; }
+namespace com::sun::star::util { class XNumberFormatsSupplier; }
+namespace com::sun::star::util { class XNumberFormatTypes; }
+namespace ooo::vba::excel { class XFont; }
+namespace ooo::vba::excel { class XInterior; }
class ScCellRangesBase;
class SfxItemSet;
diff --git a/sc/source/ui/vba/vbaformatconditions.hxx b/sc/source/ui/vba/vbaformatconditions.hxx
index 3191a756975e..79b220472421 100644
--- a/sc/source/ui/vba/vbaformatconditions.hxx
+++ b/sc/source/ui/vba/vbaformatconditions.hxx
@@ -23,11 +23,11 @@
#include <ooo/vba/excel/XFormatConditions.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSheetConditionalEntries; } } } }
-namespace ooo { namespace vba { namespace excel { class XRange; } } }
-namespace ooo { namespace vba { namespace excel { class XStyle; } } }
-namespace ooo { namespace vba { namespace excel { class XStyles; } } }
+namespace com::sun::star::beans { class XPropertySet; }
+namespace com::sun::star::sheet { class XSheetConditionalEntries; }
+namespace ooo::vba::excel { class XRange; }
+namespace ooo::vba::excel { class XStyle; }
+namespace ooo::vba::excel { class XStyles; }
// This class is used only as a target for casting, it seems,
// and no objects of this type are created as such, I think.
diff --git a/sc/source/ui/vba/vbaglobals.hxx b/sc/source/ui/vba/vbaglobals.hxx
index 0d81c40a599e..6f978c591d10 100644
--- a/sc/source/ui/vba/vbaglobals.hxx
+++ b/sc/source/ui/vba/vbaglobals.hxx
@@ -25,8 +25,8 @@
#include <vbahelper/vbaglobalbase.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace ooo { namespace vba { namespace excel { class XApplication; } } }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace ooo::vba::excel { class XApplication; }
typedef ::cppu::ImplInheritanceHelper< VbaGlobalsBase, ov::excel::XGlobals > ScVbaGlobals_BASE;
diff --git a/sc/source/ui/vba/vbahyperlink.hxx b/sc/source/ui/vba/vbahyperlink.hxx
index 14fe255599a2..93c686ccfbbb 100644
--- a/sc/source/ui/vba/vbahyperlink.hxx
+++ b/sc/source/ui/vba/vbahyperlink.hxx
@@ -24,9 +24,9 @@
#include <vbahelper/vbahelperinterface.hxx>
-namespace ooo { namespace vba { namespace excel { class XRange; } } }
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XCell; } } } }
+namespace ooo::vba::excel { class XRange; }
+namespace com::sun::star::beans { class XPropertySet; }
+namespace com::sun::star::table { class XCell; }
typedef InheritedHelperInterfaceWeakImpl< ov::excel::XHyperlink > HyperlinkImpl_BASE;
diff --git a/sc/source/ui/vba/vbamenubars.hxx b/sc/source/ui/vba/vbamenubars.hxx
index 6549786ae2b4..1e5568133ce7 100644
--- a/sc/source/ui/vba/vbamenubars.hxx
+++ b/sc/source/ui/vba/vbamenubars.hxx
@@ -12,7 +12,7 @@
#include <ooo/vba/excel/XMenuBars.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace ooo { namespace vba { class XCommandBars; } }
+namespace ooo::vba { class XCommandBars; }
typedef CollTestImplHelper< ov::excel::XMenuBars > MenuBars_BASE;
diff --git a/sc/source/ui/vba/vbamenuitems.hxx b/sc/source/ui/vba/vbamenuitems.hxx
index 45884a0669e0..1e5b7d01d83c 100644
--- a/sc/source/ui/vba/vbamenuitems.hxx
+++ b/sc/source/ui/vba/vbamenuitems.hxx
@@ -12,8 +12,8 @@
#include <ooo/vba/excel/XMenuItems.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace ooo { namespace vba { class XCommandBarControls; } }
-namespace ooo { namespace vba { namespace excel { class XMenuItem; } } }
+namespace ooo::vba { class XCommandBarControls; }
+namespace ooo::vba::excel { class XMenuItem; }
typedef CollTestImplHelper< ov::excel::XMenuItems > MenuItems_BASE;
diff --git a/sc/source/ui/vba/vbamenus.hxx b/sc/source/ui/vba/vbamenus.hxx
index 2bf23e95b929..2cfd8b9c84c9 100644
--- a/sc/source/ui/vba/vbamenus.hxx
+++ b/sc/source/ui/vba/vbamenus.hxx
@@ -12,8 +12,8 @@
#include <ooo/vba/excel/XMenus.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace ooo { namespace vba { class XCommandBarControls; } }
-namespace ooo { namespace vba { namespace excel { class XMenu; } } }
+namespace ooo::vba { class XCommandBarControls; }
+namespace ooo::vba::excel { class XMenu; }
typedef CollTestImplHelper< ov::excel::XMenus > Menus_BASE;
diff --git a/sc/source/ui/vba/vbaname.hxx b/sc/source/ui/vba/vbaname.hxx
index ccb0e9e06a52..7b0b762f0186 100644
--- a/sc/source/ui/vba/vbaname.hxx
+++ b/sc/source/ui/vba/vbaname.hxx
@@ -24,8 +24,8 @@
#include <vbahelper/vbahelperinterface.hxx>
#include <formula/grammar.hxx>
-namespace com { namespace sun { namespace star { namespace sheet { class XNamedRange; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XNamedRanges; } } } }
+namespace com::sun::star::sheet { class XNamedRange; }
+namespace com::sun::star::sheet { class XNamedRanges; }
typedef InheritedHelperInterfaceWeakImpl< ov::excel::XName > NameImpl_BASE;
diff --git a/sc/source/ui/vba/vbanames.hxx b/sc/source/ui/vba/vbanames.hxx
index 35635a395094..c84209063ace 100644
--- a/sc/source/ui/vba/vbanames.hxx
+++ b/sc/source/ui/vba/vbanames.hxx
@@ -22,7 +22,7 @@
#include <ooo/vba/excel/XNames.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace sheet { class XNamedRanges; } } } }
+namespace com::sun::star::sheet { class XNamedRanges; }
class ScDocument;
diff --git a/sc/source/ui/vba/vbaoutline.hxx b/sc/source/ui/vba/vbaoutline.hxx
index 24d52ff18121..c23c5f6c5036 100644
--- a/sc/source/ui/vba/vbaoutline.hxx
+++ b/sc/source/ui/vba/vbaoutline.hxx
@@ -22,8 +22,8 @@
#include <ooo/vba/excel/XOutline.hpp>
#include <vbahelper/vbahelperinterface.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSheetOutline; } } } }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace com::sun::star::sheet { class XSheetOutline; }
typedef InheritedHelperInterfaceWeakImpl< ov::excel::XOutline > ScVbaOutline_BASE;
diff --git a/sc/source/ui/vba/vbapagebreak.hxx b/sc/source/ui/vba/vbapagebreak.hxx
index 1f7b296bc1c1..e23d651bf48e 100644
--- a/sc/source/ui/vba/vbapagebreak.hxx
+++ b/sc/source/ui/vba/vbapagebreak.hxx
@@ -24,9 +24,9 @@
#include <com/sun/star/sheet/TablePageBreakData.hpp>
#include <vbahelper/vbahelperinterface.hxx>
-namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace ooo { namespace vba { namespace excel { class XRange; } } }
+namespace com::sun::star::beans { class XPropertySet; }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace ooo::vba::excel { class XRange; }
template< typename... Ifc >
class ScVbaPageBreak : public InheritedHelperInterfaceWeakImpl< Ifc... >
diff --git a/sc/source/ui/vba/vbapagebreaks.hxx b/sc/source/ui/vba/vbapagebreaks.hxx
index 3f0c05426868..3593ebeca298 100644
--- a/sc/source/ui/vba/vbapagebreaks.hxx
+++ b/sc/source/ui/vba/vbapagebreaks.hxx
@@ -23,8 +23,8 @@
#include <ooo/vba/excel/XVPageBreaks.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace sheet { class XSheetPageBreak; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::sheet { class XSheetPageBreak; }
+namespace com::sun::star::uno { class XComponentContext; }
typedef CollTestImplHelper< ov::excel::XHPageBreaks > ScVbaHPageBreaks_BASE;
diff --git a/sc/source/ui/vba/vbapalette.hxx b/sc/source/ui/vba/vbapalette.hxx
index 546e6973de58..fd1f424f8488 100644
--- a/sc/source/ui/vba/vbapalette.hxx
+++ b/sc/source/ui/vba/vbapalette.hxx
@@ -22,10 +22,10 @@
#include <com/sun/star/uno/Reference.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace container { class XIndexAccess; }
namespace frame { class XModel; }
-} } }
+}
class SfxObjectShell;
diff --git a/sc/source/ui/vba/vbapivottables.hxx b/sc/source/ui/vba/vbapivottables.hxx
index 8904e9d4e47d..ba0ac18d2061 100644
--- a/sc/source/ui/vba/vbapivottables.hxx
+++ b/sc/source/ui/vba/vbapivottables.hxx
@@ -23,7 +23,7 @@
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::uno { class XComponentContext; }
typedef CollTestImplHelper< ov::excel::XPivotTables > ScVbaPivotTables_BASE;
diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx
index baa62f91136a..54b699a3b25e 100644
--- a/sc/source/ui/vba/vbarange.hxx
+++ b/sc/source/ui/vba/vbarange.hxx
@@ -30,13 +30,13 @@
#include <address.hxx>
#include <formula/grammar.hxx>
-namespace com { namespace sun { namespace star { namespace sheet { class XSheetCellRangeContainer; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XCell; } } } }
-namespace com { namespace sun { namespace star { namespace table { class XCellRange; } } } }
-namespace com { namespace sun { namespace star { namespace table { struct CellRangeAddress; } } } }
-namespace ooo { namespace vba { class XCollection; } }
-namespace ooo { namespace vba { namespace excel { class XComment; } } }
-namespace ooo { namespace vba { namespace excel { class XFont; } } }
+namespace com::sun::star::sheet { class XSheetCellRangeContainer; }
+namespace com::sun::star::table { class XCell; }
+namespace com::sun::star::table { class XCellRange; }
+namespace com::sun::star::table { struct CellRangeAddress; }
+namespace ooo::vba { class XCollection; }
+namespace ooo::vba::excel { class XComment; }
+namespace ooo::vba::excel { class XFont; }
class SfxItemSet;
class ScCellRangesBase;
diff --git a/sc/source/ui/vba/vbasheetobject.hxx b/sc/source/ui/vba/vbasheetobject.hxx
index 244ea5bd18f8..75b5bb553d99 100644
--- a/sc/source/ui/vba/vbasheetobject.hxx
+++ b/sc/source/ui/vba/vbasheetobject.hxx
@@ -27,10 +27,10 @@
#include <vbahelper/vbahelperinterface.hxx>
#include "vbapalette.hxx"
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace container { class XIndexContainer; }
namespace drawing { class XControlShape; }
-} } }
+}
typedef InheritedHelperInterfaceWeakImpl< ov::excel::XCharacters > ScVbaButtonCharacters_BASE;
diff --git a/sc/source/ui/vba/vbasheetobjects.hxx b/sc/source/ui/vba/vbasheetobjects.hxx
index 7fd36bf4cb28..961980f965c6 100644
--- a/sc/source/ui/vba/vbasheetobjects.hxx
+++ b/sc/source/ui/vba/vbasheetobjects.hxx
@@ -25,11 +25,11 @@
#include <vbahelper/vbacollectionimpl.hxx>
#include <rtl/ref.hxx>
-namespace com { namespace sun { namespace star {
+namespace com::sun::star {
namespace container { class XEnumeration; }
namespace frame { class XModel; }
namespace sheet { class XSpreadsheet; }
-} } }
+}
class ScVbaObjectContainer;
typedef ::rtl::Reference< ScVbaObjectContainer > ScVbaObjectContainerRef;
diff --git a/sc/source/ui/vba/vbastyles.hxx b/sc/source/ui/vba/vbastyles.hxx
index b6c7d737252e..79ffde31ab22 100644
--- a/sc/source/ui/vba/vbastyles.hxx
+++ b/sc/source/ui/vba/vbastyles.hxx
@@ -21,8 +21,8 @@
#include <ooo/vba/excel/XStyles.hpp>
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace lang { class XMultiServiceFactory; } } } }
-namespace com { namespace sun { namespace star { namespace container { class XNameContainer; } } } }
+namespace com::sun::star::lang { class XMultiServiceFactory; }
+namespace com::sun::star::container { class XNameContainer; }
typedef CollTestImplHelper< ov::excel::XStyles > ScVbaStyles_BASE;
class ScVbaStyles: public ScVbaStyles_BASE
diff --git a/sc/source/ui/vba/vbavalidation.hxx b/sc/source/ui/vba/vbavalidation.hxx
index e23232f1165f..a8fd6aec3d10 100644
--- a/sc/source/ui/vba/vbavalidation.hxx
+++ b/sc/source/ui/vba/vbavalidation.hxx
@@ -22,8 +22,8 @@
#include <ooo/vba/excel/XValidation.hpp>
#include <vbahelper/vbahelperinterface.hxx>
-namespace com { namespace sun { namespace star { namespace table { class XCellRange; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::table { class XCellRange; }
+namespace com::sun::star::uno { class XComponentContext; }
typedef InheritedHelperInterfaceWeakImpl<ov::excel::XValidation > ValidationImpl_BASE;
diff --git a/sc/source/ui/vba/vbawindows.hxx b/sc/source/ui/vba/vbawindows.hxx
index 27df5924655d..de75dd419c10 100644
--- a/sc/source/ui/vba/vbawindows.hxx
+++ b/sc/source/ui/vba/vbawindows.hxx
@@ -23,7 +23,7 @@
#include <vbahelper/vbacollectionimpl.hxx>
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::uno { class XComponentContext; }
typedef CollTestImplHelper< ov::excel::XWindows > ScVbaWindows_BASE;
diff --git a/sc/source/ui/vba/vbaworksheet.hxx b/sc/source/ui/vba/vbaworksheet.hxx
index 0cc22fa2ef8a..a582c7858ba4 100644
--- a/sc/source/ui/vba/vbaworksheet.hxx
+++ b/sc/source/ui/vba/vbaworksheet.hxx
@@ -25,17 +25,17 @@
#include <vbahelper/vbahelperinterface.hxx>
#include <types.hxx>
-namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSpreadsheet; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
-namespace ooo { namespace vba { namespace excel { class XOutline; } } }
-namespace ooo { namespace vba { namespace excel { class XPageSetup; } } }
-namespace ooo { namespace vba { namespace excel { class XRange; } } }
-
-namespace ooo { namespace vba { namespace excel {
+namespace com::sun::star::frame { class XModel; }
+namespace com::sun::star::sheet { class XSpreadsheet; }
+namespace com::sun::star::uno { class XComponentContext; }
+namespace ooo::vba::excel { class XOutline; }
+namespace ooo::vba::excel { class XPageSetup; }
+namespace ooo::vba::excel { class XRange; }
+
+namespace ooo::vba::excel {
class XChartObjects;
class XHyperlinks;
-} } }
+}
class ScVbaSheetObjectsBase;
diff --git a/sc/source/ui/vba/vbaworksheets.hxx b/sc/source/ui/vba/vbaworksheets.hxx
index ada77fd32abe..fdb2400d4c01 100644
--- a/sc/source/ui/vba/vbaworksheets.hxx
+++ b/sc/source/ui/vba/vbaworksheets.hxx
@@ -25,10 +25,10 @@
#include <types.hxx>
-namespace com { namespace sun { namespace star { namespace container { class XEnumerationAccess; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSpreadsheetDocument; } } } }
-namespace com { namespace sun { namespace star { namespace sheet { class XSpreadsheets; } } } }
-namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
+namespace com::sun::star::container { class XEnumerationAccess; }
+namespace com::sun::star::sheet { class XSpreadsheetDocument; }
+namespace com::sun::star::sheet { class XSpreadsheets; }
+namespace com::sun::star::uno { class XComponentContext; }
typedef CollTestImplHelper< ov::excel::XWorksheets > ScVbaWorksheets_BASE;