Lines Matching defs:style_elem
31 SPStyleElem *style_elem = new SPStyleElem();
33 if ( style_elem ) {
34 TS_ASSERT(!style_elem->is_css);
35 TS_ASSERT(style_elem->media.print);
36 TS_ASSERT(style_elem->media.screen);
37 delete style_elem;
56 SPStyleElem *style_elem = new SPStyleElem();
57 SP_OBJECT(style_elem)->document = _doc;
59 SP_OBJECT(style_elem)->setKeyValue( SP_ATTR_TYPE, "something unrecognized");
60 TS_ASSERT( !style_elem->is_css );
62 SP_OBJECT(style_elem)->setKeyValue( SP_ATTR_TYPE, "text/css");
63 TS_ASSERT( style_elem->is_css );
65 SP_OBJECT(style_elem)->setKeyValue( SP_ATTR_TYPE, "atext/css");
66 TS_ASSERT( !style_elem->is_css );
68 SP_OBJECT(style_elem)->setKeyValue( SP_ATTR_TYPE, "text/cssx");
69 TS_ASSERT( !style_elem->is_css );
71 delete style_elem;
82 SPStyleElem *style_elem = new SPStyleElem();
83 SP_OBJECT(style_elem)->document = _doc;
85 SP_OBJECT(style_elem)->setKeyValue( SP_ATTR_TYPE, "text/css");
87 SP_OBJECT(style_elem)->updateRepr(_doc->getReprDoc(), repr, SP_OBJECT_WRITE_ALL);
97 delete style_elem;
108 SPStyleElem *style_elem = new SPStyleElem();
111 style_elem->invoke_build( _doc, repr, false);
112 TS_ASSERT( style_elem->is_css );
113 TS_ASSERT( style_elem->media.print );
114 TS_ASSERT( style_elem->media.screen );
124 delete style_elem;
136 SPStyleElem *style_elem = new SPStyleElem();
141 style_elem->invoke_build(_doc, repr, false);
142 TS_ASSERT( style_elem->is_css );
148 delete style_elem;