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.

112 lines
3.4KB

  1. /* This file is part of the KDE project
  2. Copyright 2000, 2003 Laurent Montel <montel@kde.org>
  3. Copyright 2002-2003 Joseph Wenninger <jowenn@kde.org>
  4. Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
  5. Copyright 2002 Ariya Hidayat <ariya@kde.org>
  6. Copyright 2002 John Dailey <dailey@vt.edu>
  7. Copyright 1999 Torben Weis <weis@kde.org>
  8. This library is free software; you can redistribute it and/or
  9. modify it under the terms of the GNU Library General Public
  10. License as published by the Free Software Foundation; either
  11. version 2 of the License, or (at your option) any later version.
  12. This library is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. Library General Public License for more details.
  16. You should have received a copy of the GNU Library General Public License
  17. along with this library; see the file COPYING.LIB. If not, write to
  18. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef KSPREAD_TABLE_IFACE_H
  22. #define KSPREAD_TABLE_IFACE_H
  23. #include <dcopobject.h>
  24. #include <dcopref.h>
  25. #include <tqstring.h>
  26. namespace KSpread
  27. {
  28. class Sheet;
  29. class CellProxy;
  30. class SheetIface : virtual public DCOPObject
  31. {
  32. K_DCOP
  33. public:
  34. SheetIface( Sheet* );
  35. ~SheetIface();
  36. bool processDynamic( const TQCString& fun, const TQByteArray& data,
  37. TQCString& replyType, TQByteArray &replyData );
  38. void sheetNameHasChanged();
  39. k_dcop:
  40. virtual DCOPRef cell( int x, int y );
  41. virtual DCOPRef cell( const TQString& name );
  42. virtual DCOPRef column( int _col );
  43. virtual DCOPRef row( int _row );
  44. virtual TQString name() const;
  45. virtual int maxColumn() const;
  46. virtual int maxRow() const;
  47. virtual bool setSheetName( const TQString & name);
  48. virtual bool insertColumn( int col,int nbCol );
  49. virtual bool insertRow( int row,int nbRow);
  50. virtual void removeColumn( int col,int nbCol );
  51. virtual void removeRow( int row,int nbRow );
  52. virtual bool isHidden()const;
  53. virtual bool areaHasNoContent(TQRect area) const ;
  54. virtual bool areaHasNoComments(TQRect area) const ;
  55. virtual bool showGrid() const;
  56. virtual bool showFormula() const;
  57. virtual bool lcMode() const;
  58. virtual bool autoCalc() const;
  59. virtual bool showColumnNumber() const;
  60. virtual bool hideZero() const;
  61. virtual bool firstLetterUpper() const;
  62. virtual void setShowPageBorders( bool b );
  63. virtual float paperHeight() const;
  64. virtual float paperWidth() const ;
  65. virtual float leftBorder() const;
  66. virtual float rightBorder() const;
  67. virtual float topBorder() const;
  68. virtual float bottomBorder() const;
  69. TQString paperFormatString() const;
  70. TQString headLeft()const;
  71. TQString headMid()const;
  72. TQString headRight()const;
  73. TQString footLeft()const;
  74. TQString footMid()const;
  75. TQString footRight()const;
  76. void setHeaderLeft(const TQString & text);
  77. void setHeaderMiddle(const TQString & text);
  78. void setHeaderRight(const TQString & text);
  79. void setFooterLeft(const TQString & text);
  80. void setFooterMiddle(const TQString & text);
  81. void setFooterRight(const TQString & text);
  82. bool isProtected() const;
  83. private:
  84. Sheet* m_sheet;
  85. CellProxy* m_proxy;
  86. TQCString ident;
  87. };
  88. } // namespace KSpread
  89. #endif