~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to kformula/flake/KoFormulaShape.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define KoFormulaShapeId "FormulaShapeID"
25
25
#include <KoFrameShape.h>
26
26
 
 
27
class KoStore;
 
28
class KoResourceManager;
 
29
 
27
30
class BasicElement;
28
31
class FormulaRenderer;
29
32
class FormulaData;
 
33
class FormulaDocument;
30
34
 
31
35
/**
32
36
 * @short The flake shape for a formula
43
47
class KoFormulaShape : public KoShape, public KoFrameShape {
44
48
public:
45
49
    /// The basic constructor
46
 
    KoFormulaShape();
 
50
    KoFormulaShape(KoResourceManager *documentResourceManager);
 
51
    //KoFormulaShape();
47
52
 
48
53
    /// The basic destructor
49
54
    ~KoFormulaShape();
77
82
    bool loadOdf( const KoXmlElement& element, KoShapeLoadingContext& context );
78
83
 
79
84
    virtual bool loadOdfFrameElement(const KoXmlElement& element, KoShapeLoadingContext& context);
80
 
    
 
85
    bool loadEmbeddedDocument(KoStore *store,const KoXmlElement &objectElement,
 
86
                              const KoXmlDocument &manifestDocument); // private?
 
87
    bool loadOdfEmbedded(const KoXmlElement &mathElement, KoShapeLoadingContext &context);
 
88
 
81
89
    /**
82
90
     * @brief store the shape data as ODF XML. - reimplemented from KoShape
83
91
     * This is the method that will be called when saving a shape as a described in
86
94
     */ 
87
95
    void saveOdf( KoShapeSavingContext& context ) const;
88
96
 
 
97
    KoResourceManager *resourceManager() const;
 
98
 
89
99
private:
90
100
    /// The data this shape displays
91
101
    FormulaData* m_formulaData;
92
102
 
93
103
    /// The renderer that takes care of painting the shape's formula
94
104
    FormulaRenderer* m_formulaRenderer;
 
105
 
 
106
    /// True if this formula is inline, i.e. not embedded in a formula document.
 
107
    bool m_isInline;
 
108
 
 
109
    FormulaDocument *m_document;
 
110
    KoResourceManager *m_resourceManager;
95
111
};
96
112
 
97
113
#endif // KOFORMULASHAPE_H