<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - FILESAVE: Slide transistion sound(other sound) is not included in presentation file"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=67544#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - FILESAVE: Slide transistion sound(other sound) is not included in presentation file"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=67544">bug 67544</a>
              from <span class="vcard"><a class="email" href="mailto:vishvbrahmbhatt19@gmail.com" title="Vishv <vishvbrahmbhatt19@gmail.com>"> <span class="fn">Vishv</span></a>
</span></b>
        <pre>Hi,

My patch related to this bug is at <a href="https://gerrit.libreoffice.org/#/c/8700/">https://gerrit.libreoffice.org/#/c/8700/</a> . 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
<a href="http://pastebin.ca/2679016">http://pastebin.ca/2679016</a>. 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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>