diff options
author | Oliver Specht <os@openoffice.org> | 2000-11-08 10:11:12 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2000-11-08 10:11:12 +0000 |
commit | 1536920fc7dc3d32ca5b40bf3be0b2ed7f85ee2a (patch) | |
tree | 66ac03f8027075c0d657b3fcf487424f2f471e5e | |
parent | 4f503cb5cceda2cd2a1ff234305258d93434df10 (diff) |
SwFmtINet::PutValue: set PoolId
-rw-r--r-- | sw/source/core/txtnode/fmtatr2.cxx | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx index 559ff89f0167..7b8f6941f5a9 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.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jp $ $Date: 2000-11-02 17:28:47 $ + * last change: $Author: os $ $Date: 2000-11-08 11:11:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -99,6 +99,12 @@ #ifndef _HINTS_HXX #include <hints.hxx> // SwUpdateAttr #endif +#ifndef _DOC_HXX +#include <doc.hxx> +#endif +#ifndef _UNOSTYLE_HXX +#include <unostyle.hxx> +#endif #ifndef _CMDID_H #include <cmdid.h> @@ -106,9 +112,6 @@ #ifndef _COM_SUN_STAR_UNO_ANY_H_ #include <com/sun/star/uno/Any.h> #endif -#ifndef _UNOSTYLE_HXX -#include <unostyle.hxx> -#endif using namespace ::com::sun::star; @@ -378,14 +381,19 @@ BOOL SwFmtINetFmt::PutValue( const uno::Any& rVal, BYTE nMemberId ) aName = sVal; break; case MID_URL_VISITED_FMT: + { aVisitedFmt = SwXStyleFamilies::GetUIName( sVal, SFX_STYLE_FAMILY_CHAR ); - nVisitedId = USHRT_MAX; + nVisitedId = SwDoc::GetPoolId( aVisitedFmt, GET_POOLID_CHRFMT ); + + } break; case MID_URL_UNVISITED_FMT: + { aINetFmt = SwXStyleFamilies::GetUIName( sVal, SFX_STYLE_FAMILY_CHAR ); - nINetId = USHRT_MAX; + nINetId = SwDoc::GetPoolId( aINetFmt, GET_POOLID_CHRFMT ); + } break; default: bRet = FALSE; |