|
void | selectionChanged () |
|
void | itemSelection_ToggleLock () |
|
void | itemSelection_ToggleSizeLock () |
|
void | itemSelection_ToggleImageShown () |
|
void | itemSelection_TogglePrintEnabled () |
|
void | itemSelection_ToggleBookMark (Selection *customSelection=0) |
|
void | itemSelection_ToggleAnnotation (Selection *customSelection=0) |
|
void | itemSelection_Transform (int nrOfCopies, QTransform matrix, int basepoint) |
|
void | itemSelection_ChangePreviewResolution (int id) |
|
void | allItems_ChangePreviewResolution (int id) |
| Change display quality of all images in document. More...
|
|
void | item_setFrameShape (PageItem *item, int frameType, int count, double *points) |
|
void | itemSelection_ClearItem (Selection *customSelection=0, bool useWarning=false) |
|
void | itemSelection_TruncateItem (Selection *customSelection=0) |
|
void | itemSelection_DeleteItem (Selection *customSelection=0, bool forceDeletion=false) |
| Delete the items in the current selection. When force is true, we do not warn the user and make SE happy too. Force is used from. More...
|
|
void | itemSelection_SetItemTextReversed (bool reversed, Selection *customSelection=0) |
|
void | itemSelection_SetItemFillTransparency (double t) |
|
void | itemSelection_SetItemLineTransparency (double t) |
|
void | itemSelection_SetItemFillBlend (int t) |
|
void | itemSelection_SetItemLineBlend (int t) |
|
void | itemSelection_SetLineGradient (VGradient &newGradient, Selection *customSelection=0) |
|
void | itemSelection_SetFillGradient (VGradient &newGradient, Selection *customSelection=0) |
|
void | itemSelection_SetMaskGradient (VGradient &newGradient, Selection *customSelection=0) |
|
void | itemSelection_SetOverprint (bool overprint, Selection *customSelection=0) |
|
void | itemSelection_ApplyImageEffects (ScImageEffectList &newEffectList, Selection *customSelection=0) |
|
void | itemSelection_FlipH () |
|
void | itemSelection_FlipV () |
|
void | itemSelection_Rotate (double angle, Selection *customSelection=0) |
|
void | itemSelection_DoHyphenate () |
|
void | itemSelection_DoDeHyphenate () |
|
void | itemSelection_UnlinkTextFrameWithText (Selection *customSelection=0, bool cutText=false) |
|
void | itemSelection_UnlinkTextFrameWithTextCut (Selection *customSelection=0) |
|
void | itemSelection_SendToLayer (int layerID) |
|
void | itemSelection_SetImageOffset (double x, double y, Selection *customSelection=0) |
|
void | itemSelection_SetImageScale (double x, double y, Selection *customSelection=0) |
|
void | itemSelection_SetImageScaleAndOffset (double ox, double oy, double sx, double sy, Selection *customSelection=0) |
|
void | itemSelection_SetImageRotation (double rot, Selection *customSelection=0) |
|
void | itemSelection_AlignItemLeft (int i, double newX, AlignMethod how) |
|
void | itemSelection_AlignItemRight (int i, double newX, AlignMethod how) |
|
void | itemSelection_AlignItemTop (int i, double newY, AlignMethod how) |
|
void | itemSelection_AlignItemBottom (int i, double newY, AlignMethod how) |
|
void | itemSelection_AlignLeftOut (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignRightOut (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignBottomIn (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignRightIn (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignBottomOut (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignCenterHor (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignLeftIn (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignCenterVer (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignTopOut (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | itemSelection_AlignTopIn (AlignTo currAlignTo, AlignMethod currAlignMethod, double guidePosition) |
|
void | sendItemSelectionToBack () |
|
void | bringItemSelectionToFront () |
|
void | itemSelection_LowerItem () |
|
void | itemSelection_RaiseItem () |
|
void | itemSelection_DistributeDistH (bool usingDistance=false, double distance=0.0, bool reverseDistribute=false) |
|
void | itemSelection_DistributeAcrossPage (bool useMargins=false) |
|
void | itemSelection_DistributeRight () |
|
void | itemSelection_DistributeBottom () |
|
void | itemSelection_DistributeCenterH () |
|
void | itemSelection_DistributeDistV (bool usingDistance=false, double distance=0.0, bool reverseDistribute=false) |
|
void | itemSelection_DistributeDownPage (bool useMargins=false) |
|
void | itemSelection_DistributeLeft () |
|
void | itemSelection_DistributeCenterV () |
|
void | itemSelection_DistributeTop () |
|
void | itemSelection_SwapLeft () |
|
void | itemSelection_SwapRight () |
|
void | itemSelection_MultipleDuplicate (ItemMultipleDuplicateData &) |
|
void | itemSelection_UniteItems (Selection *customSelection=0) |
|
void | itemSelection_SplitItems (Selection *customSelection=0) |
|
void | itemSelection_AdjustFrametoImageSize (Selection *customSelection=0) |
|
void | itemSelection_AdjustImagetoFrameSize (Selection *customSelection=0) |
|
void | itemSelection_AdjustFrameHeightToText (Selection *customSelection=0) |
|
void | itemSelection_ApplyArrowHead (int startArrowID=-1, int endArrowID=-1, Selection *customSelection=0) |
| startArrowID or endArrowID of -1 mean not applying a selection at this point.
|
|
void | itemSelection_ApplyArrowScale (int startArrowSc, int endArrowSc, Selection *customSelection) |
|
void | itemSelection_SetItemPen (QString farbe) |
|
void | itemSelection_SetItemPenShade (int sha) |
|
void | itemSelection_SetItemGradStroke (int typ) |
|
void | itemSelection_SetItemBrush (QString farbe) |
|
void | itemSelection_SetItemBrushShade (int sha) |
|
void | itemSelection_SetItemGradMask (int typ) |
|
void | itemSelection_SetItemGradFill (int typ) |
|
void | itemSelection_SetItemPatternFill (QString pattern) |
|
void | itemSelection_SetItemPatternProps (double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY, bool mirrorX, bool mirrorY) |
|
void | itemSelection_SetItemStrokePattern (QString pattern) |
|
void | itemSelection_SetItemStrokePatternProps (double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY, double space, bool mirrorX, bool mirrorY) |
|
void | itemSelection_SetItemStrokePatternType (bool type) |
|
void | itemSelection_SetItemPatternMask (QString pattern) |
|
void | itemSelection_SetItemPatternMaskProps (double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY, bool mirrorX, bool mirrorY) |
|
void | itemSelection_InsertTableRows () |
|
void | itemSelection_InsertTableColumns () |
|
void | itemSelection_DeleteTableRows () |
|
void | itemSelection_DeleteTableColumns () |
|
void | itemSelection_MergeTableCells () |
|
void | itemSelection_SplitTableCells () |
|
void | itemSelection_SetTableRowHeights () |
|
void | itemSelection_SetTableColumnWidths () |
|
void | itemSelection_DistributeTableRowsEvenly () |
|
void | itemSelection_DistributeTableColumnsEvenly () |
|
void | itemSelection_AdjustFrameToTable () |
|
void | itemSelection_AdjustTableToFrame () |
|
void | undoRedoBegin () |
|
void | undoRedoDone () |
|
void | updatePic () |
|
void | updatePict (QString name) |
|
void | updatePictDir (QString name) |
|
void | removePict (QString name) |
|
bool | updateMarks (bool updateNotesMarks=false) |
|
void | itemSelection_UnWeld () |
|
void | itemSelection_Weld () |
|
void | itemSelection_EditWeld () |
|
void | restartAutoSaveTimer () |
|
|
| ScribusDoc (const QString &docName, int unitIndex, const PageSize &pagesize, const MarginStruct &margins, const DocPagesSetup &pagesSetup) |
|
void | init () |
|
bool | inAnEditMode () const |
|
bool | inASpecialEditMode () const |
|
QList< PageItem * > | getAllItems (QList< PageItem * > &items) |
|
QList< PageItem * > * | parentGroup (PageItem *item, QList< PageItem * > *list) |
|
void | setup (const int, const int, const int, const int, const int, const QString &, const QString &) |
|
void | setLoading (const bool) |
|
bool | isLoading () const |
|
void | setModified (const bool) |
|
bool | isModified () const |
|
void | setPage (double w, double h, double t, double l, double r, double b, double sp, double ab, bool atf, int fp) |
|
void | resetPage (int fp, MarginStruct *newMargins=0) |
|
ScribusView * | view () const |
| Return the view associated with the document.
|
|
ScribusMainWindow * | scMW () const |
|
void | setGUI (bool hasgui, ScribusMainWindow *mw, ScribusView *view) |
|
const ScGuardedPtr< ScribusDoc > & | guardedPtr () const |
| Return the guarded object associated with the document.
|
|
UpdateManager * | updateManager () |
|
MassObservable< PageItem * > * | itemsChanged () |
|
MassObservable< ScPage * > * | pagesChanged () |
|
MassObservable< QRectF > * | regionsChanged () |
|
void | invalidateAll () |
|
void | invalidateLayer (int layerID) |
|
void | invalidateRegion (QRectF region) |
|
MarginStruct * | scratch () |
|
MarginStruct * | bleeds () |
|
MarginStruct & | bleedsVal () |
|
MarginStruct * | margins () |
|
MarginStruct & | marginsVal () |
|
double | pageGapHorizontal () const |
|
double | pageGapVertical () const |
|
void | setPageGapHorizontal (double h) |
|
void | setPageGapVertical (double v) |
|
const QList< PageSet > & | pageSets () const |
|
void | setPageSetFirstPage (int layout, int fp) |
|
void | clearPageSets () |
|
void | appendToPageSets (const PageSet &ps) |
|
void | setPaperColor (const QColor &c) |
|
const QColor & | paperColor () const |
|
int | hyphMinimumWordLength () const |
|
int | hyphConsecutiveLines () const |
|
const QString & | hyphLanguage () const |
|
bool | hyphAutomatic () const |
|
bool | hyphAutoCheck () const |
|
void | setHyphMinimumWordLength (int i) |
|
void | setHyphConsecutiveLines (int i) |
|
void | setHyphLanguage (const QString &s) |
|
void | setHyphAutomatic (bool b) |
|
void | setHyphAutoCheck (bool b) |
|
bool | autoSave () const |
|
int | autoSaveTime () const |
|
bool | autoSaveClockDisplay () const |
|
void | setAutoSave (bool b) |
|
void | setAutoSaveTime (int i) |
|
PDFOptions & | pdfOptions () |
|
ObjAttrVector & | itemAttributes () |
|
void | setItemAttributes (ObjAttrVector &oav) |
|
void | clearItemAttributes () |
|
void | appendToItemAttributes (const ObjectAttribute &oa) |
|
ToCSetupVector & | tocSetups () |
|
void | setTocSetups (ToCSetupVector &tsv) |
|
void | clearTocSetups () |
|
void | appendToTocSetups (const ToCSetup &ts) |
|
void | setArrowStyles (QList< ArrowDesc > &as) |
|
QList< ArrowDesc > & | arrowStyles () |
|
void | appendToArrowStyles (const struct ArrowDesc &as) |
|
const bool | marginColored () const |
|
void | setMarginColored (bool b) |
|
QMap< QString, CheckerPrefs > & | checkerProfiles () |
|
void | setCheckerProfiles (const QMap< QString, CheckerPrefs > &cl) |
|
void | set1CheckerProfile (const QString profileName, const struct CheckerPrefs &cs) |
|
void | clearCheckerProfiles () |
|
const QString & | curCheckProfile () const |
|
void | setCurCheckProfile (const QString &s) |
|
int | pageOrientation () const |
|
void | setPageOrientation (int o) |
|
int | pagePositioning () const |
|
void | setPagePositioning (int p) |
|
double | pageHeight () const |
|
double | pageWidth () const |
|
const QString & | pageSize () const |
|
void | setPageHeight (double h) |
|
void | setPageWidth (double w) |
|
void | setPageSize (const QString &s) |
|
int | marginPreset () const |
|
void | setMarginPreset (int mp) |
|
TypoPrefs & | typographicPrefs () |
|
GuidesPrefs & | guidesPrefs () |
|
ItemToolPrefs & | itemToolPrefs () |
|
OperatorToolPrefs & | opToolPrefs () |
|
ColorPrefs & | colorPrefs () |
|
CMSData & | cmsSettings () |
|
DocumentInformation & | documentInfo () |
|
void | setDocumentInfo (DocumentInformation di) |
|
DocumentSectionMap & | sections () |
|
void | setSections (DocumentSectionMap dsm) |
|
const QMap< QString, int > & | usedFonts () |
|
const ApplicationPrefs & | prefsData () |
|
void | setNewPrefs (const ApplicationPrefs &prefsData, const ApplicationPrefs &oldPrefsData, bool resizePages, bool resizeMasterPages, bool resizePageMargins, bool resizeMasterPageMargins) |
|
ScPage * | addPage (const int pageNumber, const QString &masterPageName=QString::null, const bool addAutoFrame=false) |
|
void | deletePage (const int) |
|
ScPage * | addMasterPage (const int, const QString &) |
| Add a master page with this function, do not use addPage.
|
|
void | deleteMasterPage (const int) |
|
void | rebuildMasterNames (void) |
| Rebuild master name list.
|
|
void | replaceMasterPage (const QString &oldMasterPage) |
| Replace a master page by default one.
|
|
bool | renameMasterPage (const QString &oldPageName, const QString &newPageName) |
| Rename a master page.
|
|
void | createDefaultMasterPages () |
| Create the default master pages based on the layout selected by the user, ie, Normal, Normal Left, etc.
|
|
void | createNewDocPages (int pageCount) |
| Create the requested pages in a new document, run after createDefaultMasterPages()
|
|
int | addAutomaticTextFrame (const int pageNumber) |
| Add the automatic text frame to the page. More...
|
|
void | setLocationBasedPageLRMargins (uint pageIndex) |
|
void | swapPage (const int a, const int b) |
| Swap two pages. More...
|
|
void | movePage (const int fromPage, const int toPage, const int dest, const int position) |
| Move page(s) within the document. More...
|
|
void | copyPage (int pageNumberToCopy, int existingPage, int whereToInsert, int copyCount) |
| Copy a page (pageNumberToCopy) copyCount times, whereToInsert(before or after) the existingPage or at the end. More...
|
|
int | addLayer (const QString &layerName=QString::null, const bool activate=false) |
| Add a layer to the current document. More...
|
|
void | copyLayer (int layerIDToCopy, int whereToInsert) |
| Copies a layer from the current document. More...
|
|
bool | deleteLayer (const int layerID, const bool deleteItems) |
| Delete a layer from the current document. More...
|
|
int | activeLayer () |
| Return the number of the current layer. More...
|
|
const QString & | activeLayerName () |
| Return the name of the current layer. More...
|
|
bool | setActiveLayer (const int layerToActivate) |
| Set the active layer via the layer number. More...
|
|
bool | setActiveLayer (const QString &layerNameToActivate) |
| Set the active layer via the layer name. More...
|
|
bool | setLayerPrintable (const int layerID, const bool isPrintable) |
| Set the layer printable via the layer number. More...
|
|
bool | layerPrintable (const int layerID) |
| Is the layer printable. More...
|
|
bool | setLayerVisible (const int layerID, const bool isViewable) |
| Set the layer visible via the layer number. More...
|
|
bool | layerVisible (const int layerID) |
| Is the layer visible. More...
|
|
bool | layerSelectable (const int layerID) |
| are objects on the layer selectable More...
|
|
bool | setLayerSelectable (const int layerID, const bool isSelectable) |
| Set objects on the layer selectable via the layer ID. More...
|
|
bool | setLayerLocked (const int layerID, const bool isLocked) |
| Set the layer locked via the layer number. More...
|
|
bool | layerLocked (const int layerID) |
| Is the layer locked. More...
|
|
bool | setLayerFlow (const int layerID, const bool flow) |
| Set the layer flow via the layer number. More...
|
|
bool | layerFlow (const int layerID) |
| does text flow around objects on this layer More...
|
|
bool | setLayerTransparency (const int layerID, double trans) |
| Set the layer transparency via the layer number. More...
|
|
double | layerTransparency (const int layerID) |
| returns the layer transparency More...
|
|
bool | setLayerBlendMode (const int ID, int blend) |
| Set the layer layerBlendMode via the layer number. More...
|
|
int | layerBlendMode (const int ID) |
| returns the layer BlendMode More...
|
|
int | layerLevelFromID (const int layerID) |
| Return the level of the requested layer. More...
|
|
bool | setLayerMarker (const int layerID, QColor color) |
| Set the layer marker color. More...
|
|
QColor | layerMarker (const int layerID) |
| returns the layer marker color More...
|
|
bool | setLayerOutline (const int layerID, const bool outline) |
| Set the layer outline mode via the layer number. More...
|
|
bool | layerOutline (const int layerID) |
| is this layer in outline mode More...
|
|
int | layerIDFromLevel (const int layerLevel) |
| Return the number of the layer at a certain level. More...
|
|
int | layerIDFromName (QString name) |
| Return the layer count. More...
|
|
int | layerCount () const |
|
bool | lowerLayer (const int layerID) |
| Lower a layer. More...
|
|
bool | lowerLayerByLevel (const int layerLevel) |
| Lower a layer using the level. More...
|
|
bool | raiseLayer (const int layerID) |
| Raise a layer. More...
|
|
bool | raiseLayerByLevel (const int layerLevel) |
| Raise a layer using the level. More...
|
|
QString | layerName (const int layerID) const |
| Return the layer name. More...
|
|
bool | changeLayerName (const int layerID, const QString &newName) |
| Change the name of a layer. More...
|
|
bool | layerContainsItems (const int layerID) |
| Does the layer have items on it? More...
|
|
bool | renumberLayer (const int layerID, const int newLayerID) |
| Renumber a layer. Used in particular for reinsertion for undo/redo. More...
|
|
void | orderedLayerList (QStringList *list) |
| Return a list of the layers in their order. More...
|
|
int | firstLayerID () |
|
bool | deleteTaggedItems () |
|
void | getUsedProfiles (ProfilesL &usedProfiles) |
| Builds a qmap of the icc profiles used within the document.
|
|
bool | OpenCMSProfiles (ProfilesL InPo, ProfilesL InPoCMYK, ProfilesL MoPo, ProfilesL PrPo) |
|
void | CloseCMSProfiles () |
|
void | SetDefaultCMSParams () |
|
void | enableCMS (bool enable) |
| Switch Colormanagement on or of. More...
|
|
const ParagraphStyle & | paragraphStyle (QString name) |
|
const StyleSet< ParagraphStyle > & | paragraphStyles () |
|
bool | isDefaultStyle (const ParagraphStyle &p) const |
|
bool | isDefaultStyle (const CharStyle &c) const |
|
const TableStyle & | tableStyle (QString name) |
|
const StyleSet< TableStyle > & | tableStyles () |
|
bool | isDefaultStyle (const TableStyle &style) const |
|
void | redefineTableStyles (const StyleSet< TableStyle > &newStyles, bool removeUnused=false) |
|
void | replaceTableStyles (const QMap< QString, QString > &newNameForOld) |
|
const CellStyle & | cellStyle (QString name) |
|
const StyleSet< CellStyle > & | cellStyles () |
|
bool | isDefaultStyle (const CellStyle &style) const |
|
void | redefineCellStyles (const StyleSet< CellStyle > &newStyles, bool removeUnused=false) |
|
void | replaceCellStyles (const QMap< QString, QString > &newNameForOld) |
|
void | getNamedResources (ResourceCollection &lists) const |
|
void | replaceNamedResources (ResourceCollection &newNames) |
|
bool | styleExists (QString styleName) |
|
QList< int > | getSortedStyleList () |
|
QList< int > | getSortedCharStyleList () |
|
QList< int > | getSortedTableStyleList () |
|
QList< int > | getSortedCellStyleList () |
|
void | redefineStyles (const StyleSet< ParagraphStyle > &newStyles, bool removeUnused=false) |
|
void | replaceStyles (const QMap< QString, QString > &newNameForOld) |
| Remove any reference to old styles and replace with new name. This needs to be called when a style was removed. New name may be "". More...
|
|
void | loadStylesFromFile (QString fileName) |
| Insert styles from another document in this document. More...
|
|
void | loadStylesFromFile (QString fileName, StyleSet< ParagraphStyle > *tempStyles, StyleSet< CharStyle > *tempCharStyles, QHash< QString, multiLine > *tempLineStyles) |
| Gather styles from another document. More...
|
|
const CharStyle & | charStyle (QString name) |
|
const StyleSet< CharStyle > & | charStyles () |
|
void | redefineCharStyles (const StyleSet< CharStyle > &newStyles, bool removeUnused=false) |
|
void | replaceCharStyles (const QMap< QString, QString > &newNameForOld) |
| Remove any reference to old styles and replace with new name. This needs to be called when a style was removed. New name may be "". More...
|
|
void | lockGuides (bool isLocked) |
| Should guides be locked or not. More...
|
|
void | restore (UndoState *state, bool isUndo) |
| Method used when an undo/redo is requested. More...
|
|
void | setName (const QString &name) |
| Sets the name of the document. More...
|
|
QStringList | getItemAttributeNames () |
| Returns a stringlist of the item attributes within the document.
|
|
bool | AddFont (QString name, int fsize=10) |
|
QMap< QString, int > | reorganiseFonts () |
| TODO: Reorganise the fonts.. how? Moved from scribus.cpp CB: almost the same as getUsedFonts???
|
|
void | getUsedFonts (QMap< QString, QMap< uint, FPointArray > > &Really) |
| Returns a qmap of the fonts and their glyphs used within the document.
|
|
void | checkItemForFonts (PageItem *it, QMap< QString, QMap< uint, FPointArray > > &Really, uint lc) |
|
void | replaceLineStyleColors (const QMap< QString, QString > &colorMap) |
| Replace line style colors.
|
|
void | getUsedColors (ColorList &colorsToUse, bool spot=false) |
| Builds a qmap of the colours used within the document.
|
|
bool | lineStylesUseColor (const QString &colorName) |
| Return if a specific color is used by line styles.
|
|
void | getUsedGradients (QHash< QString, VGradient > &Gradients) |
| Builds a qmap of the gradients used within the document.
|
|
bool | addGradient (QString &name, VGradient &gradient) |
| Set the gradients for a document.
|
|
void | setGradients (QHash< QString, VGradient > &gradients) |
|
bool | addPattern (QString &name, ScPattern &pattern) |
| Set the patterns for a document.
|
|
void | removePattern (QString name) |
|
void | setPatterns (QHash< QString, ScPattern > &patterns) |
|
ScPattern * | checkedPattern (QString &name) |
| Check pattern with specified name and return it if valid.
|
|
QStringList | getUsedPatterns () |
| Builds a QStringList of the patterns used within the document.
|
|
QStringList | getUsedPatternsSelection (Selection *customSelection) |
|
QStringList | getUsedPatternsHelper (QString pattern, QStringList &results) |
|
QStringList | getPatternDependencyList (QStringList used) |
|
QStringList | getUsedSymbols () |
| Builds a QStringList of the symbols used within the document.
|
|
QStringList | getUsedSymbolsHelper (QString pattern, QStringList &results) |
|
void | setUnitIndex (const int) |
| Set and get the document's unit index.
|
|
int | unitIndex () const |
|
double | unitRatio () const |
|
bool | applyMasterPage (const QString &pageName, const int pageNumber) |
| Apply a master page.
|
|
void | restoreMasterPageApplying (SimpleState *ss, bool isUndo) |
| Undo function for applying a master page.
|
|
void | restoreMasterPageRenaming (SimpleState *ss, bool isUndo) |
|
void | restoreCopyPage (SimpleState *ss, bool isUndo) |
|
void | restoreMovePage (SimpleState *ss, bool isUndo) |
|
void | restoreSwapPage (SimpleState *ss, bool isUndo) |
|
void | restoreAddMasterPage (SimpleState *ss, bool isUndo) |
|
void | restoreChangePageProperties (SimpleState *ss, bool isUndo) |
|
void | restoreGrouping (SimpleState *ss, bool isUndo) |
| Undo function for grouping/ungrouping.
|
|
void | restoreLevelDown (SimpleState *ss, bool isUndo) |
| Undo function for level.
|
|
void | restoreLevelBottom (SimpleState *ss, bool isUndo) |
|
void | restoreGuideLock (SimpleState *ss, bool isUndo) |
|
bool | save (const QString &fileName, QString *savedFile=NULL) |
| Save function.
|
|
bool | changePageProperties (const double initialTop, const double initialBottom, const double initialLeft, const double initialRight, const double initialHeight, const double initialWidth, const double Height, const double width, const int orientation, const QString &pageSize, const int marginPreset, const bool moveObjects, const int pageNumber=-1, const int pageType=0) |
| Set the page margins. Current code uses current page only, also provide a (currently, TODO) option for this.
|
|
void | recalculateColorsList (QList< PageItem * > *itemList) |
| Recalculate the colors after CMS settings change. Update the items in the doc accordingly.
|
|
void | recalculateColors () |
|
bool | copyPageToMasterPage (const int, const int, const int, const QString &, bool) |
| Sets up the ScText defaults from the document. More...
|
|
PageItem * | createPageItem (const PageItem::ItemType itemType, const PageItem::ItemFrameType frameType, double x, double y, double b, double h, double w, const QString &fill, const QString &outline) |
| Just create but don't add to items list and don't create undo record.
|
|
int | itemAdd (const PageItem::ItemType itemType, const PageItem::ItemFrameType frameType, const double x, const double y, const double b, const double h, const double w, const QString &fill, const QString &outline, const bool itemFinalised, const bool noteFrame=false) |
| Add an Item to the document. A simple function to create an item of a defined type and add it to the document Will need extensive rewriting once we have various classes of PageItems, at a guess. More...
|
|
int | itemAddArea (const PageItem::ItemType itemType, const PageItem::ItemFrameType frameType, const double x, const double y, const double w, const QString &fill, const QString &outline, const bool itemFinalised) |
|
int | itemAddUserFrame (InsertAFrameData &iafData) |
| Allow the user to create a frame easily with some simple placement and sizing options. More...
|
|
bool | itemAddCommit (PageItem *item) |
| Commit item creation when a user has click-drag created an item Only called from ScribusView. Note the undo target is the page, so the undo code remains their for now. More...
|
|
void | itemAddDetails (const PageItem::ItemType itemType, const PageItem::ItemFrameType frameType, PageItem *newItem) |
| Finalise item creation. Simply split off code from itemAdd Only to be called from itemAdd()
|
|
uint | getItemNrfromUniqueID (uint unique) |
|
PageItem * | getItemFromName (QString name) |
|
void | rebuildItemLists () |
| Rebuild item lists taking into account layer order. Utility function used in various places, basically handles keeping items numbered in the way they are layered. When layer is a property and not a fuction of storage, this should be removed. More...
|
|
bool | usesAutomaticTextFrames () const |
| Doc uses automatic text frames?
|
|
void | setUsesAutomaticTextFrames (const bool) |
|
bool | loadPict (QString fn, PageItem *pageItem, bool reload=false, bool showMsg=false) |
| Load images into an image frame, moved from the view. More...
|
|
void | RecalcPictures (ProfilesL *Pr, ProfilesL *PrCMYK, QProgressBar *dia=0) |
| Handle image with color profiles. More...
|
|
void | RecalcPictures (QList< PageItem * > *items, ProfilesL *Pr, ProfilesL *PrCMYK, QProgressBar *dia=0) |
| Handle image with color profiles. More...
|
|
void | canvasMinMax (FPoint &, FPoint &) |
| Find the minX,MinY and maxX,maxY for the canvas required for the doc.
|
|
int | OnPage (double x2, double y2) |
|
int | OnPage (PageItem *currItem) |
|
void | GroupOnPage (PageItem *currItem) |
|
void | reformPages (bool moveObjects=true) |
|
void | refreshGuides () |
| Refresh automatic guides once Margin struct has been properly configure by reformPages()
|
|
void | fixItemPageOwner () |
| Check and fix if needed PageItem OwnPage member.
|
|
void | fixParagraphStyles () |
| Fix paragraph styles.
|
|
void | fixNotesStyles () |
| Fix notes styles.
|
|
double | getXOffsetForPage (const int) |
| Return the x or y offset for a page on the canvas. More...
|
|
double | getYOffsetForPage (const int) |
|
void | getBleeds (int pageNumber, MarginStruct &bleedData) |
|
void | getBleeds (const ScPage *page, MarginStruct &bleedData) |
|
void | getBleeds (const ScPage *page, const MarginStruct &baseValues, MarginStruct &bleedData) |
|
PageItem * | convertItemTo (PageItem *currItem, PageItem::ItemType newType, PageItem *secondaryItem=NULL) |
| Item type conversion functions.
|
|
int | currentPageNumber () |
| The page number of the current page.
|
|
bool | itemNameExists (const QString itemName) |
| Return true iff the passed name is not used by any existing PageItem in the same document as this PageItem. More...
|
|
void | setMasterPageMode (bool) |
| Set the doc into Master page mode Do we need to return if the move to master page mode was successful?
|
|
bool | masterPageMode () const |
|
void | setSymbolEditMode (bool mode, QString symbolName="") |
| Set the doc into symbol edit mode.
|
|
bool | symbolEditMode () const |
|
QString | getEditedSymbol () const |
|
void | setInlineEditMode (bool mode, int id=-1) |
| Set the doc into inline edit mode.
|
|
bool | inlineEditMode () const |
|
void | addSection (const int number=0, const QString &name=QString::null, const uint fromindex=0, const uint toindex=0, const NumFormat type=Type_1_2_3, const uint sectionstartindex=0, const bool reversed=false, const bool active=true, const QChar fillChar=QChar(), int fieldWidth=0) |
| Add a section to the document sections list Set number to -1 to add in the default section if the map is empty.
|
|
bool | deleteSection (const uint) |
| Delete a section from the document sections list.
|
|
const QString | getSectionPageNumberForPageIndex (const uint) const |
| Gets the page number to be printed based on the section it is in. Returns QString::null on failure to find the pageIndex.
|
|
const QChar | getSectionPageNumberFillCharForPageIndex (const uint) const |
| Gets the page number fill character to be printed based on the section it is in. Returns QString::null on failure to find the pageIndex.
|
|
int | getSectionPageNumberWidthForPageIndex (const uint) const |
| Gets the page number fill character to be printed based on the section it is in. Returns QString::null on failure to find the pageIndex.
|
|
int | getSectionKeyForPageIndex (const uint pageIndex) const |
| Gets the key of the sections map based on the section the page index is in. Returns -1 on failure to find the pageIndex.
|
|
void | updateSectionPageNumbersToPages () |
|
void | addPageToSection (const uint otherPageIndex, const uint location, const uint count=1) |
|
void | removePageFromSection (const uint pageIndex) |
|
void | setFirstSectionFromFirstPageNumber () |
|
QString | getSectionNameForPageIndex (const uint pageIndex) const |
| Returns name of section where page is located. More...
|
|
void | buildAlignItemList (Selection *customSelection=0) |
|
bool | startAlign (uint minObjects=1) |
|
void | endAlign () |
|
void | insertColor (QString nam, double c, double m, double y, double k) |
| Insert a color into the documents color list. More...
|
|
QMap< QString, double > & | constants () |
|
PageLocation | locationOfPage (int pageIndex) const |
| Get the location of the page on the canvas, ie, left, middle, or right Does not give information about middle left, etc. More...
|
|
int | columnOfPage (int pageIndex) const |
| Get the column of the page on the canvas, ie, left, middle, or right. More...
|
|
QList< PageItem * > * | GroupOfItem (QList< PageItem * > *itemList, PageItem *item) |
|
PageItem * | groupObjectsSelection (Selection *customSelection=0) |
|
PageItem * | groupObjectsList (QList< PageItem * > &itemList) |
|
void | groupObjectsToItem (PageItem *groupItem, QList< PageItem * > &itemList) |
|
PageItem * | itemSelection_GroupObjects (bool changeLock, bool lock, Selection *customSelection=0) |
|
void | itemSelection_UnGroupObjects (Selection *customSelection=0) |
|
void | addToGroup (PageItem *group, PageItem *item) |
|
void | removeFromGroup (PageItem *item) |
|
void | rescaleGroup (PageItem *group, double scale) |
|
void | resizeGroupToContents (PageItem *group) |
|
void | itemSelection_resizeGroupToContents (Selection *customSelection=0) |
|
void | itemSelection_convertItemsTo (const PageItem::ItemType newType, Selection *restoredSelection=0, Selection *customSelection=0) |
|
void | itemSelection_convertItemsToSymbol (QString &patternName) |
|
void | itemSelection_ApplyParagraphStyle (const ParagraphStyle &newstyle, Selection *customSelection=0, bool rmDirectFormatting=false) |
|
void | itemSelection_SetParagraphStyle (const ParagraphStyle &newstyle, Selection *customSelection=0) |
|
void | itemSelection_ApplyCharStyle (const CharStyle &newstyle, Selection *customSelection=0, QString ETEA="") |
|
void | itemSelection_SetCharStyle (const CharStyle &newstyle, Selection *customSelection=0) |
|
void | itemSelection_EraseParagraphStyle (Selection *customSelection=0) |
|
void | itemSelection_EraseCharStyle (Selection *customSelection=0) |
|
void | itemSelection_SetNamedParagraphStyle (const QString &name, Selection *customSelection=0) |
|
void | itemSelection_SetNamedCharStyle (const QString &name, Selection *customSelection=0) |
|
void | itemSelection_SetNamedLineStyle (const QString &name, Selection *customSelection=0) |
|
void | itemSelection_SetSoftShadow (bool has, QString color, double dx, double dy, double radius, int shade, double opac, int blend, bool erase, bool objopa) |
|
void | itemSelection_SetLineWidth (double w) |
|
void | itemSelection_SetLineArt (Qt::PenStyle w) |
|
void | itemSelection_SetLineJoin (Qt::PenJoinStyle w) |
|
void | itemSelection_SetLineEnd (Qt::PenCapStyle w) |
|
void | itemSelection_SetAlignment (int w, Selection *customSelection=0) |
|
void | itemSelection_SetLineSpacing (double w, Selection *customSelection=0) |
|
void | itemSelection_SetLineSpacingMode (int w, Selection *customSelection=0) |
|
void | itemSetFont (const QString &newFont) |
|
void | itemSelection_SetFont (QString fon, Selection *customSelection=0) |
|
void | itemSelection_SetFillColor (QString farbe, Selection *customSelection=0) |
|
void | itemSelection_SetFillShade (int sha, Selection *customSelection=0) |
|
void | itemSelection_SetStrokeColor (QString farbe, Selection *customSelection=0) |
|
void | itemSelection_SetStrokeShade (int sha, Selection *customSelection=0) |
|
void | itemSelection_SetScaleV (int, Selection *customSelection=0) |
|
void | itemSelection_SetScaleH (int, Selection *customSelection=0) |
|
void | itemSelection_SetBaselineOffset (int, Selection *customSelection=0) |
|
void | itemSelection_SetOutlineWidth (int, Selection *customSelection=0) |
|
void | itemSelection_SetShadowOffsets (int shx, int shy, Selection *customSelection=0) |
|
void | itemSelection_SetUnderline (int pos, int wid, Selection *customSelection=0) |
|
void | itemSelection_SetStrikethru (int pos, int wid, Selection *customSelection=0) |
|
void | itemSelection_SetEffects (int s, Selection *customSelection=0) |
|
void | itemSelection_SetOpticalMargins (int i, Selection *customSelection=0) |
|
void | itemSelection_resetOpticalMargins (Selection *customSelection=0) |
|
void | itemSelection_SetColorProfile (const QString &profileName, Selection *customSelection=0) |
|
void | itemSelection_SetRenderIntent (int intentIndex, Selection *customSelection=0) |
|
void | itemSelection_SetCompressionMethod (int cmIndex, Selection *customSelection=0) |
|
void | itemSelection_SetCompressionQuality (int cqIndex, Selection *customSelection=0) |
|
void | itemSelection_SetTracking (int us, Selection *customSelection=0) |
|
void | itemSelection_SetFontSize (int size, Selection *customSelection=0) |
|
void | MirrorPolyH (PageItem *currItem) |
|
void | MirrorPolyV (PageItem *currItem) |
|
bool | getItem (PageItem **currItem, int nr=-1) |
|
void | setFrameRect () |
|
void | setFrameRounded () |
|
void | setFrameOval () |
|
void | setRedrawBounding (PageItem *currItem) |
|
void | adjustCanvas (FPoint minPos, FPoint maxPos, bool absolute=false) |
|
void | recalcPicturesRes (bool applyNewRes=false) |
|
int | previewQuality () |
|
void | connectDocSignals () |
|
void | disconnectDocSignals () |
|
void | removeLayer (int l, bool dl=false) |
|
void | changed () |
| We call changed() whenever the document needs to know it has been changed. If the document is the primary document in a main window, it will signal to enable/disable certain operations.
|
|
ScPage * | currentPage () |
| Get pointer to the current page. More...
|
|
void | setCurrentPage (ScPage *newPage) |
| Set new current page. More...
|
|
bool | hasGUI () const |
|
QPoint | ApplyGrid (const QPoint &in) |
| Apply grid to a QPoint, from ScribusView.
|
|
FPoint | ApplyGridF (const FPoint &in) |
| Apply grid to an FPoint, from ScribusView.
|
|
bool | hasTOCSetup () |
| Does this doc have any TOC setups and potentially a TOC to generate.
|
|
void | getClosestGuides (double xin, double yin, double *xout, double *yout, int *GxM, int *GyM, ScPage *refPage=NULL) |
| Get the closest guide to the given point.
|
|
void | getClosestElementBorder (double xin, double yin, double *xout, double *yout, int *GxM, int *GyM, ScPage *refPage=NULL) |
| Get the closest border of another element to the given point.
|
|
void | SnapToGuides (PageItem *currItem) |
| Snap an item to the guides.
|
|
bool | ApplyGuides (double *x, double *y, bool elementSnap=false) |
|
bool | ApplyGuides (FPoint *point, bool elementSnap=false) |
|
bool | MoveItem (double newX, double newY, PageItem *ite) |
|
void | RotateItem (double win, PageItem *currItem) |
|
void | MoveRotated (PageItem *currItem, FPoint npv) |
|
bool | SizeItem (double newX, double newY, PageItem *pi, bool fromMP=false, bool DoUpdateClip=true, bool redraw=true) |
|
bool | MoveSizeItem (FPoint newX, FPoint newY, PageItem *currItem, bool fromMP=false, bool constrainRotation=false) |
|
void | AdjustItemSize (PageItem *currItem, bool includeGroup=false, bool moveInGroup=true) |
|
void | moveGroup (double x, double y, Selection *customSelection=0) |
|
void | rotateGroup (double angle, Selection *customSelection=0) |
|
void | rotateGroup (double angle, FPoint RCenter, Selection *customSelection=0) |
|
void | scaleGroup (double scx, double scy, bool scaleText=true, Selection *customSelection=0, bool scaleLine=false) |
|
QMap< PageItem *, QString > | getDocItemNames (PageItem::ItemType itemType) |
| Get a list of frames of certain type.
|
|
Serializer * | serializer () |
| Returns a serializer for this document.
|
|
Serializer * | textSerializer () |
| Returns a text serializer for this document, used to paste text chunks.
|
|
int | RotMode () const |
| Get rotation mode.
|
|
void | RotMode (const int &val) |
| Set rotation mode.
|
|
void | beginUpdate () |
| Fonctions which avoid doc updater and update manager to send too much.
|
|
void | endUpdate () |
|
int | addToInlineFrames (PageItem *item) |
|
void | removeInlineFrame (int fIndex) |
|
void | checkItemForFrames (PageItem *it, int fIndex) |
|
bool | hasPreflightErrors () |
|
QFileDevice::Permissions | filePermissions () |
|
void | saveFilePermissions (QFileDevice::Permissions p) |
|
void | itemResizeToMargin (PageItem *item, int direction) |
|
const ScPage * | page4EndNotes (NotesStyle *NS, PageItem *item) |
|
const QList< Mark * > | marksList () |
|
const QList< TextNote * > | notesList () |
|
QList< PageItem_NoteFrame * > | listNotesFrames (NotesStyle *NS) |
|
bool | notesChanged () |
|
void | setNotesChanged (bool on) |
|
QStringList | marksLabelsList (MarkType type) |
|
Mark * | getMark (QString label, MarkType type) |
|
Mark * | newMark (Mark *mrk=NULL) |
|
TextNote * | newNote (NotesStyle *NS) |
|
bool | isMarkUsed (Mark *mrk, bool visible=false) |
|
void | setCursor2MarkPos (Mark *mark) |
|
bool | eraseMark (Mark *mrk, bool fromText=false, PageItem *item=NULL, bool force=false) |
|
void | setUndoDelMark (Mark *mrk) |
|
bool | invalidateVariableTextFrames (Mark *mrk, bool forceUpdate=false) |
|
NotesStyle * | newNotesStyle (NotesStyle NS) |
|
void | renameNotesStyle (NotesStyle *NS, QString newName) |
|
void | deleteNotesStyle (QString nsName) |
|
void | undoSetNotesStyle (SimpleState *ss, NotesStyle *ns) |
|
NotesStyle * | getNotesStyle (QString nsName) |
|
void | deleteNote (TextNote *note) |
|
void | setUndoDelNote (TextNote *note) |
|
PageItem_NoteFrame * | createNoteFrame (PageItem_TextFrame *inFrame, NotesStyle *nStyle, int index=-1) |
|
PageItem_NoteFrame * | createNoteFrame (NotesStyle *nStyle, double x, double y, double w, double h, double w2, QString fill, QString outline) |
|
void | delNoteFrame (PageItem_NoteFrame *nF, bool removeMarks=true, bool forceDeletion=true) |
|
bool | updateNotesNums (NotesStyle *nStyle) |
|
void | updateNotesFramesStyles (NotesStyle *nStyle) |
|
bool | validateNSet (NotesStyle NS, QString newName="") |
|
bool | notesFramesUpdate () |
|
void | updateNotesFramesSettings (NotesStyle *NS) |
|
PageItem_NoteFrame * | endNoteFrame (NotesStyle *nStyle, PageItem_TextFrame *master) |
|
void | setEndNoteFrame (PageItem_NoteFrame *nF, void *ptr) |
|
void | setEndNoteFrame (PageItem_NoteFrame *nF, int section) |
|
void | updateEndnotesFrames (NotesStyle *nStyle=NULL, bool invalidate=false) |
|
void | updateEndNotesFrameContent (PageItem_NoteFrame *nF, bool invalidate=false) |
|
void | endNoteFrameChanged (PageItem_NoteFrame *nF) |
|
void | updateChangedEndNotesFrames () |
|
int | findMarkCPos (Mark *mrk, PageItem *&item, int Start=0) |
|
PageItem * | findMarkItem (Mark *mrk, int &lastItem) |
|
void | setupNumerations () |
|
QString | getNumberStr (QString numName, int level, bool reset, ParagraphStyle &style) |
|
void | setNumerationCounter (QString numName, int level, int number) |
|
bool | updateLocalNums (StoryText &itemText) |
|
void | updateNumbers (bool updateNumerations=false) |
|
void | itemSelection_ClearBulNumStrings (Selection *customSelection) |
|
void | SubmitForm () |
|
void | ImportData () |
|
void | ResetFormFields () |
|
| UndoObject () |
| Creates a new anonymous UndoObject instance.
|
|
| UndoObject (const UndoObject &other) |
| Creates a copy of an UndoObject instance.
|
|
| UndoObject (const QString &objectName, QPixmap *objectIcon=0) |
| Creates a new UndoObject instance with the name objectName More...
|
|
virtual | ~UndoObject () |
| Destroys the object.
|
|
virtual QString | getUName () |
| Returns the name of the UndoObject. More...
|
|
virtual void | setUName (QString newUName) |
| Set the name of the UndoObject. More...
|
|
virtual QPixmap * | getUPixmap () |
| Returns the pixmap connected to this object. More...
|
|
virtual void | setUPixmap (QPixmap *newUPixmap) |
| Set the pixmap for this object. More...
|
|
ulong | getUId () const |
| Returns an unique identifier number for the UndoObject. More...
|
|
const ScGuardedPtr< UndoObject > & | undoObjectPtr () |
| Returns a guarded pointer.
|
|
| Observable (UpdateManager *um=NULL) |
|
virtual void | update () |
|
| MassObservable (UpdateManager *um=NULL) |
|
void | setUpdateManager (UpdateManager *um) |
|
virtual void | update (ScribusDoc *what) |
|
virtual void | updateLayout (ScribusDoc *what) |
|
void | connectObserver (Observer< ScribusDoc * > *o) |
|
bool | connectObserver (QObject *o, const char *slot) |
|
void | disconnectObserver (Observer< ScribusDoc * > *o) |
|
bool | disconnectObserver (QObject *o, const char *slot=0) |
|