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
4d74e1db
Commit
4d74e1db
authored
Feb 05, 2006
by
Kevin Koltzau
Committed by
Alexandre Julliard
Feb 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Add method to stream data based on a range.
parent
374106d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
editor.h
dlls/riched20/editor.h
+1
-0
writer.c
dlls/riched20/writer.c
+16
-10
No files found.
dlls/riched20/editor.h
View file @
4d74e1db
...
@@ -241,4 +241,5 @@ extern HANDLE me_heap;
...
@@ -241,4 +241,5 @@ extern HANDLE me_heap;
extern
void
DoWrap
(
ME_TextEditor
*
editor
);
extern
void
DoWrap
(
ME_TextEditor
*
editor
);
/* writer.c */
/* writer.c */
LRESULT
ME_StreamOutRange
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
int
nStart
,
int
nTo
,
EDITSTREAM
*
stream
);
LRESULT
ME_StreamOut
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
EDITSTREAM
*
stream
);
LRESULT
ME_StreamOut
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
EDITSTREAM
*
stream
);
dlls/riched20/writer.c
View file @
4d74e1db
...
@@ -810,18 +810,10 @@ ME_StreamOutText(ME_TextEditor *editor, int nStart, int nChars, DWORD dwFormat)
...
@@ -810,18 +810,10 @@ ME_StreamOutText(ME_TextEditor *editor, int nStart, int nChars, DWORD dwFormat)
LRESULT
LRESULT
ME_StreamOut
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
EDITSTREAM
*
stream
)
ME_StreamOut
Range
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
int
nStart
,
int
nTo
,
EDITSTREAM
*
stream
)
{
{
int
nStart
,
nTo
;
ME_StreamOutInit
(
editor
,
stream
);
ME_StreamOutInit
(
editor
,
stream
);
if
(
dwFormat
&
SFF_SELECTION
)
ME_GetSelection
(
editor
,
&
nStart
,
&
nTo
);
else
{
nStart
=
0
;
nTo
=
-
1
;
}
if
(
nTo
==
-
1
)
if
(
nTo
==
-
1
)
{
{
nTo
=
ME_GetTextLength
(
editor
);
nTo
=
ME_GetTextLength
(
editor
);
...
@@ -830,7 +822,7 @@ ME_StreamOut(ME_TextEditor *editor, DWORD dwFormat, EDITSTREAM *stream)
...
@@ -830,7 +822,7 @@ ME_StreamOut(ME_TextEditor *editor, DWORD dwFormat, EDITSTREAM *stream)
nTo
++
;
nTo
++
;
}
}
TRACE
(
"from %d to %d
\n
"
,
nStart
,
nTo
);
TRACE
(
"from %d to %d
\n
"
,
nStart
,
nTo
);
if
(
dwFormat
&
SF_RTF
)
if
(
dwFormat
&
SF_RTF
)
ME_StreamOutRTF
(
editor
,
nStart
,
nTo
-
nStart
,
dwFormat
);
ME_StreamOutRTF
(
editor
,
nStart
,
nTo
-
nStart
,
dwFormat
);
else
if
(
dwFormat
&
SF_TEXT
||
dwFormat
&
SF_TEXTIZED
)
else
if
(
dwFormat
&
SF_TEXT
||
dwFormat
&
SF_TEXTIZED
)
...
@@ -839,3 +831,17 @@ ME_StreamOut(ME_TextEditor *editor, DWORD dwFormat, EDITSTREAM *stream)
...
@@ -839,3 +831,17 @@ ME_StreamOut(ME_TextEditor *editor, DWORD dwFormat, EDITSTREAM *stream)
ME_StreamOutFlush
(
editor
);
ME_StreamOutFlush
(
editor
);
return
ME_StreamOutFree
(
editor
);
return
ME_StreamOutFree
(
editor
);
}
}
LRESULT
ME_StreamOut
(
ME_TextEditor
*
editor
,
DWORD
dwFormat
,
EDITSTREAM
*
stream
)
{
int
nStart
,
nTo
;
if
(
dwFormat
&
SFF_SELECTION
)
ME_GetSelection
(
editor
,
&
nStart
,
&
nTo
);
else
{
nStart
=
0
;
nTo
=
-
1
;
}
return
ME_StreamOutRange
(
editor
,
dwFormat
,
nStart
,
nTo
,
stream
);
}
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