diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:47:59 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:47:59 -0600 |
commit | c2637a0da6d9a1c8626ca39f8451ab3b7cda487a (patch) | |
tree | be38034f085e8be24f14f329f87a611d319e6259 /kviewshell/plugins/djvu/libdjvu/DjVuToPS.cpp | |
parent | 3fd343f2c6b0545bd750b2939c74be3834b13274 (diff) | |
download | tdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.tar.gz tdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kviewshell/plugins/djvu/libdjvu/DjVuToPS.cpp')
-rw-r--r-- | kviewshell/plugins/djvu/libdjvu/DjVuToPS.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuToPS.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuToPS.cpp index 618cb108..d18c7801 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuToPS.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DjVuToPS.cpp @@ -953,14 +953,14 @@ print_fg_2layer(ByteStream &str, if (options.get_color()) { write(str,"/%d %d %d %f %f %f c\n", - blit->tqshapeno, + blit->shapeno, blit->left-currentx, blit->bottom-currenty, ramp[p.r]/255.0, ramp[p.g]/255.0, ramp[p.b]/255.0); } else { write(str,"/%d %d %d %f c\n", - blit->tqshapeno, + blit->shapeno, blit->left-currentx, blit->bottom-currenty, ramp[GRAY(p.r, p.g, p.b)]/255.0); } @@ -968,7 +968,7 @@ print_fg_2layer(ByteStream &str, else { write(str,"/%d %d %d s\n", - blit->tqshapeno, + blit->shapeno, blit->left-currentx, blit->bottom-currenty); } currentx = blit->left; @@ -1047,8 +1047,8 @@ print_fg_3layer(ByteStream &str, { JB2Blit *blit = jb2->get_blit(current_blit); GRect rect2(blit->left, blit->bottom, - jb2->get_tqshape(blit->tqshapeno).bits->columns(), - jb2->get_tqshape(blit->tqshapeno).bits->rows()); + jb2->get_shape(blit->shapeno).bits->columns(), + jb2->get_shape(blit->shapeno).bits->rows()); if (rect2.intersect(rect1,rect2)) break; } @@ -1087,12 +1087,12 @@ print_fg_3layer(ByteStream &str, { JB2Blit *blit = jb2->get_blit(current_blit); GRect rect2(blit->left, blit->bottom, - jb2->get_tqshape(blit->tqshapeno).bits->columns(), - jb2->get_tqshape(blit->tqshapeno).bits->rows()); + jb2->get_shape(blit->shapeno).bits->columns(), + jb2->get_shape(blit->shapeno).bits->rows()); if (rect2.intersect(rect1,rect2)) { write(str,"/%d %d %d s\n", - blit->tqshapeno, + blit->shapeno, blit->left-currentx, blit->bottom-currenty); currentx = blit->left; currenty = blit->bottom; @@ -1113,27 +1113,27 @@ print_fg(ByteStream &str, GP<JB2Image> jb2=dimg->get_fgjb(); if (! jb2) return; int num_blits = jb2->get_blit_count(); - int num_tqshapes = jb2->get_tqshape_count(); - unsigned char *dict_tqshapes = 0; + int num_shapes = jb2->get_shape_count(); + unsigned char *dict_shapes = 0; unsigned char *blit_list = 0; - GPBuffer<unsigned char> gdict_tqshapes(dict_tqshapes,num_tqshapes); + GPBuffer<unsigned char> gdict_shapes(dict_shapes,num_shapes); GPBuffer<unsigned char> gblit_list(blit_list,num_blits); - for(int i=0; i<num_tqshapes; i++) + for(int i=0; i<num_shapes; i++) { - dict_tqshapes[i]=0; + dict_shapes[i]=0; } for(int current_blit=0; current_blit<num_blits; current_blit++) { JB2Blit *blit = jb2->get_blit(current_blit); - JB2Shape *tqshape = & jb2->get_tqshape(blit->tqshapeno); + JB2Shape *shape = & jb2->get_shape(blit->shapeno); blit_list[current_blit] = 0; - if (! tqshape->bits) + if (! shape->bits) continue; GRect rect2(blit->left, blit->bottom, - tqshape->bits->columns(), tqshape->bits->rows()); + shape->bits->columns(), shape->bits->rows()); if (rect2.intersect(rect2, prn_rect)) { - dict_tqshapes[blit->tqshapeno] = 1; + dict_shapes[blit->shapeno] = 1; blit_list[current_blit] = 1; } } @@ -1152,13 +1152,13 @@ print_fg(ByteStream &str, "0 1 1 {Encoding exch /.notdef put} for \n" "CharStrings begin\n" "/.notdef {} def\n", - num_tqshapes+1); - for(int current_tqshape=0; current_tqshape<num_tqshapes; current_tqshape++) + num_shapes+1); + for(int current_shape=0; current_shape<num_shapes; current_shape++) { - if (dict_tqshapes[current_tqshape]) + if (dict_shapes[current_shape]) { - JB2Shape *tqshape = & jb2->get_tqshape(current_tqshape); - GP<GBitmap> bitmap = tqshape->bits; + JB2Shape *shape = & jb2->get_shape(current_shape); + GP<GBitmap> bitmap = shape->bits; int rows = bitmap->rows(); int columns = bitmap->columns(); int nbytes = (columns+7)/8*rows+1; @@ -1173,7 +1173,7 @@ print_fg(ByteStream &str, GPBuffer<unsigned char> gs_start(s_start,nbytes); unsigned char *s_ascii; GPBuffer<unsigned char> gs_ascii(s_ascii,nbytes*2); - write(str,"/%d {",current_tqshape); + write(str,"/%d {",current_shape); unsigned char *s = s_start; for(int current_row=0; current_row<rows; current_row++) @@ -1942,8 +1942,8 @@ print_txt_sub(DjVuTXT &txt, DjVuTXT::Zone &zone, default: separator = 0; break; } - // Zone tqchildren - if (zone.tqchildren.isempty()) + // Zone children + if (zone.children.isempty()) { const char *data = (const char*)txt.textUTF8 + zone.text_start; int length = zone.text_length; @@ -1968,8 +1968,8 @@ print_txt_sub(DjVuTXT &txt, DjVuTXT::Zone &zone, message.format("%d F\n",zone.rect.ymax-zone.rect.ymin); out.write((const char*)message,message.length()); } - for (GPosition pos=zone.tqchildren; pos; ++pos) - print_txt_sub(txt, zone.tqchildren[pos], out,lastx,lasty); + for (GPosition pos=zone.children; pos; ++pos) + print_txt_sub(txt, zone.children[pos], out,lastx,lasty); } } |