[ooo-build-commit] .: sc/source

Jan Holesovsky kendy at kemper.freedesktop.org
Thu Aug 26 07:24:40 PDT 2010


 sc/source/ui/drawfunc/fuins1.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 5ada8056e6204b7f236f9f7009984eff5219e82b
Author: Thorsten Behrens <thb at openoffice.org>
Date:   Wed Aug 25 22:53:55 2010 +0200

    linkwarn-dlg-in-apps.diff: Wire up link warning dlg in applications.
    
    n#348149

diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx
index 80d6324..70243ac 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


More information about the ooo-build-commit mailing list