[Gdiplus 05/15] stub GdipSetStringFormatMeasurableCharacterRanges

Adam Petaccia adam at tpetaccia.com
Wed Jul 9 02:33:37 CDT 2008


---
 dlls/gdiplus/gdiplus.spec   |    2 +-
 dlls/gdiplus/stringformat.c |   11 +++++++++++
 include/gdiplusflat.h       |    2 ++
 include/gdiplustypes.h      |    6 ++++++
 4 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index f159981..011986a 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -590,7 +590,7 @@
 @ stdcall GdipSetStringFormatFlags(ptr long)
 @ stdcall GdipSetStringFormatHotkeyPrefix(ptr long)
 @ stdcall GdipSetStringFormatLineAlign(ptr long)
-@ stub GdipSetStringFormatMeasurableCharacterRanges
+@ stdcall GdipSetStringFormatMeasurableCharacterRanges(ptr long ptr)
 @ stub GdipSetStringFormatTabStops
 @ stdcall GdipSetStringFormatTrimming(ptr long)
 @ stub GdipSetTextContrast
diff --git a/dlls/gdiplus/stringformat.c b/dlls/gdiplus/stringformat.c
index 26ce3ed..c9361dc 100644
--- a/dlls/gdiplus/stringformat.c
+++ b/dlls/gdiplus/stringformat.c
@@ -167,6 +167,17 @@ GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat *format,
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipSetStringFormatMeasurableCharacterRanges(GpStringFormat*
+        format, INT rangeCount, GDIPCONST CharacterRange* ranges)
+{
+    if (!(format && rangeCount && ranges))
+        return InvalidParameter;
+
+    FIXME("stub: %p, %d, %p\n", format, rangeCount, ranges);
+
+    return NotImplemented;
+}
+
 GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat *format,
     StringTrimming trimming)
 {
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 64d128a..45802ef 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -405,6 +405,8 @@ GpStatus WINGDIPAPI GdipGetStringFormatTrimming(GpStringFormat*,StringTrimming*)
 GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat*,StringAlignment);
 GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT);
 GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment);
+GpStatus WINGDIPAPI GdipSetStringFormatMeasurableCharacterRanges(
+        GpStringFormat*, INT, GDIPCONST CharacterRange*);
 GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming);
 GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat*,GpStringFormat**);
 
diff --git a/include/gdiplustypes.h b/include/gdiplustypes.h
index 29616e9..4f97432 100644
--- a/include/gdiplustypes.h
+++ b/include/gdiplustypes.h
@@ -236,6 +236,12 @@ typedef struct Rect
     INT Height;
 } Rect;
 
+typedef struct CharacterRange
+{
+    INT First;
+    INT Length;
+} CharacterRange;
+
 typedef enum Status Status;
 
 #endif /* end of c typedefs */
-- 
1.5.4.3




More information about the wine-patches mailing list