~ubuntu-branches/ubuntu/raring/cups-filters/raring-proposed

« back to all changes in this revision

Viewing changes to filter/pdftopdf/UGooString.h

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// UGooString.h
 
4
//
 
5
// Unicode string
 
6
//
 
7
// Copyright 2005 Albert Astals Cid <aacid@kde.org>
 
8
//
 
9
//========================================================================
 
10
 
 
11
#ifndef UGooString_H
 
12
#define UGooString_H
 
13
 
 
14
#include "CharTypes.h"
 
15
 
 
16
class GooString;
 
17
 
 
18
class UGooString
 
19
{
 
20
public:
 
21
  // Create an unicode string
 
22
  UGooString(Unicode *u, int l);
 
23
 
 
24
  // Create a unicode string from <str>.
 
25
  UGooString(GooString &str);
 
26
 
 
27
  // Copy the unicode string
 
28
  UGooString(const UGooString &str);
 
29
 
 
30
  // Create a unicode string from <str>.
 
31
  UGooString(const char *str);
 
32
 
 
33
  // Destructor.
 
34
  ~UGooString();
 
35
 
 
36
  // Get length.
 
37
  int getLength() const { return length; }
 
38
 
 
39
  // Compare two strings:  -1:<  0:=  +1:>
 
40
  int cmp(UGooString *str) const;
 
41
 
 
42
  // get the unicode
 
43
  Unicode *unicode() const { return s; }
 
44
 
 
45
  // get the const char*
 
46
  char *getCString() const;
 
47
 
 
48
private:
 
49
  void initChar(GooString &str);
 
50
 
 
51
  int length;
 
52
  Unicode *s;
 
53
};
 
54
 
 
55
#endif