Re: Regarding PDF Export
Hi Sagar, On Wed, 2012-09-26 at 13:19 +0300, Sagar Srivastava wrote: > Greetings of the day !!! Greetings. It would really help to have a 'git diff' / patch to show where you're at. > mpaParent( < What value should be passed here, in order to access the > following, as It crashes with 0 > ) > { >mbIsPresentation = mpaParent->mbIsPresentation; If you de-reference a null pointer (ie. 0) you'll get a segmentation fault; that is as expected :-) > Waiting for an immediate response. It would prolly help if there was someone locally you could pair-program with on this to get quicker turnarounds on questions; is that possible ? All the best, Michael. -- michael.me...@suse.com <><, Pseudo Engineer, itinerant idiot ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Regarding PDF export
Hi Sagar, On Mon, 2012-09-24 at 08:52 +0300, Sagar Srivastava wrote: > Consider the following file : > > filter/source/pdf/impdialog.cxx Ok ? :-) > Is there any way I can check if the source document is a Presentation > Document. It is already checked in the following method : Right - that is the constructor; and has all you need in it to do this :-) > However, I need to use the value of "mbIsPresentation" (After being > checked If the source document is a presentation document) in another > method. Therefore, any mechanism through which I can find this value > globally so that I could use it in another method. The prefix 'm' indicates that this is a member variable (and a boolean) - if you checkout the header and see: //class tabbed dialog class ImpPDFTabDialog : public SfxTabDialog { ... protected: //the following data are the configuration used throughout the dialog and pages sal_BoolmbIsPresentation; sal_BoolmbIsWriter; That should jump out at you. ie. you can use 'if (mbIsPresentation)' in any of the ImplPDFTabDialog:: member functions that you like. > Waiting for responses towards fixing another bug. Hope that helps - sorry for the delay :-) ATB, Michael. -- michael.me...@suse.com <><, Pseudo Engineer, itinerant idiot ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice