https://bugs.freedesktop.org/show_bug.cgi?id=67544
--- Comment #7 from Vishv <vishvbrahmbhat...@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.
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice