git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed zero coordinate problem in swf_TextSetInfoRecord().
[swftools.git]
/
pdf2swf
/
xpdf
/
Dict.cc
diff --git
a/pdf2swf/xpdf/Dict.cc
b/pdf2swf/xpdf/Dict.cc
index
94ca386
..
5eb077e
100644
(file)
--- a/
pdf2swf/xpdf/Dict.cc
+++ b/
pdf2swf/xpdf/Dict.cc
@@
-2,7
+2,7
@@
//
// Dict.cc
//
//
// Dict.cc
//
-// Copyright 1996 Derek B. Noonburg
+// Copyright 1996-2002 Glyph & Cog, LLC
//
//========================================================================
//
//========================================================================
@@
-10,6
+10,7
@@
#pragma implementation
#endif
#pragma implementation
#endif
+#include <aconf.h>
#include <stddef.h>
#include <string.h>
#include "gmem.h"
#include <stddef.h>
#include <string.h>
#include "gmem.h"
@@
-21,7
+22,8
@@
// Dict
//------------------------------------------------------------------------
// Dict
//------------------------------------------------------------------------
-Dict::Dict() {
+Dict::Dict(XRef *xrefA) {
+ xref = xrefA;
entries = NULL;
size = length = 0;
ref = 1;
entries = NULL;
size = length = 0;
ref = 1;
@@
-66,7
+68,7
@@
GBool Dict::is(char *type) {
Object *Dict::lookup(char *key, Object *obj) {
DictEntry *e;
Object *Dict::lookup(char *key, Object *obj) {
DictEntry *e;
- return (e = find(key)) ? e->val.fetch(obj) : obj->initNull();
+ return (e = find(key)) ? e->val.fetch(xref, obj) : obj->initNull();
}
Object *Dict::lookupNF(char *key, Object *obj) {
}
Object *Dict::lookupNF(char *key, Object *obj) {
@@
-80,26
+82,9
@@
char *Dict::getKey(int i) {
}
Object *Dict::getVal(int i, Object *obj) {
}
Object *Dict::getVal(int i, Object *obj) {
- return entries[i].val.fetch(obj);
+ return entries[i].val.fetch(xref, obj);
}
Object *Dict::getValNF(int i, Object *obj) {
return entries[i].val.copy(obj);
}
}
Object *Dict::getValNF(int i, Object *obj) {
return entries[i].val.copy(obj);
}
-
-void Dict::dumpEntries()
-{
- int t;
- for(t=0;t<size;t++)
- {
- printf("key: %s\n", entries[t].key);
- fflush(stdout);
- {
- printf(" value:\n");
- entries[t].val.print();
- }
- fflush(stdout);
- printf("---\n");
- fflush(stdout);
- }
-}