PyWebWizard: Fixing bugs and implementation of mising features.

Added dummy methods to some of the Listeners because of exceptions.

Change-Id: Ida7c27c266228c8fd9d569daf326163a90f31e2b
This commit is contained in:
Javier Fernandez 2013-05-03 14:31:43 +00:00
parent d6f1c31e8a
commit 6ea3813ce9

View file

@ -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