summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2010-08-25 22:54:38 +0200
committerJan Holesovsky <kendy@suse.cz>2010-08-25 22:59:37 +0200
commite0b0ca314f460e0bf278d93f2c166866e0bdee47 (patch)
tree447f8c55ef60516c6f194f340ea1e303f8653eb1
parent3a414d98714ce594920c6225beec9a01c522bd4f (diff)
linkwarn-dlg-in-apps.diff: Wire up link warning dlg in applications.OOO_BUILD_3_2_98_0
n#348149
-rwxr-xr-xsw/source/ui/uiview/view2.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
index 224ab55197..dbabf2b45b 100755
--- a/sw/source/ui/uiview/view2.cxx
+++ b/sw/source/ui/uiview/view2.cxx
@@ -48,6 +48,7 @@
#include <caption.hxx>
#include <svl/PasswordHelper.hxx>
#include <svl/urihelper.hxx>
+#include <svtools/miscopt.hxx>
#include <sfx2/passwd.hxx>
#include <sfx2/sfxdlg.hxx>
#include <sfx2/filedlghelper.hxx>
@@ -56,6 +57,7 @@
#include <svx/viewlayoutitem.hxx>
#include <svx/zoomslideritem.hxx>
#include <svtools/xwindowitem.hxx>
+#include <svx/linkwarn.hxx>
#include <svx/htmlmode.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
@@ -400,6 +402,14 @@ BOOL SwView::InsertGraphicDlg( SfxRequest& rReq )
rReq.AppendItem( SfxStringItem( FN_PARAM_2, sGraphicFormat ) );
rReq.AppendItem( SfxBoolItem( FN_PARAM_1, bAsLink ) );
}
+
+ // really store as link only?
+ if( bAsLink && SvtMiscOptions().ShowLinkWarningDialog() )
+ {
+ SvxLinkWarningDialog aWarnDlg(GetWindow(),pFileDlg->GetPath());
+ if( aWarnDlg.Execute() != RET_OK )
+ bAsLink=sal_False; // don't store as link
+ }
}
SwWrtShell& rSh = GetWrtShell();