summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-09 10:09:42 +0200
committerNoel Grandin <noel@peralex.com>2014-06-09 10:10:13 +0200
commit184a00b96235f6432294ded63ce4a4a318effdb5 (patch)
treee4ae0e00cb168fa43d280cfb51a50515258b5320 /sfx2
parent534015ad4fd08823b4393dab1ad5d42dedd7bf62 (diff)
loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/recentdocsview.cxx4
-rw-r--r--sfx2/source/control/templateabstractview.cxx4
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx8
-rw-r--r--sfx2/source/inc/virtmenu.hxx2
-rw-r--r--sfx2/source/menu/virtmenu.cxx5
-rw-r--r--sfx2/source/sidebar/Paint.cxx4
-rw-r--r--sfx2/source/sidebar/Paint.hxx2
-rw-r--r--sfx2/source/sidebar/Panel.cxx8
-rw-r--r--sfx2/source/sidebar/Panel.hxx4
-rw-r--r--sfx2/source/sidebar/TitleBar.cxx8
-rw-r--r--sfx2/source/sidebar/TitleBar.hxx4
11 files changed, 6 insertions, 47 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index f0c9c05b2965..2ac85493d4d8 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -293,10 +293,6 @@ void RecentDocsView::LoseFocus()
ThumbnailView::LoseFocus();
}
-long RecentDocsView::GetThumbnailSize() const
-{
- return mnItemMaxSize;
-}
void RecentDocsView::Clear()
{
diff --git a/sfx2/source/control/templateabstractview.cxx b/sfx2/source/control/templateabstractview.cxx
index 33e007da997b..32994450d410 100644
--- a/sfx2/source/control/templateabstractview.cxx
+++ b/sfx2/source/control/templateabstractview.cxx
@@ -207,10 +207,6 @@ void TemplateAbstractView::insertItems(const std::vector<TemplateItemProperties>
updateItems(aItems);
}
-sal_uInt16 TemplateAbstractView::getCurRegionId() const
-{
- return mnCurRegionId;
-}
const OUString &TemplateAbstractView::getCurRegionName() const
{
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 57a5f94e31f9..e307917ea525 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -441,20 +441,12 @@ void SfxDocumentInfoItem::UpdateDocumentInfo(
}
-bool SfxDocumentInfoItem::IsDeleteUserData() const
-{
- return m_bDeleteUserData;
-}
void SfxDocumentInfoItem::SetDeleteUserData( bool bSet )
{
m_bDeleteUserData = bSet;
}
-bool SfxDocumentInfoItem::IsUseUserData() const
-{
- return m_bUseUserData;
-}
void SfxDocumentInfoItem::SetUseUserData( bool bSet )
{
diff --git a/sfx2/source/inc/virtmenu.hxx b/sfx2/source/inc/virtmenu.hxx
index fcb3d9090d05..bd52861928a6 100644
--- a/sfx2/source/inc/virtmenu.hxx
+++ b/sfx2/source/inc/virtmenu.hxx
@@ -88,7 +88,7 @@ public:
void SetItemText( sal_uInt16 nItemId, const OUString& rText );
sal_uInt16 GetItemCount() const;
- Menu* GetSVMenu() const;
+ Menu* GetSVMenu() const { return pSVMenu;}
SfxMenuControl& operator[]( sal_uInt16 nPos ) const;
sal_uInt16 GetItemId( sal_uInt16 nPos ) const;
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx
index 76552d78dbdd..b4861cb14bd9 100644
--- a/sfx2/source/menu/virtmenu.cxx
+++ b/sfx2/source/menu/virtmenu.cxx
@@ -983,11 +983,6 @@ IMPL_LINK( SfxVirtualMenu, Select, Menu *, pMenu )
// returns the associated StarView-menu
-Menu* SfxVirtualMenu::GetSVMenu() const
-{
-
- return pSVMenu;
-}
diff --git a/sfx2/source/sidebar/Paint.cxx b/sfx2/source/sidebar/Paint.cxx
index ac9082c50d43..0faecdbdd6fa 100644
--- a/sfx2/source/sidebar/Paint.cxx
+++ b/sfx2/source/sidebar/Paint.cxx
@@ -67,10 +67,6 @@ Paint Paint::Create (const cssu::Any& rValue)
-Paint::Type Paint::GetType (void) const
-{
- return meType;
-}
diff --git a/sfx2/source/sidebar/Paint.hxx b/sfx2/source/sidebar/Paint.hxx
index 623b2cfaaf9e..eaa69e1a5b46 100644
--- a/sfx2/source/sidebar/Paint.hxx
+++ b/sfx2/source/sidebar/Paint.hxx
@@ -59,7 +59,7 @@ public:
// Create a Paint object for the given gradient.
explicit Paint (const Gradient& rGradient);
- Type GetType (void) const;
+ Type GetType (void) const { return meType;}
const Color& GetColor (void) const;
const Gradient& GetGradient (void) const;
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 53c805fd02e8..16412544c5da 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -114,10 +114,6 @@ PanelTitleBar* Panel::GetTitleBar (void) const
-bool Panel::IsTitleBarOptional (void) const
-{
- return mbIsTitleBarOptional;
-}
@@ -152,10 +148,6 @@ void Panel::SetExpanded (const bool bIsExpanded)
-bool Panel::IsExpanded (void) const
-{
- return mbIsExpanded;
-}
diff --git a/sfx2/source/sidebar/Panel.hxx b/sfx2/source/sidebar/Panel.hxx
index 218f95373798..ef47c2060aa7 100644
--- a/sfx2/source/sidebar/Panel.hxx
+++ b/sfx2/source/sidebar/Panel.hxx
@@ -54,12 +54,12 @@ public:
void Dispose (void);
PanelTitleBar* GetTitleBar (void) const;
- bool IsTitleBarOptional (void) const;
+ bool IsTitleBarOptional (void) const { return mbIsTitleBarOptional;}
void SetUIElement (const cssu::Reference<css::ui::XUIElement>& rxElement);
cssu::Reference<css::ui::XSidebarPanel> GetPanelComponent (void) const;
cssu::Reference<css::awt::XWindow> GetElementWindow (void);
void SetExpanded (const bool bIsExpanded);
- bool IsExpanded (void) const;
+ bool IsExpanded (void) const { return mbIsExpanded;}
bool HasIdPredicate (const ::rtl::OUString& rsId) const;
const ::rtl::OUString& GetId (void) const;
diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx
index c03030626fdb..80e4c182a518 100644
--- a/sfx2/source/sidebar/TitleBar.cxx
+++ b/sfx2/source/sidebar/TitleBar.cxx
@@ -129,18 +129,10 @@ void TitleBar::setPosSizePixel (
-ToolBox& TitleBar::GetToolBox (void)
-{
- return maToolBox;
-}
-const ToolBox& TitleBar::GetToolBox (void) const
-{
- return maToolBox;
-}
diff --git a/sfx2/source/sidebar/TitleBar.hxx b/sfx2/source/sidebar/TitleBar.hxx
index 2ff949e47bcd..56ab6b9a9d64 100644
--- a/sfx2/source/sidebar/TitleBar.hxx
+++ b/sfx2/source/sidebar/TitleBar.hxx
@@ -49,8 +49,8 @@ public:
long nHeight,
sal_uInt16 nFlags = WINDOW_POSSIZE_ALL) SAL_OVERRIDE;
- ToolBox& GetToolBox (void);
- const ToolBox& GetToolBox (void) const;
+ ToolBox& GetToolBox (void) { return maToolBox;}
+ const ToolBox& GetToolBox (void) const { return maToolBox;}
protected:
SidebarToolBox maToolBox;