Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2e25db04
Commit
2e25db04
authored
Jul 29, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipStringFormatGetGenericTypographic implemented.
parent
65a2274d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
1 deletion
+65
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
stringformat.c
dlls/gdiplus/stringformat.c
+24
-0
stringformat.c
dlls/gdiplus/tests/stringformat.c
+39
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
2e25db04
...
...
@@ -601,7 +601,7 @@
@ stdcall GdipShearMatrix(ptr long long long)
@ stdcall GdipStartPathFigure(ptr)
@ stdcall GdipStringFormatGetGenericDefault(ptr)
@ st
ub GdipStringFormatGetGenericTypographic
@ st
dcall GdipStringFormatGetGenericTypographic(ptr)
@ stub GdipTestControl
@ stdcall GdipTransformMatrixPoints(ptr ptr long)
@ stdcall GdipTransformMatrixPointsI(ptr ptr long)
...
...
dlls/gdiplus/stringformat.c
View file @
2e25db04
...
...
@@ -237,3 +237,27 @@ GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat *format, GpSt
return
Ok
;
}
/*FIXME: add zero tab stops number */
GpStatus
WINGDIPAPI
GdipStringFormatGetGenericTypographic
(
GpStringFormat
**
format
)
{
GpStatus
stat
;
if
(
!
format
)
return
InvalidParameter
;
stat
=
GdipCreateStringFormat
(
StringFormatFlagsNoFitBlackBox
|
StringFormatFlagsLineLimit
|
StringFormatFlagsNoClip
,
LANG_NEUTRAL
,
format
);
if
(
stat
!=
Ok
)
return
stat
;
(
*
format
)
->
digitlang
=
LANG_NEUTRAL
;
(
*
format
)
->
digitsub
=
StringDigitSubstituteUser
;
(
*
format
)
->
trimming
=
StringTrimmingNone
;
(
*
format
)
->
hkprefix
=
HotkeyPrefixNone
;
(
*
format
)
->
align
=
StringAlignmentNear
;
(
*
format
)
->
vertalign
=
StringAlignmentNear
;
return
Ok
;
}
dlls/gdiplus/tests/stringformat.c
View file @
2e25db04
...
...
@@ -130,6 +130,44 @@ static void test_digitsubstitution(void)
expect
(
Ok
,
stat
);
}
static
void
test_getgenerictypographic
(
void
)
{
GpStringFormat
*
format
;
GpStatus
stat
;
INT
flags
;
INT
n
;
StringAlignment
align
,
valign
;
StringTrimming
trimming
;
StringDigitSubstitute
digitsub
;
LANGID
digitlang
;
/* NULL arg */
stat
=
GdipStringFormatGetGenericTypographic
(
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipStringFormatGetGenericTypographic
(
&
format
);
expect
(
Ok
,
stat
);
GdipGetStringFormatFlags
(
format
,
&
flags
);
GdipGetStringFormatAlign
(
format
,
&
align
);
GdipGetStringFormatLineAlign
(
format
,
&
valign
);
GdipGetStringFormatHotkeyPrefix
(
format
,
&
n
);
GdipGetStringFormatTrimming
(
format
,
&
trimming
);
GdipGetStringFormatDigitSubstitution
(
format
,
&
digitlang
,
&
digitsub
);
expect
((
StringFormatFlagsNoFitBlackBox
|
StringFormatFlagsLineLimit
|
StringFormatFlagsNoClip
),
flags
);
expect
(
HotkeyPrefixNone
,
n
);
expect
(
StringAlignmentNear
,
align
);
expect
(
StringAlignmentNear
,
align
);
expect
(
StringTrimmingNone
,
trimming
);
expect
(
StringDigitSubstituteUser
,
digitsub
);
expect
(
LANG_NEUTRAL
,
digitlang
);
stat
=
GdipDeleteStringFormat
(
format
);
expect
(
Ok
,
stat
);
}
START_TEST
(
stringformat
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -145,6 +183,7 @@ START_TEST(stringformat)
test_constructor
();
test_characterrange
();
test_digitsubstitution
();
test_getgenerictypographic
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusflat.h
View file @
2e25db04
...
...
@@ -435,6 +435,7 @@ GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(GpFontCollection*, INT,
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
,
LANGID
,
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipDeleteStringFormat
(
GpStringFormat
*
);
GpStatus
WINGDIPAPI
GdipStringFormatGetGenericDefault
(
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipStringFormatGetGenericTypographic
(
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipGetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
*
);
GpStatus
WINGDIPAPI
GdipGetStringFormatDigitSubstitution
(
GDIPCONST
GpStringFormat
*
,
LANGID
*
,
StringDigitSubstitute
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment