sfx2/inc/emojicontrol.hxx                     |    5 +-
 sfx2/inc/emojiview.hxx                        |   20 ++++-----
 sfx2/inc/fwkhelper.hxx                        |    4 -
 sfx2/inc/sidebar/DeckDescriptor.hxx           |    6 +-
 sfx2/inc/sidebar/DeckTitleBar.hxx             |    9 +---
 sfx2/inc/strings.hxx                          |   28 ++++++-------
 sfx2/inc/templatecontaineritem.hxx            |    4 -
 sfx2/inc/templatedefaultview.hxx              |    6 +-
 sfx2/qa/unit/sfx2-dialogs-test.cxx            |    9 ----
 sfx2/source/appl/appquit.cxx                  |   17 +++-----
 sfx2/source/bastyp/sfxresid.cxx               |    5 --
 sfx2/source/control/charwin.cxx               |   55 +++++++++++---------------
 sfx2/source/control/emojipopup.cxx            |   16 +++----
 sfx2/source/control/itemdel.cxx               |   20 +++------
 sfx2/source/control/templatecontaineritem.cxx |    8 ---
 sfx2/source/dialog/alienwarn.cxx              |   15 +++----
 sfx2/source/dialog/backingwindow.hxx          |   11 ++---
 sfx2/source/dialog/charmappopup.cxx           |   18 +++-----
 sfx2/source/dialog/dialoghelper.cxx           |    9 +---
 sfx2/source/dialog/inputdlg.cxx               |   14 +-----
 sfx2/source/dialog/securitypage.hxx           |    9 ++--
 sfx2/source/dialog/sfxdlg.cxx                 |    7 ---
 sfx2/source/dialog/styfitem.cxx               |    7 ++-
 sfx2/source/doc/QuerySaveDocument.cxx         |    3 -
 sfx2/source/doc/syspath.cxx                   |    4 -
 sfx2/source/inc/appopen.hxx                   |    5 --
 sfx2/source/inc/childwinimpl.hxx              |   19 ++++----
 sfx2/source/inc/ctrlfactoryimpl.hxx           |   12 ++---
 sfx2/source/inc/documentfontsdialog.hxx       |   14 ++++--
 sfx2/source/inc/helper.hxx                    |   11 ++---
 sfx2/source/inc/nochaos.hxx                   |    4 -
 sfx2/source/inc/openflag.hxx                  |    7 +--
 sfx2/source/inc/openurlhint.hxx               |    4 -
 sfx2/source/inc/sfxtypes.hxx                  |    6 --
 sfx2/source/inc/shellimpl.hxx                 |   26 +++++-------
 sfx2/source/inc/templatesearchviewitem.hxx    |    7 +--
 sfx2/source/inc/versdlg.hxx                   |   10 ++--
 sfx2/source/notebookbar/DropdownBox.cxx       |   17 ++------
 sfx2/source/notebookbar/PriorityHBox.cxx      |   20 ++++-----
 sfx2/source/notify/hintpost.cxx               |   17 +++-----
 sfx2/source/safemode/safemode.cxx             |   13 ++----
 sfx2/source/sidebar/SidebarModelUpdate.cxx    |    7 ---
 sfx2/source/sidebar/UnoSidebar.cxx            |   26 ++++--------
 sfx2/source/view/viewimp.hxx                  |    8 +--
 solenv/clang-format/excludelist               |   44 --------------------
 45 files changed, 238 insertions(+), 348 deletions(-)

New commits:
commit b35232bdf56fbda34476cf537d53bbea31235a95
Author:     Philipp Hofer <philipp.ho...@protonmail.com>
AuthorDate: Thu Nov 12 13:15:32 2020 +0100
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Sun Nov 22 01:55:36 2020 +0100

    tdf#123936 Formatting files in module sfx2 with clang-format
    
    Change-Id: I0ddd7b531cbf9aed6a3834e3cd15c7fe3644736e
    (cherry picked from commit 92daf140419e4539f6843e30428e786c3e655dcc)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105706
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
    Tested-by: Jenkins

diff --git a/sfx2/inc/emojicontrol.hxx b/sfx2/inc/emojicontrol.hxx
index eee551600da4..2e2ab150762f 100644
--- a/sfx2/inc/emojicontrol.hxx
+++ b/sfx2/inc/emojicontrol.hxx
@@ -14,7 +14,10 @@
 #include <svtools/toolbarmenu.hxx>
 #include <vcl/customweld.hxx>
 
-namespace com::sun::star::frame { class XFrame; }
+namespace com::sun::star::frame
+{
+class XFrame;
+}
 
 class EmojiPopup;
 class EmojiView;
diff --git a/sfx2/inc/emojiview.hxx b/sfx2/inc/emojiview.hxx
index 223d38bbbb72..52bb47bf0bc0 100644
--- a/sfx2/inc/emojiview.hxx
+++ b/sfx2/inc/emojiview.hxx
@@ -34,21 +34,19 @@ enum class FILTER_CATEGORY
 class ViewFilter_Category final
 {
 public:
-
-    ViewFilter_Category (FILTER_CATEGORY rCategory)
+    ViewFilter_Category(FILTER_CATEGORY rCategory)
         : mCategory(rCategory)
-    {}
+    {
+    }
 
-    bool operator () (const ThumbnailViewItem *pItem);
+    bool operator()(const ThumbnailViewItem* pItem);
 
-    static bool isFilteredCategory(FILTER_CATEGORY filter, const OUString 
&rCategory);
+    static bool isFilteredCategory(FILTER_CATEGORY filter, const OUString& 
rCategory);
 
 private:
-
     FILTER_CATEGORY mCategory;
 };
 
