Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
41a3b734
Commit
41a3b734
authored
Sep 12, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement PersistStreamInit_IsDirty when in edit mode.
parent
006d9f94
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
editor.c
dlls/mshtml/editor.c
+12
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
persist.c
dlls/mshtml/persist.c
+1
-1
No files found.
dlls/mshtml/editor.c
View file @
41a3b734
...
@@ -1163,3 +1163,15 @@ void init_editor(HTMLDocument *This)
...
@@ -1163,3 +1163,15 @@ void init_editor(HTMLDocument *This)
set_ns_fontname
(
This
->
nscontainer
,
"Times New Roman"
);
set_ns_fontname
(
This
->
nscontainer
,
"Times New Roman"
);
}
}
HRESULT
editor_is_dirty
(
HTMLDocument
*
This
)
{
PRBool
modified
;
if
(
!
This
->
nscontainer
||
!
This
->
nscontainer
->
editor
)
return
S_FALSE
;
nsIEditor_GetDocumentModified
(
This
->
nscontainer
->
editor
,
&
modified
);
return
modified
?
S_OK
:
S_FALSE
;
}
dlls/mshtml/mshtml_private.h
View file @
41a3b734
...
@@ -456,6 +456,7 @@ HRESULT editor_exec_copy(HTMLDocument*,DWORD,VARIANT*,VARIANT*);
...
@@ -456,6 +456,7 @@ HRESULT editor_exec_copy(HTMLDocument*,DWORD,VARIANT*,VARIANT*);
HRESULT
editor_exec_cut
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_cut
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_paste
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_paste
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
void
handle_edit_load
(
HTMLDocument
*
This
);
void
handle_edit_load
(
HTMLDocument
*
This
);
HRESULT
editor_is_dirty
(
HTMLDocument
*
);
extern
DWORD
mshtml_tls
;
extern
DWORD
mshtml_tls
;
...
...
dlls/mshtml/persist.c
View file @
41a3b734
...
@@ -600,7 +600,7 @@ static HRESULT WINAPI PersistStreamInit_IsDirty(IPersistStreamInit *iface)
...
@@ -600,7 +600,7 @@ static HRESULT WINAPI PersistStreamInit_IsDirty(IPersistStreamInit *iface)
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
usermode
==
EDITMODE
)
if
(
This
->
usermode
==
EDITMODE
)
FIXME
(
"Unimplemented in edit mode
\n
"
);
return
editor_is_dirty
(
This
);
return
S_FALSE
;
return
S_FALSE
;
}
}
...
...
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