~ubuntu-branches/ubuntu/raring/calligra/raring-proposed

« back to all changes in this revision

Viewing changes to libs/kotext/styles/KoCharacterStyle.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-08-08 11:05:31 UTC
  • mto: (39.1.1 raring-proposed)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20120808110531-pwqn96dxajv0lhq1
Tags: upstream-2.5.0
ImportĀ upstreamĀ versionĀ 2.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        AdditionalFontSize, //font-size-rel can specify an addition to the parent value
102
102
        UseWindowFontColor, //boolean, same as odf
103
103
        Blink,
 
104
        AnchorType, //valid only if QTextCharFormat::isAnchor() is true
104
105
        InlineInstanceId = 577297549, // Internal: Reserved for KoInlineTextObjectManager
105
106
        ChangeTrackerId = 577297550, // Internal: Reserved for ChangeTracker
106
107
        FontYStretch = 577297551 // Internal: Ratio between Linux font pt size and Windows font height
177
178
        LineHeight
178
179
    };
179
180
 
 
181
    enum AnchorTypes {
 
182
        Bookmark,
 
183
        Anchor // corresponds to text:a ODF element
 
184
    };
 
185
 
180
186
    /**
181
187
     * Constructor. Initializes with standard size/font properties.
182
188
     * @param parent the parent object for memory management purposes.
411
417
 
412
418
    void setAdditionalFontSize(qreal percent);
413
419
    qreal additionalFontSize() const;
 
420
 
 
421
    /// set the anchor type, valid only if QTextCharFormat::isAnchor() is true
 
422
    void setAnchorType(AnchorTypes anchorType);
 
423
    /// returns the anchor type, valid only if QTextCharFormat::isAnchor() is true
 
424
    AnchorTypes anchorType() const;
414
425
 
415
426
    void copyProperties(const KoCharacterStyle *style);
416
427
    void copyProperties(const QTextCharFormat &format);