https://bugs.freedesktop.org/show_bug.cgi?id=67544
--- Comment #7 from Vishv <vishvbrahmbhatt19@gmail.com> ---
Hi,
My patch related to this bug is at https://gerrit.libreoffice.org/#/c/8700/ . I
have tried much but I am kind of stuck since few days. Any help will be really
helpful.
In-order to embed the music in the slidetransition, we have to use EmbedMedia()
function. I have used that function, but I am not successful in embedding the
media file.
The EmbedMedia() takes a reference of XModel object and XModel itself takes a
reference of SdDrawDocument. And it is initialized like this:
XModel(GetDoc().GetObjectShell()->GetModel()).
So here GetDoc() returns a reference of SdDrawDocument(i.e SdDrawDocument&) and
then it proceeds accordingly.
In the SlideTransitionPane.cxx, I have access to "SdDrawDocument* mpDrawDoc".
So I do like this:
uno::Reference<frame::XModel> const
xModel(mpDrawDoc->GetObjectShell()->GetModel());
And then use this xModel in the EmbedMedia().
The above code don't give me any compilation error. But, when I open an
instance of Impress from my terminal, I could see this messages
http://pastebin.ca/2679016. And this seems to be the reason behind the
EmbedMedia() not able to create & store the .mp3 file in "Media/" (which is
vnd.sun.star.Package:Media).
So I think, I require a reference to SdDrawDocument, but I am not sure how can
I get one. Typecasting is not possible because 'Operator=' is not defined for
"SdDrawDocument".
My current patch includes a changed dialog and also it's compiling correctly.
So can someone please look at my patch and let me know their views and guide
me?
And let me know if I am in the right direction.
--
You are receiving this mail because:
You are on the CC list for the bug.
Context
- [Bug 67544] FILESAVE: Slide transistion sound(other sound) is not included in presentation file · bugzilla-daemon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.