summaryrefslogtreecommitdiff
path: root/sfx2/inc/sfx2/lnkbase.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-05-25 14:48:41 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-05-25 14:48:41 -0400
commit2dc20121a8f9fc09b6a39ee8330323463b896c3e (patch)
tree86b253caa5185183fbfd46dee4ce65e7dd7410c0 /sfx2/inc/sfx2/lnkbase.hxx
parente0483315269a616acd2ee00fb50208cc03a6ea22 (diff)
Change the signature of DataChanged in the base class.
This change allows the caller to see if DataChanged operation was successful or not.
Diffstat (limited to 'sfx2/inc/sfx2/lnkbase.hxx')
-rw-r--r--sfx2/inc/sfx2/lnkbase.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/inc/sfx2/lnkbase.hxx b/sfx2/inc/sfx2/lnkbase.hxx
index 34cc33b9e781..621e597c23bd 100644
--- a/sfx2/inc/sfx2/lnkbase.hxx
+++ b/sfx2/inc/sfx2/lnkbase.hxx
@@ -133,8 +133,13 @@ public:
void SetLinkSourceName( const String & rName );
String GetLinkSourceName() const;
- virtual void DataChanged( const String & rMimeType,
- const ::com::sun::star::uno::Any & rValue );
+ enum UpdateResult {
+ SUCCESS = 0,
+ ERROR_GENERAL = 1
+ };
+
+ virtual UpdateResult DataChanged(
+ const String & rMimeType, const ::com::sun::star::uno::Any & rValue );
void SetUpdateMode( sal_uInt16 );
sal_uInt16 GetUpdateMode() const;