From bc212c565cdc252d2a01e5221a75868b3f01d230 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Wed, 25 Aug 2010 22:53:55 +0200 Subject: linkwarn-dlg-in-apps.diff: Wire up link warning dlg in applications. n#348149 --- sc/source/ui/drawfunc/fuins1.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx index 53a44f058dda..ead135751cce 100644 --- a/sc/source/ui/drawfunc/fuins1.cxx +++ b/sc/source/ui/drawfunc/fuins1.cxx @@ -34,8 +34,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -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 -- cgit