From b135d4a7001067caad8e25c383f90639752911d9 Mon Sep 17 00:00:00 2001 From: Adam Petaccia Date: Wed, 9 Jul 2008 03:33:37 -0400 Subject: [PATCH] gdiplus: Stub GdipSetStringFormatMeasurableCharacterRanges. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/stringformat.c | 11 +++++++++++ include/gdiplusflat.h | 2 ++ include/gdiplustypes.h | 6 ++++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 5660ad7a708..99627e9d165 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 26ce3ed206e..c9361dc504d 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 b36afd40b8c..d10f5ff14e7 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -414,6 +414,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 29616e9d34f..4f97432bc64 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 */ -- 2.11.4.GIT