summaryrefslogtreecommitdiff
path: root/sw/source/ui/app/docsh.cxx
diff options
context:
space:
mode:
authoros <os@openoffice.org>2010-11-01 10:25:54 +0100
committeros <os@openoffice.org>2010-11-01 10:25:54 +0100
commit78025b3f492e6d3b7afdf261728d74e7c00ce2d5 (patch)
tree9b655ec2c0bdb052bf12e48a6a4618e438e98afc /sw/source/ui/app/docsh.cxx
parent8409cfd0c4842fae1e087f8c932748f9305871a8 (diff)
parent3d5ad5eea711f9f4c70f537be81218c3d3729cd8 (diff)
rebase to m91
Diffstat (limited to 'sw/source/ui/app/docsh.cxx')
-rw-r--r--[-rwxr-xr-x]sw/source/ui/app/docsh.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx
index c7ee43255f3b..e606c2284acf 100755..100644
--- a/sw/source/ui/app/docsh.cxx
+++ b/sw/source/ui/app/docsh.cxx
@@ -1147,6 +1147,23 @@ void SwDocShell::GetState(SfxItemSet& rSet)
rSet.Put( SvxFontListItem( pFontList, SID_ATTR_CHAR_FONTLIST ) );
}
break;
+ case SID_MAIL_PREPAREEXPORT:
+ {
+ //check if linked content or possibly hidden content is available
+ //pDoc->UpdateFlds( NULL, false );
+ sfx2::LinkManager& rLnkMgr = pDoc->GetLinkManager();
+ const ::sfx2::SvBaseLinks& rLnks = rLnkMgr.GetLinks();
+ sal_Bool bRet = sal_False;
+ if( rLnks.Count() )
+ bRet = sal_True;
+ else
+ {
+ //sections with hidden flag, hidden character attribute, hidden paragraph/text or conditional text fields
+ bRet = pDoc->HasInvisibleContent();
+ }
+ rSet.Put( SfxBoolItem( nWhich, bRet ) );
+ }
+ break;
default: DBG_ASSERT(!this,"Hier darfst Du nicht hinein!");