Coconut Framework  beta
CNTextSection.h
Go to the documentation of this file.
1 
8 #ifndef CNTEXTSECTION_H
9 #define CNTEXTSECTION_H
10 
11 #include "CNTextElement.h"
12 #include "CNTextString.h"
13 #include "CNObjectList.h"
14 
17 {
21  struct CNTextSection * parent ;
28 } ;
29 
38 struct CNTextSection *
39 CNAllocateTextSection(struct CNTextSection * parent, const struct CNTextString * beginstr, const struct CNTextString * endstr, struct CNResource * resource) ;
40 
46 static inline struct CNObject *
48 {
49  return CNObjectOfTextElement(&(src->superClass)) ;
50 }
51 
56 static inline void
58 {
60 }
61 
66 static inline void
68 {
70 }
71 
77 void
78 CNAppendChildSectionToSection(struct CNTextSection * parent, struct CNTextSection * child) ;
79 
85 void
86 CNAppendChildLineToSection(struct CNTextSection * parent, struct CNTextLine * child) ;
87 
88 #endif /* CNTEXTSECTION_H */
Element of CNText.
Definition: CNTextElement.h:23
struct CNTextString beginString
Definition: CNTextSection.h:23
struct CNTextElement superClass
Definition: CNTextSection.h:19
List of CNObject.
Definition: CNObjectList.h:17
static void CNReleaseTextSection(struct CNTextSection *dst)
Release the reference count.
Definition: CNTextSection.h:67
Definition: CNTextSection.h:16
Root object.
Definition: CNObject.h:38
Definition: CNTextLine.h:15
Define CNTextString class.
struct CNTextString endString
Definition: CNTextSection.h:25
Define CNTextElement class.
static void CNRetainTextSection(struct CNTextSection *dst)
Retain the reference count.
Definition: CNTextSection.h:57
void CNAppendChildLineToSection(struct CNTextSection *parent, struct CNTextLine *child)
Append new line as a last element of the parent section.
void CNAppendChildSectionToSection(struct CNTextSection *parent, struct CNTextSection *child)
Append new section as a last element of the parent section.
static void CNReleaseTextElement(struct CNTextElement *dst)
Release the reference count.
Definition: CNTextElement.h:84
static struct CNObject * CNObjectOfTextElement(struct CNTextElement *src)
Get super class of text element.
Definition: CNTextElement.h:64
Definition: CNTextString.h:14
static void CNRetainTextElement(struct CNTextElement *dst)
Retain the reference count.
Definition: CNTextElement.h:74
struct CNObjectList childElements
Definition: CNTextSection.h:27
struct CNTextSection * parent
Definition: CNTextSection.h:21
struct CNTextSection * CNAllocateTextSection(struct CNTextSection *parent, const struct CNTextString *beginstr, const struct CNTextString *endstr, struct CNResource *resource)
Allocate text section.
Define CNObjectList data structure.
static struct CNObject * CNObjectOfTextSection(struct CNTextSection *src)
Get super class of text section.
Definition: CNTextSection.h:47