https://bz.apache.org/ooo/show_bug.cgi?id=127542

          Issue ID: 127542
        Issue Type: DEFECT
           Summary: OpenOffice Writer document OnSaveAs event calling
                    plugin popup
           Product: App Dev
           Version: 4.1.3
          Hardware: All
                OS: Windows, all
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: api
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Good Evening All,

I have created OpenOffice plugin for Text Writer using NetBeans8.0.2.
My target is that I want to call my form before save event.

i am using this code, please look into this code:

try {

          Object xGlobalBroadCaster =
m_xContext.getServiceManager().createInstanceWithContext("com.sun.star.frame.GlobalEventBroadcaster",
m_xContext);

            XEventBroadcaster xEventBroad =
(XEventBroadcaster)UnoRuntime.queryInterface(XEventBroadcaster.class,
xGlobalBroadCaster);
            xEventBroad.addEventListener(new
com.sun.star.document.XEventListener() {

                 public void disposing(com.sun.star.lang.EventObject e) {

                }

               @Override
                public void notifyEvent(com.sun.star.document.EventObject
oEvent) {

                    System.out.println("u call Event :)"+oEvent.EventName);
                    if (oEvent.EventName.equalsIgnoreCase("OnSave") ||
oEvent.EventName.equalsIgnoreCase("OnSaveAs")) {

                        form1();


                    }

                }

            });

        } catch (Exception ex) {
            ex.printStackTrace();
        }



I am getting popup after saving the document.
Please help me out.

Regards,
Rushna jabi
Software Engineer
8447294601

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to