diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-19 16:27:19 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-19 16:27:19 +0000 |
commit | 62fbaf1c4c946429c9acd18fad079e4889d956b4 (patch) | |
tree | 90daf58115669dbe44f4abd687b11a4d47409415 /sfx2/source/control | |
parent | 3b824fbab149e03fc65756f27f222553cd3c32f3 (diff) |
INTEGRATION: CWS fwk74 (1.21.58); FILE MERGED
2007/09/13 09:18:30 cd 1.21.58.1: #i81347# SvxSearchItem must have Query- and PutValue methods that support converting the whole object
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/srchitem.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sfx2/source/control/srchitem.cxx b/sfx2/source/control/srchitem.cxx index e52863f6dcd3..44057f905725 100644 --- a/sfx2/source/control/srchitem.cxx +++ b/sfx2/source/control/srchitem.cxx @@ -4,9 +4,9 @@ * * $RCSfile: srchitem.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: hr $ $Date: 2007-06-27 23:08:10 $ + * last change: $Author: ihi $ $Date: 2007-11-19 17:27:19 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -445,6 +445,12 @@ sal_Bool SvxSearchItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE nMember nMemberId &= ~CONVERT_TWIPS; switch ( nMemberId ) { + case 0: + { + com::sun::star::util::SearchOptions aSearchOptions; + rVal <<= aSearchOpt; + break; + } case MID_SEARCH_COMMAND: rVal <<= (sal_Int16) nCommand; break; case MID_SEARCH_STYLEFAMILY: @@ -506,6 +512,13 @@ sal_Bool SvxSearchItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE nMe sal_Int32 nInt = 0; switch ( nMemberId ) { + case 0: + { + com::sun::star::util::SearchOptions aSearchOptions; + bRet = rVal >>= aSearchOptions; + aSearchOpt = aSearchOptions; + break; + } case MID_SEARCH_COMMAND: bRet = (rVal >>= nInt); nCommand = (sal_uInt16) nInt; break; case MID_SEARCH_STYLEFAMILY: |