From 4dccd4c09d9eb7fd0a0c0f3189d1e1e677ea6539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Mon, 8 Sep 2008 06:50:44 +0000 Subject: [PATCH] #i93524# Patch by b_michaelsen: something which got lost on CWS swenhancedfields2. --- sw/source/core/crsr/pam.cxx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index 520f0af39800..332dab7bafa9 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pam.cxx,v $ - * $Revision: 1.22 $ + * $Revision: 1.23 $ * * This file is part of OpenOffice.org. * @@ -767,16 +767,17 @@ BOOL SwPaM::HasReadonlySel( bool bFormView ) const } } } - if( !bRet ) - { - const SwDoc *pDoc=GetDoc(); - SwBookmark *pA = ( pDoc && pPoint ? pDoc->getFieldBookmarkFor( *pPoint ) : NULL ); - SwBookmark *pB = ( pDoc && pMark ? pDoc->getFieldBookmarkFor( *pMark ) : pA ); - bRet = ( pA != pB ); - bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM ); - if( bProtectForm ) - bRet |= ( pA==NULL || pB==NULL ); - } +// TODO: Form Protection when Enhanced Fields are enabled +// if( !bRet ) +// { +// const SwDoc *pDoc=GetDoc(); +// SwBookmark *pA = ( pDoc && pPoint ? pDoc->getFieldBookmarkFor( *pPoint ) : NULL ); +// SwBookmark *pB = ( pDoc && pMark ? pDoc->getFieldBookmarkFor( *pMark ) : pA ); +// bRet = ( pA != pB ); +// bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM ); +// if( bProtectForm ) +// bRet |= ( pA==NULL || pB==NULL ); +// } return bRet; }