diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-04-02 11:34:03 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-04-02 12:15:49 +0200 |
commit | edb4c11b074e486a4fc071ea94c9c4a1c83e84a3 (patch) | |
tree | 16574b3f8fec406f8f63b1def8ca98c8bdb64841 /include/avmedia | |
parent | 82332ee1fc23b6fdccaf92149c0f2fa46fcdc4d6 (diff) |
glTF 3D model embedding: Embed all external resources of *.json file
Store them under /Model/<json_file_name_without_extension>/
modeltools: functions for handling 3D models inside avmedia
Change-Id: Ia2bdad6064db372e1c946b6ab02c434545d1ed45
Diffstat (limited to 'include/avmedia')
-rw-r--r-- | include/avmedia/mediaitem.hxx | 5 | ||||
-rw-r--r-- | include/avmedia/modeltools.hxx | 22 |
2 files changed, 27 insertions, 0 deletions
diff --git a/include/avmedia/mediaitem.hxx b/include/avmedia/mediaitem.hxx index 97a63a961597..c512e2654eb9 100644 --- a/include/avmedia/mediaitem.hxx +++ b/include/avmedia/mediaitem.hxx @@ -26,6 +26,7 @@ #include <svl/poolitem.hxx> #include <com/sun/star/media/ZoomLevel.hpp> #include <com/sun/star/frame/XModel.hpp> +#include <com/sun/star/embed/XStorage.hpp> #include <avmedia/avmediadllapi.h> #define AVMEDIA_SETMASK_NONE ((sal_uInt32)(0x00000000)) @@ -128,6 +129,10 @@ bool AVMEDIA_DLLPUBLIC EmbedMedia( OUString const& rSourceURL, OUString & o_rEmbeddedURL); +OUString GetFilename(OUString const& rSourceURL); + +::com::sun::star::uno::Reference<::com::sun::star::io::XStream> CreateStream( + ::com::sun::star::uno::Reference<::com::sun::star::embed::XStorage> const& xStorage, OUString const& rFilename); } #endif diff --git a/include/avmedia/modeltools.hxx b/include/avmedia/modeltools.hxx new file mode 100644 index 000000000000..db9fc139f3f5 --- /dev/null +++ b/include/avmedia/modeltools.hxx @@ -0,0 +1,22 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <rtl/ustring.hxx> +#include <com/sun/star/frame/XModel.hpp> +#include <avmedia/avmediadllapi.h> + +namespace avmedia { + +bool AVMEDIA_DLLPUBLIC Embed3DModel( + const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xModel, + const OUString& rSourceURL, OUString& o_rEmbeddedURL); + +} // namespace avemdia + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |