Scribus
Open source desktop publishing at your fingertips
|
#include <pageitem_table.h>
Public Types | |
enum | ResizeStrategy { MoveFollowing, ResizeFollowing } |
Public Types inherited from PageItem | |
enum | DrawOption { NoRotation = 1, NoSoftShadow = 2 } |
Draw options for DrawObj_toImage() More... | |
enum | ItemType { ItemType1 = 1, ImageFrame = 2, ItemType3 = 3, TextFrame = 4, Line = 5, Polygon = 6, PolyLine = 7, PathText = 8, LatexFrame = 9, OSGFrame = 10, Symbol = 11, Group = 12, RegularPolygon = 13, Arc = 14, Spiral = 15, Table = 16, Multiple = 99 } |
Item Type. More... | |
enum | TextFlowMode { TextFlowDisabled = 0, TextFlowUsesFrameShape = 1, TextFlowUsesBoundingBox = 2, TextFlowUsesContourLine = 3, TextFlowUsesImageClipping = 4 } |
Text flow mode. More... | |
enum | ItemFrameType { Unspecified =-1, Rectangle = 0, Ellipse = 1, Round = 2, Other = 3 } |
Frame Type. | |
Signals | |
void | changed () |
This signal is emitted whenever the table changes. | |
void | selectionChanged () |
This signal is emitted whenever the cell selection changes. | |
Signals inherited from PageItem | |
void | myself (PageItem *) |
void | frameType (int) |
not related to Frametype but to m_itemIype | |
void | textStyle (int) |
Public Member Functions | |
PageItem_Table (ScribusDoc *pa, double x, double y, double w, double h, double w2, QString fill, QString outline, int numRows=1, int numColumns=1) | |
Construct a new table item with numRows rows and numColumns columns. | |
~PageItem_Table () | |
Destructor. | |
void | adjustTable () |
Resizes the table to fit the frame. | |
int | rows () const |
Returns the number of rows in the table. | |
int | columns () const |
Returns the number of columns in the table. | |
double | tableWidth () const |
double | tableHeight () const |
QPointF | gridOffset () const |
double | effectiveWidth () const |
double | effectiveHeight () const |
void | resize (double width, double height) |
void | insertRows (int index, int numRows) |
void | removeRows (int index, int numRows) |
double | rowHeight (int row) const |
QList< double > | rowHeights () const |
void | resizeRow (int row, double height, ResizeStrategy strategy=MoveFollowing) |
void | distributeRows (int startRow, int endRow) |
double | rowPosition (int row) const |
QList< double > | rowPositions () const |
void | insertColumns (int index, int numColumns) |
void | removeColumns (int index, int numColumns) |
double | columnWidth (int column) const |
QList< double > | columnWidths () const |
void | resizeColumn (int column, double width, ResizeStrategy strategy=MoveFollowing) |
void | distributeColumns (int startColumn, int endColumn) |
double | columnPosition (int column) const |
QList< double > | columnPositions () const |
void | mergeCells (int row, int column, int numRows, int numCols) |
void | splitCell (int row, int column, int numRows, int numCols) |
QSet< TableCell > | selectedCells () const |
QSet< int > | selectedRows () const |
QSet< int > | selectedColumns () const |
void | selectCell (int row, int column) |
void | selectCells (int startRow, int startColumn, int endRow, int endColumn) |
void | clearSelection () |
TableCell | cellAt (int row, int column) const |
TableCell | cellAt (const QPointF &point) const |
TableCell | activeCell () const |
void | moveLeft () |
void | moveRight () |
void | moveUp () |
void | moveDown () |
void | moveTo (const TableCell &cell) |
TableHandle | hitTest (const QPointF &point, double threshold) const |
void | adjustTableToFrame () |
Resizes the table to fit the frame. | |
void | adjustFrameToTable () |
Resizes the frame to fit the table. | |
void | setFillColor (const QString &color) |
Sets the fill color of this table to color. | |
void | unsetFillColor () |
Unsets the fill color of this table. | |
QString | fillColor () const |
Returns the fill color of this table. | |
void | setFillShade (const double &shade) |
Sets the fill shade of this table to color. | |
void | unsetFillShade () |
Unsets the fill shade of this table. | |
double | fillShade () const |
Returns the fill shade of this table. | |
void | setLeftBorder (const TableBorder &border) |
Sets the left border of this table to border. | |
void | unsetLeftBorder () |
Unsets the left border of this table. | |
TableBorder | leftBorder () const |
Returns the left border of this table. | |
void | setRightBorder (const TableBorder &border) |
Sets the right border of this table to border. | |
void | unsetRightBorder () |
Unsets the right border of this table. | |
TableBorder | rightBorder () const |
Returns the right border of this table. | |
void | setTopBorder (const TableBorder &border) |
Sets the top border of this table to border. | |
void | unsetTopBorder () |
Unsets the top border of this table. | |
TableBorder | topBorder () const |
Returns the top border of this table. | |
void | setBottomBorder (const TableBorder &border) |
Sets the bottom border of this table to border. | |
void | unsetBottomBorder () |
Unsets the bottom border of this table. | |
TableBorder | bottomBorder () const |
Returns the bottom border of this table. | |
void | setStyle (const QString &style) |
Sets the table style of this table to style. | |
void | unsetStyle () |
Unsets the style of this table. | |
void | unsetDirectFormatting () |
Unsets direct formatting. | |
QString | style () const |
Returns the style of this table. | |
void | updateCells () |
Updates the position and size of all cell text frames for this table. | |
void | updateCells (int startRow, int startColumn, int endRow, int endColumn) |
Updates the position and size of cell text frames for cells in the specified area. | |
bool | isOverflowing () const |
Returns true if the table is overflowing its frame. | |
virtual PageItem_Table * | asTable () |
Returns this item as a PageItem_Table. | |
virtual bool | isTable () const |
Returns true . | |
virtual ItemType | realItemType () const |
Returns PageItem::Table. | |
virtual void | applicableActions (QStringList &actionList) |
Adds the applicable actions for this table to actionList. | |
virtual QString | infoDescription () |
Returns a textual description of this item. | |
QList< CellArea > | cellAreas () const |
Returns the Cell Areas from this table. | |
QList< QList< TableCell > > | cellRows () const |
Returns the rows of the table for writing to SLA. | |
Public Member Functions inherited from PageItem | |
PageItem (ScribusDoc *pa, ItemType newType, double x, double y, double w, double h, double w2, QString fill, QString outline) | |
virtual PageItem_Arc * | asArc () |
Return self if Arc item, otherwise null. | |
virtual PageItem_Group * | asGroupFrame () |
Return self if Group item, otherwise null. | |
virtual PageItem_ImageFrame * | asImageFrame () |
Return self if Image item, otherwise null. | |
virtual PageItem_LatexFrame * | asLatexFrame () |
Return self if Render frame item, otherwise null. | |
virtual PageItem_Line * | asLine () |
Return self if Line item, otherwise null. | |
virtual PageItem_NoteFrame * | asNoteFrame () |
Return self if Note item, otherwise null. | |
virtual PageItem_OSGFrame * | asOSGFrame () |
Return self if OSG item, otherwise null. | |
virtual PageItem_PathText * | asPathText () |
Return self if Path Text item, otherwise null. | |
virtual PageItem_PolyLine * | asPolyLine () |
Return self if Poly Line item, otherwise null. | |
virtual PageItem_Polygon * | asPolygon () |
Return self if Polygon item, otherwise null. | |
virtual PageItem_RegularPolygon * | asRegularPolygon () |
Return self if Regular Polygon item, otherwise null. | |
virtual PageItem_Spiral * | asSpiral () |
Return self if Spiral item, otherwise null. | |
virtual PageItem_Symbol * | asSymbolFrame () |
Return self if Symbol item, otherwise null. | |
virtual PageItem_TextFrame * | asTextFrame () |
Return self if Text item, otherwise null. | |
virtual bool | isArc () const |
Return true if Arc item, otherwise false. | |
virtual bool | isAutoNoteFrame () const |
Return true if Auto Note item, otherwise false. | |
virtual bool | isGroup () const |
Return true if Group item, otherwise false. | |
virtual bool | isImageFrame () const |
Return true if Image item, otherwise false. | |
virtual bool | isLatexFrame () const |
Return true if Render frame item, otherwise false. | |
virtual bool | isLine () const |
Return true if Line item, otherwise false. | |
virtual bool | isNoteFrame () const |
Return true if Note item, otherwise false. | |
virtual bool | isOSGFrame () const |
Return true if OSG item, otherwise false. | |
virtual bool | isPathText () const |
Return true if Text Path Text, otherwise false. | |
virtual bool | isPolyLine () const |
Return true if Poly Line item, otherwise false. | |
virtual bool | isPolygon () const |
Return true if Polygon item, otherwise false. | |
virtual bool | isRegularPolygon () const |
Return true if Regular Polygon item, otherwise false. | |
virtual bool | isSpiral () const |
Return true if Spiral item, otherwise false. | |
virtual bool | isSymbol () const |
Return true if Symbol item, otherwise false. | |
virtual bool | isTextFrame () const |
Return true if Text item, otherwise false. | |
virtual bool | isGroupChild () const |
virtual bool | isTableCell () const |
PageItem_Group * | parentGroup () const |
PageItem_Table * | parentTable () const |
virtual bool | createInfoGroup (QFrame *, QGridLayout *) |
void | DrawObj (ScPainter *p, QRectF e) |
void | DrawObj_Pre (ScPainter *p) |
virtual void | DrawObj_Post (ScPainter *p) |
virtual void | DrawObj_Decoration (ScPainter *p) |
QImage | DrawObj_toImage (double maxSize, int options=0) |
QImage | DrawObj_toImage (QList< PageItem * > &emG, double scaling) |
void | DrawObj_Embedded (ScPainter *p, QRectF e, const CharStyle &style, PageItem *cembedded) |
void | DrawStrokePattern (ScPainter *p, QPainterPath &path) |
void | DrawSoftShadow (ScPainter *p) |
QRect | getRedrawBounding (const double) |
Set or get the redraw bounding box of the item, moved from the View. | |
void | setRedrawBounding () |
void | setPolyClip (int up, int down=0) |
void | updatePolyClip () |
void | updateClip (bool updateWelded=true) |
void | convertClip () |
QRectF | getBoundingRect () const |
QRectF | getCurrentBoundingRect (double moreSpace=0.0) const |
QRectF | getVisualBoundingRect () const |
virtual void | getBoundingRect (double *x1, double *y1, double *x2, double *y2) const |
virtual void | getVisualBoundingRect (double *x1, double *y1, double *x2, double *y2) const |
virtual void | clearContents () |
Clear the contents of a frame. WARNING: Currently they do not check if the user wants this. The view does when these are called. | |
virtual void | truncateContents () |
bool | pointWithinItem (const int x, const int y) const |
Check if a QPoint is within the items boundaries No coordinates transformation is performed. More... | |
bool | mouseWithinItem (const int x, const int y, double scale) const |
Check if the mouse is within the items boundaries This method performs necessary page to device transformations. More... | |
virtual void | handleModeEditKey (QKeyEvent *k, bool &keyRepeat) |
int | level () const |
Get item level relative to its parent doc or group. | |
void | saxx (SaxHandler &handler, const Xml_string &elemtag) const |
void | saxx (SaxHandler &handler) const |
void | AdjustPictScale () |
Adjust the picture scale, moved from the view, no view code here FIXME: Move to PageItem_TextFrame. | |
void | updateGradientVectors () |
Update the gradient vectors, moved from the View. | |
void | moveImageInFrame (double newX, double newY) |
Move the image within the frame Old ScribusView::MoveItemI. More... | |
ObjAttrVector * | getObjectAttributes () |
QList< ObjectAttribute > | getObjectAttributes (QString attributeName) const |
ObjectAttribute | getObjectAttribute (QString) const |
void | setObjectAttributes (ObjAttrVector *) |
void | SetFrameShape (int count, double *vals) |
void | SetRectFrame () |
void | SetOvalFrame () |
void | SetFrameRound () |
QTransform | getGroupTransform () const |
void | getTransform (QTransform &mat) const |
QTransform | getTransform () const |
virtual void | invalidateLayout () |
invalidates current layout information | |
virtual void | layout () |
creates valid layout information | |
PageItem * | frameTextEnd () |
returns frame where is text end | |
bool | frameOverflows () const |
returns true if text overflows | |
bool | frameUnderflows () const |
returns true if text is ending before that frame | |
int | frameOverflowCount () const |
int | frameOverflowBlankCount () const |
void | drawOverflowMarker (ScPainter *p) |
Draws the overflow marker. | |
int | firstInFrame () const |
returns index of first char displayed in this frame, used to be 0 | |
int | lastInFrame () const |
returns index of last char displayed in this frame, used to be MaxChars-1 | |
bool | frameDisplays (int textpos) const |
tests if a character is displayed by this fram More... | |
const ParagraphStyle & | currentStyle () const |
returns the style at the current charpos | |
ParagraphStyle & | changeCurrentStyle () |
returns the style at the current charpos for changing More... | |
const CharStyle & | currentCharStyle () const |
returns the style at the current charpos | |
void | currentTextProps (ParagraphStyle &parStyle) const |
Return current text properties (current char + paragraph properties) | |
double | layoutGlyphs (const CharStyle &style, const QString &chars, LayoutFlags flags, GlyphLayout &layout) |
void | SetQColor (QColor *tmp, QString farbe, double shad) |
void | drawGlyphs (ScPainter *p, const CharStyle &style, LayoutFlags flags, GlyphLayout &glyphs) |
void | DrawPolyL (QPainter *p, QPolygon pts) |
QString | ExpandToken (uint base) |
const FPointArray | shape () const |
void | setShape (FPointArray val) |
const FPointArray | contour () const |
void | setContour (FPointArray val) |
bool | flipPathText () const |
void | setFlipPathText (bool val) |
int | pathTextType () const |
void | setPathTextType (int val) |
double | pathTextBaseOffset () const |
void | setPathTextBaseOffset (double val) |
bool | pathTextShowFrame () const |
void | setPathTextShowFrame (bool val) |
bool | useEmbeddedImageProfile () const |
void | setUseEmbeddedImageProfile (bool val) |
QString | embeddedImageProfile () const |
void | setEmbeddedImageProfile (QString val) |
bool | drawFrame () |
QString | externalFile () const |
void | setExternalFile (QString val) |
void | setImagePagenumber (int num) |
void | setResolution (int) |
QString | fileIconPressed () const |
void | setFileIconPressed (QString val) |
QString | fileIconRollover () const |
void | setFileIconRollover (QString val) |
int | cmsRenderingIntent () const |
void | setCmsRenderingIntent (eRenderIntent val) |
QString | cmsProfile () const |
void | setCmsProfile (QString val) |
void | setOverrideCompressionMethod (bool val) |
void | setCompressionMethodIndex (int val) |
void | setOverrideCompressionQuality (bool val) |
void | setCompressionQualityIndex (int val) |
PageItem * | prevInChain () |
PageItem * | nextInChain () |
const PageItem * | prevInChain () const |
const PageItem * | nextInChain () const |
PageItem * | firstInChain () |
PageItem * | lastInChain () |
bool | testLinkCandidate (PageItem *nextFrame) |
void | unlink (bool createUndo=true) |
void | link (PageItem *nextFrame, bool addPARSEP=true) |
void | dropLinks () |
void | unlinkWithText (bool) |
void | setSampleItem (bool b) |
const QVector< double > & | dashes () const |
QVector< double > & | dashes () |
void | setDashes (QVector< double > val) |
double | dashOffset () const |
void | setDashOffset (double val) |
virtual QList< PageItem * > | getItemList () |
double | xPos () const |
double | yPos () const |
double | visualXPos () const |
double | visualYPos () const |
FPoint | xyPos () const |
void | setXPos (const double, bool drawingOnly=false) |
void | setYPos (const double, bool drawingOnly=false) |
void | setXYPos (const double, const double, bool drawingOnly=false) |
void | moveBy (const double, const double, bool drawingOnly=false) |
double | width () const |
double | height () const |
double | visualWidth () const |
double | visualHeight () const |
double | visualLineWidth () |
void | setWidth (const double) |
void | setHeight (const double) |
void | setWidthHeight (const double, const double, bool drawingOnly) |
void | setWidthHeight (const double, const double) |
void | resizeBy (const double, const double) |
double | rotation () const |
void | setRotation (const double, bool drawingOnly) |
void | setRotation (const double r) |
needed for deSaXe | |
void | rotateBy (const double) |
bool | isSelected () const |
void | setSelected (const bool) |
double | imageXScale () const |
double | imageYScale () const |
void | setImageXScale (const double) |
void | setImageYScale (const double) |
void | setImageXYScale (const double, const double) |
double | imageXOffset () const |
double | imageYOffset () const |
void | setImageXOffset (const double) |
void | setImageYOffset (const double) |
void | moveImageXYOffsetBy (const double, const double) |
void | setImageXYOffset (const double, const double) |
double | imageRotation () const |
void | setImageRotation (const double newRotation) |
bool | reversed () const |
void | setReversed (bool) |
double | cornerRadius () const |
void | setCornerRadius (double) |
bool | isPDFBookmark () const |
void | setIsPDFBookmark (bool val) |
int | gradientType () const |
0=none, 1,2,3,4=linear, 5=radial, 6=free linear, 7=free radial, 8=pattern | |
void | setGradientType (int val) |
double | gradientStartX () const |
void | setGradientStartX (double val) |
double | gradientStartY () const |
void | setGradientStartY (double val) |
double | gradientEndX () const |
void | setGradientEndX (double val) |
double | gradientEndY () const |
void | setGradientEndY (double val) |
double | gradientFocalX () const |
void | setGradientFocalX (double val) |
double | gradientFocalY () const |
void | setGradientFocalY (double val) |
double | gradientScale () const |
void | setGradientScale (double val) |
double | gradientSkew () const |
void | setGradientSkew (double val) |
double | gradientMaskStartX () const |
void | setGradientMaskStartX (double val) |
double | gradientMaskStartY () const |
void | setGradientMaskStartY (double val) |
double | gradientMaskEndX () const |
void | setGradientMaskEndX (double val) |
double | gradientMaskEndY () const |
void | setGradientMaskEndY (double val) |
double | gradientMaskFocalX () const |
void | setGradientMaskFocalX (double val) |
double | gradientMaskFocalY () const |
void | setGradientMaskFocalY (double val) |
double | gradientMaskScale () const |
void | setGradientMaskScale (double val) |
double | gradientMaskSkew () const |
void | setGradientMaskSkew (double val) |
FPoint | gradientControl1 () const |
void | setGradientControl1 (FPoint val) |
FPoint | gradientControl2 () const |
void | setGradientControl2 (FPoint val) |
FPoint | gradientControl3 () const |
void | setGradientControl3 (FPoint val) |
FPoint | gradientControl4 () const |
void | setGradientControl4 (FPoint val) |
FPoint | gradientControl5 () const |
void | setGradientControl5 (FPoint val) |
double | gradientStrokeScale () const |
void | setGradientStrokeScale (double val) |
double | gradientStrokeSkew () const |
void | setGradientStrokeSkew (double val) |
double | gradientStrokeFocalX () const |
void | setGradientStrokeFocalX (double val) |
double | gradientStrokeFocalY () const |
void | setGradientStrokeFocalY (double val) |
double | gradientStrokeStartX () const |
void | setGradientStrokeStartX (double val) |
double | gradientStrokeStartY () const |
void | setGradientStrokeStartY (double val) |
double | gradientStrokeEndX () const |
void | setGradientStrokeEndX (double val) |
double | gradientStrokeEndY () const |
void | setGradientStrokeEndY (double val) |
QString | gradientCol1 () const |
void | setGradientCol1 (QString val) |
QString | gradientCol2 () const |
void | setGradientCol2 (QString val) |
QString | gradientCol3 () const |
void | setGradientCol3 (QString val) |
QString | gradientCol4 () const |
void | setGradientCol4 (QString val) |
double | gradientTransp1 () const |
void | setGradientTransp1 (double val) |
double | gradientTransp2 () const |
void | setGradientTransp2 (double val) |
double | gradientTransp3 () const |
void | setGradientTransp3 (double val) |
double | gradientTransp4 () const |
void | setGradientTransp4 (double val) |
int | gradientShade1 () const |
void | setGradientShade1 (int val) |
int | gradientShade2 () const |
void | setGradientShade2 (int val) |
int | gradientShade3 () const |
void | setGradientShade3 (int val) |
int | gradientShade4 () const |
void | setGradientShade4 (int val) |
QColor | gradientColor1 () const |
void | setGradientColor1 (QColor val) |
QColor | gradientColor2 () const |
void | setGradientColor2 (QColor val) |
QColor | gradientColor3 () const |
void | setGradientColor3 (QColor val) |
QColor | gradientColor4 () const |
void | setGradientColor4 (QColor val) |
void | setGradientExtend (VGradient::VGradientRepeatMethod val) |
void | setStrokeGradientExtend (VGradient::VGradientRepeatMethod val) |
VGradient::VGradientRepeatMethod | getGradientExtend () |
VGradient::VGradientRepeatMethod | getStrokeGradientExtend () |
bool | getSnapToPatchGrid () const |
void | setSnapToPatchGrid (bool val) |
void | setMaskGradient (VGradient grad) |
void | setFillGradient (VGradient grad) |
void | setStrokeGradient (VGradient grad) |
void | set4ColorGeometry (FPoint c1, FPoint c2, FPoint c3, FPoint c4) |
void | set4ColorTransparency (double t1, double t2, double t3, double t4) |
void | set4ColorShade (int t1, int t2, int t3, int t4) |
void | set4ColorColors (QString col1, QString col2, QString col3, QString col4) |
void | get4ColorGeometry (FPoint &c1, FPoint &c2, FPoint &c3, FPoint &c4) |
void | setDiamondGeometry (FPoint c1, FPoint c2, FPoint c3, FPoint c4, FPoint c5) |
void | get4ColorTransparency (double &t1, double &t2, double &t3, double &t4) |
void | get4ColorColors (QString &col1, QString &col2, QString &col3, QString &col4) |
void | setMeshPointColor (int x, int y, QString color, int shade, double transparency, bool forPatch=false) |
void | createGradientMesh (int rows, int cols) |
void | resetGradientMesh () |
void | meshToShape () |
void | createConicalMesh () |
VColorStop | computeInBetweenStop (VColorStop *last, VColorStop *actual, double t) |
void | gradientVector (double &startX, double &startY, double &endX, double &endY, double &focalX, double &focalY, double &scale, double &skew) const |
void | setGradientVector (double startX, double startY, double endX, double endY, double focalX, double focalY, double scale, double skew) |
int | strokeGradientType () const |
void | setStrokeGradientType (int val) |
void | strokeGradientVector (double &startX, double &startY, double &endX, double &endY, double &focalX, double &focalY, double &scale, double &skew) const |
void | setStrokeGradientVector (double startX, double startY, double endX, double endY, double focalX, double focalY, double scale, double skew) |
int | maskType () const |
void | setMaskType (int val) |
void | setGradientMask (const QString &newMask) |
void | setPatternMask (const QString &newMask) |
QString | gradientMask () const |
QString | patternMask () const |
void | maskVector (double &startX, double &startY, double &endX, double &endY, double &focalX, double &focalY, double &scale, double &skew) const |
void | setMaskVector (double startX, double startY, double endX, double endY, double focalX, double focalY, double scale, double skew) |
void | maskTransform (double &scaleX, double &scaleY, double &offsetX, double &offsetY, double &rotation, double &skewX, double &skewY) const |
void | setMaskTransform (double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY) |
void | setMaskFlip (bool flipX, bool flipY) |
void | maskFlip (bool &flipX, bool &flipY) |
bool | fillEvenOdd () const |
void | setFillEvenOdd (bool val) |
bool | overprint () const |
void | setOverprint (bool val) |
void | setHasSoftShadow (bool val) |
bool | hasSoftShadow () |
void | setSoftShadowColor (const QString &val) |
QString | softShadowColor () |
void | setSoftShadowShade (int val) |
int | softShadowShade () |
void | setSoftShadowBlurRadius (double val) |
double | softShadowBlurRadius () |
void | setSoftShadowXOffset (double val) |
double | softShadowXOffset () |
void | setSoftShadowYOffset (double val) |
double | softShadowYOffset () |
void | setSoftShadowOpacity (double val) |
double | softShadowOpacity () |
void | setSoftShadowBlendMode (int val) |
double | softShadowBlendMode () |
void | setSoftShadowErasedByObject (bool val) |
bool | softShadowErasedByObject () |
void | setSoftShadowHasObjectTransparency (bool val) |
bool | softShadowHasObjectTransparency () |
int | frameType () const |
rect / oval / round / other | |
void | setFrameType (int val) |
bool | hasDefaultShape () const |
void | setHasDefaultShape (bool val) |
bool | isAutoFrame () const |
void | setIsAutoFrame (bool val) |
bool | keepAspectRatio () const |
void | setKeepAspectRatio (bool val) |
bool | fitImageToFrame () const |
void | setFitImageToFrame (bool val) |
bool | isImageInline () const |
void | setImageInline (bool val) |
void | setInlineExt (QString val) |
void | setInlineData (QString data) |
void | makeImageInline () |
void | makeImageExternal (QString path) |
double | textToFrameDistLeft () const |
double | textToFrameDistRight () const |
double | textToFrameDistTop () const |
double | textToFrameDistBottom () const |
int | columns () const |
double | columnGap () const |
double | gridOffset () const |
double | gridDistance () const |
int | verticalAlignment () |
void | setTextToFrameDistLeft (double) |
void | setTextToFrameDistRight (double) |
void | setTextToFrameDistTop (double) |
void | setTextToFrameDistBottom (double) |
void | setColumns (int) |
void | setColumnGap (double) |
void | setGridOffset (double) |
void | setGridDistance (double) |
void | setVerticalAlignment (int) |
FirstLineOffsetPolicy | firstLineOffset () const |
void | setFirstLineOffset (FirstLineOffsetPolicy) |
void | setTextToFrameDist (double newLeft, double newRight, double newTop, double newBottom) |
Set the text to frame distances all at once. More... | |
QString | itemName () const |
Get name of the item. More... | |
void | setItemName (const QString &newName) |
Set name of the item. More... | |
QString | gradient () const |
Get the name of the gradient of the object. | |
void | setGradient (const QString &newGradient) |
Set the fill gradient of the object. More... | |
QString | strokeGradient () const |
Get the name of the stroke gradient of the object. | |
void | setStrokeGradient (const QString &newGradient) |
Set the stroke gradient of the object. More... | |
QString | pattern () const |
Get the name of the pattern of the object. | |
void | patternTransform (double &scaleX, double &scaleY, double &offsetX, double &offsetY, double &rotation, double &skewX, double &skewY) const |
Get the pattern transformation matrix of the object. | |
void | setPattern (const QString &newPattern) |
Set the fill pattern of the object. More... | |
void | setPatternTransform (double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY) |
Set the fill pattern transformation of the object. | |
void | setPatternFlip (bool flipX, bool flipY) |
void | patternFlip (bool &flipX, bool &flipY) |
QString | fillColor () const |
Get the (name of the) fill color of the object. | |
void | setFillColor (const QString &newColor) |
Set the fill color of the object. More... | |
double | fillShade () const |
Get the shade of the fill color. | |
void | setFillShade (double newShade) |
Set the fill color shade. More... | |
double | fillTransparency () const |
Get the transparency of the fill color. | |
void | setFillTransparency (double newTransparency) |
Set the transparency of the fill color. More... | |
int | fillBlendmode () const |
Get the blendmode of the fill color. | |
void | setFillBlendmode (int newBlendmode) |
Set the blendmode of the fill color. More... | |
int | lineBlendmode () const |
Get the blendmode of the stroke color. | |
void | setLineBlendmode (int newBlendmode) |
Set the blendmode of the stroke color. More... | |
QString | lineColor () const |
Get the line color of the object. | |
void | setLineColor (const QString &newColor) |
Set the line color of the object. More... | |
double | lineShade () const |
Get the line color shade. | |
void | setLineShade (double newShade) |
Set the line color shade. More... | |
double | lineTransparency () const |
Get the line transparency. | |
void | setLineTransparency (double newTransparency) |
Set the transparency of the line color. More... | |
void | setHatchParameters (int mode, double distance, double angle, bool useBackground, QString background, QString foreground) |
QString | strokePattern () const |
Get the name of the stroke pattern of the object. | |
void | strokePatternTransform (double &scaleX, double &scaleY, double &offsetX, double &offsetY, double &rotation, double &skewX, double &skewY, double &space) const |
Get the stroke pattern transformation matrix of the object. | |
void | setStrokePattern (const QString &newPattern) |
Set the stroke pattern of the object. More... | |
void | setStrokePatternTransform (double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY, double space) |
Set the stroke pattern transformation of the object. | |
void | setStrokePatternFlip (bool flipX, bool flipY) |
void | strokePatternFlip (bool &flipX, bool &flipY) |
void | setStrokePatternToPath (bool enable) |
bool | isStrokePatternToPath () |
void | setLineQColor () |
Set the QColor for the line. | |
void | setFillQColor () |
Set the QColor for the fill. | |
Qt::PenStyle | lineStyle () const |
Get the style of line. | |
void | setLineStyle (Qt::PenStyle newStyle) |
Set the style of line. More... | |
double | lineWidth () const |
Get the width of the line. | |
void | setLineWidth (double newWidth) |
Set the width of line. More... | |
Qt::PenCapStyle | lineEnd () const |
Get the end cap style of the line. | |
void | setLineEnd (Qt::PenCapStyle newStyle) |
Set the end style of line. More... | |
Qt::PenJoinStyle | lineJoin () const |
Get the join style of multi-segment lines. | |
void | setLineJoin (Qt::PenJoinStyle newStyle) |
Set the join style of line. More... | |
QString | customLineStyle () const |
Get name of active custom line style. | |
void | setCustomLineStyle (const QString &newStyle) |
Set custom line style. More... | |
int | startArrowIndex () const |
Get start arrow index. More... | |
void | setStartArrowIndex (int newIndex) |
Set start arrow index. More... | |
int | endArrowIndex () const |
Get end arrow index. More... | |
void | setEndArrowIndex (int newIndex) |
Set end arrow index. More... | |
int | startArrowScale () const |
Get start arrow scale. More... | |
void | setStartArrowScale (int newScale) |
Set start arrow scale. More... | |
int | endArrowScale () const |
Get end arrow scale. More... | |
void | setEndArrowScale (int newScale) |
Set end arrow scale. More... | |
bool | imageFlippedH () const |
Is the image flipped horizontally? | |
void | setImageFlippedH (bool flipped) |
Horizontally flip / unflip the image. | |
void | flipImageH () |
Flip an image horizontally. | |
bool | imageFlippedV () const |
Is the image flipped vertically? | |
void | setImageFlippedV (bool flipped) |
Vertically flip / unflip the image. | |
void | flipImageV () |
Flip an image vertically. | |
void | setImageScalingMode (bool freeScale, bool keepRatio) |
Set the image scaling mode. More... | |
void | toggleLock () |
Lock or unlock this pageitem. | |
bool | locked () const |
is the item locked ? | |
void | setLocked (bool isLocked) |
Lock or unlock this pageitem. | |
void | toggleSizeLock () |
Toggle lock for resizing. | |
bool | sizeLocked () const |
Is the item's size locked? | |
bool | sizeHLocked () const |
bool | sizeVLocked () const |
void | setSizeLocked (bool isLocked) |
set lock for resizing | |
void | setSizeHLocked (bool isLocked) |
void | setSizeVLocked (bool isLocked) |
TextFlowMode | textFlowMode () const |
Does text flow around this object and how. More... | |
void | setTextFlowMode (TextFlowMode mode) |
Changes the way text flows around this item. More... | |
bool | textFlowAroundObject () const |
If text should flow around object frame. More... | |
bool | textFlowUsesFrameShape () const |
If text should flow around object frame. More... | |
bool | textFlowUsesBoundingBox () const |
If text should flow around bounding box. More... | |
bool | textFlowUsesContourLine () const |
If text should flow around contour line. More... | |
bool | textFlowUsesImageClipping () const |
If text should flow around image clipping path. More... | |
void | checkTextFlowInteractions (bool allItems=false) |
To be called carefully because it eventually triggers a relayout of long text frames strings, but necesarily when you change the document. More... | |
ItemType | itemType () const |
Get the frame type. More... | |
void | convertTo (ItemType newType) |
Convert this PageItem to PageItem type newType More... | |
virtual void | setLayer (int layerId) |
void | checkChanges (bool force=false) |
Check the changes to the item and add undo actions for them. More... | |
void | restore (UndoState *state, bool isUndo) |
Required by the UndoObject. | |
virtual void | getNamedResources (ResourceCollection &lists) const |
virtual void | replaceNamedResources (ResourceCollection &newNames) |
QString | generateUniqueCopyName (const QString originalName, bool prependCopy=true) const |
Return a variant of `originalName' that is guaranteed to be unique in the same document as this PageItem. If the passed name is not in use it is returned unchanged. More... | |
bool | printEnabled () const |
Is this item printed? More... | |
void | setPrintEnabled (bool toPrint) |
Tells if the frame is set to be printed or not. More... | |
void | togglePrintEnabled () |
Toggle printable. More... | |
bool | isTagged () const |
Tells if the frame is tagged or not. More... | |
void | setTagged (bool) |
Set the tagged member for use when deleting items, instead of reselecting them. More... | |
bool | loadImage (const QString &filename, const bool reload, const int gsResolution=-1, bool showMsg=false) |
Load an image into an image frame, moved from ScribusView. More... | |
bool | connectToGUI () |
Connect the item's signals to the GUI, primarily the Properties palette, also some to ScMW. More... | |
bool | disconnectFromGUI () |
void | emitAllToGUI () |
Emit the items properties to the GUI in one go. | |
ScribusDoc * | doc () const |
Get the document that this item belongs to. | |
bool | isAnnotation () const |
void | setIsAnnotation (bool) |
void | setIsBookMark (bool) |
void | setAnnotation (const Annotation &ad) |
Annotation & | annotation () |
const Annotation & | annotation () const |
bool | imageVisible () const |
void | setImageVisible (bool) |
void | updateConstants () |
bool | isWelded () |
void | weldTo (PageItem *item) |
QList< PageItem * > | itemsWeldedTo (PageItem *except=NULL) |
void | unWeld () |
void | addWelded (PageItem *item) |
void | moveWelded (double dX, double dY, int weld) |
void | moveWelded (double dX, double dY, PageItem *except=NULL) |
void | rotateWelded (double dR, double oldRot) |
void | setWeldPoint (double dX, double dY, PageItem *pItem) |
added for autowelding feature of notes frames, setting welding point with given pItem to given coords | |
QString | getItemTextSaxed (int selStart, int selLength) |
used by notes frames to get content of notes from itemText | |
bool | groupClipping () |
void | setGroupClipping (bool val) |
bool | hasFill () |
bool | hasStroke () |
int | maxCharsInFrame () |
void | moveUndoAction () |
void | resizeUndoAction () |
void | rotateUndoAction () |
void | changeImageOffsetUndoAction () |
void | changeImageScaleUndoAction () |
Public Member Functions inherited from UndoObject | |
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. | |
Public Member Functions inherited from SingleObservable< PageItem > | |
SingleObservable (MassObservable< PageItem * > *massObservable) | |
void | setMassObservable (MassObservable< PageItem * > *massObservable) |
virtual void | update () |
virtual void | updateLayout () |
Static Public Attributes | |
static const double | MinimumRowHeight = 3.0 |
The minimum row height. | |
static const double | MinimumColumnWidth = 3.0 |
The minimum column width. | |
Static Public Attributes inherited from SaxIO | |
static const Xml_string | saxxDefaultElem |
Protected Member Functions | |
virtual void | DrawObj_Item (ScPainter *p, QRectF clipRect) |
Paints this item. | |
Protected Member Functions inherited from PageItem | |
PageItem (const PageItem &other) | |
void | DrawObj_ImageFrame (ScPainter *p, double sc) |
void | DrawObj_Polygon (ScPainter *p) |
void | DrawObj_PolyLine (ScPainter *p) |
void | DrawObj_PathText (ScPainter *p, double sc) |
void | drawLockedMarker (ScPainter *p) |
void | drawArrow (ScPainter *p, QTransform &arrowTrans, int arrowIndex) |
bool | checkGradientUndoRedo (SimpleState *state, bool isUndo) |
bool | shouldCheck () |
Returns true if the actions should be sent to the UndoManager. More... | |
void | select () |
Clears the current selection and selects this PageItem. | |
void | restoreAppMode (SimpleState *state, bool isUndo) |
void | restoreArc (SimpleState *state, bool isUndo) |
void | restoreArrow (SimpleState *state, bool isUndo, bool isStart) |
void | restoreBottomTextFrameDist (SimpleState *state, bool isUndo) |
void | restoreCharStyle (SimpleState *state, bool isUndo) |
void | restoreClearImage (UndoState *state, bool isUndo) |
void | restoreColumns (SimpleState *state, bool isUndo) |
void | restoreColumnsGap (SimpleState *state, bool isUndo) |
void | restoreConnectPath (SimpleState *state, bool isUndo) |
void | restoreContourLine (SimpleState *state, bool isUndo) |
void | restoreCornerRadius (SimpleState *state, bool isUndo) |
void | restoreCreateMeshGrad (SimpleState *state, bool isUndo) |
void | restoreCustomLineStyle (SimpleState *state, bool isUndo) |
void | restoreDefaultParagraphStyle (SimpleState *state, bool isUndo) |
void | restoreDeleteFrameText (SimpleState *state, bool isUndo) |
void | restoreDropLinks (UndoState *state, bool isUndo) |
void | restoreEndArrowScale (SimpleState *state, bool isUndo) |
void | restoreFill (SimpleState *state, bool isUndo) |
void | restoreFillGradient (SimpleState *state, bool isUndo) |
void | restoreFillTP (SimpleState *state, bool isUndo) |
void | restoreFirstLineOffset (SimpleState *state, bool isUndo) |
void | restoreGetImage (UndoState *state, bool isUndo) |
void | restoreGradPos (SimpleState *state, bool isUndo) |
void | restoreGradientCol1 (SimpleState *state, bool isUndo) |
void | restoreGradientCol2 (SimpleState *state, bool isUndo) |
void | restoreGradientCol3 (SimpleState *state, bool isUndo) |
void | restoreGradientCol4 (SimpleState *state, bool isUndo) |
void | restoreGradientColor1 (SimpleState *state, bool isUndo) |
void | restoreGradientColor2 (SimpleState *state, bool isUndo) |
void | restoreGradientColor3 (SimpleState *state, bool isUndo) |
void | restoreGradientColor4 (SimpleState *state, bool isUndo) |
void | restoreGradientControl1 (SimpleState *state, bool isUndo) |
void | restoreGradientControl2 (SimpleState *state, bool isUndo) |
void | restoreGradientControl3 (SimpleState *state, bool isUndo) |
void | restoreGradientControl4 (SimpleState *state, bool isUndo) |
void | restoreGradientControl5 (SimpleState *state, bool isUndo) |
void | restoreGradientEndX (SimpleState *state, bool isUndo) |
void | restoreGradientEndY (SimpleState *state, bool isUndo) |
void | restoreGradientFocalX (SimpleState *state, bool isUndo) |
void | restoreGradientFocalY (SimpleState *state, bool isUndo) |
void | restoreGradientMaskEndX (SimpleState *state, bool isUndo) |
void | restoreGradientMaskEndY (SimpleState *state, bool isUndo) |
void | restoreGradientMaskFocalX (SimpleState *state, bool isUndo) |
void | restoreGradientMaskFocalY (SimpleState *state, bool isUndo) |
void | restoreGradientMaskScale (SimpleState *state, bool isUndo) |
void | restoreGradientMaskSkew (SimpleState *state, bool isUndo) |
void | restoreGradientMaskStartX (SimpleState *state, bool isUndo) |
void | restoreGradientMaskStartY (SimpleState *state, bool isUndo) |
void | restoreGradientMeshColor (SimpleState *state, bool isUndo) |
void | restoreGradientScale (SimpleState *state, bool isUndo) |
void | restoreGradientShade1 (SimpleState *state, bool isUndo) |
void | restoreGradientShade2 (SimpleState *state, bool isUndo) |
void | restoreGradientShade3 (SimpleState *state, bool isUndo) |
void | restoreGradientShade4 (SimpleState *state, bool isUndo) |
void | restoreGradientSkew (SimpleState *state, bool isUndo) |
void | restoreGradientStartX (SimpleState *state, bool isUndo) |
void | restoreGradientStartY (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeEndX (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeEndY (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeFocalX (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeFocalY (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeScale (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeSkew (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeStartX (SimpleState *state, bool isUndo) |
void | restoreGradientStrokeStartY (SimpleState *state, bool isUndo) |
void | restoreGradientTrans1 (SimpleState *state, bool isUndo) |
void | restoreGradientTrans2 (SimpleState *state, bool isUndo) |
void | restoreGradientTrans3 (SimpleState *state, bool isUndo) |
void | restoreGradientTrans4 (SimpleState *state, bool isUndo) |
void | restoreGradientType (SimpleState *state, bool isUndo) |
void | restoreGradientTypeStroke (SimpleState *state, bool isUndo) |
void | restoreImageEffects (UndoState *state, bool isUndo) |
void | restoreImageNbr (SimpleState *state, bool isUndo) |
void | restoreImageOffsetChange (SimpleState *state, bool isUndo) |
void | restoreImageRotation (SimpleState *state, bool isUndo) |
void | restoreImageScaleChange (SimpleState *state, bool isUndo) |
void | restoreImageScaleMode (SimpleState *state, bool isUndo) |
void | restoreInsertFrameText (SimpleState *state, bool isUndo) |
void | restoreLayer (SimpleState *state, bool isUndo) |
void | restoreLeftTextFrameDist (SimpleState *state, bool isUndo) |
void | restoreLineColor (SimpleState *state, bool isUndo) |
void | restoreLineEnd (SimpleState *state, bool isUndo) |
void | restoreLineJoin (SimpleState *state, bool isUndo) |
void | restoreLineShade (SimpleState *state, bool isUndo) |
void | restoreLineStyle (SimpleState *state, bool isUndo) |
void | restoreLineTP (SimpleState *state, bool isUndo) |
void | restoreLineWidth (SimpleState *state, bool isUndo) |
void | restoreLinkTextFrame (UndoState *state, bool isUndo) |
void | restoreMarkString (SimpleState *state, bool isUndo) |
void | restoreMaskGradient (SimpleState *state, bool isUndo) |
void | restoreMaskType (SimpleState *state, bool isUndo) |
void | restoreMove (SimpleState *state, bool isUndo) |
void | restoreMoveMeshGrad (SimpleState *state, bool isUndo) |
void | restoreMoveMeshPatch (SimpleState *state, bool isUndo) |
void | restoreName (SimpleState *state, bool isUndo) |
void | restorePStyle (SimpleState *state, bool isUndo) |
void | restoreParagraphStyle (SimpleState *state, bool isUndo) |
void | restorePasteInline (SimpleState *state, bool isUndo) |
void | restorePasteText (SimpleState *state, bool isUndo) |
void | restorePathOperation (UndoState *state, bool isUndo) |
void | restorePoly (SimpleState *state, bool isUndo, bool isContour) |
void | restorePolygon (SimpleState *state, bool isUndo) |
void | restoreRemoveMeshPatch (SimpleState *state, bool isUndo) |
void | restoreResTyp (SimpleState *state, bool isUndo) |
void | restoreResetMeshGrad (SimpleState *state, bool isUndo) |
void | restoreResize (SimpleState *state, bool isUndo) |
void | restoreReverseText (UndoState *state, bool isUndo) |
void | restoreRightTextFrameDist (SimpleState *state, bool isUndo) |
void | restoreRotate (SimpleState *state, bool isUndo) |
void | restoreSetCharStyle (SimpleState *state, bool isUndo) |
void | restoreSetParagraphStyle (SimpleState *state, bool isUndo) |
void | restoreShade (SimpleState *state, bool isUndo) |
void | restoreShapeContour (UndoState *state, bool isUndo) |
void | restoreShapeType (SimpleState *state, bool isUndo) |
void | restoreShowImage (SimpleState *state, bool isUndo) |
void | restoreSnapToPatchGrid (SimpleState *state, bool isUndo) |
void | restoreSpiral (SimpleState *state, bool isUndo) |
void | restoreSplitItem (SimpleState *state, bool isUndo) |
void | restoreStartArrowScale (SimpleState *state, bool isUndo) |
void | restoreStrokeGradient (SimpleState *state, bool isUndo) |
void | restoreTextFlowing (SimpleState *state, bool isUndo) |
void | restoreTopTextFrameDist (SimpleState *state, bool isUndo) |
void | restoreTransform (SimpleState *state, bool isUndo) |
void | restoreType (SimpleState *state, bool isUndo) |
void | restoreUnWeldItem (SimpleState *state, bool isUndo) |
void | restoreUniteItem (SimpleState *state, bool isUndo) |
void | restoreUnlinkTextFrame (UndoState *state, bool isUndo) |
void | restoreVerticalAlign (SimpleState *state, bool isUndo) |
void | restoreWeldItems (SimpleState *state, bool isUndo) |
void | restoreSoftShadow (SimpleState *state, bool isUndo) |
void | restoreSoftShadowColor (SimpleState *state, bool isUndo) |
void | restoreSoftShadowShade (SimpleState *state, bool isUndo) |
void | restoreSoftShadowBlurRadius (SimpleState *state, bool isUndo) |
void | restoreSoftShadowXOffset (SimpleState *state, bool isUndo) |
void | restoreSoftShadowYOffset (SimpleState *state, bool isUndo) |
void | restoreSoftShadowOpacity (SimpleState *state, bool isUndo) |
void | restoreSoftShadowBlendMode (SimpleState *state, bool isUndo) |
void | restoreSoftShadowErasedByObject (SimpleState *state, bool isUndo) |
void | restoreSoftShadowHasObjectTransparency (SimpleState *state, bool isUndo) |
Properties | |
int | rows |
int | columns |
QString | fillColor |
TableBorder | leftBorder |
TableBorder | rightBorder |
TableBorder | topBorder |
TableBorder | bottomBorder |
QString | style |
Properties inherited from PageItem | |
QString | itemName |
QString | fillColor |
QString | lineColor |
double | fillShade |
double | lineShade |
double | fillTransparency |
double | lineTransparency |
bool | m_Locked |
Is the item locked (cannot be moved, resized, etc)? More... | |
bool | m_SizeLocked |
Is the item's size locked? More... | |
bool | m_SizeHLocked |
bool | m_SizeVLocked |
bool | m_ImageIsFlippedV |
Is the image in this image item flipped vertically? More... | |
bool | m_ImageIsFlippedH |
Is the image in this image item flipped horizontally? More... | |
double | lineWidth |
QString | customLineStyle |
int | startArrowIndex |
int | endArrowIndex |
bool | m_PrintEnabled |
Is this item set to be printed/exported. More... | |
double | xPos |
double | yPos |
double | width |
double | height |
double | m_rotation |
Rotation of the item. | |
double | m_imageXScale |
Scaling X Factor for images. | |
double | m_imageYScale |
Scaling Y Factor for images. | |
double | imageXOffset |
double | imageYOffset |
bool | m_isReversed |
Is the frame is reversed? | |
double | m_roundedCorderRadius |
double | textToFrameDistLeft |
double | textToFrameDistRight |
double | textToFrameDistTop |
double | textToFrameDistBottom |
double | ColGap |
int | Cols |
FirstLineOffsetPolicy | firstLineOffset |
ItemType | itemType |
Item type. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SaxIO | |
static void | desaxeRules (const Xml_string &, desaxe::Digester &, const Xml_string=saxxDefaultElem) |
Public Attributes inherited from PageItem | |
bool | AutoName |
double | gXpos |
double | gYpos |
double | gWidth |
double | gHeight |
int | GrType |
used values 6 = linear, 7 = radial, 8 = pattern, 9 = 4 color gradient, 10 = diamond, 11,12,13 = mesh gradient, 14 = hatch | |
double | GrStartX |
double | GrStartY |
double | GrEndX |
double | GrEndY |
double | GrFocalX |
double | GrFocalY |
double | GrScale |
double | GrSkew |
VGradient::VGradientRepeatMethod | GrExtend |
FPoint | GrControl1 |
FPoint | GrControl2 |
FPoint | GrControl3 |
FPoint | GrControl4 |
FPoint | GrControl5 |
QString | GrColorP1 |
QString | GrColorP2 |
QString | GrColorP3 |
QString | GrColorP4 |
double | GrCol1transp |
double | GrCol2transp |
double | GrCol3transp |
double | GrCol4transp |
int | GrCol1Shade |
int | GrCol2Shade |
int | GrCol3Shade |
int | GrCol4Shade |
QList< meshGradientPatch > | meshGradientPatches |
QList< QList< meshPoint > > | meshGradientArray |
int | selectedMeshPointX |
int | selectedMeshPointY |
int | selectedMeshControlPoint |
bool | snapToPatchGrid |
double | gridOffset_ |
double | gridValue_ |
int | m_startArrowIndex |
int | m_endArrowIndex |
int | m_startArrowScale |
int | m_endArrowScale |
Qt::PenStyle | PLineArt |
Linestyle. | |
Qt::PenCapStyle | PLineEnd |
Qt::PenJoinStyle | PLineJoin |
QString | NamedLStyle |
QPolygon | Clip |
Defines clipping region of the elements. | |
FPointArray | PoLine |
FPointArray | ContourLine |
FPointArray | imageClip |
QList< uint > | Segments |
ScImageEffectList | effectsInUse |
bool | PoShow |
double | BaseOffs |
int | textPathType |
bool | textPathFlipped |
bool | ClipEdited |
int | FrameType |
Don't know exactly what this is, but it's not the same as itemType. | |
uint | uniqueNr |
Internal unique Item-Number, used for the undo system. | |
int | OwnPage |
page this element belongs to | |
int | oldOwnPage |
Old page number tracked for the move undo action. | |
int | savedOwnPage |
ScImage | pixm |
Darzustellendes Bild. | |
QString | Pfile |
Dateiname des Bildes. | |
QString | Pfile2 |
QString | Pfile3 |
QString | IProfile |
bool | UseEmbedded |
QString | EmProfile |
eRenderIntent | IRender |
bool | OverrideCompressionMethod |
int | CompressionMethodIndex |
bool | OverrideCompressionQuality |
int | CompressionQualityIndex |
bool | imageIsAvailable |
Flag to hiold image file availability. | |
int | OrigW |
int | OrigH |
double | BBoxX |
Bounding Box-X. | |
double | BBoxH |
Bounding Box-H. | |
double | CurX |
Zeichen X-Position. | |
double | CurY |
Zeichen Y-Position. | |
StoryText | itemText |
Text of element. | |
TextLayout | textLayout |
bool | isBookmark |
Flag for PDF Bookmark. | |
bool | Dirty |
Flag for redraw in EditMode. | |
bool | invalid |
Flag indicates that layout has changed (eg. for textlayout) | |
bool | HasSel |
Flag for text selection. | |
bool | FrameOnly |
avoid artefacts while moving | |
bool | isAutoText |
PageItem * | Parent |
bool | inPdfArticle |
bool | isRaster |
double | OldB |
double | OldH |
double | OldB2 |
double | OldH2 |
bool | Sizing |
int | LayerID |
bool | ScaleType |
bool | AspectRatio |
QVector< double > | DashValues |
double | DashOffset |
VGradient | fill_gradient |
bool | fillRule |
bool | doOverprint |
bool | m_hasSoftShadow |
QString | m_softShadowColor |
int | m_softShadowShade |
double | m_softShadowBlurRadius |
double | m_softShadowXOffset |
double | m_softShadowYOffset |
double | m_softShadowOpacity |
int | m_softShadowBlendMode |
bool | m_softShadowErasedByObject |
bool | m_softShadowHasObjectTransparency |
PageItem * | LeftLink |
PageItem * | RightLink |
PageItem * | TopLink |
PageItem * | BottomLink |
int | LeftLinkID |
int | RightLinkID |
int | TopLinkID |
int | BottomLinkID |
bool | LeftLine |
bool | RightLine |
bool | TopLine |
bool | BottomLine |
bool | isTableItem |
bool | isSingleSel |
QList< PageItem * > | groupItemList |
double | groupWidth |
double | groupHeight |
double | BoundingX |
double | BoundingY |
double | BoundingW |
double | BoundingH |
bool | ChangedMasterItem |
QString | OnMasterPage |
bool | isEmbedded |
int | inlineCharID |
QString | inlineExt |
double | oldXpos |
Stores the old X-position for undo action. Is used to detect move actions. | |
double | oldYpos |
Stores the old Y-position for undo action. Is used to detect move actions. | |
double | oldWidth |
Stores the old width for undo action. Is used to detect resize actions. | |
double | oldHeight |
Stores the old height for undo action. Is used to detect resize actions. | |
double | oldRot |
Stores the old rotation value for undo action. Is used to detect rotation actions. | |
double | oldLocalScX |
Stores the old LocalScX value for undo action. Is used to detect image scale actions. | |
double | oldLocalScY |
Stores the old LocalScY value for undo action. Is used to detect image scale actions. | |
double | oldLocalX |
Stores the old LocalX value for undo action. Is used to detect image offset actions.lo j. | |
double | oldLocalY |
Stores the old LocalY value for undo action. Is used to detect image offset actions. | |
ScribusDoc * | m_Doc |
Document this item belongs to. | |
bool | m_isAnnotation |
Flag to tell if this item is a PDF annotation item. | |
Annotation | m_annotation |
PDF annotation data. | |
bool | m_imageVisible |
Darstellungsart Bild/Titel. | |
double | m_lineWidth |
double | Oldm_lineWidth |
QString | patternStrokeVal |
Stroke pattern name. More... | |
double | patternStrokeScaleX |
Stroke pattern transformation matrix. | |
double | patternStrokeScaleY |
double | patternStrokeOffsetX |
double | patternStrokeOffsetY |
double | patternStrokeRotation |
double | patternStrokeSkewX |
double | patternStrokeSkewY |
double | patternStrokeSpace |
bool | patternStrokeMirrorX |
bool | patternStrokeMirrorY |
bool | patternStrokePath |
QString | gradientStrokeVal |
Stroke gradient name. More... | |
VGradient | stroke_gradient |
int | GrTypeStroke |
Stroke gradient variables. | |
double | GrStrokeStartX |
double | GrStrokeStartY |
double | GrStrokeEndX |
double | GrStrokeEndY |
double | GrStrokeFocalX |
double | GrStrokeFocalY |
double | GrStrokeScale |
double | GrStrokeSkew |
VGradient::VGradientRepeatMethod | GrStrokeExtend |
int | GrMask |
Mask gradient variables. | |
double | GrMaskStartX |
double | GrMaskStartY |
double | GrMaskEndX |
double | GrMaskEndY |
double | GrMaskFocalX |
double | GrMaskFocalY |
double | GrMaskScale |
double | GrMaskSkew |
double | patternMaskScaleX |
double | patternMaskScaleY |
double | patternMaskOffsetX |
double | patternMaskOffsetY |
double | patternMaskRotation |
double | patternMaskSkewX |
double | patternMaskSkewY |
bool | patternMaskMirrorX |
bool | patternMaskMirrorY |
QString | patternMaskVal |
QString | gradientMaskVal |
VGradient | mask_gradient |
bool | isInlineImage |
bool | isTempFile |
QList< WeldingInfo > | weldList |
double | hatchAngle |
double | hatchDistance |
int | hatchType |
bool | hatchUseBackground |
QString | hatchBackground |
QString | hatchForeground |
Protected Attributes inherited from PageItem | |
UndoManager *const | undoManager |
Manages undostack and is where all undo actions/states are sent. | |
PageItem * | BackBox |
PageItem * | NextBox |
uint | firstChar |
uint | MaxChars |
bool | m_sampleItem |
Used to not draw the frame for sample items. | |
MarginStruct | m_textDistanceMargins |
Left, Top, Bottom, Right distances of text from the frame. | |
int | verticalAlign |
ItemType | m_ItemType |
Frame Type, eg line, text frame, etc. More... | |
QString | AnName |
Item name. Unicode. User visible (outline, property palette, etc). More... | |
QString | gradientVal |
Fill gradient name. More... | |
QString | patternVal |
Fill pattern name. More... | |
double | patternScaleX |
Fill pattern transformation matrix. | |
double | patternScaleY |
double | patternOffsetX |
double | patternOffsetY |
double | patternRotation |
double | patternSkewX |
double | patternSkewY |
bool | patternMirrorX |
bool | patternMirrorY |
QString | fillColorVal |
Fill color name. More... | |
QString | lineColorVal |
Line color name. More... | |
double | lineShadeVal |
Line shade. More... | |
double | fillShadeVal |
Fill shade. More... | |
double | fillTransparencyVal |
Fill transparency. More... | |
double | lineTransparencyVal |
Line stroke transparency. More... | |
int | fillBlendmodeVal |
Fill transparency blendmode. More... | |
int | lineBlendmodeVal |
Line stroke transparency blendmode. More... | |
TextFlowMode | textFlowModeVal |
Should text flow around the item. More... | |
ObjAttrVector | pageItemAttributes |
Stores the attributes of the pageitem (NOT properties, the user defined ATTRIBUTES) More... | |
bool | tagged |
Is this item set to have an action done to it, eg deleted. More... | |
bool | no_fill |
bool | no_stroke |
QColor | fillQColor |
QColor | strokeQColor |
QColor | GrColorP1QColor |
QColor | GrColorP2QColor |
QColor | GrColorP3QColor |
QColor | GrColorP4QColor |
double | m_xPos |
X position on the page. | |
double | m_yPos |
Y position on the page. | |
double | m_width |
Width of the item. | |
double | m_height |
Height of the item. | |
bool | m_isSelected |
Is the item selected? | |
double | m_imageXOffset |
Image X Offset to frame. | |
double | m_imageYOffset |
Image Y Offset to frame. | |
double | m_imageRotation |
Image rotation in frame. | |
FirstLineOffsetPolicy | firstLineOffsetP |
bool | m_groupClips |
QColor | hatchBackgroundQ |
QColor | hatchForegroundQ |
The PageItem_Table class represents a table.
A table is a group of cells ordered into rows and columns. Each table contains at least one row and one column.
A table's dimensions can be changed by using insertRows()
, insertColumns()
, removeRows()
, or removeColumns()
. Use cellAt()
to retrieve table cells.
Rows and columns can be resized by using resizeRow()
and resizeColumn()
. The entire table can be resized by using resize()
Cells in the table can be merged by using mergeCells()
. Cells that have been previously merged can be split up again by using splitCells()
.
The style of the table can be controlled by setting a named style for the table using setStyle()
. Formatting properties can also be set directly on the table. Directly set properties overrides properties from the style.
This enum specifies two different strategies for resizing rows and columns. With the MoveFollowing
resize strategy, all following rows or columns are moved when a column is resized. With the ResizeFollowing
strategy, the row or column that immediately follows the resized row or column is resized to match, but apart from that, all other rows or columns remain unaffected by the resize.
|
inline |
Returns the currently active cell.
A table always has a valid active cell. This is the cell containing the cursor and that will receive keyboard input during cell text editing.
TableCell PageItem_Table::cellAt | ( | int | row, |
int | column | ||
) | const |
Returns the cell at row, column.
If the cell is covered by a spanning cell, the spanning cell is returned. If the cell is not in this table, an invalid cell is returned. The table may later mark cells returned by this function as invalid, if the row or column containing the cell is removed.
TableCell PageItem_Table::cellAt | ( | const QPointF & | point | ) | const |
Returns the cell at point, which is in canvas coordinates.
If the cell at point is covered by a spanning cell, the spanning cell is returned. If point is outside the table grid, an invalid cell is returned. The table may later mark cells returned by this function as invalid, if the row or column containing the cell is removed.
void PageItem_Table::clearSelection | ( | ) |
Clears the cell selection.
double PageItem_Table::columnPosition | ( | int | column | ) | const |
Returns the position of column, or 0 if column does not exist.
|
inline |
Returns the list of column positions for the table.
double PageItem_Table::columnWidth | ( | int | column | ) | const |
Returns the width of column, or 0 if column does not exist.
|
inline |
Returns the list of column widths for the table.
void PageItem_Table::distributeColumns | ( | int | startColumn, |
int | endColumn | ||
) |
Distributes the columns from startColumn to endColumn evenly.
All columns in the range will have the same size while the width of the entire range will remain unaffected.
If the range is not in the table, this method does nothing.
void PageItem_Table::distributeRows | ( | int | startRow, |
int | endRow | ||
) |
Distributes the rows from startRow to endRow evenly.
All rows in the range will have the same size while the height of the entire range will remain unaffected.
If the range is not in the table, this method does nothing.
|
inline |
Returns the effective height of the table.
The effective table height includes the height of the table grid plus half the width of the widest borders found along its top and bottom side.
|
inline |
Returns the effective width of the table.
The effective table width includes the width of the table grid plus half the width of the widest borders found along its left and right side.
|
inline |
Returns the offset of the table grid from the item origin.
TableHandle PageItem_Table::hitTest | ( | const QPointF & | point, |
double | threshold | ||
) | const |
Performs a hit test at point, which is in canvas coordinates.
The returned handle describes what was hit. threshold is a distance in points. point is considered to hit a handle if it is within threshold from it.
void PageItem_Table::insertColumns | ( | int | index, |
int | numColumns | ||
) |
Inserts numColumns columns before the column at index.
If index is columns(), a column is appended to the table.
If index is less than 0 or greater than columns(), or if numColumns is less than 1, this method does nothing.
void PageItem_Table::insertRows | ( | int | index, |
int | numRows | ||
) |
Inserts numRows rows before the row at index.
If index is rows(), a row is appended to the table.
If index is less than 0 or greater than rows(), or if numRows is less than 1, this method does nothing.
void PageItem_Table::mergeCells | ( | int | row, |
int | column, | ||
int | numRows, | ||
int | numCols | ||
) |
Merges the cell at the specified row and column with the adjacent cells into one cell.
The new cell will span numRows rows and numCols columns. If numRows or numCols is less than the current number of rows or columns the cell spans then this method does nothing.
If any of the merged cells are already merged with other cells, the two areas of merged cells will be united.
void PageItem_Table::moveDown | ( | ) |
Moves down in the table, or do nothing if at the table end.
void PageItem_Table::moveLeft | ( | ) |
Moves left in the table, or do nothing if at the table end.
void PageItem_Table::moveRight | ( | ) |
Moves right in the table, or do nothing if at the table end.
void PageItem_Table::moveTo | ( | const TableCell & | cell | ) |
Moves to cell, or the cell at row 0, column 0 if cell is invalid.
void PageItem_Table::moveUp | ( | ) |
Moves up in the table, or do nothing if at the table end.
void PageItem_Table::removeColumns | ( | int | index, |
int | numColumns | ||
) |
Removes numColumns columns from the table, starting with the column at index.
If the specified range falls outside the table or the number of columns is less than 1 then this method does nothing.
void PageItem_Table::removeRows | ( | int | index, |
int | numRows | ||
) |
Removes numRows rows from the table, starting with the row at index.
If the specified range falls outside the table or the number of rows is less than 1 then this method does nothing.
void PageItem_Table::resize | ( | double | width, |
double | height | ||
) |
Resizes the table grid to width, height.
The change in width and height will be distributed proportionally to columns and rows.
If any row or column hits the limit MinimumRowHeight or MinimumColumnWidth, resizing in that direction will stop for the entire table.
void PageItem_Table::resizeColumn | ( | int | column, |
double | width, | ||
ResizeStrategy | strategy = MoveFollowing |
||
) |
Resizes column to width using resize strategy strategy.
If column does not exists, this method does nothing.
void PageItem_Table::resizeRow | ( | int | row, |
double | height, | ||
ResizeStrategy | strategy = MoveFollowing |
||
) |
Resizes row to height using resize strategy strategy.
If row does not exists, this method does nothing.
double PageItem_Table::rowHeight | ( | int | row | ) | const |
Returns the height of row, or 0 if row does not exist.
|
inline |
Returns the list of row heights for the table.
double PageItem_Table::rowPosition | ( | int | row | ) | const |
Returns the position of row, or 0 if row does not exist.
|
inline |
Returns the list of row positions for the table.
void PageItem_Table::selectCell | ( | int | row, |
int | column | ||
) |
Adds the cell at row, to the selection.
If there's no cell at row, column, this function does nothing.
void PageItem_Table::selectCells | ( | int | startRow, |
int | startColumn, | ||
int | endRow, | ||
int | endColumn | ||
) |
Adds the cells in the area between two cells to the selection.
This functions first fetches the two cells at startRow, startColumn and endRow, endColumn and then selects all cells that intersect the rectangular area of cells that encloses the two cells.
If any of the specified cell locations are outside the table, this function does nothing.
|
inline |
Returns the set of selected cells.
QSet< int > PageItem_Table::selectedColumns | ( | ) | const |
Returns the set of selected columns.
Any column that is spanned by one of the selected cells is considered selected.
QSet< int > PageItem_Table::selectedRows | ( | ) | const |
Returns the set of selected rows.
Any row that is spanned by one of the selected cells is considered selected.
void PageItem_Table::splitCell | ( | int | row, |
int | column, | ||
int | numRows, | ||
int | numCols | ||
) |
Splits the specified cell at row and column into an array of multiple cells with dimensions specified by numRows and numCols.
|
inline |
Returns the height of the table.
This is the height of the table grid, not including any borders along the top and left side.
|
inline |
Returns the width of the table.
This is the width of the table grid, not including any borders along the left and right side.