Tag: cws_src680_odbmacros2 User: fs Date: 2008-01-24 10:31:40+0000 Modified: dba/dbaccess/source/ui/browser/genericcontroller.cxx
Log: #i49133# support for making features invisible (i.e. they disappear from their menu/toolbar) File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: genericcontroller.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/genericcontroller.cxx?r1=1.81.56.3&r2=1.81.56.4 Delta lines: +8 -2 ------------------- --- genericcontroller.cxx 2007-12-19 07:14:27+0000 1.81.56.3 +++ genericcontroller.cxx 2008-01-24 10:31:37+0000 1.81.56.4 @@ -4,9 +4,9 @@ * * $RCSfile: genericcontroller.cxx,v $ * - * $Revision: 1.81.56.3 $ + * $Revision: 1.81.56.4 $ * - * last change: $Author: fs $ $Date: 2007/12/19 07:14:27 $ + * last change: $Author: fs $ $Date: 2008/01/24 10:31:37 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -120,6 +120,9 @@ #ifndef _COM_SUN_STAR_FRAME_FRAMESEARCHFLAG_HPP_ #include <com/sun/star/frame/FrameSearchFlag.hpp> #endif +#ifndef _COM_SUN_STAR_FRAME_STATUS_VISIBILITY_HPP_ +#include <com/sun/star/frame/status/Visibility.hpp> +#endif #ifndef _COM_SUN_STAR_UTIL_XMODIFIABLE_HPP_ #include <com/sun/star/util/XModifiable.hpp> #endif @@ -136,6 +139,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::frame; +using namespace ::com::sun::star::frame::status; using namespace ::com::sun::star::util; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::container; @@ -457,6 +461,8 @@ _out_rStates.push_back( makeAny( *_rFeatureState.sTitle ) ); if ( !!_rFeatureState.bChecked ) _out_rStates.push_back( makeAny( (sal_Bool)*_rFeatureState.bChecked ) ); + if ( !!_rFeatureState.bInvisible ) + _out_rStates.push_back( makeAny( Visibility( !*_rFeatureState.bInvisible ) ) ); if ( _rFeatureState.aValue.hasValue() ) _out_rStates.push_back( _rFeatureState.aValue ); if ( _out_rStates.empty() ) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
