KOffice – TDE office suite
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.

104 lines
3.9KB

  1. /* This file is part of the KDE project
  2. Copyright 2002 Laurent Montel <montel@kde.org>
  3. Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
  4. Copyright 2002 John Dailey <dailey@vt.edu>
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public
  7. License as published by the Free Software Foundation; either
  8. version 2 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Library General Public License for more details.
  13. You should have received a copy of the GNU Library General Public License
  14. along with this library; see the file COPYING.LIB. If not, write to
  15. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. * Boston, MA 02110-1301, USA.
  17. */
  18. #ifndef KSPREAD_LAYOUT_IFACE_H
  19. #define KSPREAD_LAYOUT_IFACE_H
  20. #include <dcopobject.h>
  21. namespace KSpread
  22. {
  23. class Format;
  24. class LayoutIface : virtual public DCOPObject
  25. {
  26. K_DCOP
  27. public:
  28. LayoutIface(Format *_layout);
  29. virtual void update(){;}
  30. k_dcop:
  31. virtual void setBgColor(const TQString& _c);
  32. virtual void setBgColor(int r,int g,int b);
  33. virtual void setTextColor(const TQString& _c);
  34. virtual void setTextColor(int r,int g,int b);
  35. virtual void setAngle(int angle);
  36. virtual void setVerticalText(bool _vertical);
  37. virtual void setMultiRow(bool _multi);
  38. virtual void setAlign(const TQString &_align);
  39. virtual void setAlignY(const TQString &_alignY);
  40. virtual void setPrefix(const TQString &_prefix);
  41. virtual void setPostfix(const TQString &_postfix);
  42. /** @deprecated use setFormatType*/
  43. virtual void setFormatNumber(const TQString &ft) { setFormatType(ft); }
  44. virtual void setFormatType(const TQString &formatType);
  45. /** @deprecated use getFormatType */
  46. virtual void setPrecision(int _p);
  47. //font
  48. virtual void setTextFontBold( bool _b );
  49. virtual void setTextFontItalic( bool _b );
  50. virtual void setTextFontUnderline( bool _b );
  51. virtual void setTextFontStrike( bool _b );
  52. virtual void setTextFontSize( int _size );
  53. virtual void setTextFontFamily( const TQString& _font );
  54. //border left
  55. virtual void setLeftBorderStyle( const TQString& _style );
  56. virtual void setLeftBorderColor(const TQString& _c);
  57. virtual void setLeftBorderColor(int r,int g,int b);
  58. virtual void setLeftBorderWidth( int _size );
  59. //border right
  60. virtual void setRightBorderStyle( const TQString& _style );
  61. virtual void setRightBorderColor(const TQString& _c);
  62. virtual void setRightBorderColor(int r,int g,int b);
  63. virtual void setRightBorderWidth( int _size );
  64. //border top
  65. virtual void setTopBorderStyle( const TQString& _style );
  66. virtual void setTopBorderColor(const TQString& _c);
  67. virtual void setTopBorderColor(int r,int g,int b);
  68. virtual void setTopBorderWidth( int _size );
  69. //border bottom
  70. virtual void setBottomBorderStyle( const TQString& _style );
  71. virtual void setBottomBorderColor(const TQString& _c);
  72. virtual void setBottomBorderColor(int r,int g,int b);
  73. virtual void setBottomBorderWidth( int _size );
  74. // fall back diagonal
  75. virtual void setFallDiagonalStyle( const TQString& _style );
  76. virtual void setFallDiagonalColor(const TQString& _c);
  77. virtual void setFallDiagonalColor(int r,int g,int b);
  78. virtual void setFallDiagonalWidth( int _size );
  79. //GoUpDiagonal
  80. virtual void setGoUpDiagonalStyle( const TQString& _style );
  81. virtual void setGoUpDiagonalColor(const TQString& _c);
  82. virtual void setGoUpDiagonalColor(int r,int g,int b);
  83. virtual void setGoUpDiagonalWidth( int _size );
  84. //indent
  85. virtual void setIndent( double indent );
  86. //don't print text
  87. virtual void setDontPrintText ( bool _b);
  88. private:
  89. Format *layout;
  90. };
  91. } //namespace KSpread
  92. #endif