Hi Rajath,

On 16.04.2013 11:37, Rajath Shashidhara wrote:
Hello,

I am a beginner in this opensource development. Kindly bear with my
trivial doubts.
I would like to participate in gsoc 2013. I began with solving a bug
which was related page layout. Mr. Rob flagged that bug as hard for a
beginner in a series of mails that I had with a few developers who
helped me a lot.

For that reason, I chose an easier bug to solve. Bug - 119445
I used the following method to fix this bug.
I removed the entry <menu:menuitem menu:id=".uno:ExportToPDF"/>
from main/sw/uiconfig/swriter/menubar/menubar.xml

I then built openoffice again. Now Export to PDF is not shown anymore in Writer!
But, I also have to remove the part of the code which connects this
menuitem to mouseclick and the function of exporting to PDF has to be
removed.

I tried my best to find the link where exactly this xml file is used
and the ui response is coded. I would be very happy If anybody could
help me out with this. I would be very excited to complete my first
bug fix!


From my point of view the reported issue is about having the same PDF export function twice in the File menu. Removing the menu entry 'Export to PDF' from the menu is the task that needs to be done to solve this issue in my opinion. Thus, the change you mentioned above is the one which needs to be made. I think there are some more menu configurations which needs to be adapted.

I propose you should search for UNO command 'ExportToPDF' by using our OpenGrok instance [1] found at [2] to learn more.

Beside further menu configuration files you will find the definition of this UNO command in main/sfx2/sdi/sfx.sdi bound to SlotID SID_EXPORTDOCASPDF.

Now you can search for the SlotID SID_EXPORTDOCASPDF in order to figured out where and how this UNO command respectively Slot is handled. I do not think that any further adaption is needed to the handling of this UNO command respectively SlotID to solve issue 119445.

[1] http://opengrok.adfinis-sygroup.org/source/
[2] http://openoffice.apache.org/orientation/intro-development.html


Best regards, Oliver.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to