TDE graphics utilities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kpdocumentmetainfo.h 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. Copyright (c) 2003,2004,2005 Clarence Dang <dang@kde.org>
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions
  6. are met:
  7. 1. Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. 2. Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  13. IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  14. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  16. INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  17. NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  18. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  19. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  20. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  21. THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  22. */
  23. #ifndef KP_DOCUMENT_META_INFO
  24. #define KP_DOCUMENT_META_INFO
  25. #include <tqimage.h>
  26. #include <tqmap.h>
  27. #include <tqstring.h>
  28. #include <tqvaluelist.h>
  29. class TQPoint;
  30. class kpDocumentMetaInfo
  31. {
  32. public:
  33. kpDocumentMetaInfo ();
  34. kpDocumentMetaInfo (const kpDocumentMetaInfo &rhs);
  35. virtual ~kpDocumentMetaInfo ();
  36. private:
  37. bool operator== (const kpDocumentMetaInfo &rhs) const;
  38. bool operator!= (const kpDocumentMetaInfo &rhs) const;
  39. public:
  40. kpDocumentMetaInfo &operator= (const kpDocumentMetaInfo &rhs);
  41. void printDebug (const TQString &prefix) const;
  42. // See TQImage documentation
  43. int dotsPerMeterX () const;
  44. void setDotsPerMeterX (int val);
  45. int dotsPerMeterY () const;
  46. void setDotsPerMeterY (int val);
  47. TQPoint offset () const;
  48. void setOffset (const TQPoint &point);
  49. TQMap <TQImageTextKeyLang, TQString> textMap () const;
  50. TQValueList <TQImageTextKeyLang> textList () const;
  51. TQString text (const TQImageTextKeyLang &itkl) const;
  52. TQString text (const char *key, const char *lang) const;
  53. void setText (const TQImageTextKeyLang &itkl, const TQString &string);
  54. void setText (const char *key, const char *lang, const TQString &string);
  55. private:
  56. // There is no need to maintain binary compatibility at this stage.
  57. // The d-pointer is just so that you can experiment without recompiling
  58. // the kitchen sink.
  59. class kpDocumentMetaInfoPrivate *d;
  60. };
  61. #endif // KP_DOCUMENT_META_INFO