summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-12-04 10:53:56 +0000
committerNoel Power <noel.power@suse.com>2012-12-04 10:55:16 +0000
commitab96b65e0d4fab541d8b31b46e3f37db0fb548b5 (patch)
tree9711c4ba0a11deafc08031f6d15d70bc213a1349 /basctl
parenta0c53a961a0af21f69f592b43799cd635c994810 (diff)
fix for fdo#57836 throw when attempting to store basicide model
Change-Id: I8769a63be61d45817757be3ad23ffc7b01173041
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/unomodel.cxx24
-rw-r--r--basctl/source/basicide/unomodel.hxx12
2 files changed, 36 insertions, 0 deletions
diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx
index 0ee8f3ade7a0..1b6122c790fd 100644
--- a/basctl/source/basicide/unomodel.cxx
+++ b/basctl/source/basicide/unomodel.cxx
@@ -117,6 +117,30 @@ uno::Reference< uno::XInterface > SAL_CALL SIDEModel_createInstance(
return uno::Reference< uno::XInterface >( pShell->GetModel() );
}
+// XStorable
+void SAL_CALL SIDEModel::store() throw (io::IOException, uno::RuntimeException)
+{
+ notImplemented();
+}
+
+void SAL_CALL SIDEModel::storeAsURL( const ::rtl::OUString&, const uno::Sequence< PROPERTYVALUE >& )
+ throw (io::IOException, uno::RuntimeException)
+{
+ notImplemented();
+}
+
+void SAL_CALL SIDEModel::storeToURL( const ::rtl::OUString&,
+ const uno::Sequence< PROPERTYVALUE >& )
+ throw (io::IOException, uno::RuntimeException)
+{
+ notImplemented();
+}
+
+void SIDEModel::notImplemented() throw ( io::IOException )
+{
+ throw io::IOException("Can't store IDE model", uno::Reference< uno::XInterface >() );
+}
+
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/unomodel.hxx b/basctl/source/basicide/unomodel.hxx
index 87b230a38080..4d6fd0c6811b 100644
--- a/basctl/source/basicide/unomodel.hxx
+++ b/basctl/source/basicide/unomodel.hxx
@@ -30,6 +30,7 @@ namespace basctl
class SIDEModel : public SfxBaseModel,
public com::sun::star::lang::XServiceInfo
{
+ void notImplemented() throw ( ::com::sun::star::io::IOException );
public:
SIDEModel( SfxObjectShell *pObjSh = 0 );
virtual ~SIDEModel();
@@ -49,6 +50,17 @@ public:
throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void)
throw( ::com::sun::star::uno::RuntimeException );
+ // XStorable2
+ virtual void SAL_CALL storeSelf( const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& )
+ throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { notImplemented(); }
+ // XStorable
+ virtual void SAL_CALL store() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL storeAsURL( const ::rtl::OUString& sURL,
+ const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& seqArguments )
+ throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL storeToURL( const ::rtl::OUString& sURL,
+ const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& seqArguments )
+ throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
static OUString getImplementationName_Static();