diff options
author | Mathias Bauer <mba@openoffice.org> | 2002-07-19 12:54:55 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2002-07-19 12:54:55 +0000 |
commit | 3a1ae638309cc1d3263b65d03b1396da534a1fc6 (patch) | |
tree | c5fdd067496d381d5e4a8a26bb7f8f5b436519d4 | |
parent | 70a46fb7439429372c9e156b75f4ca892ffa5a23 (diff) |
#100743#: missing member of HyperlinkItem
-rw-r--r-- | svx/sdi/svxitems.sdi | 13 | ||||
-rw-r--r-- | svx/source/items/hlnkitem.cxx | 12 |
2 files changed, 17 insertions, 8 deletions
diff --git a/svx/sdi/svxitems.sdi b/svx/sdi/svxitems.sdi index 8e6711486c65..c2e17d0b19d3 100644 --- a/svx/sdi/svxitems.sdi +++ b/svx/sdi/svxitems.sdi @@ -2,9 +2,9 @@ * * $RCSfile: svxitems.sdi,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: mba $ $Date: 2002-07-08 07:50:02 $ + * last change: $Author: mba $ $Date: 2002-07-19 13:50:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -600,10 +600,11 @@ item SvxLongULSpace SvxLongULSpaceItem; struct SvxHyperlink { - String LinkName MID_HLINK_NAME; - String LinkURL MID_HLINK_URL; - String LinkTarget MID_HLINK_TARGET; - INT32 LinkType MID_HLINK_TYPE; + String Text MID_HLINK_TEXT; + String URL MID_HLINK_URL; + String Target MID_HLINK_TARGET; + String Name MID_HLINK_NAME; + INT32 Type MID_HLINK_TYPE; }; item SvxHyperlink SvxHyperlinkItem; diff --git a/svx/source/items/hlnkitem.cxx b/svx/source/items/hlnkitem.cxx index dd6edf605e99..701e3ea1fff6 100644 --- a/svx/source/items/hlnkitem.cxx +++ b/svx/source/items/hlnkitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: hlnkitem.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mba $ $Date: 2002-05-22 12:03:50 $ + * last change: $Author: mba $ $Date: 2002-07-19 13:51:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -402,6 +402,9 @@ BOOL SvxHyperlinkItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberI switch(nMemberId) { case MID_HLINK_NAME : + rVal <<= ::rtl::OUString(sIntName.GetBuffer()); + break; + case MID_HLINK_TEXT : rVal <<= ::rtl::OUString(sName.GetBuffer()); break; case MID_HLINK_URL: @@ -431,6 +434,11 @@ BOOL SvxHyperlinkItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE nMem case MID_HLINK_NAME : if(!(rVal >>= aStr)) return sal_False; + sIntName = aStr.getStr(); + break; + case MID_HLINK_TEXT : + if(!(rVal >>= aStr)) + return sal_False; sName = aStr.getStr(); break; case MID_HLINK_URL: |