From 3a1ae638309cc1d3263b65d03b1396da534a1fc6 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Fri, 19 Jul 2002 12:54:55 +0000 Subject: #100743#: missing member of HyperlinkItem --- svx/source/items/hlnkitem.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'svx/source/items') 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: @@ -429,6 +432,11 @@ BOOL SvxHyperlinkItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE nMem switch(nMemberId) { 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(); -- cgit