summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2001-01-19 07:40:48 +0000
committerMichael Brauer <mib@openoffice.org>2001-01-19 07:40:48 +0000
commitec11166b6c0eef3b3e2852a7a26100a924865d3c (patch)
tree2a9721799acc0046b2c05986bae1575e7da11de3
parent18537e25c4efbb9e981c6fc0d4815ea7f0586ae2 (diff)
SwFmtINetFmt::QueryValue: evalaute pool ids, too
-rw-r--r--sw/source/core/txtnode/fmtatr2.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx
index 17284a83d019..ce278bd1dad7 100644
--- a/sw/source/core/txtnode/fmtatr2.cxx
+++ b/sw/source/core/txtnode/fmtatr2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmtatr2.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: dvo $ $Date: 2001-01-02 14:29:23 $
+ * last change: $Author: mib $ $Date: 2001-01-19 08:40:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -350,11 +350,19 @@ BOOL SwFmtINetFmt::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
sVal = aName;
break;
case MID_URL_VISITED_FMT:
- sVal = SwXStyleFamilies::GetProgrammaticName( aVisitedFmt,
+ sVal = aVisitedFmt;
+ if( !sVal.Len() && nVisitedId != 0 )
+ SwDoc::GetPoolNm( nVisitedId, sVal );
+ if( sVal.Len() )
+ sVal = SwXStyleFamilies::GetProgrammaticName( sVal,
SFX_STYLE_FAMILY_CHAR );
break;
case MID_URL_UNVISITED_FMT:
- sVal = SwXStyleFamilies::GetProgrammaticName( aINetFmt,
+ sVal = aINetFmt;
+ if( !sVal.Len() && nINetId != 0 )
+ SwDoc::GetPoolNm( nINetId, sVal );
+ if( sVal.Len() )
+ SwXStyleFamilies::GetProgrammaticName( sVal,
SFX_STYLE_FAMILY_CHAR );
break;
case MID_URL_HYPERLINKEVENTS: