summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-08 23:21:12 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-08 23:22:01 -0500
commit3f5225ab63f7a1b1ebeb4dab375081ad7032872f (patch)
treea5ad0b88be1bfc5212162c0ba44779d89cb39167 /basctl
parent49b6cbe96b6655cd35366283f239af516cc2644d (diff)
Clean up SbxItem
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/sbxitem.cxx25
-rw-r--r--basctl/source/inc/sbxitem.hxx17
2 files changed, 4 insertions, 38 deletions
diff --git a/basctl/source/basicide/sbxitem.cxx b/basctl/source/basicide/sbxitem.cxx
index e1837c6acc7b..b2d33ac20191 100644
--- a/basctl/source/basicide/sbxitem.cxx
+++ b/basctl/source/basicide/sbxitem.cxx
@@ -78,49 +78,24 @@ const ScriptDocument& SbxItem::GetDocument() const
return m_aDocument;
}
-void SbxItem::SetDocument(const ScriptDocument& rDocument)
-{
- m_aDocument = rDocument;
-}
-
const ::rtl::OUString& SbxItem::GetLibName() const
{
return m_aLibName;
}
-void SbxItem::SetLibName(const ::rtl::OUString& aLibName)
-{
- m_aLibName = aLibName;
-}
-
const ::rtl::OUString& SbxItem::GetName() const
{
return m_aName;
}
-void SbxItem::SetName(const ::rtl::OUString& aName)
-{
- m_aName = aName;
-}
-
const ::rtl::OUString& SbxItem::GetMethodName() const
{
return m_aMethodName;
}
-void SbxItem::SetMethodName(const ::rtl::OUString& aMethodName)
-{
- m_aMethodName = aMethodName;
-}
-
BasicIDEType SbxItem::GetType() const
{
return m_nType;
}
-void SbxItem::SetType(BasicIDEType nType)
-{
- m_nType = nType;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/inc/sbxitem.hxx b/basctl/source/inc/sbxitem.hxx
index 2f905350b774..4e0036b548ba 100644
--- a/basctl/source/inc/sbxitem.hxx
+++ b/basctl/source/inc/sbxitem.hxx
@@ -43,10 +43,10 @@ enum BasicIDEType
class SbxItem : public SfxPoolItem
{
- ScriptDocument m_aDocument;
- ::rtl::OUString m_aLibName;
- ::rtl::OUString m_aName;
- ::rtl::OUString m_aMethodName;
+ const ScriptDocument m_aDocument;
+ const ::rtl::OUString m_aLibName;
+ const ::rtl::OUString m_aName;
+ const ::rtl::OUString m_aMethodName;
BasicIDEType m_nType;
public:
@@ -59,19 +59,10 @@ public:
virtual int operator==(const SfxPoolItem&) const;
const ScriptDocument& GetDocument() const;
- void SetDocument(const ScriptDocument& rDocument);
-
const ::rtl::OUString& GetLibName() const;
- void SetLibName(const ::rtl::OUString& aLibName);
-
const ::rtl::OUString& GetName() const;
- void SetName(const ::rtl::OUString& aName);
-
const ::rtl::OUString& GetMethodName() const;
- void SetMethodName(const ::rtl::OUString& aMethodName);
-
BasicIDEType GetType() const;
- void SetType(BasicIDEType nType);
};
#endif