Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1538

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/38/1538/1

fix for fdo#57836 throw when attempting to store basicide model

Change-Id: I8769a63be61d45817757be3ad23ffc7b01173041
---
M basctl/source/basicide/unomodel.cxx
M basctl/source/basicide/unomodel.hxx
2 files changed, 36 insertions(+), 0 deletions(-)



diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx
index cd671c1..3d5dc31 100644
--- a/basctl/source/basicide/unomodel.cxx
+++ b/basctl/source/basicide/unomodel.cxx
@@ -124,4 +124,28 @@
     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 >() );
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/unomodel.hxx b/basctl/source/basicide/unomodel.hxx
index 06123ab..1f12b63 100644
--- a/basctl/source/basicide/unomodel.hxx
+++ b/basctl/source/basicide/unomodel.hxx
@@ -36,6 +36,7 @@
 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();
@@ -55,6 +56,17 @@
             throw( ::com::sun::star::uno::RuntimeException );
     virtual ::com::sun::star::uno::Sequence< rtl::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< rtl::OUString > getSupportedServiceNames_Static();
     static ::rtl::OUString getImplementationName_Static();

-- 
To view, visit https://gerrit.libreoffice.org/1538
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8769a63be61d45817757be3ad23ffc7b01173041
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-3-6
Gerrit-Owner: Noel Power <noel.power@suse.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.