diff options
Diffstat (limited to 'sw/source/core/view/vprint.cxx')
-rw-r--r-- | sw/source/core/view/vprint.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx index 14ee0f4a9133..1447555d2a62 100644 --- a/sw/source/core/view/vprint.cxx +++ b/sw/source/core/view/vprint.cxx @@ -662,6 +662,7 @@ sal_Bool ViewShell::IsAnyFieldInDoc() const const SfxPoolItem* pItem; sal_uInt32 nMaxItems = pDoc->GetAttrPool().GetItemCount2( RES_TXTATR_FIELD ); for( sal_uInt32 n = 0; n < nMaxItems; ++n ) + { if( 0 != (pItem = pDoc->GetAttrPool().GetItem2( RES_TXTATR_FIELD, n ))) { const SwFmtFld* pFmtFld = (SwFmtFld*)pItem; @@ -674,6 +675,22 @@ sal_Bool ViewShell::IsAnyFieldInDoc() const return sal_True; } } + } + + nMaxItems = pDoc->GetAttrPool().GetItemCount2( RES_TXTATR_INPUTFIELD ); + for( sal_uInt32 n = 0; n < nMaxItems; ++n ) + { + if( 0 != (pItem = pDoc->GetAttrPool().GetItem2( RES_TXTATR_INPUTFIELD, n ))) + { + const SwFmtFld* pFmtFld = (SwFmtFld*)pItem; + const SwTxtFld* pTxtFld = pFmtFld->GetTxtFld(); + if( pTxtFld && pTxtFld->GetTxtNode().GetNodes().IsDocNodes() ) + { + return sal_True; + } + } + } + return sal_False; } |