100 |
100 |
101 LDObject (); |
101 LDObject (); |
102 virtual ~LDObject (); |
102 virtual ~LDObject (); |
103 |
103 |
104 // Index (i.e. line number) of this object |
104 // Index (i.e. line number) of this object |
105 long getIndex (OpenFile* pFile) const; |
105 long getIndex (LDOpenFile* pFile) const; |
106 |
106 |
107 // Color used by this object. Comments, gibberish and empty entries |
107 // Color used by this object. Comments, gibberish and empty entries |
108 // do not use this field. |
108 // do not use this field. |
109 short color; |
109 short color; |
110 |
110 |
267 LDOBJ_COLORED |
267 LDOBJ_COLORED |
268 LDOBJ_SCEMANTIC |
268 LDOBJ_SCEMANTIC |
269 LDOBJ_HAS_MATRIX |
269 LDOBJ_HAS_MATRIX |
270 |
270 |
271 str fileName; // Filename of the subpart (TODO: rid this too - use fileInfo->fileName instead) |
271 str fileName; // Filename of the subpart (TODO: rid this too - use fileInfo->fileName instead) |
272 OpenFile* fileInfo; // Pointer to opened file for this subfile. null if unopened. |
272 LDOpenFile* fileInfo; // Pointer to opened file for this subfile. null if unopened. |
273 |
273 |
274 // Inlines this subfile. Note that return type is an array of heap-allocated |
274 // Inlines this subfile. Note that return type is an array of heap-allocated |
275 // LDObject-clones, they must be deleted one way or another. |
275 // LDObject-clones, they must be deleted one way or another. |
276 std::vector<LDObject*> inlineContents (bool deep, bool cache); |
276 std::vector<LDObject*> inlineContents (bool deep, bool cache); |
277 }; |
277 }; |