Scribus
Open source desktop publishing at your fingertips
StoryEditor Class Reference
Inheritance diagram for StoryEditor:
Collaboration diagram for StoryEditor:

Public Slots

void newStyle (const QString &)
 
void newAlign (int st)
 
void newTxFill (int c, int s)
 
void newTxStroke (int c, int s)
 
void newTxFont (const QString &f)
 
void newTxSize (double s)
 
void newTxStyle (int s)
 

Signals

void DocChanged ()
 
void EditSt ()
 

Public Member Functions

 StoryEditor (QWidget *parent)
 
virtual void changeEvent (QEvent *e)
 
void setCurrentDocumentAndItem (ScribusDoc *doc=NULL, PageItem *item=NULL)
 
void setSpellActive (bool ssa)
 
ScribusDoccurrentDocument () const
 
PageItemcurrentItem () const
 

Public Attributes

SEditorEditor
 
bool activFromApp
 
MenuManagerseMenuMgr
 
QMap< QString, QPointer< ScrAction > > seActions
 

Protected Slots

void setBackPref ()
 
void setFontPref ()
 
void newTxScale ()
 
void newTxScaleV ()
 
void newTxKern (double s)
 
void newShadowOffs (double x, double y)
 
void newTxtOutline (double o)
 
void newTxtUnderline (double p, double w)
 
void newTxtStrike (double p, double w)
 
void updateProps ()
 
void updateProps (QTextCursor &cur)
 
void updateProps (int p, int ch)
 
void changeStyleSB (int pa, const QString &)
 
void changeStyle ()
 
void updateStatus ()
 
void Do_leave ()
 
void Do_leave2 ()
 
void Do_saveDocument ()
 Saves the document with editation continued. Signal called from menu.
 
bool Do_new ()
 
void slotFileRevert ()
 
void Do_selectAll ()
 
void Do_copy ()
 
void Do_paste ()
 
void Do_cut ()
 
void Do_del ()
 
void Do_insSp ()
 
void insertSampleText ()
 Insert a Lorem Ipsum (from dialog) into current position inthe SE.
 
void Do_fontPrev ()
 
void CopyAvail (bool u)
 
void PasteAvail ()
 
void updateTextFrame ()
 
void SearchText ()
 
void modifiedText ()
 
void LoadTextFile ()
 
void SaveTextFile ()
 
void setSmart (bool)
 
void languageChange ()
 
void specialActionKeyEvent (int unicodevalue)
 
void slot_insertSpecialChar ()
 Slot to insert special characters from charSelect widget.
 
void slot_insertUserSpecialChar (QChar, QString)
 
void doubleClick (int para, int pos)
 

Protected Member Functions

void initActions ()
 
void updateUnicodeActions ()
 
void buildMenus ()
 
void buildGUI ()
 
void connectSignals ()
 
void disconnectSignals ()
 
void loadPrefs ()
 Loading the preferences (position). It's in separate method due the 2 constructors.
 
void savePrefs ()
 Saving the preferences (position).
 
void showEvent (QShowEvent *)
 
void hideEvent (QHideEvent *)
 
void closeEvent (QCloseEvent *)
 
void keyPressEvent (QKeyEvent *e)
 
bool eventFilter (QObject *ob, QEvent *ev)
 

Protected Attributes

CharSelectcharSelect
 Special Characters dialog. It uses a little bit ugly method to operate with. It's a duplication of the main window's charPalette due the lack of setParent() in qt3 and a ugly behaviour of the reparent(). charSelect is created as a copy of the charPalette. More...
 
bool charSelectUsed
 True when there were some glyphs inserted via charSelect.
 
QHBoxLayout * StoryEd2Layout
 
QGridLayout * ButtonGroup1Layout
 
QGridLayout * ButtonGroup2Layout
 
PrefsManagerprefsManager
 
PrefsContextprefs
 
QStringList unicodeCharActionNames
 
QPixmap noIcon
 
QToolBar * FileTools
 
SToolBFontFontTools
 
SToolBAlignAlignTools
 
SToolBColorFFillTools
 
SToolBColorSStrokeTools
 
SToolBStyleStyleTools
 
QSplitter * EdSplit
 
SideBarEditorBar
 
QFrame * ButtonGroup1
 
QFrame * ButtonGroup2
 
QLabel * WordCT1
 
QLabel * WordCT3
 
QLabel * ParCT
 
QLabel * ParC
 
QLabel * WordCT
 
QLabel * WordC
 
QLabel * CharCT
 
QLabel * CharC
 
QLabel * WordCT2
 
QLabel * WordC2
 
QLabel * CharCT2
 
QLabel * CharC2
 
bool m_spellActive
 

Friends

class SEditor
 

Member Function Documentation

void StoryEditor::doubleClick ( int  para,
int  position 
)
protectedslot

10/12/2004 - pv - #1203: wrong selection on double click Catch the double click signal - cut the wrong selection (with whitespaces on the tail) - select only one word - return controlling back to story editor - have rest

Member Data Documentation

CharSelect* StoryEditor::charSelect
protected

Special Characters dialog. It uses a little bit ugly method to operate with. It's a duplication of the main window's charPalette due the lack of setParent() in qt3 and a ugly behaviour of the reparent(). charSelect is created as a copy of the charPalette.

Author
Petr Vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo

The documentation for this class was generated from the following files: