Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnumeric
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
369
Issues
369
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gnumeric
Commits
b2c3c0d2
Commit
b2c3c0d2
authored
Sep 17, 1999
by
Michael Meeks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole dumps raw escher records.
parent
0ae235db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
plugins/excel/ChangeLog
plugins/excel/ChangeLog
+4
-0
plugins/excel/ms-escher.c
plugins/excel/ms-escher.c
+2
-0
plugins/excel/ole.c
plugins/excel/ole.c
+16
-7
No files found.
plugins/excel/ChangeLog
View file @
b2c3c0d2
1999-09-17 Michael Meeks <michael@nuclecu.unam.mx>
* ole.c (main, do_draw, dump_escher): dump raw data.
1999-09-17 Jody Goldberg <jgoldberg@home.com>
* ms-escher.c (ms_escher_read_ClientAnchor) : Yahoo! figured out
...
...
plugins/excel/ms-escher.c
View file @
b2c3c0d2
...
...
@@ -599,6 +599,8 @@ ms_escher_read_ClientAnchor (MSEscherState * state,
guint8
const
*
data
=
h
->
data
+
common_header_len
;
double
const
zoom
=
sheet
->
last_zoom_factor_used
;
/* Warning this is host specific and only works for Excel */
/* the word at offset 0 always seems to be 2 ?? */
int
i
;
...
...
plugins/excel/ole.c
View file @
b2c3c0d2
...
...
@@ -271,7 +271,7 @@ biff_to_flat_data (const BiffQuery *q, guint8 **data, guint32 *length)
/* ---------------------------- End cut ---------------------------- */
static
void
dump_escher
(
guint8
*
data
,
guint32
len
,
int
level
)
dump_escher
(
guint8
*
data
,
guint32
len
,
gboolean
raw
,
int
level
)
{
ESH_HEADER
*
h
=
esh_header_new
(
data
,
len
);
while
(
esh_header_next
(
h
))
{
...
...
@@ -281,10 +281,17 @@ dump_escher (guint8 *data, guint32 len, int level)
h
->
type
,
get_escher_opcode_name
(
h
->
type
),
h
->
instance
,
h
->
ver
,
h
->
length
);
if
(
h
->
ver
==
0xf
)
/* A container */
dump_escher
(
h
->
data
+
ESH_HEADER_LEN
,
h
->
length
-
ESH_HEADER_LEN
,
level
+
1
);
if
(
h
->
type
==
0xf007
)
{
/* Magic hey */
dump_escher
(
h
->
data
+
ESH_HEADER_LEN
,
h
->
length
-
ESH_HEADER_LEN
,
raw
,
level
+
1
);
else
if
(
h
->
type
==
0xf007
)
{
/* Magic hey */
dump_escher
(
h
->
data
+
ESH_HEADER_LEN
+
36
,
h
->
length
-
ESH_HEADER_LEN
-
36
,
level
+
1
);
h
->
length
-
ESH_HEADER_LEN
-
36
,
raw
,
level
+
1
);
}
else
if
(
raw
)
{
int
l
=
MIN
(
h
->
length
-
ESH_HEADER_LEN
,
len
+
data
-
h
->
data
);
dump
(
h
->
data
+
ESH_HEADER_LEN
,
l
);
}
}
esh_header_destroy
(
h
);
...
...
@@ -420,7 +427,7 @@ do_biff_raw (MsOle *ole)
}
static
void
do_draw
(
MsOle
*
ole
)
do_draw
(
MsOle
*
ole
,
gboolean
raw
)
{
char
*
ptr
;
MsOleDirectory
*
dir
;
...
...
@@ -439,7 +446,7 @@ do_draw (MsOle *ole)
guint
skip
=
biff_to_flat_data
(
q
,
&
data
,
&
len
)
-
1
;
printf
(
"Drawing: '%s' - data %p, length 0x%x
\n
"
,
get_biff_opcode_name
(
q
->
opcode
),
data
,
len
);
dump_escher
(
data
,
len
,
0
);
dump_escher
(
data
,
len
,
raw
,
0
);
while
(
skip
>
0
&&
ms_biff_query_next
(
q
))
skip
--
;
}
}
...
...
@@ -762,7 +769,9 @@ int main (int argc, char **argv)
else
if
(
g_strcasecmp
(
ptr
,
"biffraw"
)
==
0
)
do_biff_raw
(
ole
);
else
if
(
g_strcasecmp
(
ptr
,
"draw"
)
==
0
)
/* Assume its in a BIFF file */
do_draw
(
ole
);
do_draw
(
ole
,
FALSE
);
else
if
(
g_strcasecmp
(
ptr
,
"drawraw"
)
==
0
)
/* Assume its in a BIFF file */
do_draw
(
ole
,
TRUE
);
else
if
(
g_strcasecmp
(
ptr
,
"get"
)
==
0
)
do_get
(
ole
);
else
if
(
g_strcasecmp
(
ptr
,
"put"
)
==
0
)
...
...
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