diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-09-08 06:50:44 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-09-08 06:50:44 +0000 |
commit | 8fef54ec5b8ce653901bd6e294936d6d9095f497 (patch) | |
tree | cf7fc487f2bdaff97ee4803fb2c6de02cd724dce | |
parent | 41097fa079e06cc1930c098dad9e394337ac7c53 (diff) |
#i93524# Patch by b_michaelsen: something which got lost on CWS swenhancedfields2.
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index cc2e0b9f95..47d2793d45 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; } |