X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=pyatspi%2Fhypertext.py;h=27aebff3748d513fa0b0f050941b97b7f63cd614;hb=1889d0741dab87cb6a46246a1ebd8267f72ad148;hp=440f22723335aca9188be4a104471880eeb9318d;hpb=77e0f05b669f34a8ff16311269e356018f8ee216;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/pyatspi/hypertext.py b/pyatspi/hypertext.py index 440f227..27aebff 100644 --- a/pyatspi/hypertext.py +++ b/pyatspi/hypertext.py @@ -12,9 +12,9 @@ #along with this program; if not, write to the Free Software #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -import interfaces -from base import BaseProxy -from factory import add_accessible_class +from interfaces import * +from accessible import Accessible +from factory import accessible_factory __all__ = [ "Hypertext", @@ -22,7 +22,7 @@ __all__ = [ #------------------------------------------------------------------------------ -class Hypertext(BaseProxy): +class Hypertext(Accessible): """ An interface used for objects which implement linking between multiple resource or content locations, or multiple 'markers' @@ -39,7 +39,7 @@ class Hypertext(BaseProxy): an integer from 0 to getNLinks() - 1. @return the Hyperlink in this Hypertext object. """ - func = self.get_dbus_method("getLink") + func = self.get_dbus_method("getLink", dbus_interface=ATSPI_HYPERTEXT) return func(*args, **kwargs) def getLinkIndex(self, *args, **kwargs): @@ -52,7 +52,7 @@ class Hypertext(BaseProxy): offset characterIndex, or -1 if no Hyperlink is associated with that character offset. """ - func = self.get_dbus_method("getLinkIndex") + func = self.get_dbus_method("getLinkIndex", dbus_interface=ATSPI_HYPERTEXT) return func(*args, **kwargs) def getNLinks(self, *args, **kwargs): @@ -61,10 +61,10 @@ class Hypertext(BaseProxy): @return the number of Hyperlinks associated with this Hypertext object, as a long integer. """ - func = self.get_dbus_method("getNLinks") + func = self.get_dbus_method("getNLinks", dbus_interface=ATSPI_HYPERTEXT) return func(*args, **kwargs) -# ATTENTION - Register the Application class with the accessible factory. -add_accessible_class(interfaces.ATSPI_HYPERTEXT, Hypertext) +# Register the accessible class with the factory. +accessible_factory.register_accessible_class(ATSPI_HYPERTEXT, Hypertext) #END----------------------------------------------------------------------------