Changes to the atk_text_get_text[at/before/after]_offset interfaces
authorLucy Brophy <lbrophy@src.gnome.org>
Thu, 14 Jun 2001 16:16:03 +0000 (16:16 +0000)
committerLucy Brophy <lbrophy@src.gnome.org>
Thu, 14 Jun 2001 16:16:03 +0000 (16:16 +0000)
atk/atktext.c
atk/atktext.h

index 21bf70d..886a9ab 100755 (executable)
@@ -170,7 +170,9 @@ atk_text_get_character_at_offset (AtkText      *text,
 gchar*
 atk_text_get_text_after_offset (AtkText          *text,
                                 gint             offset,
-                                AtkTextBoundary  boundary_type)
+                                AtkTextBoundary  boundary_type,
+                               gint             *startOffset,
+                               gint             *endOffset)
 {
   AtkTextIface *iface;
 
@@ -180,7 +182,7 @@ atk_text_get_text_after_offset (AtkText          *text,
   iface = ATK_TEXT_GET_IFACE (text);
 
   if (iface->get_text_after_offset)
-    return (*(iface->get_text_after_offset)) (text, offset, boundary_type);
+    return (*(iface->get_text_after_offset)) (text, offset, boundary_type, startOffset, endOffset);
   else
     return NULL;
 }
@@ -204,7 +206,9 @@ atk_text_get_text_after_offset (AtkText          *text,
 gchar*
 atk_text_get_text_at_offset (AtkText          *text,
                              gint             offset,
-                             AtkTextBoundary  boundary_type)
+                             AtkTextBoundary  boundary_type,
+                            gint             *startOffset,
+                            gint             *endOffset)
 {
   AtkTextIface *iface;
 
@@ -214,7 +218,7 @@ atk_text_get_text_at_offset (AtkText          *text,
   iface = ATK_TEXT_GET_IFACE (text);
 
   if (iface->get_text_at_offset)
-    return (*(iface->get_text_at_offset)) (text, offset, boundary_type);
+    return (*(iface->get_text_at_offset)) (text, offset, boundary_type, startOffset, endOffset);
   else
     return NULL;
 }
@@ -239,7 +243,9 @@ atk_text_get_text_at_offset (AtkText          *text,
 gchar*
 atk_text_get_text_before_offset (AtkText          *text,
                                  gint             offset,
-                                 AtkTextBoundary  boundary_type)
+                                 AtkTextBoundary  boundary_type,
+                                gint             *startOffset,
+                                gint             *endOffset)
 {
   AtkTextIface *iface;
 
@@ -249,7 +255,7 @@ atk_text_get_text_before_offset (AtkText          *text,
   iface = ATK_TEXT_GET_IFACE (text);
 
   if (iface->get_text_before_offset)
-    return (*(iface->get_text_before_offset)) (text, offset, boundary_type);
+    return (*(iface->get_text_before_offset)) (text, offset, boundary_type, startOffset, endOffset);
   else
     return NULL;
 }
index 30a2078..507d69c 100755 (executable)
@@ -87,15 +87,21 @@ struct _AtkTextIface
                                                    gint             end_offset);
   gchar*         (* get_text_after_offset)        (AtkText          *text,
                                                    gint             offset,
-                                                   AtkTextBoundary  boundary_type);
+                                                   AtkTextBoundary  boundary_type,
+                                                  gint             *startOffset,
+                                                  gint             *endOffset);
   gchar*         (* get_text_at_offset)           (AtkText          *text,
                                                    gint             offset,
-                                                   AtkTextBoundary  boundary_type);
+                                                   AtkTextBoundary  boundary_type,
+                                                  gint             *startOffset,
+                                                  gint             *endOffset);
   gunichar       (* get_character_at_offset)      (AtkText          *text,
                                                    gint             offset);
   gchar*         (* get_text_before_offset)       (AtkText          *text,
                                                    gint             offset,
-                                                   AtkTextBoundary  boundary_type);
+                                                   AtkTextBoundary  boundary_type,
+                                                  gint             *startOffset,
+                                                  gint             *endOffset);
   gint           (* get_caret_offset)             (AtkText          *text);
   AtkAttributeSet* (* ref_run_attributes)         (AtkText         *text,
                                                   gint             offset,
@@ -150,13 +156,19 @@ gunichar      atk_text_get_character_at_offset            (AtkText          *tex
                                                            gint             offset);
 gchar*        atk_text_get_text_after_offset              (AtkText          *text,
                                                            gint             offset,
-                                                           AtkTextBoundary  boundary_type);
+                                                           AtkTextBoundary  boundary_type,
+                                                          gint             *startOffset,
+                                                          gint             *endOffset);
 gchar*        atk_text_get_text_at_offset                 (AtkText          *text,
                                                            gint             offset,
-                                                           AtkTextBoundary  boundary_type);
+                                                           AtkTextBoundary  boundary_type,
+                                                          gint             *startOffset,
+                                                          gint             *endOffset);
 gchar*        atk_text_get_text_before_offset             (AtkText          *text,
                                                            gint             offset,
-                                                           AtkTextBoundary  boundary_type);
+                                                           AtkTextBoundary  boundary_type,
+                                                          gint             *startOffset,
+                                                          gint             *endOffset);
 gint          atk_text_get_caret_offset                   (AtkText          *text);
 void          atk_text_get_character_extents              (AtkText          *text,
                                                            gint             offset,