From 6ea3813ce9956605d1240d070403818d35f47e58 Mon Sep 17 00:00:00 2001 From: Javier Fernandez Date: Fri, 3 May 2013 14:31:43 +0000 Subject: [PATCH] PyWebWizard: Fixing bugs and implementation of mising features. Added dummy methods to some of the Listeners because of exceptions. Change-Id: Ida7c27c266228c8fd9d569daf326163a90f31e2b --- .../star/wizards/ui/event/CommonListener.py | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/wizards/com/sun/star/wizards/ui/event/CommonListener.py b/wizards/com/sun/star/wizards/ui/event/CommonListener.py index 9c61db8b4924..78c4f2a5bbfa 100644 --- a/wizards/com/sun/star/wizards/ui/event/CommonListener.py +++ b/wizards/com/sun/star/wizards/ui/event/CommonListener.py @@ -26,6 +26,10 @@ class ActionListenerProcAdapter( unohelper.Base, XActionListener ): if callable( self.oProcToCall ): self.oProcToCall() + def disposing(self, Event): + # TODO: Implement ? + pass + from com.sun.star.awt import XItemListener class ItemListenerProcAdapter( unohelper.Base, XItemListener ): def __init__(self, oProcToCall): @@ -38,6 +42,10 @@ class ItemListenerProcAdapter( unohelper.Base, XItemListener ): except: self.oProcToCall(oItemEvent) + def disposing(self, Event): + # TODO: Implement ? + pass + from com.sun.star.awt import XTextListener class TextListenerProcAdapter( unohelper.Base, XTextListener ): def __init__(self, oProcToCall): @@ -47,6 +55,10 @@ class TextListenerProcAdapter( unohelper.Base, XTextListener ): if callable( self.oProcToCall ): self.oProcToCall() + def disposing(self, Event): + # TODO: Implement ? + pass + from com.sun.star.frame import XTerminateListener class TerminateListenerProcAdapter( unohelper.Base, XTerminateListener ): def __init__(self, oProcToCall): @@ -67,6 +79,22 @@ class WindowListenerProcAdapter( unohelper.Base, XWindowListener ): if callable( self.oProcToCall ): self.oProcToCall() + def windowHidden(self, Event): + # TODO: Implement ? + pass + + def windowResized(self, Event): + # TODO: Implement ? + pass + + def windowMoved(self, Event): + # TODO: Implement ? + pass + + def disposing(self, Event): + # TODO: Implement ? + pass + from com.sun.star.awt import XAdjustmentListener class AdjustmentListenerProcAdapter( unohelper.Base, XAdjustmentListener ): def __init__(self, oProcToCall): @@ -107,6 +135,18 @@ class OMouseListenerProcAdapter( unohelper.Base, XMouseListener ): if callable( self.oProcToCall ): self.oProcToCall(MouseEvent) + def mouseEntered(self, MouseEvent): + # TODO: Implement ? + pass + + def mouseExited(self, MouseEvent): + # TODO: Implement ? + pass + + def mouseReleased(self, MouseEvent): + # TODO: Implement ? + pass + def disposing(self, Event): # TODO: Implement ? pass