diff options
author | jp <jp@openoffice.org> | 2001-01-30 12:40:36 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2001-01-30 12:40:36 +0000 |
commit | 6e4697e1e1c3e1c3a64dc0feecc1eb0b8dbe0308 (patch) | |
tree | 75e9fe70475c0a526c16ccfb1db0d5496f69d567 /svtools | |
parent | 80f34e1be667659e1e69eba59978128e605778e6 (diff) |
Copy-/PasteExchange now public methods
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/inetimg.hxx | 10 | ||||
-rw-r--r-- | svtools/source/urlobj/inetimg.cxx | 20 |
2 files changed, 15 insertions, 15 deletions
diff --git a/svtools/inc/inetimg.hxx b/svtools/inc/inetimg.hxx index 03153b84ce11..88c4a8d1d0f4 100644 --- a/svtools/inc/inetimg.hxx +++ b/svtools/inc/inetimg.hxx @@ -2,9 +2,9 @@ * * $RCSfile: inetimg.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: jp $ $Date: 2001-01-30 08:39:50 $ + * last change: $Author: jp $ $Date: 2001-01-30 13:40:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,9 +83,6 @@ class INetImage Size aSizePixel; protected: - String CopyExchange() const; - void PasteExchange( String aString ); - void SetImageURL( const String& rS ) { aImageURL = rS; } void SetTargetURL( const String& rS ) { aTargetURL = rS; } void SetTargetFrame( const String& rS ) { aTargetFrame = rS; } @@ -108,6 +105,9 @@ public: INetImage() {} + String CopyExchange() const; + void PasteExchange( const String& rString ); + const String& GetImageURL() const { return aImageURL; } const String& GetTargetURL() const { return aTargetURL; } const String& GetTargetFrame() const { return aTargetFrame; } diff --git a/svtools/source/urlobj/inetimg.cxx b/svtools/source/urlobj/inetimg.cxx index a19cac29c1da..075f2da04346 100644 --- a/svtools/source/urlobj/inetimg.cxx +++ b/svtools/source/urlobj/inetimg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: inetimg.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:59:06 $ + * last change: $Author: jp $ $Date: 2001-01-30 13:40:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -114,15 +114,15 @@ String INetImage::CopyExchange() const //----------------------------------------------------------------------- -void INetImage::PasteExchange( String aString ) +void INetImage::PasteExchange( const String& rString ) { - USHORT nStart = 0; - aImageURL = aString.GetToken( 0, TOKEN_SEPARATOR, nStart ); - aTargetURL = aString.GetToken( 0, TOKEN_SEPARATOR, nStart ); - aTargetFrame = aString.GetToken( 0, TOKEN_SEPARATOR, nStart ); - aAlternateText = aString.GetToken( 0, TOKEN_SEPARATOR, nStart ); - aSizePixel.Width() = aString.GetToken( 0, TOKEN_SEPARATOR, nStart ).ToInt32(); - aSizePixel.Height() = aString.GetToken( 0, TOKEN_SEPARATOR, nStart ).ToInt32(); + xub_StrLen nStart = 0; + aImageURL = rString.GetToken( 0, TOKEN_SEPARATOR, nStart ); + aTargetURL = rString.GetToken( 0, TOKEN_SEPARATOR, nStart ); + aTargetFrame = rString.GetToken( 0, TOKEN_SEPARATOR, nStart ); + aAlternateText = rString.GetToken( 0, TOKEN_SEPARATOR, nStart ); + aSizePixel.Width() = rString.GetToken( 0, TOKEN_SEPARATOR, nStart ).ToInt32(); + aSizePixel.Height() = rString.GetToken( 0, TOKEN_SEPARATOR, nStart ).ToInt32(); } //----------------------------------------------------------------------- |