summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx5
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx68
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx8
-rw-r--r--sd/source/ui/animations/SlideTransitionBox.cxx4
-rw-r--r--sd/source/ui/animations/SlideTransitionPane.cxx4
-rw-r--r--sd/source/ui/animations/motionpathtag.cxx16
-rw-r--r--sd/source/ui/annotations/annotationtag.cxx8
-rw-r--r--sd/source/ui/app/tmplctrl.cxx4
-rw-r--r--sd/source/ui/controller/displaymodecontroller.cxx4
-rw-r--r--sd/source/ui/controller/slidelayoutcontroller.cxx4
-rw-r--r--sd/source/ui/dlg/headerfooterdlg.cxx10
-rw-r--r--sd/source/ui/dlg/paragr.cxx4
-rw-r--r--sd/source/ui/framework/tools/FrameworkHelper.cxx4
-rw-r--r--sd/source/ui/presenter/PresenterCanvas.cxx4
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx4
-rw-r--r--sd/source/ui/sidebar/LayoutMenu.cxx4
-rw-r--r--sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx4
-rw-r--r--sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx4
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx4
-rw-r--r--sd/source/ui/slidesorter/view/SlideSorterView.cxx3
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayouter.cxx4
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx8
-rw-r--r--sd/source/ui/uitest/uiobject.cxx4
-rw-r--r--sd/source/ui/unoidl/UnoDocumentSettings.cxx4
-rw-r--r--sd/source/ui/unoidl/randomnode.cxx5
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx8
-rw-r--r--sd/source/ui/unoidl/unopage.cxx4
-rw-r--r--sd/source/ui/unoidl/unopool.cxx4
-rw-r--r--sd/source/ui/unoidl/unosrch.cxx4
-rw-r--r--sd/source/ui/view/drviews2.cxx4
-rw-r--r--sd/source/ui/view/drviewsa.cxx3
-rw-r--r--sd/source/ui/view/sdview.cxx4
-rw-r--r--sd/source/ui/view/sdview2.cxx3
-rw-r--r--sd/source/ui/view/sdview3.cxx4
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx8
-rw-r--r--sd/source/ui/view/viewshel.cxx4
36 files changed, 238 insertions, 7 deletions
diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
index ce7c3abad3f6..af0204877141 100644
--- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
+++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
@@ -60,6 +60,8 @@ using namespace ::com::sun::star::accessibility;
namespace accessibility {
+namespace {
+
struct XShapePosCompareHelper
{
bool operator() ( const uno::Reference<drawing::XShape>& xshape1,
@@ -74,6 +76,9 @@ struct XShapePosCompareHelper
return false;
}
};
+
+}
+
//===== internal ============================================================
AccessibleDrawDocumentView::AccessibleDrawDocumentView (
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 1052b7b89e9c..b9015ddb4c58 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -88,6 +88,8 @@ using ::com::sun::star::beans::XPropertySet;
namespace sd {
+namespace {
+
class PresetPropertyBox : public PropertySubControl
{
public:
@@ -105,6 +107,8 @@ private:
Link<LinkParamNone*,void> const maModifyLink;
};
+}
+
PresetPropertyBox::PresetPropertyBox( sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const OUString& aPresetId, const Link<LinkParamNone*,void>& rModifyHdl )
: PropertySubControl( nControlType ), maModifyLink(rModifyHdl)
{
@@ -174,6 +178,8 @@ SdPropertySubControl::~SdPropertySubControl()
{
}
+namespace {
+
class SdPresetPropertyBox : public SdPropertySubControl
{
public:
@@ -190,6 +196,8 @@ private:
DECL_LINK(OnSelect, weld::ComboBox&, void);
};
+}
+
SdPresetPropertyBox::SdPresetPropertyBox(weld::Label* pLabel, weld::Container* pParent, const Any& rValue, const OUString& aPresetId, const Link<LinkParamNone*,void>& rModifyHdl)
: SdPropertySubControl(pParent)
, maModifyLink(rModifyHdl)
@@ -253,6 +261,8 @@ Any SdPresetPropertyBox::getValue()
return makeAny(maPropertyValues[nIndex]);
}
+namespace {
+
class ColorPropertyBox : public PropertySubControl
{
public:
@@ -269,6 +279,8 @@ private:
Link<LinkParamNone*,void> const maModifyLink;
};
+}
+
ColorPropertyBox::ColorPropertyBox( sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl )
: PropertySubControl( nControlType ), maModifyLink(rModifyHdl)
{
@@ -314,6 +326,8 @@ Control* ColorPropertyBox::getControl()
return mpControl;
}
+namespace {
+
class SdColorPropertyBox : public SdPropertySubControl
{
public:
@@ -329,6 +343,8 @@ private:
DECL_LINK(OnSelect, ColorListBox&, void);
};
+}
+
SdColorPropertyBox::SdColorPropertyBox(weld::Label* pLabel, weld::Container* pParent, weld::Window* pTopLevel, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: SdPropertySubControl(pParent)
, maModifyLink(rModifyHdl)
@@ -366,6 +382,8 @@ Any SdColorPropertyBox::getValue()
return makeAny(sal_Int32(mxControl->GetSelectEntryColor().GetRGBColor()));
}
+namespace {
+
class FontPropertyBox : public PropertySubControl
{
public:
@@ -383,6 +401,8 @@ private:
DECL_LINK(ControlSelectHdl, ComboBox&, void);
};
+}
+
FontPropertyBox::FontPropertyBox( sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl )
: PropertySubControl( nControlType ), maModifyHdl(rModifyHdl)
{
@@ -446,6 +466,8 @@ Control* FontPropertyBox::getControl()
return mpControl;
}
+namespace {
+
class SdFontPropertyBox : public SdPropertySubControl
{
public:
@@ -461,6 +483,8 @@ private:
DECL_LINK(ControlSelectHdl, weld::ComboBox&, void);
};
+}
+
SdFontPropertyBox::SdFontPropertyBox(weld::Label* pLabel, weld::Container* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: SdPropertySubControl(pParent)
, maModifyHdl(rModifyHdl)
@@ -524,6 +548,8 @@ Any SdFontPropertyBox::getValue()
return makeAny(aFontName);
}
+namespace {
+
class DropdownMenuBox : public Edit
{
public:
@@ -542,6 +568,8 @@ private:
VclPtr<PopupMenu> mpMenu;
};
+}
+
DropdownMenuBox::DropdownMenuBox( vcl::Window* pParent, Edit* pSubControl, PopupMenu* pMenu )
: Edit( pParent, WB_BORDER|WB_TABSTOP| WB_DIALOGCONTROL ),
mpSubControl(pSubControl),mpDropdownButton(nullptr),mpMenu(pMenu)
@@ -606,6 +634,8 @@ bool DropdownMenuBox::PreNotify( NotifyEvent& rNEvt )
return bResult;
}
+namespace {
+
class CharHeightPropertyBox : public PropertySubControl
{
public:
@@ -628,6 +658,8 @@ private:
Link<LinkParamNone*,void> const maModifyHdl;
};
+}
+
CharHeightPropertyBox::CharHeightPropertyBox(sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: PropertySubControl(nControlType)
, maBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "modules/simpress/ui/fontsizemenu.ui", "")
@@ -685,6 +717,8 @@ Control* CharHeightPropertyBox::getControl()
return mpControl;
}
+namespace {
+
class SdCharHeightPropertyBox : public SdPropertySubControl
{
public:
@@ -703,6 +737,8 @@ private:
DECL_LINK(EditModifyHdl, weld::MetricSpinButton&, void);
};
+}
+
SdCharHeightPropertyBox::SdCharHeightPropertyBox(weld::Label* pLabel, weld::Container* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: SdPropertySubControl(pParent)
, maModifyHdl(rModifyHdl)
@@ -748,6 +784,8 @@ Any SdCharHeightPropertyBox::getValue()
return makeAny(static_cast<double>(mxMetric->get_value(FieldUnit::PERCENT)) / 100.0);
}
+namespace {
+
class TransparencyPropertyBox : public PropertySubControl
{
public:
@@ -771,6 +809,8 @@ private:
Link<LinkParamNone*,void> const maModifyHdl;
};
+}
+
TransparencyPropertyBox::TransparencyPropertyBox( sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl )
: PropertySubControl( nControlType )
, maModifyHdl( rModifyHdl )
@@ -847,6 +887,8 @@ Control* TransparencyPropertyBox::getControl()
return mpControl;
}
+namespace {
+
class SdTransparencyPropertyBox : public SdPropertySubControl
{
public:
@@ -867,6 +909,8 @@ private:
std::unique_ptr<weld::MenuButton> mxControl;
};
+}
+
SdTransparencyPropertyBox::SdTransparencyPropertyBox(weld::Label* pLabel, weld::Container* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: SdPropertySubControl(pParent)
, maModifyHdl(rModifyHdl)
@@ -932,6 +976,8 @@ Any SdTransparencyPropertyBox::getValue()
return makeAny(static_cast<double>(mxMetric->get_value(FieldUnit::PERCENT)) / 100.0);
}
+namespace {
+
class RotationPropertyBox : public PropertySubControl
{
public:
@@ -956,6 +1002,8 @@ private:
Link<LinkParamNone*,void> const maModifyHdl;
};
+}
+
RotationPropertyBox::RotationPropertyBox( sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl )
: PropertySubControl(nControlType)
, maBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "modules/simpress/ui/rotatemenu.ui", "")
@@ -1051,6 +1099,8 @@ Control* RotationPropertyBox::getControl()
return mpControl;
}
+namespace {
+
class SdRotationPropertyBox : public SdPropertySubControl
{
public:
@@ -1071,6 +1121,8 @@ private:
std::unique_ptr<weld::MenuButton> mxControl;
};
+}
+
SdRotationPropertyBox::SdRotationPropertyBox(weld::Label* pLabel, weld::Container* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: SdPropertySubControl(pParent)
, maModifyHdl(rModifyHdl)
@@ -1150,6 +1202,8 @@ Any SdRotationPropertyBox::getValue()
return makeAny(static_cast<double>(mxMetric->get_value(FieldUnit::DEGREE)));
}
+namespace {
+
class ScalePropertyBox : public PropertySubControl
{
public:
@@ -1175,6 +1229,8 @@ private:
int mnDirection;
};
+}
+
ScalePropertyBox::ScalePropertyBox(sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: PropertySubControl( nControlType )
, maBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "modules/simpress/ui/scalemenu.ui", "")
@@ -1328,6 +1384,8 @@ Control* ScalePropertyBox::getControl()
return mpControl;
}
+namespace {
+
class SdScalePropertyBox : public SdPropertySubControl
{
public:
@@ -1349,6 +1407,8 @@ private:
std::unique_ptr<weld::MenuButton> mxControl;
};
+}
+
SdScalePropertyBox::SdScalePropertyBox(weld::Label* pLabel, weld::Container* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl)
: SdPropertySubControl(pParent)
, maModifyHdl( rModifyHdl )
@@ -1487,6 +1547,8 @@ Any SdScalePropertyBox::getValue()
return makeAny( aValues );
}
+namespace {
+
class FontStylePropertyBox : public PropertySubControl
{
public:
@@ -1514,6 +1576,8 @@ private:
sal_Int16 mnFontUnderline;
};
+}
+
FontStylePropertyBox::FontStylePropertyBox( sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl )
: PropertySubControl(nControlType)
, maBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "modules/simpress/ui/fontstylemenu.ui", "")
@@ -1607,6 +1671,8 @@ Control* FontStylePropertyBox::getControl()
return mpControl;
}
+namespace {
+
class SdFontStylePropertyBox : public SdPropertySubControl
{
public:
@@ -1629,6 +1695,8 @@ private:
std::unique_ptr<weld::MenuButton> mxControl;
};
+}
+
SdFontStylePropertyBox::SdFontStylePropertyBox(weld::Label* pLabel, weld::Container* pParent, const Any& rValue, const Link<LinkParamNone*,void>& rModifyHdl )
: SdPropertySubControl(pParent)
, maModifyHdl( rModifyHdl )
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 717232b014e2..d312cebef4e9 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -351,6 +351,8 @@ std::unique_ptr<SvLBoxItem> CustomAnimationListEntryItem::Clone(SvLBoxItem const
return nullptr;
}
+namespace {
+
class CustomAnimationListEntry : public SvTreeListEntry
{
public:
@@ -363,6 +365,8 @@ private:
CustomAnimationEffectPtr const mpEffect;
};
+}
+
CustomAnimationListEntry::CustomAnimationListEntry()
{
}
@@ -372,6 +376,8 @@ CustomAnimationListEntry::CustomAnimationListEntry(const CustomAnimationEffectPt
{
}
+namespace {
+
class CustomAnimationTriggerEntryItem : public SvLBoxString
{
public:
@@ -387,6 +393,8 @@ private:
static const long nIconWidth = 19;
};
+}
+
CustomAnimationTriggerEntryItem::CustomAnimationTriggerEntryItem( const OUString& aDescription )
: SvLBoxString( aDescription ), msDescription( aDescription )
{
diff --git a/sd/source/ui/animations/SlideTransitionBox.cxx b/sd/source/ui/animations/SlideTransitionBox.cxx
index 6e54ed52b0d6..c4ebe697f529 100644
--- a/sd/source/ui/animations/SlideTransitionBox.cxx
+++ b/sd/source/ui/animations/SlideTransitionBox.cxx
@@ -27,6 +27,8 @@
namespace sd
{
+namespace {
+
class SlideTransitionBox : public VclVBox
{
VclPtr<SlideTransitionPane> m_pPane;
@@ -40,6 +42,8 @@ public:
virtual void StateChanged(StateChangedType nStateChange) override;
};
+}
+
VCL_BUILDER_FACTORY(SlideTransitionBox);
SlideTransitionBox::SlideTransitionBox(vcl::Window* pParent)
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index 3d616c990247..babab59d9b11 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -369,6 +369,8 @@ size_t getPresetOffset( const sd::impl::TransitionEffect &rEffect )
namespace sd
{
+namespace {
+
class TransitionPane : public ValueSet
{
public:
@@ -389,6 +391,8 @@ public:
}
};
+}
+
// SlideTransitionPane
SlideTransitionPane::SlideTransitionPane(
Window * pParent,
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx
index 53f141e80c76..3021c6616796 100644
--- a/sd/source/ui/animations/motionpathtag.cxx
+++ b/sd/source/ui/animations/motionpathtag.cxx
@@ -67,6 +67,8 @@ namespace sd
const sal_uInt32 SMART_TAG_HDL_NUM = SAL_MAX_UINT32;
static const int DRGPIX = 2; // Drag MinMove in Pixel
+namespace {
+
class PathDragMove : public SdrDragMove
{
private:
@@ -97,6 +99,8 @@ public:
rtl::Reference <MotionPathTag > mxTag;
};
+}
+
void PathDragMove::createSdrDragEntries()
{
// call parent
@@ -130,6 +134,8 @@ bool PathDragMove::EndSdrDrag(bool /*bCopy*/)
return true;
}
+namespace {
+
class PathDragResize : public SdrDragResize
{
private:
@@ -158,6 +164,8 @@ public:
rtl::Reference <MotionPathTag > mxTag;
};
+}
+
void PathDragResize::createSdrDragEntries()
{
// call parent
@@ -189,6 +197,8 @@ bool PathDragResize::EndSdrDrag(bool /*bCopy*/)
return true;
}
+namespace {
+
class PathDragObjOwn : public SdrDragObjOwn
{
private:
@@ -212,6 +222,8 @@ public:
virtual bool EndSdrDrag(bool bCopy) override;
};
+}
+
void PathDragObjOwn::createSdrDragEntries()
{
// call parent
@@ -241,6 +253,8 @@ bool PathDragObjOwn::EndSdrDrag(bool /*bCopy*/)
}
}
+namespace {
+
class SdPathHdl : public SmartHdl
{
public:
@@ -253,6 +267,8 @@ private:
SdrPathObj* const mpPathObj;
};
+}
+
SdPathHdl::SdPathHdl( const SmartTagReference& xTag, SdrPathObj* pPathObj )
: SmartHdl( xTag, pPathObj->GetCurrentBoundRect().TopLeft(), SdrHdlKind::SmartTag )
, mpPathObj( pPathObj )
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx
index bbec5d9223c6..098a2a816cd7 100644
--- a/sd/source/ui/annotations/annotationtag.cxx
+++ b/sd/source/ui/annotations/annotationtag.cxx
@@ -86,6 +86,8 @@ static OUString getInitials( const OUString& rName )
return sInitials.makeStringAndClear();
}
+namespace {
+
class AnnotationDragMove : public SdrDragMove
{
public:
@@ -100,6 +102,8 @@ private:
Point maOrigin;
};
+}
+
AnnotationDragMove::AnnotationDragMove(SdrDragView& rNewView, const rtl::Reference <AnnotationTag >& xTag)
: SdrDragMove(rNewView)
, mxTag( xTag )
@@ -147,6 +151,8 @@ void AnnotationDragMove::CancelSdrDrag()
Hide();
}
+namespace {
+
class AnnotationHdl : public SmartHdl
{
public:
@@ -160,6 +166,8 @@ private:
rtl::Reference< AnnotationTag > mxTag;
};
+}
+
AnnotationHdl::AnnotationHdl( const SmartTagReference& xTag, const Reference< XAnnotation >& xAnnotation, const Point& rPnt )
: SmartHdl( xTag, rPnt, SdrHdlKind::SmartTag )
, mxAnnotation( xAnnotation )
diff --git a/sd/source/ui/app/tmplctrl.cxx b/sd/source/ui/app/tmplctrl.cxx
index c78f1a3ef126..fd9d27da3d1d 100644
--- a/sd/source/ui/app/tmplctrl.cxx
+++ b/sd/source/ui/app/tmplctrl.cxx
@@ -37,6 +37,8 @@ SFX_IMPL_STATUSBAR_CONTROL( SdTemplateControl, SfxStringItem );
// class SdTemplatePopup_Impl --------------------------------------------------
+namespace {
+
class SdTemplatePopup_Impl : public PopupMenu
{
public:
@@ -50,6 +52,8 @@ private:
virtual void Select() override;
};
+}
+
SdTemplatePopup_Impl::SdTemplatePopup_Impl() :
PopupMenu(),
nCurId(USHRT_MAX)
diff --git a/sd/source/ui/controller/displaymodecontroller.cxx b/sd/source/ui/controller/displaymodecontroller.cxx
index 161ff808773d..8706e506472a 100644
--- a/sd/source/ui/controller/displaymodecontroller.cxx
+++ b/sd/source/ui/controller/displaymodecontroller.cxx
@@ -29,6 +29,8 @@ namespace sd
// Composed of a dropdown button in the toolbar and a
// popup menu to select the value
+namespace {
+
class DisplayModeController : public svt::PopupWindowController
{
public:
@@ -74,6 +76,8 @@ struct snewfoil_value_info
const char* msUnoCommand;
};
+}
+
static const snewfoil_value_info editmodes[] =
{
{1,
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx
index fc64f7439d78..12d741224787 100644
--- a/sd/source/ui/controller/slidelayoutcontroller.cxx
+++ b/sd/source/ui/controller/slidelayoutcontroller.cxx
@@ -48,6 +48,8 @@ using namespace ::com::sun::star::beans;
namespace sd
{
+namespace {
+
class LayoutToolbarMenu : public svtools::ToolbarMenu
{
public:
@@ -73,6 +75,8 @@ struct snewfoil_value_info_layout
AutoLayout const maAutoLayout;
};
+}
+
static const snewfoil_value_info_layout notes[] =
{
{BMP_FOILN_01, STR_AUTOLAYOUT_NOTES, AUTOLAYOUT_NOTES},
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index d30af2b22110..b53d25c72946 100644
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -52,6 +52,8 @@
namespace sd
{
+namespace {
+
class PresLayoutPreview : public weld::CustomWidgetController
{
private:
@@ -76,16 +78,24 @@ public:
}
+}
+
// tab page for slide & header'n'notes
namespace sd
{
const int nDateTimeFormatsCount = 12;
+
+namespace {
+
struct DateAndTimeFormat {
SvxDateFormat const meDateFormat;
SvxTimeFormat const meTimeFormat;
};
+
+}
+
DateAndTimeFormat const nDateTimeFormats[nDateTimeFormatsCount] =
{
{ SvxDateFormat::A, SvxTimeFormat::AppDefault },
diff --git a/sd/source/ui/dlg/paragr.cxx b/sd/source/ui/dlg/paragr.cxx
index b9607094810c..e9fd852cb40f 100644
--- a/sd/source/ui/dlg/paragr.cxx
+++ b/sd/source/ui/dlg/paragr.cxx
@@ -28,6 +28,8 @@
#include <paragr.hxx>
#include <sdattr.hrc>
+namespace {
+
class SdParagraphNumTabPage : public SfxTabPage
{
public:
@@ -48,6 +50,8 @@ private:
DECL_LINK( ImplNewStartHdl, weld::Button&, void );
};
+}
+
SdParagraphNumTabPage::SdParagraphNumTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttr)
: SfxTabPage(pPage, pController, "modules/sdraw/ui/paranumberingtab.ui", "DrawParaNumbering", &rAttr)
, mbModified(false)
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx
index cfa6db43d316..e75508e344ac 100644
--- a/sd/source/ui/framework/tools/FrameworkHelper.cxx
+++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx
@@ -664,6 +664,8 @@ void FrameworkHelper::RunOnResourceActivation(
}
}
+namespace {
+
/** A callback that sets a flag to a specified value when the callback is
called.
*/
@@ -676,6 +678,8 @@ private:
bool& mrFlag;
};
+}
+
void FrameworkHelper::RequestSynchronousUpdate()
{
rtl::Reference<ConfigurationController> pCC (
diff --git a/sd/source/ui/presenter/PresenterCanvas.cxx b/sd/source/ui/presenter/PresenterCanvas.cxx
index 83eb7c79f793..c3164529864c 100644
--- a/sd/source/ui/presenter/PresenterCanvas.cxx
+++ b/sd/source/ui/presenter/PresenterCanvas.cxx
@@ -46,7 +46,7 @@ namespace {
typedef ::cppu::WeakComponentImplHelper <
css::rendering::XCustomSprite
> PresenterCustomSpriteInterfaceBase;
-}
+
class PresenterCustomSprite
: protected ::cppu::BaseMutex,
public PresenterCustomSpriteInterfaceBase
@@ -92,6 +92,8 @@ private:
void ThrowIfDisposed();
};
+}
+
//===== PresenterCanvas =======================================================
PresenterCanvas::PresenterCanvas (
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index f731d25504bd..16113f5f709f 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -57,6 +57,8 @@ using namespace sd;
#ifdef LINUX_BLUETOOTH
+namespace {
+
struct DBusObject {
OString maBusName;
OString maPath;
@@ -83,6 +85,8 @@ struct DBusObject {
}
};
+}
+
static std::unique_ptr<DBusObject> getBluez5Adapter(DBusConnection *pConnection);
struct sd::BluetoothServer::Impl {
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx
index bacfa1c5f261..3ac6020987b6 100644
--- a/sd/source/ui/sidebar/LayoutMenu.cxx
+++ b/sd/source/ui/sidebar/LayoutMenu.cxx
@@ -68,6 +68,8 @@ using ::sd::framework::FrameworkHelper;
namespace sd { namespace sidebar {
+namespace {
+
struct snewfoil_value_info
{
const char* msBmpResId;
@@ -76,6 +78,8 @@ struct snewfoil_value_info
AutoLayout const maAutoLayout;
};
+}
+
static const snewfoil_value_info notes[] =
{
{BMP_FOILN_01, STR_AUTOLAYOUT_NOTES, WritingMode_LR_TB,
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
index 80ce031e76b3..3dfa4204fd08 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
@@ -77,12 +77,16 @@ private:
bool mbIsPrecious;
};
+namespace {
+
class CacheHash {
public:
size_t operator()(const BitmapCache::CacheKey& p) const
{ return reinterpret_cast<size_t>(p); }
};
+}
+
class BitmapCache::CacheBitmapContainer
: public std::unordered_map<CacheKey, CacheEntry, CacheHash>
{
diff --git a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
index f16a4b8f6ce2..bf387210f0c8 100644
--- a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
@@ -25,6 +25,8 @@
namespace sd { namespace slidesorter { namespace cache {
+namespace {
+
/** This class extends the actual request data with additional information
that is used by the priority queues.
*/
@@ -76,6 +78,8 @@ public:
RequestPriorityClass const meClass;
};
+}
+
class RequestQueue::Container
: public ::std::set<
Request,
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index f86e07942100..23378029bb91 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -174,6 +174,8 @@ private:
const bool mbIsMouseOverIndicatorAllowed;
};
+namespace {
+
/** This is the default handler for processing events. It activates the
multi selection or drag-and-drop when the right conditions are met.
*/
@@ -280,6 +282,8 @@ private:
std::unique_ptr<DragAndDropContext, o3tl::default_delete<DragAndDropContext>> mpDragAndDropContext;
};
+}
+
//===== SelectionFunction =====================================================
diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
index 32a8e8c2bc6b..1772bf8c7f00 100644
--- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx
+++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
@@ -82,6 +82,8 @@ namespace {
};
}
+namespace {
+
class BackgroundPainter
: public ILayerPainter
{
@@ -105,6 +107,7 @@ private:
Color maBackgroundColor;
};
+}
SlideSorterView::SlideSorterView (SlideSorter& rSlideSorter)
: ::sd::View (
diff --git a/sd/source/ui/slidesorter/view/SlsLayouter.cxx b/sd/source/ui/slidesorter/view/SlsLayouter.cxx
index fb80dc9ec127..a4cf7fdf613f 100644
--- a/sd/source/ui/slidesorter/view/SlsLayouter.cxx
+++ b/sd/source/ui/slidesorter/view/SlsLayouter.cxx
@@ -218,6 +218,8 @@ protected:
InsertPosition& rPosition) const;
};
+namespace {
+
/** The vertical layouter has one column and as many rows as there are
pages.
*/
@@ -285,6 +287,8 @@ protected:
const Size& rWindowSize) const override;
};
+}
+
//===== Layouter ==============================================================
Layouter::Layouter (
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx
index c0b1be827bb8..bea6a35797f3 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -419,6 +419,8 @@ IMPL_LINK(TableDesignWidget,EventMultiplexerListener,
}
}
+namespace {
+
struct CellInfo
{
Color maCellColor;
@@ -428,6 +430,8 @@ struct CellInfo
explicit CellInfo( const Reference< XStyle >& xStyle );
};
+}
+
CellInfo::CellInfo( const Reference< XStyle >& xStyle )
: maBorder(std::make_shared<SvxBoxItem>(SDRATTR_TABLE_BORDER))
{
@@ -457,6 +461,8 @@ CellInfo::CellInfo( const Reference< XStyle >& xStyle )
typedef std::vector< std::shared_ptr< CellInfo > > CellInfoVector;
typedef std::shared_ptr< CellInfo > CellInfoMatrix[nPreviewColumns * nPreviewRows];
+namespace {
+
struct TableStyleSettings
{
bool mbUseFirstRow;
@@ -475,6 +481,8 @@ struct TableStyleSettings
, mbUseColumnBanding(false) {}
};
+}
+
static void FillCellInfoVector( const Reference< XIndexAccess >& xTableStyle, CellInfoVector& rVector )
{
DBG_ASSERT( xTableStyle.is() && (xTableStyle->getCount() == sdr::table::style_count ), "sd::FillCellInfoVector(), invalid table style!" );
diff --git a/sd/source/ui/uitest/uiobject.cxx b/sd/source/ui/uitest/uiobject.cxx
index 1e18071092c9..e1bb16b8dd1c 100644
--- a/sd/source/ui/uitest/uiobject.cxx
+++ b/sd/source/ui/uitest/uiobject.cxx
@@ -16,6 +16,8 @@
#include <svx/uiobject.hxx>
+namespace {
+
class ImpressSdrObject : public SdrUIObject
{
public:
@@ -29,8 +31,6 @@ private:
OUString const maName;
};
-namespace {
-
sd::DrawViewShell* getViewShell(const VclPtr<sd::Window>& xWindow)
{
sd::DrawViewShell* pViewShell = dynamic_cast<sd::DrawViewShell*>(xWindow->GetViewShell());
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
index 701c5462bae6..e30b28a740b1 100644
--- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx
+++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
@@ -66,6 +66,8 @@ using namespace ::com::sun::star::i18n;
namespace sd
{
+ namespace {
+
class DocumentSettings : public WeakImplHelper< XPropertySet, XMultiPropertySet, XServiceInfo >,
public comphelper::PropertySetHelper,
public DocumentSettingsSerializer
@@ -121,6 +123,8 @@ namespace sd
rtl::Reference<SdXImpressDocument> mxModel;
};
+ }
+
Reference< XInterface > DocumentSettings_createInstance( SdXImpressDocument* pModel )
throw ()
{
diff --git a/sd/source/ui/unoidl/randomnode.cxx b/sd/source/ui/unoidl/randomnode.cxx
index 64fcfd6b32b5..84b66f19bc05 100644
--- a/sd/source/ui/unoidl/randomnode.cxx
+++ b/sd/source/ui/unoidl/randomnode.cxx
@@ -66,6 +66,9 @@ namespace sd
{
typedef ::cppu::WeakImplHelper< XTimeContainer, XEnumerationAccess, XCloneable, XServiceInfo, XInitialization > RandomAnimationNodeBase;
+
+namespace {
+
class RandomAnimationNode : public RandomAnimationNodeBase
{
public:
@@ -151,6 +154,8 @@ private:
Reference< XAnimate > mxFirstNode;
};
+}
+
Reference< XInterface > RandomAnimationNode_createInstance( sal_Int16 nPresetClass )
{
Reference< XInterface > xInt( static_cast<XWeak*>( new RandomAnimationNode( nPresetClass ) ) );
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 6f7510488a30..ca60d3821e88 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -126,6 +126,8 @@ using namespace ::cppu;
using namespace ::com::sun::star;
using namespace ::sd;
+namespace {
+
class SdUnoForbiddenCharsTable : public SvxUnoForbiddenCharsTable,
public SfxListener
{
@@ -142,6 +144,8 @@ private:
SdrModel* mpModel;
};
+}
+
SdUnoForbiddenCharsTable::SdUnoForbiddenCharsTable( SdrModel* pModel )
: SvxUnoForbiddenCharsTable( pModel->GetForbiddenCharsTable() ), mpModel( pModel )
{
@@ -1484,6 +1488,8 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SdXImpressDocument::getRenderer(
return aRenderer;
}
+namespace {
+
class ImplRenderPaintProc : public sdr::contact::ViewObjectContactRedirector
{
const SdrLayerAdmin& rLayerAdmin;
@@ -1505,6 +1511,8 @@ public:
const sdr::contact::DisplayInfo& rDisplayInfo) override;
};
+}
+
ImplRenderPaintProc::ImplRenderPaintProc( const SdrLayerAdmin& rLA, SdrPageView* pView, vcl::PDFExtOutDevData* pData )
: ViewObjectContactRedirector(),
rLayerAdmin ( rLA ),
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 328e50f0aba0..534bdbd29981 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -2538,6 +2538,8 @@ void SdGenericDrawPage::setNavigationOrder( const Any& rValue )
throw IllegalArgumentException();
}
+namespace {
+
class SdNavigationOrderAccess : public ::cppu::WeakImplHelper< XIndexAccess >
{
public:
@@ -2555,6 +2557,8 @@ private:
std::vector< Reference< XShape > > maShapes;
};
+}
+
SdNavigationOrderAccess::SdNavigationOrderAccess( SdrPage const * pPage )
: maShapes( pPage ? pPage->GetObjCount() : 0 )
{
diff --git a/sd/source/ui/unoidl/unopool.cxx b/sd/source/ui/unoidl/unopool.cxx
index 6b91088aeab2..7345dc45dfb7 100644
--- a/sd/source/ui/unoidl/unopool.cxx
+++ b/sd/source/ui/unoidl/unopool.cxx
@@ -42,6 +42,8 @@ static LanguageType SdUnoGetLanguage( const lang::Locale& rLocale )
return eRet;
}
+namespace {
+
class SdUnoDrawPool : public SvxUnoDrawPool
{
public:
@@ -54,6 +56,8 @@ private:
SdDrawDocument* mpDrawModel;
};
+}
+
SdUnoDrawPool::SdUnoDrawPool(SdDrawDocument* pModel)
: SvxUnoDrawPool( pModel ), mpDrawModel( pModel )
{
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index 45177d2adfd4..0312bb56d413 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -52,6 +52,8 @@ static const SfxItemPropertyMapEntry* ImplGetSearchPropertyMap()
return aSearchPropertyMap_Impl;
}
+namespace {
+
class SearchContext_impl
{
uno::Reference< drawing::XShapes > mxShapes;
@@ -79,6 +81,8 @@ public:
}
};
+}
+
/* ================================================================= */
/** this class implements a search or replace operation on a given
page or a given sdrobj
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 664609e87597..d1f037bf2b69 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -230,8 +230,6 @@ OUString getWeightString(SfxItemSet const & rItemSet)
return sWeightString;
}
-} // end anonymous namespace
-
class ClassificationCommon
{
protected:
@@ -539,8 +537,6 @@ public:
}
};
-namespace
-{
void lcl_convertStringArguments(sal_uInt16 nSlot, std::unique_ptr<SfxItemSet>& pArgs)
{
Color aColor;
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 53fc3cfa941d..789d46eafce3 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -76,6 +76,7 @@ namespace sd {
bool DrawViewShell::mbPipette = false;
+namespace {
class ScannerEventListener : public ::cppu::WeakImplHelper< lang::XEventListener >
{
@@ -93,6 +94,8 @@ public:
void ParentDestroyed() { mpParent = nullptr; }
};
+}
+
void SAL_CALL ScannerEventListener::disposing( const lang::EventObject& /*rEventObject*/ )
{
if( mpParent )
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx
index 0abaff31fc9f..56df6e5d2caf 100644
--- a/sd/source/ui/view/sdview.cxx
+++ b/sd/source/ui/view/sdview.cxx
@@ -149,6 +149,8 @@ View::~View()
}
}
+namespace {
+
class ViewRedirector : public sdr::contact::ViewObjectContactRedirector
{
public:
@@ -161,6 +163,8 @@ public:
const sdr::contact::DisplayInfo& rDisplayInfo) override;
};
+}
+
ViewRedirector::ViewRedirector()
{
}
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx
index ef22fde0f15b..825094382c98 100644
--- a/sd/source/ui/view/sdview2.cxx
+++ b/sd/source/ui/view/sdview2.cxx
@@ -60,6 +60,7 @@ namespace sd {
using namespace ::com::sun::star;
+namespace {
struct SdNavigatorDropEvent : public ExecuteDropEvent
{
@@ -73,6 +74,8 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent
{}
};
+}
+
css::uno::Reference< css::datatransfer::XTransferable > View::CreateClipboardDataObject()
{
// since SdTransferable::CopyToClipboard is called, this
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx
index d1873a6b73aa..c74845cc836d 100644
--- a/sd/source/ui/view/sdview3.cxx
+++ b/sd/source/ui/view/sdview3.cxx
@@ -84,12 +84,16 @@ namespace sd {
|*
\************************************************************************/
+namespace {
+
struct ImpRememberOrigAndClone
{
SdrObject* pOrig;
SdrObject* pClone;
};
+}
+
static SdrObject* ImpGetClone(std::vector<ImpRememberOrigAndClone>& aConnectorContainer, SdrObject const * pConnObj)
{
for(const ImpRememberOrigAndClone& rImp : aConnectorContainer)
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index 8b5814749529..3dc5260944a2 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -51,8 +51,12 @@ using namespace ::com::sun::star::uno;
namespace sd {
+namespace {
+
class ImageButtonHdl;
+}
+
static const sal_uInt16 gButtonSlots[] = { SID_INSERT_TABLE, SID_INSERT_DIAGRAM, SID_INSERT_GRAPHIC, SID_INSERT_AVMEDIA };
static const char* gButtonToolTips[] = { STR_INSERT_TABLE, STR_INSERT_CHART, STR_INSERT_PICTURE, STR_INSERT_MOVIE };
@@ -108,6 +112,8 @@ static BitmapEx* getButtonImage( int index, bool large )
const sal_uInt32 SMART_TAG_HDL_NUM = SAL_MAX_UINT32;
+namespace {
+
class ChangePlaceholderTag : public SmartTag
{
friend class ImageButtonHdl;
@@ -154,6 +160,8 @@ private:
Size maImageSize;
};
+}
+
ImageButtonHdl::ImageButtonHdl( const SmartTagReference& xTag /*, sal_uInt16 nSID, const Image& rImage, const Image& rImageMO*/, const Point& rPnt )
: SmartHdl( xTag, rPnt, SdrHdlKind::SmartTag )
, mxChangePlaceholderTag( dynamic_cast< ChangePlaceholderTag* >( xTag.get() ) )
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 5df5c54de71e..9697c3de8461 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -1154,6 +1154,8 @@ void ViewShell::ImpGetRedoStrings(SfxItemSet &rSet) const
}
}
+namespace {
+
class KeepSlideSorterInSyncWithPageChanges
{
sd::slidesorter::view::SlideSorterView::DrawLock m_aDrawLock;
@@ -1171,6 +1173,8 @@ public:
}
};
+}
+
void ViewShell::ImpSidUndo(SfxRequest& rReq)
{
//The xWatcher keeps the SlideSorter selection in sync