lib
KoLayoutTab.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __kolayouttab_h__
00021 #define __kolayouttab_h__
00022
00023 #include <kolayouttabbase.h>
00024 #include <KoTextFormat.h>
00025
00026 class KoLayoutTab : public KoLayoutTabBase
00027 {
00028 Q_OBJECT
00029
00030 public:
00031 KoLayoutTab( bool withSubSuperScript, QWidget* parent=0, const char* name=0, WFlags fl=0 );
00032 ~KoLayoutTab();
00033
00034 KoTextFormat::VerticalAlignment getSubSuperScript() const;
00035 int getOffsetFromBaseline() const;
00036 double getRelativeTextSize() const;
00037 bool getAutoHyphenation() const;
00038
00039 void setSubSuperScript( KoTextFormat::VerticalAlignment subSuperScript, int offset, double relativeSize );
00040 void setAutoHyphenation( bool state );
00041
00042 signals:
00043 void subSuperScriptChanged();
00044 void offsetChanged( int offset );
00045 void relativeSizeChanged( double relativeSize );
00046 void hyphenationChanged( bool state );
00047
00048 protected slots:
00049 void slotSubSuperScriptChanged( int item );
00050 void slotRelativeSizeChanged( double relativeSize );
00051 };
00052
00053 #endif
|