home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smpstylewidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-01-07  |  2.1 KB  |  70 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7.  
  8. #ifndef SMPSTYLEWIDGET_H
  9. #define SMPSTYLEWIDGET_H
  10.  
  11. class QEvent;
  12.  
  13. #include "ui_smpstylewidget.h"
  14.  
  15. // #include "styles/styleset.h"
  16.  
  17.  
  18. class SMPStyleWidget : public QWidget, Ui::SMPStyleWidget
  19. {
  20.     Q_OBJECT
  21. public:
  22.     SMPStyleWidget();
  23.     ~SMPStyleWidget();
  24.     
  25.     virtual void changeEvent(QEvent *e);
  26.  
  27.     void show(ParagraphStyle *pstyle, QList<ParagraphStyle> &pstyles, QList<CharStyle> &cstyles, int unitIndex, const QString &defLang);
  28.     void show(QList<ParagraphStyle*> &pstyles, QList<ParagraphStyle> &pstylesAll, QList<CharStyle> &cstyles, int unitIndex, const QString &defLang);
  29.  
  30.     void clearAll();
  31.  
  32.     void languageChange();
  33.  
  34.     void unitChange(double oldRatio, double newRatio, int unitIndex);
  35.  
  36. private:
  37.     bool hasParent_;
  38.     bool parentDropCap_;
  39.  
  40.     void showLineSpacing(QList<ParagraphStyle*> &pstyles);
  41.     void showSpaceAB(QList<ParagraphStyle*> &pstyles, int unitIndex);
  42.     void showDropCap(QList<ParagraphStyle*> &pstyles, int unitIndex);
  43.     void showAlignment(QList<ParagraphStyle*> &pstyles);
  44.     void showOpticalMargin(QList<ParagraphStyle*> &pstyles);
  45.     void showMinSpace(QList<ParagraphStyle*> &pstyles);
  46.     void showMinGlyphExt(QList<ParagraphStyle*> &pstyles);
  47.     void showMaxGlyphExt(QList<ParagraphStyle*> &pstyles);
  48.     void showTabs(QList<ParagraphStyle*> &pstyles, int unitIndex);
  49.     void showCStyle(QList<ParagraphStyle*> &pstyles, QList<CharStyle> &cstyles, const QString &defLang, int unitIndex);
  50.     void showParent(QList<ParagraphStyle*> &pstyles);
  51.     void setOpticalMargins(int o, bool inhO=false, const ParagraphStyle *parent=NULL);
  52.  
  53.     friend class SMParagraphStyle;
  54.  
  55. private slots:
  56.     void slotLineSpacingModeChanged(int);
  57.     void slotDropCap(bool isOn);
  58.     void slotParentDropCap();
  59.     void slotDefaultOpticalMargins();
  60.     void slotParentOpticalMargins();
  61. //    void slotUpdateOpticalMarginsFromCheckBoxes(int);
  62.  
  63.  
  64. signals:
  65.     void useParentDropCap();
  66.     void useParentOptMargins();
  67. };
  68.  
  69. #endif
  70.