diff options
author | Thorsten Behrens <thb@openoffice.org> | 2010-08-25 22:53:55 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-08-25 22:58:27 +0200 |
commit | 5ada8056e6204b7f236f9f7009984eff5219e82b (patch) | |
tree | 4d8b6e7fd72780856d6f163451445f60eabd6e0c | |
parent | b97c8f3364575ea36b5b43e73cb92eb8e82178a1 (diff) |
linkwarn-dlg-in-apps.diff: Wire up link warning dlg in applications.OOO_BUILD_3_2_98_0
n#348149
-rw-r--r-- | sc/source/ui/drawfunc/fuins1.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx index 80d6324c8..70243ac10 100644 --- a/sc/source/ui/drawfunc/fuins1.cxx +++ b/sc/source/ui/drawfunc/fuins1.cxx @@ -34,8 +34,10 @@ #include <svx/svdpage.hxx> #include <svx/svdpagv.hxx> #include <svx/svdview.hxx> +#include <svx/linkwarn.hxx> #include <svtools/filter.hxx> #include <svl/stritem.hxx> +#include <svtools/miscopt.hxx> #include <vcl/msgbox.hxx> #include <tools/urlobj.hxx> #include <avmedia/mediawindow.hxx> @@ -289,6 +291,14 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh, String aFilterName = aDlg.GetCurrentFilter(); BOOL bAsLink = aDlg.IsAsLink(); + // really store as link only? + if( bAsLink && SvtMiscOptions().ShowLinkWarningDialog() ) + { + SvxLinkWarningDialog aWarnDlg(pWin,aFileName); + if( aWarnDlg.Execute() != RET_OK ) + bAsLink = sal_False; // don't store as link + } + lcl_InsertGraphic( aGraphic, aFileName, aFilterName, bAsLink, FALSE, pViewSh, pWindow, pView ); // append items for recording |