summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-08-07 15:21:41 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-08-07 15:42:57 +0200
commit191f0944fd8fc30493eda58c7adfdfa0b538f507 (patch)
treed0f8416ff215f3cf1b578b3e051fd198c1e899ff /sd
parent7479729487e167c61c69b77f5e270e639160005b (diff)
Handle collada libraries seperately: --disable-collada
Depends on gltf support. Change-Id: Ief0452da3d03b0ddbca45272e5f5cd268691aeca
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuinsert.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx
index bef599196be0..e49ef0d23022 100644
--- a/sd/source/ui/func/fuinsert.cxx
+++ b/sd/source/ui/func/fuinsert.cxx
@@ -784,10 +784,19 @@ void FuInsert3DModel::DoExecute( SfxRequest& )
sfx2::FileDialogHelper aDlg( ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0 );
aDlg.SetTitle( "Insert 3D Model" );
+
+#if HAVE_FEATURE_COLLADA
aDlg.AddFilter( "All supported formats", "*.json; *.dae; *.kmz" );
+#else
+ aDlg.AddFilter( "All supported formats", "*.json" );
+#endif
+
aDlg.AddFilter( "JSON - GL Transmission Format", "*.json" );
+
+#if HAVE_FEATURE_COLLADA
aDlg.AddFilter( "DAE - COLLADA", "*.dae" );
aDlg.AddFilter( "KMZ - Keyhole Markup language Zipped", "*.kmz" );
+#endif
OUString sURL;
if( aDlg.Execute() == ERRCODE_NONE )