-
 class EmojiView final : public ThumbnailView
 {
 public:
@@ -59,16 +57,16 @@ public:
     // Fill view with emojis
     void Populate();
 
-    void setInsertEmojiHdl (const Link<ThumbnailViewItem*, void> &rLink);
+    void setInsertEmojiHdl(const Link<ThumbnailViewItem*, void>& rLink);
 
-    void AppendItem(const OUString &rTitle, const OUString &rCategory, const 
OUString &rName );
+    void AppendItem(const OUString& rTitle, const OUString& rCategory, const 
OUString& rName);
 
 private:
-    virtual bool MouseButtonDown( const MouseEvent& rMEvt ) override;
+    virtual bool MouseButtonDown(const MouseEvent& rMEvt) override;
 
     virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
 
-    virtual bool KeyInput( const KeyEvent& rKEvt ) override;
+    virtual bool KeyInput(const KeyEvent& rKEvt) override;
 
     std::string msJSONData;
 
diff --git a/sfx2/inc/fwkhelper.hxx b/sfx2/inc/fwkhelper.hxx
index bd1aa5a8bfef..d206957c9d98 100644
--- a/sfx2/inc/fwkhelper.hxx
+++ b/sfx2/inc/fwkhelper.hxx
@@ -24,9 +24,7 @@
 #include <com/sun/star/uno/Reference.hxx>
 #include <com/sun/star/frame/XFrame.hpp>
 
-void RefreshToolbars(
-    css::uno::Reference< css::frame::XFrame > const & rFrame
-);
+void RefreshToolbars(css::uno::Reference<css::frame::XFrame> const& rFrame);
 
 #endif
 
diff --git a/sfx2/inc/sidebar/DeckDescriptor.hxx 
b/sfx2/inc/sidebar/DeckDescriptor.hxx
index f1195cd0b324..5381b4ea2cd7 100644
--- a/sfx2/inc/sidebar/DeckDescriptor.hxx
+++ b/sfx2/inc/sidebar/DeckDescriptor.hxx
@@ -22,8 +22,8 @@
 
 #include <sfx2/sidebar/Deck.hxx>
 
-namespace sfx2::sidebar {
-
+namespace sfx2::sidebar
+{
 class DeckDescriptor
 {
 public:
@@ -44,7 +44,7 @@ public:
     VclPtr<Deck> mpDeck;
 
     DeckDescriptor();
-    DeckDescriptor (const DeckDescriptor& rOther);
+    DeckDescriptor(const DeckDescriptor& rOther);
     ~DeckDescriptor();
 };
 
diff --git a/sfx2/inc/sidebar/DeckTitleBar.hxx 
b/sfx2/inc/sidebar/DeckTitleBar.hxx
index 3b1451ab449c..5fcc7403f134 100644
--- a/sfx2/inc/sidebar/DeckTitleBar.hxx
+++ b/sfx2/inc/sidebar/DeckTitleBar.hxx
@@ -21,20 +21,19 @@
 #include <sidebar/TitleBar.hxx>
 #include <vcl/customweld.hxx>
 
-namespace sfx2::sidebar {
-
+namespace sfx2::sidebar
+{
 class GripWidget;
 
 class DeckTitleBar final : public TitleBar
 {
 public:
-    DeckTitleBar(const OUString& rsTitle,
-                 vcl::Window* pParentWindow,
+    DeckTitleBar(const OUString& rsTitle, vcl::Window* pParentWindow,
                  const std::function<void()>& rCloserAction);
     virtual void dispose() override;
     virtual ~DeckTitleBar() override;
 
-    virtual void SetTitle (const OUString& rsTitle) override;
+    virtual void SetTitle(const OUString& rsTitle) override;
     virtual OUString GetTitle() const override;
 
     void SetCloserVisible(const bool bIsCloserVisible);
diff --git a/sfx2/inc/strings.hxx b/sfx2/inc/strings.hxx
index 386f3fdc3f23..6c826d2c3067 100644
--- a/sfx2/inc/strings.hxx
+++ b/sfx2/inc/strings.hxx
@@ -14,15 +14,15 @@
 
 // Do not translate STR_TEMPLATE_NAME*_DEF names!!
 // STR_TEMPLATE_NAME*_DEF strings must EXACTLY fit dc:title tag in meta.xml of 
each template file
-#define STR_TEMPLATE_NAME1_DEF  "Alizarin"
-#define STR_TEMPLATE_NAME2_DEF  "Beehive"
-#define STR_TEMPLATE_NAME3_DEF  "Blue Curve"
-#define STR_TEMPLATE_NAME4_DEF  "Blueprint Plans"
-#define STR_TEMPLATE_NAME5_DEF  "Bright Blue"
-#define STR_TEMPLATE_NAME6_DEF  "Classy Red"
-#define STR_TEMPLATE_NAME7_DEF  "DNA"
-#define STR_TEMPLATE_NAME8_DEF  "Focus"
-#define STR_TEMPLATE_NAME9_DEF  "Forestbird"
+#define STR_TEMPLATE_NAME1_DEF "Alizarin"
+#define STR_TEMPLATE_NAME2_DEF "Beehive"
+#define STR_TEMPLATE_NAME3_DEF "Blue Curve"
+#define STR_TEMPLATE_NAME4_DEF "Blueprint Plans"
+#define STR_TEMPLATE_NAME5_DEF "Bright Blue"
+#define STR_TEMPLATE_NAME6_DEF "Classy Red"
+#define STR_TEMPLATE_NAME7_DEF "DNA"
+#define STR_TEMPLATE_NAME8_DEF "Focus"
+#define STR_TEMPLATE_NAME9_DEF "Forestbird"
 #define STR_TEMPLATE_NAME10_DEF "Impress"
 #define STR_TEMPLATE_NAME11_DEF "Inspiration"
 #define STR_TEMPLATE_NAME12_DEF "Lights"
@@ -47,11 +47,11 @@
 #define STR_TEMPLATE_NAME31_DEF "Simple"
 #define STR_TEMPLATE_NAME32_DEF "BPMN"
 
-#define CMIS_TYPE_STRING        "String"
-#define CMIS_TYPE_INTEGER       "Integer"
-#define CMIS_TYPE_DECIMAL       "Decimal"
-#define CMIS_TYPE_DATETIME      "Datetime"
-#define CMIS_TYPE_BOOL          "Bool"
+#define CMIS_TYPE_STRING "String"
+#define CMIS_TYPE_INTEGER "Integer"
+#define CMIS_TYPE_DECIMAL "Decimal"
+#define CMIS_TYPE_DATETIME "Datetime"
+#define CMIS_TYPE_BOOL "Bool"
 
 #endif
 
diff --git a/sfx2/inc/templatecontaineritem.hxx 
b/sfx2/inc/templatecontaineritem.hxx
index e11e2bd215a6..019c1b909762 100644
--- a/sfx2/inc/templatecontaineritem.hxx
+++ b/sfx2/inc/templatecontaineritem.hxx
@@ -19,9 +19,9 @@ public:
     OUString maTitle;
     std::vector<TemplateItemProperties> maTemplates;
 
-    TemplateContainerItem (sal_uInt16 nId);
+    TemplateContainerItem(sal_uInt16 nId);
 
-    ~TemplateContainerItem ();
+    ~TemplateContainerItem();
 };
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/inc/templatedefaultview.hxx b/sfx2/inc/templatedefaultview.hxx
index 3e6a46e99cf7..e53910044176 100644
--- a/sfx2/inc/templatedefaultview.hxx
+++ b/sfx2/inc/templatedefaultview.hxx
@@ -17,11 +17,11 @@ public:
     TemplateDefaultView(std::unique_ptr<weld::ScrolledWindow> xWindow,
                         std::unique_ptr<weld::Menu> xMenu);
 
-    virtual void showAllTemplates () override;
+    virtual void showAllTemplates() override;
 
-    virtual bool KeyInput( const KeyEvent& rKEvt ) override;
+    virtual bool KeyInput(const KeyEvent& rKEvt) override;
 
-    virtual bool MouseButtonDown( const MouseEvent& rMEvt ) override;
+    virtual bool MouseButtonDown(const MouseEvent& rMEvt) override;
 
     void createContextMenu();
 };
diff --git a/sfx2/qa/unit/sfx2-dialogs-test.cxx 
b/sfx2/qa/unit/sfx2-dialogs-test.cxx
index 239da477fa6d..5b73388198ca 100644
--- a/sfx2/qa/unit/sfx2-dialogs-test.cxx
+++ b/sfx2/qa/unit/sfx2-dialogs-test.cxx
@@ -36,19 +36,14 @@ public:
     CPPUNIT_TEST_SUITE_END();
 };
 
-Sfx2DialogsTest::Sfx2DialogsTest()
-{
-}
+Sfx2DialogsTest::Sfx2DialogsTest() {}
 
 void Sfx2DialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/)
 {
     // fill map of known dialogs
 }
 
-VclPtr<VclAbstractDialog> Sfx2DialogsTest::createDialogByID(sal_uInt32 /*nID*/)
-{
-    return nullptr;
-}
+VclPtr<VclAbstractDialog> Sfx2DialogsTest::createDialogByID(sal_uInt32 
/*nID*/) { return nullptr; }
 
 void Sfx2DialogsTest::openAnyDialog()
 {
diff --git a/sfx2/source/appl/appquit.cxx b/sfx2/source/appl/appquit.cxx
index 829cc7601770..1fafb81ceb42 100644
--- a/sfx2/source/appl/appquit.cxx
+++ b/sfx2/source/appl/appquit.cxx
@@ -43,7 +43,7 @@ using ::basic::BasicManagerRepository;
 
 void SfxApplication::Deinitialize()
 {
-    if ( pImpl->bDowning )
+    if (pImpl->bDowning)
         return;
 
 #if HAVE_FEATURE_SCRIPTING
@@ -61,25 +61,22 @@ void SfxApplication::Deinitialize()
     // some stack traces, which we don't understand.
     // For more information see:
     pImpl->bDowning = false;
-    DBG_ASSERT( !SfxViewFrame::GetFirst(),
-                "existing SfxViewFrame after Execute" );
-    DBG_ASSERT( !SfxObjectShell::GetFirst(),
-                "existing SfxObjectShell after Execute" );
-    pImpl->pAppDispat->Pop( *this, SfxDispatcherPopFlags::POP_UNTIL );
+    DBG_ASSERT(!SfxViewFrame::GetFirst(), "existing SfxViewFrame after 
Execute");
+    DBG_ASSERT(!SfxObjectShell::GetFirst(), "existing SfxObjectShell after 
Execute");
+    pImpl->pAppDispat->Pop(*this, SfxDispatcherPopFlags::POP_UNTIL);
     pImpl->pAppDispat->Flush();
     pImpl->bDowning = true;
-    pImpl->pAppDispat->DoDeactivate_Impl( true, nullptr );
+    pImpl->pAppDispat->DoDeactivate_Impl(true, nullptr);
 
     // Release Controller and others
     // then the remaining components should also disappear ( Beamer! )
 
 #if HAVE_FEATURE_SCRIPTING
     BasicManagerRepository::resetApplicationBasicManager();
-    pImpl->pBasicManager->reset(nullptr);
-        // this will also delete pBasMgr
+    pImpl->pBasicManager->reset(nullptr); // this will also delete pBasMgr
 #endif
 
-    DBG_ASSERT( pImpl->pViewFrame == nullptr, "active foreign ViewFrame" );
+    DBG_ASSERT(pImpl->pViewFrame == nullptr, "active foreign ViewFrame");
 
     // free administration managers
     pImpl->pAppDispat.reset();
diff --git a/sfx2/source/bastyp/sfxresid.cxx b/sfx2/source/bastyp/sfxresid.cxx
index 250494d52d09..74eb3f4aa0fd 100644
--- a/sfx2/source/bastyp/sfxresid.cxx
+++ b/sfx2/source/bastyp/sfxresid.cxx
@@ -20,9 +20,6 @@
 #include <sfx2/sfxresid.hxx>
 #include <unotools/resmgr.hxx>
 
-OUString SfxResId(const char* pId)
-{
-    return Translate::get(pId, Translate::Create("sfx"));
-}
+OUString SfxResId(const char* pId) { return Translate::get(pId, 
Translate::Create("sfx")); }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/control/charwin.cxx b/sfx2/source/control/charwin.cxx
index 5d6166112800..6e404c7257d7 100644
--- a/sfx2/source/control/charwin.cxx
+++ b/sfx2/source/control/charwin.cxx
@@ -32,7 +32,7 @@ using namespace com::sun::star;
 SvxCharView::SvxCharView(const VclPtr<VirtualDevice>& rVirDev)
     : mxVirDev(rVirDev)
     , mnY(0)
-    , maPosition(0,0)
+    , maPosition(0, 0)
     , maHasInsert(true)
 {
 }
@@ -51,21 +51,15 @@ void SvxCharView::SetDrawingArea(weld::DrawingArea* 
pDrawingArea)
     mxVirDev->Pop();
 }
 
-void SvxCharView::GetFocus()
-{
-    Invalidate();
-}
+void SvxCharView::GetFocus() { Invalidate(); }
 
-void SvxCharView::LoseFocus()
-{
-    Invalidate();
-}
+void SvxCharView::LoseFocus() { Invalidate(); }
 
 bool SvxCharView::MouseButtonDown(const MouseEvent& rMEvt)
 {
-    if ( rMEvt.IsLeft() )
+    if (rMEvt.IsLeft())
     {
-        if ( !(rMEvt.GetClicks() % 2) && maHasInsert )
+        if (!(rMEvt.GetClicks() % 2) && maHasInsert)
         {
             InsertCharToDoc();
         }
@@ -118,9 +112,11 @@ void SvxCharView::InsertCharToDoc()
 void SvxCharView::createContextMenu()
 {
     weld::DrawingArea* pDrawingArea = GetDrawingArea();
-    std::unique_ptr<weld::Builder> 
xBuilder(Application::CreateBuilder(pDrawingArea, "sfx/ui/charviewmenu.ui"));
+    std::unique_ptr<weld::Builder> xBuilder(
+        Application::CreateBuilder(pDrawingArea, "sfx/ui/charviewmenu.ui"));
     std::unique_ptr<weld::Menu> xItemMenu(xBuilder->weld_menu("charviewmenu"));
-    ContextMenuSelect(xItemMenu->popup_at_rect(pDrawingArea, 
tools::Rectangle(maPosition, Size(1,1))));
+    ContextMenuSelect(
+        xItemMenu->popup_at_rect(pDrawingArea, tools::Rectangle(maPosition, 
Size(1, 1))));
     Invalidate();
 }
 
@@ -157,7 +153,7 @@ void SvxCharView::Paint(vcl::RenderContext& rRenderContext, 
const tools::Rectang
 
     for (tools::Long nFontHeight = aFontSize.Height(); nFontHeight > 0; 
nFontHeight -= 1)
     {
-        if (!rRenderContext.GetTextBoundRect( aBoundRect, aText ) || 
aBoundRect.IsEmpty())
+        if (!rRenderContext.GetTextBoundRect(aBoundRect, aText) || 
aBoundRect.IsEmpty())
         {
             bGotBoundary = false;
             break;
@@ -168,7 +164,7 @@ void SvxCharView::Paint(vcl::RenderContext& rRenderContext, 
const tools::Rectang
         if (nAvailWidth > nTextWidth)
             break;
         vcl::Font aFont(aOrigFont);
-        aFontSize.setHeight( nFontHeight );
+        aFontSize.setHeight(nFontHeight);
         aFont.SetFontSize(aFontSize);
         rRenderContext.SetFont(aFont);
         mnY = (nWinHeight - rRenderContext.GetTextHeight()) / 2;
@@ -178,7 +174,7 @@ void SvxCharView::Paint(vcl::RenderContext& rRenderContext, 
const tools::Rectang
     Point aPoint(2, mnY);
 
     if (!bGotBoundary)
-        aPoint.setX( (aSize.Width() - rRenderContext.GetTextWidth(aText)) / 2 
);
+        aPoint.setX((aSize.Width() - rRenderContext.GetTextWidth(aText)) / 2);
     else
     {
         // adjust position
@@ -187,13 +183,13 @@ void SvxCharView::Paint(vcl::RenderContext& 
rRenderContext, const tools::Rectang
         // vertical adjustment
         int nYLDelta = aBoundRect.Top();
         int nYHDelta = aSize.Height() - aBoundRect.Bottom();
-        if( nYLDelta <= 0 )
-            aPoint.AdjustY( -(nYLDelta - 1) );
-        else if( nYHDelta <= 0 )
-            aPoint.AdjustY(nYHDelta - 1 );
+        if (nYLDelta <= 0)
+            aPoint.AdjustY(-(nYLDelta - 1));
+        else if (nYHDelta <= 0)
+            aPoint.AdjustY(nYHDelta - 1);
 
         // centrally align glyph
-        aPoint.setX( -aBoundRect.Left() + (aSize.Width() - 
aBoundRect.GetWidth()) / 2 );
+        aPoint.setX(-aBoundRect.Left() + (aSize.Width() - 
aBoundRect.GetWidth()) / 2);
     }
 
     if (HasFocus())
@@ -219,22 +215,22 @@ void SvxCharView::Paint(vcl::RenderContext& 
rRenderContext, const tools::Rectang
         rRenderContext.SetFont(aOrigFont);
 }
 
-void SvxCharView::setMouseClickHdl(const Link<SvxCharView*,void> &rLink)
+void SvxCharView::setMouseClickHdl(const Link<SvxCharView*, void>& rLink)
 {
     maMouseClickHdl = rLink;
 }
 
-void SvxCharView::setClearClickHdl(const Link<SvxCharView*,void> &rLink)
+void SvxCharView::setClearClickHdl(const Link<SvxCharView*, void>& rLink)
 {
     maClearClickHdl = rLink;
 }
 
-void SvxCharView::setClearAllClickHdl(const Link<SvxCharView*,void> &rLink)
+void SvxCharView::setClearAllClickHdl(const Link<SvxCharView*, void>& rLink)
 {
     maClearAllClickHdl = rLink;
 }
 
-void SvxCharView::SetFont( const vcl::Font& rFont )
+void SvxCharView::SetFont(const vcl::Font& rFont)
 {
     tools::Long nWinHeight = GetOutputSizePixel().Height();
     maFont = rFont;
@@ -253,18 +249,15 @@ void SvxCharView::SetFont( const vcl::Font& rFont )
 
 void SvxCharView::Resize()
 {
-    SetFont(GetFont());  //force recalculation of size
+    SetFont(GetFont()); //force recalculation of size
 }
 
-void SvxCharView::SetText( const OUString& rText )
+void SvxCharView::SetText(const OUString& rText)
 {
     m_sText = rText;
     Invalidate();
 }
 
-void SvxCharView::SetHasInsert( bool bInsert )
-{
-    maHasInsert = bInsert;
-}
+void SvxCharView::SetHasInsert(bool bInsert) { maHasInsert = bInsert; }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/sfx2/source/control/emojipopup.cxx 
b/sfx2/source/control/emojipopup.cxx
index 7254d844a831..82f9bc3fc1fd 100644
--- a/sfx2/source/control/emojipopup.cxx
+++ b/sfx2/source/control/emojipopup.cxx
@@ -25,7 +25,7 @@ EmojiPopup::EmojiPopup(const 
css::uno::Reference<css::uno::XComponentContext>& r
 {
 }
 
-void EmojiPopup::initialize( const css::uno::Sequence< css::uno::Any >& 
rArguments )
+void EmojiPopup::initialize(const css::uno::Sequence<css::uno::Any>& 
rArguments)
 {
     PopupWindowController::initialize(rArguments);
 
@@ -35,18 +35,17 @@ void EmojiPopup::initialize( const css::uno::Sequence< 
css::uno::Any >& rArgumen
         pToolBox->SetItemBits(nId, ToolBoxItemBits::DROPDOWNONLY | 
pToolBox->GetItemBits(nId));
 }
 
-EmojiPopup::~EmojiPopup()
-{
-}
+EmojiPopup::~EmojiPopup() {}
 
 std::unique_ptr<WeldToolbarPopup> EmojiPopup::weldPopupWindow()
 {
     return std::make_unique<SfxEmojiControl>(this, m_pToolbar);
 }
 
-VclPtr<vcl::Window> EmojiPopup::createVclPopupWindow( vcl::Window* pParent )
+VclPtr<vcl::Window> EmojiPopup::createVclPopupWindow(vcl::Window* pParent)
 {
-    mxInterimPopover = 
VclPtr<InterimToolbarPopup>::Create(getFrameInterface(), pParent,
+    mxInterimPopover = VclPtr<InterimToolbarPopup>::Create(
+        getFrameInterface(), pParent,
         std::make_unique<SfxEmojiControl>(this, pParent->GetFrameWeld()));
 
     mxInterimPopover->Show();
@@ -64,10 +63,9 @@ css::uno::Sequence<OUString> 
EmojiPopup::getSupportedServiceNames()
     return { "com.sun.star.frame.ToolbarController" };
 }
 
-extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
 com_sun_star_comp_sfx2_InsertEmojiToolBoxControl_get_implementation(
-    css::uno::XComponentContext* rContext,
-    css::uno::Sequence<css::uno::Any> const & )
+    css::uno::XComponentContext* rContext, css::uno::Sequence<css::uno::Any> 
const&)
 {
     return cppu::acquire(new EmojiPopup(rContext));
 }
diff --git a/sfx2/source/control/itemdel.cxx b/sfx2/source/control/itemdel.cxx
index 756133c47382..b0f25212c863 100644
--- a/sfx2/source/control/itemdel.cxx
+++ b/sfx2/source/control/itemdel.cxx
@@ -31,7 +31,7 @@ class SfxItemDisruptor_Impl
     Idle m_Idle;
 
 private:
-    DECL_LINK( Delete, Timer*, void );
+    DECL_LINK(Delete, Timer*, void);
 
 public:
     explicit SfxItemDisruptor_Impl(std::unique_ptr<SfxPoolItem> 
pItemToDesrupt);
@@ -49,34 +49,28 @@ 
SfxItemDisruptor_Impl::SfxItemDisruptor_Impl(std::unique_ptr<SfxPoolItem> pItemT
     m_Idle.SetPriority(TaskPriority::DEFAULT_IDLE);
     m_Idle.SetDebugName("sfx::SfxItemDisruptor_Impl m_Idle");
 
-    DBG_ASSERT( 0 == pItem->GetRefCount(), "disrupting pooled item" );
+    DBG_ASSERT(0 == pItem->GetRefCount(), "disrupting pooled item");
     pItem->SetKind(SfxItemKind::DeleteOnIdle);
 }
 
-void SfxItemDisruptor_Impl::LaunchDeleteOnIdle()
-{
-    m_Idle.Start();
-}
+void SfxItemDisruptor_Impl::LaunchDeleteOnIdle() { m_Idle.Start(); }
 
 SfxItemDisruptor_Impl::~SfxItemDisruptor_Impl()
 {
     m_Idle.Stop();
 
     // reset RefCount (was set to SFX_ITEMS_SPECIAL before!)
-    pItem->SetRefCount( 0 );
+    pItem->SetRefCount(0);
 
     pItem.reset();
 }
 
-IMPL_LINK_NOARG(SfxItemDisruptor_Impl, Delete, Timer*, void)
-{
-    delete this;
-}
+IMPL_LINK_NOARG(SfxItemDisruptor_Impl, Delete, Timer*, void) { delete this; }
 
 void DeleteItemOnIdle(std::unique_ptr<SfxPoolItem> pItem)
 {
-    DBG_ASSERT( 0 == pItem->GetRefCount(), "deleting item in use" );
-    SfxItemDisruptor_Impl *pDesruptor = new 
SfxItemDisruptor_Impl(std::move(pItem));
+    DBG_ASSERT(0 == pItem->GetRefCount(), "deleting item in use");
+    SfxItemDisruptor_Impl* pDesruptor = new 
SfxItemDisruptor_Impl(std::move(pItem));
     pDesruptor->LaunchDeleteOnIdle();
     // coverity[leaked_storage] - pDesruptor takes care of its own destruction 
at idle time
 }
diff --git a/sfx2/source/control/templatecontaineritem.cxx 
b/sfx2/source/control/templatecontaineritem.cxx
index e30b6b7b1f6b..f8b07c6f63bd 100644
--- a/sfx2/source/control/templatecontaineritem.cxx
+++ b/sfx2/source/control/templatecontaineritem.cxx
@@ -9,16 +9,12 @@
 
 #include <templatecontaineritem.hxx>
 
-TemplateContainerItem::TemplateContainerItem (sal_uInt16 nId)
+TemplateContainerItem::TemplateContainerItem(sal_uInt16 nId)
     : mnId(nId)
     , mnRegionId(0)
 {
 }
 
-TemplateContainerItem::~TemplateContainerItem ()
-{
-}
+TemplateContainerItem::~TemplateContainerItem() {}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-
-
diff --git a/sfx2/source/dialog/alienwarn.cxx b/sfx2/source/dialog/alienwarn.cxx
index f15d152b29b5..b889887fce02 100644
--- a/sfx2/source/dialog/alienwarn.cxx
+++ b/sfx2/source/dialog/alienwarn.cxx
@@ -17,12 +17,13 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-
 #include <unotools/saveopt.hxx>
 #include <alienwarn.hxx>
 
-SfxAlienWarningDialog::SfxAlienWarningDialog(weld::Window* pParent, 
std::u16string_view _rFormatName,
-                                             const OUString& 
_rDefaultExtension, bool rDefaultIsAlien)
+SfxAlienWarningDialog::SfxAlienWarningDialog(weld::Window* pParent,
+                                             std::u16string_view _rFormatName,
+                                             const OUString& 
_rDefaultExtension,
+                                             bool rDefaultIsAlien)
     : MessageDialogController(pParent, "sfx/ui/alienwarndialog.ui", 
"AlienWarnDialog", "ask")
     , m_xKeepCurrentBtn(m_xBuilder->weld_button("save"))
     , m_xUseDefaultFormatBtn(m_xBuilder->weld_button("cancel"))
@@ -32,17 +33,17 @@ SfxAlienWarningDialog::SfxAlienWarningDialog(weld::Window* 
pParent, std::u16stri
 
     // replace formatname (text)
     OUString sInfoText = m_xDialog->get_primary_text();
-    sInfoText = sInfoText.replaceAll( "%FORMATNAME", _rFormatName );
+    sInfoText = sInfoText.replaceAll("%FORMATNAME", _rFormatName);
     m_xDialog->set_primary_text(sInfoText);
 
     // replace formatname (button)
     sInfoText = m_xKeepCurrentBtn->get_label();
-    sInfoText = sInfoText.replaceAll( "%FORMATNAME", _rFormatName );
+    sInfoText = sInfoText.replaceAll("%FORMATNAME", _rFormatName);
     m_xKeepCurrentBtn->set_label(sInfoText);
 
     // hide ODF explanation if default format is alien
     // and set the proper extension in the button
-    if( rDefaultIsAlien )
+    if (rDefaultIsAlien)
     {
         m_xDialog->set_secondary_text(OUString());
         aExtension = _rDefaultExtension.toAsciiUpperCase();
@@ -50,7 +51,7 @@ SfxAlienWarningDialog::SfxAlienWarningDialog(weld::Window* 
pParent, std::u16stri
 
     // replace defaultextension (button)
     sInfoText = m_xUseDefaultFormatBtn->get_label();
-    sInfoText = sInfoText.replaceAll( "%DEFAULTEXTENSION", aExtension );
+    sInfoText = sInfoText.replaceAll("%DEFAULTEXTENSION", aExtension);
     m_xUseDefaultFormatBtn->set_label(sInfoText);
 
     // load value of "warning on" checkbox from save options
diff --git a/sfx2/source/dialog/backingwindow.hxx 
b/sfx2/source/dialog/backingwindow.hxx
index 391e582b9b22..e722999eab19 100644
--- a/sfx2/source/dialog/backingwindow.hxx
+++ b/sfx2/source/dialog/backingwindow.hxx
@@ -78,10 +78,11 @@ class BackingWindow : public InterimItemWindow
     bool mbInitControls;
     std::unique_ptr<svt::AcceleratorExecute> mpAccExec;
 
-    void dispatchURL(const OUString& i_rURL,
-                     const OUString& i_rTarget = OUString("_default"),
-                     const css::uno::Reference<css::frame::XDispatchProvider 
>& i_xProv = css::uno::Reference<css::frame::XDispatchProvider>(),
-                     const css::uno::Sequence<css::beans::PropertyValue >& = 
css::uno::Sequence<css::beans::PropertyValue>());
+    void dispatchURL(const OUString& i_rURL, const OUString& i_rTarget = 
OUString("_default"),
+                     const css::uno::Reference<css::frame::XDispatchProvider>& 
i_xProv
+                     = css::uno::Reference<css::frame::XDispatchProvider>(),
+                     const css::uno::Sequence<css::beans::PropertyValue>& = 
css::uno::Sequence<
+                         css::beans::PropertyValue>());
 
     DECL_LINK(ClickHdl, weld::Button&, void);
     DECL_LINK(ClickHelpHdl, weld::Button&, void);
@@ -110,7 +111,7 @@ public:
     virtual bool PreNotify(NotifyEvent& rNEvt) override;
     virtual void GetFocus() override;
 
-    void setOwningFrame(const css::uno::Reference<css::frame::XFrame>& xFrame 
);
+    void setOwningFrame(const css::uno::Reference<css::frame::XFrame>& xFrame);
 
     void clearRecentFileList();
 };
diff --git a/sfx2/source/dialog/charmappopup.cxx 
b/sfx2/source/dialog/charmappopup.cxx
index f8a791889c37..bff52aaf85da 100644
--- a/sfx2/source/dialog/charmappopup.cxx
+++ b/sfx2/source/dialog/charmappopup.cxx
@@ -25,11 +25,9 @@ CharmapPopup::CharmapPopup(const 
css::uno::Reference<css::uno::XComponentContext
 {
 }
 
-CharmapPopup::~CharmapPopup()
-{
-}
+CharmapPopup::~CharmapPopup() {}
 
-void CharmapPopup::initialize( const css::uno::Sequence< css::uno::Any >& 
rArguments )
+void CharmapPopup::initialize(const css::uno::Sequence<css::uno::Any>& 
rArguments)
 {
     PopupWindowController::initialize(rArguments);
 
@@ -44,9 +42,10 @@ std::unique_ptr<WeldToolbarPopup> 
CharmapPopup::weldPopupWindow()
     return std::make_unique<SfxCharmapCtrl>(this, m_pToolbar);
 }
 
-VclPtr<vcl::Window> CharmapPopup::createVclPopupWindow( vcl::Window* pParent )
+VclPtr<vcl::Window> CharmapPopup::createVclPopupWindow(vcl::Window* pParent)
 {
-    mxInterimPopover = 
VclPtr<InterimToolbarPopup>::Create(getFrameInterface(), pParent,
+    mxInterimPopover = VclPtr<InterimToolbarPopup>::Create(
+        getFrameInterface(), pParent,
         std::make_unique<SfxCharmapCtrl>(this, pParent->GetFrameWeld()));
 
     mxInterimPopover->Show();
@@ -64,12 +63,11 @@ css::uno::Sequence<OUString> 
CharmapPopup::getSupportedServiceNames()
     return { "com.sun.star.frame.ToolbarController" };
 }
 
-extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
 com_sun_star_comp_sfx2_InsertSymbolToolBoxControl_get_implementation(
-    css::uno::XComponentContext* rContext,
-    css::uno::Sequence<css::uno::Any> const & )
+    css::uno::XComponentContext* rContext, css::uno::Sequence<css::uno::Any> 
const&)
 {
-    return cppu::acquire( new CharmapPopup( rContext ) );
+    return cppu::acquire(new CharmapPopup(rContext));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/dialog/dialoghelper.cxx 
b/sfx2/source/dialog/dialoghelper.cxx
index 5668e9b2adee..93e697b29517 100644
--- a/sfx2/source/dialog/dialoghelper.cxx
+++ b/sfx2/source/dialog/dialoghelper.cxx
@@ -14,7 +14,7 @@
 
 Size getParagraphPreviewOptimalSize(const OutputDevice& rReference)
 {
-    return rReference.LogicToPixel(Size(68 , 112), 
MapMode(MapUnit::MapAppFont));
+    return rReference.LogicToPixel(Size(68, 112), 
MapMode(MapUnit::MapAppFont));
 }
 
 Size getDrawPreviewOptimalSize(const OutputDevice& rReference)
@@ -24,12 +24,12 @@ Size getDrawPreviewOptimalSize(const OutputDevice& 
rReference)
 
 Size getPreviewStripSize(const OutputDevice& rReference)
 {
-    return rReference.LogicToPixel(Size(70 , 40), 
MapMode(MapUnit::MapAppFont));
+    return rReference.LogicToPixel(Size(70, 40), MapMode(MapUnit::MapAppFont));
 }
 
 Size getPreviewOptionsSize(const OutputDevice& rReference)
 {
-    return rReference.LogicToPixel(Size(70 , 27), 
MapMode(MapUnit::MapAppFont));
+    return rReference.LogicToPixel(Size(70, 27), MapMode(MapUnit::MapAppFont));
 }
 
 OUString getWidestTime(const LocaleDataWrapper& rWrapper)
@@ -42,8 +42,7 @@ OUString getWidestTime(const LocaleDataWrapper& rWrapper)
 
 OUString formatTime(const DateTime& rDateTime, const LocaleDataWrapper& 
rWrapper)
 {
-    return rWrapper.getDate(rDateTime) + " "
-        + rWrapper.getTime(rDateTime, false);
+    return rWrapper.getDate(rDateTime) + " " + rWrapper.getTime(rDateTime, 
false);
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/dialog/inputdlg.cxx b/sfx2/source/dialog/inputdlg.cxx
index 57b620d45676..e2e58625c8c2 100644
--- a/sfx2/source/dialog/inputdlg.cxx
+++ b/sfx2/source/dialog/inputdlg.cxx
@@ -9,7 +9,7 @@
 
 #include <sfx2/inputdlg.hxx>
 
-InputDialog::InputDialog(weld::Widget* pParent, const OUString &rLabelText)
+InputDialog::InputDialog(weld::Widget* pParent, const OUString& rLabelText)
     : GenericDialogController(pParent, "sfx/ui/inputdialog.ui", "InputDialog")
     , m_xEntry(m_xBuilder->weld_entry("entry"))
     , m_xLabel(m_xBuilder->weld_label("label"))
@@ -18,15 +18,9 @@ InputDialog::InputDialog(weld::Widget* pParent, const 
OUString &rLabelText)
     m_xLabel->set_label(rLabelText);
 }
 
-void InputDialog::HideHelpBtn()
-{
-    m_xHelp->hide();
-}
+void InputDialog::HideHelpBtn() { m_xHelp->hide(); }
 
-OUString InputDialog::GetEntryText() const
-{
-    return m_xEntry->get_text();
-}
+OUString InputDialog::GetEntryText() const { return m_xEntry->get_text(); }
 
 void InputDialog::SetEntryText(const OUString& rStr)
 {
@@ -35,5 +29,3 @@ void InputDialog::SetEntryText(const OUString& rStr)
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-
-
diff --git a/sfx2/source/dialog/securitypage.hxx 
b/sfx2/source/dialog/securitypage.hxx
index b4ca1ddac5c5..a598dfeb4b41 100644
--- a/sfx2/source/dialog/securitypage.hxx
+++ b/sfx2/source/dialog/securitypage.hxx
@@ -26,14 +26,15 @@ struct SfxSecurityPage_Impl;
 
 class SfxSecurityPage final : public SfxTabPage
 {
-    std::unique_ptr< SfxSecurityPage_Impl > m_pImpl;
+    std::unique_ptr<SfxSecurityPage_Impl> m_pImpl;
 
-    virtual bool            FillItemSet( SfxItemSet* ) override;
-    virtual void            Reset( const SfxItemSet* ) override;
+    virtual bool FillItemSet(SfxItemSet*) override;
+    virtual void Reset(const SfxItemSet*) override;
 
 public:
     SfxSecurityPage(weld::Container* pPage, weld::DialogController* 
pController, const SfxItemSet&);
-    static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, 
weld::DialogController* pController, const SfxItemSet*);
+    static std::unique_ptr<SfxTabPage>
+    Create(weld::Container* pPage, weld::DialogController* pController, const 
SfxItemSet*);
     weld::Builder& GetBuilder() const { return *m_xBuilder; }
 };
 
diff --git a/sfx2/source/dialog/sfxdlg.cxx b/sfx2/source/dialog/sfxdlg.cxx
index 734d00fcc446..4098dedd90ab 100644
--- a/sfx2/source/dialog/sfxdlg.cxx
+++ b/sfx2/source/dialog/sfxdlg.cxx
@@ -17,16 +17,13 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-
 #include <sfx2/sfxdlg.hxx>
 
 SfxAbstractDialogFactory* SfxAbstractDialogFactory::Create()
 {
-    return dynamic_cast <SfxAbstractDialogFactory*>( 
VclAbstractDialogFactory::Create() );
+    return 
dynamic_cast<SfxAbstractDialogFactory*>(VclAbstractDialogFactory::Create());
 }
 
-SfxAbstractDialogFactory::~SfxAbstractDialogFactory()
-{
-}
+SfxAbstractDialogFactory::~SfxAbstractDialogFactory() {}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/dialog/styfitem.cxx b/sfx2/source/dialog/styfitem.cxx
index a1ff5ab78094..5ae3017260eb 100644
--- a/sfx2/source/dialog/styfitem.cxx
+++ b/sfx2/source/dialog/styfitem.cxx
@@ -20,12 +20,15 @@
 #include <sfx2/styfitem.hxx>
 #include <unotools/resmgr.hxx>
 
-SfxStyleFamilyItem::SfxStyleFamilyItem(SfxStyleFamily nFamily_, const OUString 
&rName, const OUString& rImage, const std::pair<const char*, 
SfxStyleSearchBits>* pStringArray, const std::locale& rResLocale)
+SfxStyleFamilyItem::SfxStyleFamilyItem(
+    SfxStyleFamily nFamily_, const OUString& rName, const OUString& rImage,
+    const std::pair<const char*, SfxStyleSearchBits>* pStringArray, const 
std::locale& rResLocale)
     : nFamily(nFamily_)
     , aText(rName)
     , aImage(rImage)
 {
-    for (const std::pair<const char*, SfxStyleSearchBits>* pItem = 
pStringArray; pItem->first; ++pItem)
+    for (const std::pair<const char*, SfxStyleSearchBits>* pItem = 
pStringArray; pItem->first;
+         ++pItem)
         aFilterList.emplace_back(Translate::get(pItem->first, rResLocale), 
pItem->second);
 }
 
diff --git a/sfx2/source/doc/QuerySaveDocument.cxx 
b/sfx2/source/doc/QuerySaveDocument.cxx
index 138db6393dc4..fd503816b24d 100644
--- a/sfx2/source/doc/QuerySaveDocument.cxx
+++ b/sfx2/source/doc/QuerySaveDocument.cxx
@@ -29,7 +29,8 @@ short ExecuteQuerySaveDocument(weld::Widget* _pParent, 
std::u16string_view _rTit
         return RET_NO;
     }
 
-    std::unique_ptr<weld::Builder> 
xBuilder(Application::CreateBuilder(_pParent, "sfx/ui/querysavedialog.ui"));
+    std::unique_ptr<weld::Builder> xBuilder(
+        Application::CreateBuilder(_pParent, "sfx/ui/querysavedialog.ui"));
     std::unique_ptr<weld::MessageDialog> 
xQBox(xBuilder->weld_message_dialog("QuerySaveDialog"));
     xQBox->set_primary_text(xQBox->get_primary_text().replaceFirst("$(DOC)", 
_rTitle));
     return xQBox->run();
diff --git a/sfx2/source/doc/syspath.cxx b/sfx2/source/doc/syspath.cxx
index a9c691dd0d10..fb949def0f8f 100644
--- a/sfx2/source/doc/syspath.cxx
+++ b/sfx2/source/doc/syspath.cxx
@@ -22,10 +22,10 @@
 
 namespace SystemPath
 {
-bool GetUserTemplateLocation( sal_Unicode* pFolder, int nSize )
+bool GetUserTemplateLocation(sal_Unicode* pFolder, int nSize)
 {
 #ifdef _WIN32
-    return ::GetUserTemplateLocation( pFolder, nSize );
+    return ::GetUserTemplateLocation(pFolder, nSize);
 #else
     (void)pFolder;
     (void)nSize;
diff --git a/sfx2/source/inc/appopen.hxx b/sfx2/source/inc/appopen.hxx
index 858f14ef8c94..97a4d7a18bcc 100644
--- a/sfx2/source/inc/appopen.hxx
+++ b/sfx2/source/inc/appopen.hxx
@@ -27,10 +27,9 @@ class SfxItemPool;
 class SfxMedium;
 class SfxObjectShell;
 
-ErrCode CheckPasswd_Impl( SfxObjectShell* pDoc, SfxMedium* pFile );
-
-void SetTemplate_Impl( const OUString&, const OUString&, SfxObjectShell* );
+ErrCode CheckPasswd_Impl(SfxObjectShell* pDoc, SfxMedium* pFile);
 
+void SetTemplate_Impl(const OUString&, const OUString&, SfxObjectShell*);
 
 #endif
 
diff --git a/sfx2/source/inc/childwinimpl.hxx b/sfx2/source/inc/childwinimpl.hxx
index c9211edac063..4cc2c78e24cc 100644
--- a/sfx2/source/inc/childwinimpl.hxx
+++ b/sfx2/source/inc/childwinimpl.hxx
@@ -29,19 +29,19 @@ class SfxFrame;
 
 class SfxChildWinContextArr_Impl
 {
-    typedef std::vector<std::unique_ptr<SfxChildWinContextFactory> > DataType;
+    typedef std::vector<std::unique_ptr<SfxChildWinContextFactory>> DataType;
     DataType maData;
 
 public:
     size_t size() const;
-    const SfxChildWinContextFactory& operator []( size_t i ) const;
-    SfxChildWinContextFactory& operator []( size_t i );
-    void push_back( std::unique_ptr<SfxChildWinContextFactory> p );
+    const SfxChildWinContextFactory& operator[](size_t i) const;
+    SfxChildWinContextFactory& operator[](size_t i);
+    void push_back(std::unique_ptr<SfxChildWinContextFactory> p);
 };
 
 class SfxChildWinFactArr_Impl
 {
-    typedef std::vector<std::unique_ptr<SfxChildWinFactory> > DataType;
+    typedef std::vector<std::unique_ptr<SfxChildWinFactory>> DataType;
     DataType maData;
 
 public:
@@ -49,15 +49,14 @@ public:
     typedef DataType::const_iterator const_iterator;
 
     size_t size() const;
-    const SfxChildWinFactory& operator []( size_t i ) const;
-    SfxChildWinFactory& operator []( size_t i );
-    void push_back( std::unique_ptr<SfxChildWinFactory> p );
-    void erase( const iterator& it );
+    const SfxChildWinFactory& operator[](size_t i) const;
+    SfxChildWinFactory& operator[](size_t i);
+    void push_back(std::unique_ptr<SfxChildWinFactory> p);
+    void erase(const iterator& it);
 
     iterator begin();
 };
 
 #endif
 
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/inc/ctrlfactoryimpl.hxx 
b/sfx2/source/inc/ctrlfactoryimpl.hxx
index 7b91aed7aba3..4d32f1d3d298 100644
--- a/sfx2/source/inc/ctrlfactoryimpl.hxx
+++ b/sfx2/source/inc/ctrlfactoryimpl.hxx
@@ -31,10 +31,10 @@ class SfxStbCtrlFactArr_Impl
     DataType maData;
 
 public:
-    const SfxStbCtrlFactory& operator []( size_t i ) const;
-    SfxStbCtrlFactory& operator []( size_t i );
+    const SfxStbCtrlFactory& operator[](size_t i) const;
+    SfxStbCtrlFactory& operator[](size_t i);
 
-    void push_back( const SfxStbCtrlFactory& );
+    void push_back(const SfxStbCtrlFactory&);
 
     size_t size() const;
 };
@@ -45,10 +45,10 @@ class SfxTbxCtrlFactArr_Impl
     DataType maData;
 
 public:
-    const SfxTbxCtrlFactory& operator []( size_t i ) const;
-    SfxTbxCtrlFactory& operator []( size_t i );
+    const SfxTbxCtrlFactory& operator[](size_t i) const;
+    SfxTbxCtrlFactory& operator[](size_t i);
 
-    void push_back( const SfxTbxCtrlFactory& );
+    void push_back(const SfxTbxCtrlFactory&);
 
     size_t size() const;
 };
diff --git a/sfx2/source/inc/documentfontsdialog.hxx 
b/sfx2/source/inc/documentfontsdialog.hxx
index 408c93ae6302..6f7b3fb221ae 100644
--- a/sfx2/source/inc/documentfontsdialog.hxx
+++ b/sfx2/source/inc/documentfontsdialog.hxx
@@ -24,15 +24,19 @@
 /**
  Tab page for document font settings in the document properties dialog.
 */
-class SfxDocumentFontsPage: public SfxTabPage
+class SfxDocumentFontsPage : public SfxTabPage
 {
 public:
-    SfxDocumentFontsPage(weld::Container* pPage, weld::DialogController* 
pController, const SfxItemSet& set);
+    SfxDocumentFontsPage(weld::Container* pPage, weld::DialogController* 
pController,
+                         const SfxItemSet& set);
     virtual ~SfxDocumentFontsPage() override;
-    static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, 
weld::DialogController* pController, const SfxItemSet* set);
+    static std::unique_ptr<SfxTabPage>
+    Create(weld::Container* pPage, weld::DialogController* pController, const 
SfxItemSet* set);
+
 protected:
-    virtual bool FillItemSet( SfxItemSet* set ) override;
-    virtual void Reset( const SfxItemSet* set ) override;
+    virtual bool FillItemSet(SfxItemSet* set) override;
+    virtual void Reset(const SfxItemSet* set) override;
+
 private:
     std::unique_ptr<weld::CheckButton> embedFontsCheckbox;
     std::unique_ptr<weld::CheckButton> embedUsedFontsCheckbox;
diff --git a/sfx2/source/inc/helper.hxx b/sfx2/source/inc/helper.hxx
index 6abb5a4fcb86..ca278b07b56b 100644
--- a/sfx2/source/inc/helper.hxx
+++ b/sfx2/source/inc/helper.hxx
@@ -28,15 +28,14 @@
 class SfxContentHelper
 {
 public:
-    static std::vector< OUString > GetResultSet( const OUString& rURL );
-    static std::vector< OUString > GetHelpTreeViewContents( const OUString& 
rURL );
-    static OUString GetActiveHelpString( const OUString& rURL );
-    static bool IsHelpErrorDocument( const OUString& rURL );
+    static std::vector<OUString> GetResultSet(const OUString& rURL);
+    static std::vector<OUString> GetHelpTreeViewContents(const OUString& rURL);
+    static OUString GetActiveHelpString(const OUString& rURL);
+    static bool IsHelpErrorDocument(const OUString& rURL);
 
-    static sal_Int64 GetSize( const OUString& rContent );
+    static sal_Int64 GetSize(const OUString& rContent);
 };
 
 #endif // INCLUDED_SFX2_SOURCE_INC_HELPER_HXX
 
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/inc/nochaos.hxx b/sfx2/source/inc/nochaos.hxx
index 5468eee92bbc..4baee35fca44 100644
--- a/sfx2/source/inc/nochaos.hxx
+++ b/sfx2/source/inc/nochaos.hxx
@@ -26,8 +26,8 @@ class SfxItemPool;
 class NoChaos
 {
 public:
-    static SfxItemPool*     GetItemPool();
-    static sal_uInt16           ReleaseItemPool();
+    static SfxItemPool* GetItemPool();
+    static sal_uInt16 ReleaseItemPool();
 };
 
 #endif
diff --git a/sfx2/source/inc/openflag.hxx b/sfx2/source/inc/openflag.hxx
index 3bdfb3428f64..11421d8cfca4 100644
--- a/sfx2/source/inc/openflag.hxx
+++ b/sfx2/source/inc/openflag.hxx
@@ -20,14 +20,13 @@
 #define INCLUDED_SFX2_SOURCE_INC_OPENFLAG_HXX
 
 // Open file for editing, then only the third option (reading a copy) works
-#define SFX_STREAM_READWRITE  (StreamMode::READWRITE |  
StreamMode::SHARE_DENYWRITE)
+#define SFX_STREAM_READWRITE (StreamMode::READWRITE | 
StreamMode::SHARE_DENYWRITE)
 // I work on the original, not a copy
 // -> file then can not be opened for editing
-#define SFX_STREAM_READONLY   (StreamMode::READ | StreamMode::SHARE_DENYWRITE) 
// + !bDirect
+#define SFX_STREAM_READONLY (StreamMode::READ | StreamMode::SHARE_DENYWRITE) 
// + !bDirect
 // Someone else is editing the file, a copy it created
 // -> the file can then be opened for editing
-#define SFX_STREAM_READONLY_MAKECOPY   (StreamMode::READ | 
StreamMode::SHARE_DENYNONE)
-
+#define SFX_STREAM_READONLY_MAKECOPY (StreamMode::READ | 
StreamMode::SHARE_DENYNONE)
 
 #endif
 
diff --git a/sfx2/source/inc/openurlhint.hxx b/sfx2/source/inc/openurlhint.hxx
index 026d72636157..c4557cae8a9e 100644
--- a/sfx2/source/inc/openurlhint.hxx
+++ b/sfx2/source/inc/openurlhint.hxx
@@ -23,9 +23,9 @@
 #include <svl/hint.hxx>
 #include <rtl/ustring.hxx>
 
-class SfxOpenUrlHint: public SfxHint
+class SfxOpenUrlHint : public SfxHint
 {
-    OUString  msDocumentURL;
+    OUString msDocumentURL;
 
 public:
     SfxOpenUrlHint(const OUString& sDocumentURL);
diff --git a/sfx2/source/inc/sfxtypes.hxx b/sfx2/source/inc/sfxtypes.hxx
index 3ee9a1084420..acc17ff9a3c0 100644
--- a/sfx2/source/inc/sfxtypes.hxx
+++ b/sfx2/source/inc/sfxtypes.hxx
@@ -29,7 +29,7 @@ class SfxStack
     static unsigned nLevel;
 
 public:
-    SfxStack( const char *pName )
+    SfxStack(const char* pName)
     {
         ++nLevel;
         SAL_INFO("sfx.control", "STACK: enter " << nLevel << " " << pName);
@@ -41,13 +41,11 @@ public:
     }
 };
 
-#define SFX_STACK(s) SfxStack aSfxStack_( #s )
+#define SFX_STACK(s) SfxStack aSfxStack_(#s)
 #else
 #define SFX_STACK(s)
 #endif
 
-
 #endif // INCLUDED_SFX2_SOURCE_INC_SFXTYPES_HXX
 
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/inc/shellimpl.hxx b/sfx2/source/inc/shellimpl.hxx
index 5e11bf1ef58e..1476271bbbc0 100644
--- a/sfx2/source/inc/shellimpl.hxx
+++ b/sfx2/source/inc/shellimpl.hxx
@@ -38,12 +38,12 @@ public:
     iterator begin();
     iterator end();
 
-    const SfxObjectShell* operator[] ( size_t i ) const;
-    SfxObjectShell* operator[] ( size_t i );
+    const SfxObjectShell* operator[](size_t i) const;
+    SfxObjectShell* operator[](size_t i);
 
-    void erase( const iterator& it );
+    void erase(const iterator& it);
 
-    void push_back( SfxObjectShell* p );
+    void push_back(SfxObjectShell* p);
 
     size_t size() const;
 };
@@ -54,17 +54,16 @@ class SfxViewFrameArr_Impl
     DataType maData;
 
 public:
-
     typedef DataType::iterator iterator;
     iterator begin();
     iterator end();
 
-    const SfxViewFrame* operator[] ( size_t i ) const;
-    SfxViewFrame* operator[] ( size_t i );
+    const SfxViewFrame* operator[](size_t i) const;
+    SfxViewFrame* operator[](size_t i);
 
-    void erase( const iterator& it );
+    void erase(const iterator& it);
 
-    void push_back( SfxViewFrame* p );
+    void push_back(SfxViewFrame* p);
 
     size_t size() const;
 };
@@ -75,18 +74,17 @@ class SfxViewShellArr_Impl
     DataType maData;
 
 public:
-
     typedef DataType::iterator iterator;
 
     iterator begin();
     iterator end();
 
-    const SfxViewShell* operator[] ( size_t i ) const;
-    SfxViewShell* operator[] ( size_t i );
+    const SfxViewShell* operator[](size_t i) const;
+    SfxViewShell* operator[](size_t i);
 
-    void erase( const iterator& it );
+    void erase(const iterator& it);
 
-    void push_back( SfxViewShell* p );
+    void push_back(SfxViewShell* p);
 
     size_t size() const;
 };
diff --git a/sfx2/source/inc/templatesearchviewitem.hxx 
b/sfx2/source/inc/templatesearchviewitem.hxx
index 0f681cbdd152..093b6adf10d9 100644
--- a/sfx2/source/inc/templatesearchviewitem.hxx
+++ b/sfx2/source/inc/templatesearchviewitem.hxx
@@ -14,12 +14,13 @@
 
 struct TemplateSearchViewItem : public TemplateViewItem
 {
-    TemplateSearchViewItem (ThumbnailViewBase &rView, sal_uInt16 nId)
+    TemplateSearchViewItem(ThumbnailViewBase& rView, sal_uInt16 nId)
         : TemplateViewItem(rView, nId)
         , mnAssocId(0)
-    {}
+    {
+    }
 
-    sal_uInt16 mnAssocId;    //Associated item id to the TemplateViews
+    sal_uInt16 mnAssocId; //Associated item id to the TemplateViews
 };
 
 #endif // INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEWITEM_HXX
diff --git a/sfx2/source/inc/versdlg.hxx b/sfx2/source/inc/versdlg.hxx
index d486692e77a3..1e173467d7a8 100644
--- a/sfx2/source/inc/versdlg.hxx
+++ b/sfx2/source/inc/versdlg.hxx
@@ -43,7 +43,7 @@ class SfxVersionDialog : public SfxDialogController
 
     DECL_LINK(DClickHdl_Impl, weld::TreeView&, bool);
     DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
-    DECL_LINK(ButtonHdl_Impl, weld::Button&, void );
+    DECL_LINK(ButtonHdl_Impl, weld::Button&, void);
     void Init_Impl();
     void Open_Impl();
 
@@ -56,7 +56,7 @@ public:
 class SfxViewVersionDialog_Impl : public SfxDialogController
 {
 private:
-    SfxVersionInfo&   m_rInfo;
+    SfxVersionInfo& m_rInfo;
 
     std::unique_ptr<weld::Label> m_xDateTimeText;
     std::unique_ptr<weld::Label> m_xSavedByText;
@@ -68,7 +68,7 @@ private:
     DECL_LINK(ButtonHdl, weld::Button&, void);
 
 public:
-    SfxViewVersionDialog_Impl(weld::Window *pParent, SfxVersionInfo& rInfo, 
bool bEdit);
+    SfxViewVersionDialog_Impl(weld::Window* pParent, SfxVersionInfo& rInfo, 
bool bEdit);
 };
 
 class SfxCmisVersionsDialog : public SfxDialogController
@@ -82,10 +82,10 @@ class SfxCmisVersionsDialog : public SfxDialogController
     std::unique_ptr<weld::Button> m_xCompareButton;
     std::unique_ptr<weld::TreeView> m_xVersionBox;
 
-    void                        LoadVersions();
+    void LoadVersions();
 
 public:
-    SfxCmisVersionsDialog(weld::Window *pParent, SfxViewFrame* pFrame);
+    SfxCmisVersionsDialog(weld::Window* pParent, SfxViewFrame* pFrame);
     virtual ~SfxCmisVersionsDialog() override;
 };
 
diff --git a/sfx2/source/notebookbar/DropdownBox.cxx 
b/sfx2/source/notebookbar/DropdownBox.cxx
index 1ce37eca40c9..315c30a2f95d 100644
--- a/sfx2/source/notebookbar/DropdownBox.cxx
+++ b/sfx2/source/notebookbar/DropdownBox.cxx
@@ -29,7 +29,7 @@
  * which can be opened by clicking on a button
  */
 
-DropdownBox::DropdownBox(vcl::Window *pParent)
+DropdownBox::DropdownBox(vcl::Window* pParent)
     : VclHBox(pParent)
     , IPrioritable()
     , m_bInFullView(true)
@@ -42,10 +42,7 @@ DropdownBox::DropdownBox(vcl::Window *pParent)
     m_pButton->Resize();
 }
 
-DropdownBox::~DropdownBox()
-{
-    disposeOnce();
-}
+DropdownBox::~DropdownBox() { disposeOnce(); }
 
 void DropdownBox::dispose()
 {
@@ -70,10 +67,7 @@ void DropdownBox::HideContent()
     }
 }
 
-bool DropdownBox::IsHidden()
-{
-    return !m_bInFullView;
-}
+bool DropdownBox::IsHidden() { return !m_bInFullView; }
 
 void DropdownBox::ShowContent()
 {
@@ -116,9 +110,8 @@ IMPL_LINK(DropdownBox, PBClickHdl, Button*, /*pButton*/, 
void)
     tools::Long y = GetPosPixel().getY() + NOTEBOOK_HEADER_HEIGHT + 
GetSizePixel().Height();
     tools::Rectangle aRect(x, y, x, y);
 
-    m_pPopup->StartPopupMode(aRect, FloatWinPopupFlags::Down
-                                    |FloatWinPopupFlags::GrabFocus
-                                    |FloatWinPopupFlags::AllMouseButtonClose);
+    m_pPopup->StartPopupMode(aRect, FloatWinPopupFlags::Down | 
FloatWinPopupFlags::GrabFocus
+                                        | 
FloatWinPopupFlags::AllMouseButtonClose);
 }
 
 VCL_BUILDER_FACTORY(DropdownBox)
diff --git a/sfx2/source/notebookbar/PriorityHBox.cxx 
b/sfx2/source/notebookbar/PriorityHBox.cxx
index 889b32f57ad3..3c6564aa8890 100644
--- a/sfx2/source/notebookbar/PriorityHBox.cxx
+++ b/sfx2/source/notebookbar/PriorityHBox.cxx
@@ -25,22 +25,19 @@
 
 namespace
 {
-    bool lcl_comparePriority(const vcl::IPrioritable* a, const 
vcl::IPrioritable* b)
-    {
-        return a->GetPriority() < b->GetPriority();
-    }
+bool lcl_comparePriority(const vcl::IPrioritable* a, const vcl::IPrioritable* 
b)
+{
+    return a->GetPriority() < b->GetPriority();
+}
 }
 
-PriorityHBox::PriorityHBox(vcl::Window *pParent)
+PriorityHBox::PriorityHBox(vcl::Window* pParent)
     : VclHBox(pParent)
     , m_bInitialized(false)
 {
 }
 
-PriorityHBox::~PriorityHBox()
-{
-    disposeOnce();
-}
+PriorityHBox::~PriorityHBox() { disposeOnce(); }
 
 void PriorityHBox::Initialize()
 {
@@ -81,7 +78,8 @@ Size PriorityHBox::calculateRequisition() const
     sal_uInt16 nVisibleChildren = 0;
 
     Size aSize;
-    for (vcl::Window *pChild = GetWindow(GetWindowType::FirstChild); pChild; 
pChild = pChild->GetWindow(GetWindowType::Next))
+    for (vcl::Window* pChild = GetWindow(GetWindowType::FirstChild); pChild;
+         pChild = pChild->GetWindow(GetWindowType::Next))
     {
         if (!pChild->IsVisible())
             continue;
@@ -146,7 +144,7 @@ void PriorityHBox::Resize()
         vcl::Window* pWindow = dynamic_cast<vcl::Window*>(*pChildR);
         vcl::IPrioritable* pPrioritable = *pChildR;
 
-        if(pWindow->GetParent() != this)
+        if (pWindow->GetParent() != this)
         {
             pChildR++;
             continue;
diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx
index 44b26b52ae7a..0020d3beac69 100644
--- a/sfx2/source/notify/hintpost.cxx
+++ b/sfx2/source/notify/hintpost.cxx
@@ -22,30 +22,27 @@
 #include <sfx2/request.hxx>
 #include <vcl/svapp.hxx>
 
-
-SfxHintPoster::SfxHintPoster(const std::function<void 
(std::unique_ptr<SfxRequest>)>& rLink)
+SfxHintPoster::SfxHintPoster(const 
std::function<void(std::unique_ptr<SfxRequest>)>& rLink)
     : m_Link(rLink)
 {
 }
 
-SfxHintPoster::~SfxHintPoster()
-{
-}
+SfxHintPoster::~SfxHintPoster() {}
 
-void SfxHintPoster::Post( std::unique_ptr<SfxRequest> pHintToPost )
+void SfxHintPoster::Post(std::unique_ptr<SfxRequest> pHintToPost)
 {
-    Application::PostUserEvent( ( LINK(this, SfxHintPoster, DoEvent_Impl) ), 
pHintToPost.release() );
+    Application::PostUserEvent((LINK(this, SfxHintPoster, DoEvent_Impl)), 
pHintToPost.release());
     AddFirstRef();
 }
 
-IMPL_LINK( SfxHintPoster, DoEvent_Impl, void *, pPostedHint, void )
+IMPL_LINK(SfxHintPoster, DoEvent_Impl, void*, pPostedHint, void)
 {
     if (m_Link)
-        m_Link( 
std::unique_ptr<SfxRequest>(static_cast<SfxRequest*>(pPostedHint)) );
+        
m_Link(std::unique_ptr<SfxRequest>(static_cast<SfxRequest*>(pPostedHint)));
     ReleaseRef();
 }
 
-void SfxHintPoster::SetEventHdl(const std::function<void 
(std::unique_ptr<SfxRequest>)>& rLink)
+void SfxHintPoster::SetEventHdl(const 
std::function<void(std::unique_ptr<SfxRequest>)>& rLink)
 {
     m_Link = rLink;
 }
diff --git a/sfx2/source/safemode/safemode.cxx 
b/sfx2/source/safemode/safemode.cxx
index 0b7b64446bf9..f61001bec696 100644
--- a/sfx2/source/safemode/safemode.cxx
+++ b/sfx2/source/safemode/safemode.cxx
@@ -16,8 +16,8 @@
 
 using namespace osl;
 
-namespace sfx2 {
-
+namespace sfx2
+{
 bool SafeMode::putFlag()
 {
     File safeModeFile(getFilePath("safemode"));
@@ -38,10 +38,7 @@ bool SafeMode::hasFlag()
     }
     return false;
 }
-bool SafeMode::removeFlag()
-{
-    return File::remove(getFilePath("safemode")) == FileBase::E_None;
-}
+bool SafeMode::removeFlag() { return File::remove(getFilePath("safemode")) == 
FileBase::E_None; }
 
 bool SafeMode::putRestartFlag()
 {
@@ -70,7 +67,8 @@ bool SafeMode::removeRestartFlag()
 
 OUString SafeMode::getFilePath(const OUString& sFilename)
 {
-    OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" 
SAL_CONFIGFILE("bootstrap") ":UserInstallation}/");
+    OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER
+                 "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/");
     rtl::Bootstrap::expandMacros(url);
 
     OUString aProfilePath;
@@ -78,7 +76,6 @@ OUString SafeMode::getFilePath(const OUString& sFilename)
     (void)FileBase::getAbsoluteFileURL(url, sFilename, aProfilePath);
     return aProfilePath;
 }
-
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/sidebar/SidebarModelUpdate.cxx 
b/sfx2/source/sidebar/SidebarModelUpdate.cxx
index 2f81b01f6cc7..42821bc564d4 100644
--- a/sfx2/source/sidebar/SidebarModelUpdate.cxx
+++ b/sfx2/source/sidebar/SidebarModelUpdate.cxx
@@ -9,12 +9,9 @@
 
 #include <sfx2/sidebar/SidebarModelUpdate.hxx>
 
-namespace sfx2::sidebar {
-
-SidebarModelUpdate::~SidebarModelUpdate()
+namespace sfx2::sidebar
 {
-}
-
+SidebarModelUpdate::~SidebarModelUpdate() {}
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/sidebar/UnoSidebar.cxx 
b/sfx2/source/sidebar/UnoSidebar.cxx
index 20a8728d5f29..b39a8519b343 100644
--- a/sfx2/source/sidebar/UnoSidebar.cxx
+++ b/sfx2/source/sidebar/UnoSidebar.cxx
@@ -18,14 +18,13 @@
 
 #include <vcl/svapp.hxx>
 
-
 using namespace css;
 using namespace ::sfx2::sidebar;
 
 using ::com::sun::star::uno::RuntimeException;
 
-SfxUnoSidebar::SfxUnoSidebar(const uno::Reference<frame::XFrame>& rFrame):
-xFrame(rFrame)
+SfxUnoSidebar::SfxUnoSidebar(const uno::Reference<frame::XFrame>& rFrame)
+    : xFrame(rFrame)
 {
 }
 
@@ -34,7 +33,7 @@ SidebarController* SfxUnoSidebar::getSidebarController()
     return SidebarController::GetSidebarControllerForFrame(xFrame);
 }
 
-void SAL_CALL SfxUnoSidebar::showDecks ( const sal_Bool bVisible )
+void SAL_CALL SfxUnoSidebar::showDecks(const sal_Bool bVisible)
 {
     SolarMutexGuard aGuard;
 
@@ -49,20 +48,19 @@ void SAL_CALL SfxUnoSidebar::showDecks ( const sal_Bool 
bVisible )
     }
 }
 
-void SAL_CALL SfxUnoSidebar::setVisible ( const sal_Bool bVisible )
+void SAL_CALL SfxUnoSidebar::setVisible(const sal_Bool bVisible)
 {
     SolarMutexGuard aGuard;
 
     SidebarController* pSidebarController = getSidebarController();
 
-    if ( (bVisible && !pSidebarController) || (!bVisible && 
pSidebarController) )
+    if ((bVisible && !pSidebarController) || (!bVisible && pSidebarController))
     {
-        const util::URL aURL (Tools::GetURL(".uno:Sidebar"));
-        uno::Reference<frame::XDispatch> xDispatch (Tools::GetDispatch(xFrame, 
aURL));
+        const util::URL aURL(Tools::GetURL(".uno:Sidebar"));
+        uno::Reference<frame::XDispatch> xDispatch(Tools::GetDispatch(xFrame, 
aURL));
         if (xDispatch.is())
-                xDispatch->dispatch(aURL, 
uno::Sequence<beans::PropertyValue>());
+            xDispatch->dispatch(aURL, uno::Sequence<beans::PropertyValue>());
     }
-
 }
 
 sal_Bool SAL_CALL SfxUnoSidebar::isVisible()
@@ -78,7 +76,7 @@ uno::Reference<frame::XFrame> SAL_CALL 
SfxUnoSidebar::getFrame()
 {
     SolarMutexGuard aGuard;
 
-    if (! xFrame.is() )
+    if (!xFrame.is())
         throw uno::RuntimeException();
 
     return xFrame;
@@ -92,10 +90,6 @@ uno::Reference<ui::XDecks> SAL_CALL SfxUnoSidebar::getDecks()
     return decks;
 }
 
-uno::Reference<ui::XSidebar> SAL_CALL SfxUnoSidebar::getSidebar()
-{
-    return getSidebarController();
-}
-
+uno::Reference<ui::XSidebar> SAL_CALL SfxUnoSidebar::getSidebar() { return 
getSidebarController(); }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/view/viewimp.hxx b/sfx2/source/view/viewimp.hxx
index d61f86b5dd82..c36187fb554d 100644
--- a/sfx2/source/view/viewimp.hxx
+++ b/sfx2/source/view/viewimp.hxx
@@ -42,9 +42,9 @@ struct SfxViewShell_Impl
     bool m_bHasPrintOptions;
     sal_uInt16 m_nFamily;
     ::rtl::Reference<SfxBaseController> m_pController;
-    std::unique_ptr< ::svt::AcceleratorExecute > m_xAccExec;
-    ::rtl::Reference< SfxClipboardChangeListener > xClipboardListener;
-    std::shared_ptr< vcl::PrinterController > m_xPrinterController;
+    std::unique_ptr<::svt::AcceleratorExecute> m_xAccExec;
+    ::rtl::Reference<SfxClipboardChangeListener> xClipboardListener;
+    std::shared_ptr<vcl::PrinterController> m_xPrinterController;
 
     mutable std::unique_ptr<std::vector<SfxInPlaceClient*>> mpIPClients;
 
@@ -59,7 +59,7 @@ struct SfxViewShell_Impl
     explicit SfxViewShell_Impl(SfxViewShellFlags const nFlags, ViewShellDocId 
nDocId);
     ~SfxViewShell_Impl();
 
-    std::vector< SfxInPlaceClient* >* GetIPClients_Impl(bool bCreate = true) 
const;
+    std::vector<SfxInPlaceClient*>* GetIPClients_Impl(bool bCreate = true) 
const;
 };
 
 #endif
diff --git a/solenv/clang-format/excludelist b/solenv/clang-format/excludelist
index bc1764ba2cde..b24cafabf60b 100644
--- a/solenv/clang-format/excludelist
+++ b/solenv/clang-format/excludelist
@@ -10716,10 +10716,7 @@ 
setup_native/source/win32/customactions/tools/seterror.hxx
 sfx2/inc/bitset.hxx
 sfx2/inc/bluthsndapi.hxx
 sfx2/inc/charmapcontrol.hxx
-sfx2/inc/emojicontrol.hxx
-sfx2/inc/emojiview.hxx
 sfx2/inc/emojiviewitem.hxx
-sfx2/inc/fwkhelper.hxx
 sfx2/inc/guisaveas.hxx
 sfx2/inc/inettbc.hxx
 sfx2/inc/notebookbar/NotebookbarTabControl.hxx
@@ -10729,9 +10726,7 @@ sfx2/inc/sidebar/Accessible.hxx
 sfx2/inc/sidebar/ContextChangeBroadcaster.hxx
 sfx2/inc/sidebar/ContextList.hxx
 sfx2/inc/sidebar/ControllerFactory.hxx
-sfx2/inc/sidebar/DeckDescriptor.hxx
 sfx2/inc/sidebar/DeckLayouter.hxx
-sfx2/inc/sidebar/DeckTitleBar.hxx
 sfx2/inc/sidebar/DrawHelper.hxx
 sfx2/inc/sidebar/PanelDescriptor.hxx
 sfx2/inc/sidebar/PanelTitleBar.hxx
@@ -10745,16 +10740,12 @@ sfx2/inc/sidebar/UnoPanels.hxx
 sfx2/inc/sidebar/UnoSidebar.hxx
 sfx2/inc/sorgitm.hxx
 sfx2/inc/srchdlg.hxx
-sfx2/inc/strings.hxx
-sfx2/inc/templatecontaineritem.hxx
-sfx2/inc/templatedefaultview.hxx
 sfx2/inc/templateviewitem.hxx
 sfx2/inc/unoctitm.hxx
 sfx2/qa/cppunit/test_classification.cxx
 sfx2/qa/cppunit/test_controlleritem.cxx
 sfx2/qa/cppunit/test_metadatable.cxx
 sfx2/qa/cppunit/test_misc.cxx
-sfx2/qa/unit/sfx2-dialogs-test.cxx
 sfx2/source/appl/app.cxx
 sfx2/source/appl/appbas.cxx
 sfx2/source/appl/appbaslib.cxx
@@ -10767,7 +10758,6 @@ sfx2/source/appl/appinit.cxx
 sfx2/source/appl/appmain.cxx
 sfx2/source/appl/appmisc.cxx
 sfx2/source/appl/appopen.cxx
-sfx2/source/appl/appquit.cxx
 sfx2/source/appl/appreg.cxx
 sfx2/source/appl/appserv.cxx
 sfx2/source/appl/appuno.cxx
@@ -10812,19 +10802,15 @@ sfx2/source/bastyp/helper.cxx
 sfx2/source/bastyp/mieclip.cxx
 sfx2/source/bastyp/progress.cxx
 sfx2/source/bastyp/sfxhtml.cxx
-sfx2/source/bastyp/sfxresid.cxx
 sfx2/source/config/evntconf.cxx
 sfx2/source/control/bindings.cxx
 sfx2/source/control/charmapcontrol.cxx
-sfx2/source/control/charwin.cxx
 sfx2/source/control/ctrlfactoryimpl.cxx
 sfx2/source/control/ctrlitem.cxx
 sfx2/source/control/dispatch.cxx
 sfx2/source/control/emojicontrol.cxx
-sfx2/source/control/emojipopup.cxx
 sfx2/source/control/emojiview.cxx
 sfx2/source/control/emojiviewitem.cxx
-sfx2/source/control/itemdel.cxx
 sfx2/source/control/minfitem.cxx
 sfx2/source/control/msg.cxx
 sfx2/source/control/msgpool.cxx
@@ -10837,7 +10823,6 @@ sfx2/source/control/sfxstatuslistener.cxx
 sfx2/source/control/shell.cxx
 sfx2/source/control/sorgitm.cxx
 sfx2/source/control/statcach.cxx
-sfx2/source/control/templatecontaineritem.cxx
 sfx2/source/control/templatedefaultview.cxx
 sfx2/source/control/templatelocalview.cxx
 sfx2/source/control/templatesearchview.cxx
@@ -10847,15 +10832,11 @@ sfx2/source/control/thumbnailviewacc.cxx
 sfx2/source/control/thumbnailviewacc.hxx
 sfx2/source/control/thumbnailviewitem.cxx
 sfx2/source/control/unoctitm.cxx
-sfx2/source/dialog/alienwarn.cxx
 sfx2/source/dialog/backingcomp.cxx
 sfx2/source/dialog/backingwindow.cxx
-sfx2/source/dialog/backingwindow.hxx
 sfx2/source/dialog/basedlgs.cxx
 sfx2/source/dialog/bluthsnd.cxx
-sfx2/source/dialog/charmappopup.cxx
 sfx2/source/dialog/checkin.cxx
-sfx2/source/dialog/dialoghelper.cxx
 sfx2/source/dialog/dinfdlg.cxx
 sfx2/source/dialog/dockwin.cxx
 sfx2/source/dialog/documentfontsdialog.cxx
@@ -10863,7 +10844,6 @@ sfx2/source/dialog/filedlghelper.cxx
 sfx2/source/dialog/filedlgimpl.hxx
 sfx2/source/dialog/filtergrouping.cxx
 sfx2/source/dialog/filtergrouping.hxx
-sfx2/source/dialog/inputdlg.cxx
 sfx2/source/dialog/mailmodel.cxx
 sfx2/source/dialog/mgetempl.cxx
 sfx2/source/dialog/mgetempl.hxx
@@ -10874,11 +10854,8 @@ sfx2/source/dialog/passwd.cxx
 sfx2/source/dialog/printopt.cxx
 sfx2/source/dialog/recfloat.cxx
 sfx2/source/dialog/securitypage.cxx
-sfx2/source/dialog/securitypage.hxx
-sfx2/source/dialog/sfxdlg.cxx
 sfx2/source/dialog/splitwin.cxx
 sfx2/source/dialog/srchdlg.cxx
-sfx2/source/dialog/styfitem.cxx
 sfx2/source/dialog/styledlg.cxx
 sfx2/source/dialog/tabdlg.cxx
 sfx2/source/dialog/templdlg.cxx
@@ -10888,7 +10865,6 @@ sfx2/source/dialog/tplpitem.cxx
 sfx2/source/dialog/versdlg.cxx
 sfx2/source/doc/DocumentMetadataAccess.cxx
 sfx2/source/doc/Metadatable.cxx
-sfx2/source/doc/QuerySaveDocument.cxx
 sfx2/source/doc/SfxDocumentMetaData.cxx
 sfx2/source/doc/docfac.cxx
 sfx2/source/doc/docfile.cxx
@@ -10923,7 +10899,6 @@ sfx2/source/doc/printhelper.hxx
 sfx2/source/doc/saveastemplatedlg.cxx
 sfx2/source/doc/sfxbasemodel.cxx
 sfx2/source/doc/sfxmodelfactory.cxx
-sfx2/source/doc/syspath.cxx
 sfx2/source/doc/syspathw32.cxx
 sfx2/source/doc/templatedlg.cxx
 sfx2/source/doc/watermarkitem.cxx
@@ -10931,46 +10906,30 @@ sfx2/source/doc/zoomitem.cxx
 sfx2/source/explorer/nochaos.cxx
 sfx2/source/inc/appbaslib.hxx
 sfx2/source/inc/appdata.hxx
-sfx2/source/inc/appopen.hxx
-sfx2/source/inc/childwinimpl.hxx
-sfx2/source/inc/ctrlfactoryimpl.hxx
-sfx2/source/inc/documentfontsdialog.hxx
 sfx2/source/inc/docundomanager.hxx
 sfx2/source/inc/eventsupplier.hxx
 sfx2/source/inc/fltoptint.hxx
-sfx2/source/inc/helper.hxx
 sfx2/source/inc/helpids.h
 sfx2/source/inc/hintpost.hxx
 sfx2/source/inc/macroloader.hxx
-sfx2/source/inc/nochaos.hxx
 sfx2/source/inc/objshimp.hxx
-sfx2/source/inc/openflag.hxx
-sfx2/source/inc/openurlhint.hxx
 sfx2/source/inc/partwnd.hxx
 sfx2/source/inc/recfloat.hxx
-sfx2/source/inc/sfxtypes.hxx
 sfx2/source/inc/sfxurlrelocator.hxx
-sfx2/source/inc/shellimpl.hxx
 sfx2/source/inc/slotserv.hxx
 sfx2/source/inc/splitwin.hxx
 sfx2/source/inc/statcach.hxx
 sfx2/source/inc/templatesearchview.hxx
-sfx2/source/inc/templatesearchviewitem.hxx
 sfx2/source/inc/templdgi.hxx
 sfx2/source/inc/tplcitem.hxx
-sfx2/source/inc/versdlg.hxx
 sfx2/source/inc/workwin.hxx
 sfx2/source/inet/inettbc.cxx
 sfx2/source/notebookbar/ContextVBox.cxx
-sfx2/source/notebookbar/DropdownBox.cxx
 sfx2/source/notebookbar/NotebookbarTabControl.cxx
-sfx2/source/notebookbar/PriorityHBox.cxx
 sfx2/source/notebookbar/SfxNotebookBar.cxx
 sfx2/source/notify/eventsupplier.cxx
 sfx2/source/notify/globalevents.cxx
-sfx2/source/notify/hintpost.cxx
 sfx2/source/notify/openurlhint.cxx
-sfx2/source/safemode/safemode.cxx
 sfx2/source/sidebar/Accessible.cxx
 sfx2/source/sidebar/AsynchronousCall.cxx
 sfx2/source/sidebar/Context.cxx
@@ -10995,7 +10954,6 @@ sfx2/source/sidebar/Sidebar.cxx
 sfx2/source/sidebar/SidebarChildWindow.cxx
 sfx2/source/sidebar/SidebarController.cxx
 sfx2/source/sidebar/SidebarDockingWindow.cxx
-sfx2/source/sidebar/SidebarModelUpdate.cxx
 sfx2/source/sidebar/SidebarPanelBase.cxx
 sfx2/source/sidebar/SidebarToolBox.cxx
 sfx2/source/sidebar/TabBar.cxx
@@ -11006,7 +10964,6 @@ sfx2/source/sidebar/UnoDeck.cxx
 sfx2/source/sidebar/UnoDecks.cxx
 sfx2/source/sidebar/UnoPanel.cxx
 sfx2/source/sidebar/UnoPanels.cxx
-sfx2/source/sidebar/UnoSidebar.cxx
 sfx2/source/statbar/stbitem.cxx
 sfx2/source/toolbox/tbxitem.cxx
 sfx2/source/view/classificationcontroller.cxx
@@ -11026,7 +10983,6 @@ sfx2/source/view/userinputinterception.cxx
 sfx2/source/view/viewfac.cxx
 sfx2/source/view/viewfrm.cxx
 sfx2/source/view/viewfrm2.cxx
-sfx2/source/view/viewimp.hxx
 sfx2/source/view/viewprn.cxx
 sfx2/source/view/viewsh.cxx
 shell/inc/basereader.hxx
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to