#i93524# Patch by b_michaelsen: something which got lost on CWS swenhancedfields2.
This commit is contained in:
parent
a1f8ea5ea8
commit
4dccd4c09d
1 changed files with 12 additions and 11 deletions
|
@ -7,7 +7,7 @@
|
||||||
* OpenOffice.org - a multi-platform office productivity suite
|
* OpenOffice.org - a multi-platform office productivity suite
|
||||||
*
|
*
|
||||||
* $RCSfile: pam.cxx,v $
|
* $RCSfile: pam.cxx,v $
|
||||||
* $Revision: 1.22 $
|
* $Revision: 1.23 $
|
||||||
*
|
*
|
||||||
* This file is part of OpenOffice.org.
|
* This file is part of OpenOffice.org.
|
||||||
*
|
*
|
||||||
|
@ -767,16 +767,17 @@ BOOL SwPaM::HasReadonlySel( bool bFormView ) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( !bRet )
|
// TODO: Form Protection when Enhanced Fields are enabled
|
||||||
{
|
// if( !bRet )
|
||||||
const SwDoc *pDoc=GetDoc();
|
// {
|
||||||
SwBookmark *pA = ( pDoc && pPoint ? pDoc->getFieldBookmarkFor( *pPoint ) : NULL );
|
// const SwDoc *pDoc=GetDoc();
|
||||||
SwBookmark *pB = ( pDoc && pMark ? pDoc->getFieldBookmarkFor( *pMark ) : pA );
|
// SwBookmark *pA = ( pDoc && pPoint ? pDoc->getFieldBookmarkFor( *pPoint ) : NULL );
|
||||||
bRet = ( pA != pB );
|
// SwBookmark *pB = ( pDoc && pMark ? pDoc->getFieldBookmarkFor( *pMark ) : pA );
|
||||||
bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM );
|
// bRet = ( pA != pB );
|
||||||
if( bProtectForm )
|
// bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM );
|
||||||
bRet |= ( pA==NULL || pB==NULL );
|
// if( bProtectForm )
|
||||||
}
|
// bRet |= ( pA==NULL || pB==NULL );
|
||||||
|
// }
|
||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue