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.

92 lines
2.4KB

  1. // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
  2. /* This file is part of the KDE project
  3. Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. * Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef PROPERTYEDITOR_H
  18. #define PROPERTYEDITOR_H
  19. #include <tqtabdialog.h>
  20. #include <kspread_generalProperty.h>
  21. class KCommand;
  22. namespace KSpread
  23. {
  24. class EmbeddedObject;
  25. class Sheet;
  26. class Doc;
  27. // class KPrPenStyleWidget;
  28. // class KPrBrushProperty;
  29. // class KPrRectProperty;
  30. // class KPrPolygonProperty;
  31. // class KPrPieProperty;
  32. // class KPrPictureProperty;
  33. // class KPrTextProperty;
  34. // class KPrObjectProperties;
  35. class PropertyEditor : public TQTabDialog
  36. {
  37. Q_OBJECT
  38. public:
  39. PropertyEditor( TQWidget *parent = 0, const char *name = 0, Sheet *page = 0, Doc *doc = 0 );
  40. ~PropertyEditor();
  41. KCommand * getCommand();
  42. private slots:
  43. void slotDone();
  44. private:
  45. void setupTabs();
  46. // void setupTabPen( bool configureLineEnds );
  47. // void setupTabBrush();
  48. // void setupTabRect();
  49. // void setupTabPolygon();
  50. // void setupTabPie();
  51. // void setupTabPicture();
  52. // void setupTabText();
  53. void setupTabGeneral();
  54. GeneralProperty::GeneralValue getGeneralValue();
  55. Sheet *m_page;
  56. Doc *m_doc;
  57. TQPtrList<EmbeddedObject> m_objects;
  58. // KPrPenStyleWidget *m_penProperty;
  59. // KPrBrushProperty *m_brushProperty;
  60. // KPrRectProperty *m_rectProperty;
  61. // KPrPolygonProperty *m_polygonProperty;
  62. // KPrPieProperty *m_pieProperty;
  63. // KPrPictureProperty *m_pictureProperty;
  64. // KPrTextProperty *m_textProperty;
  65. GeneralProperty *m_generalProperty;
  66. //KPrObjectProperties *m_objectProperties;
  67. signals:
  68. void propertiesOk();
  69. };
  70. }
  71. #endif /* PROPERTYEDITOR_H */