Code

Translations. French translation minor update.
[inkscape.git] / src / sp-style-elem-test.h
index 9b096c86100851aed3031880927651d2759240ec..7021be13de836a1d1cc2d0075b00928aa0e3e3ce 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef SEEN_SP_STYLE_ELEM_TEST_H
 #define SEEN_SP_STYLE_ELEM_TEST_H
 
@@ -74,8 +73,8 @@ public:
     void testWrite()
     {
         TS_ASSERT( _doc );
-        TS_ASSERT( sp_document_repr_doc(_doc) );
-        if ( !sp_document_repr_doc(_doc) ) {
+        TS_ASSERT( _doc->getReprDoc() );
+        if ( !_doc->getReprDoc() ) {
             return; // evil early return
         }
 
@@ -83,8 +82,8 @@ public:
         SP_OBJECT(style_elem)->document = _doc;
 
         SP_OBJECT(style_elem)->setKeyValue( SP_ATTR_TYPE, "text/css");
-        Inkscape::XML::Node *repr = sp_document_repr_doc(_doc)->createElement("svg:style");
-        SP_OBJECT(style_elem)->updateRepr(sp_document_repr_doc(_doc), repr, SP_OBJECT_WRITE_ALL);
+        Inkscape::XML::Node *repr = _doc->getReprDoc()->createElement("svg:style");
+        SP_OBJECT(style_elem)->updateRepr(_doc->getReprDoc(), repr, SP_OBJECT_WRITE_ALL);
         {
             gchar const *typ = repr->attribute("type");
             TS_ASSERT( typ != NULL );
@@ -100,13 +99,13 @@ public:
     void testBuild()
     {
         TS_ASSERT( _doc );
-        TS_ASSERT( sp_document_repr_doc(_doc) );
-        if ( !sp_document_repr_doc(_doc) ) {
+        TS_ASSERT( _doc->getReprDoc() );
+        if ( !_doc->getReprDoc() ) {
             return; // evil early return
         }
 
         SPStyleElem &style_elem = *SP_STYLE_ELEM(g_object_new(SP_TYPE_STYLE_ELEM, NULL));
-        Inkscape::XML::Node *const repr = sp_document_repr_doc(_doc)->createElement("svg:style");
+        Inkscape::XML::Node *const repr = _doc->getReprDoc()->createElement("svg:style");
         repr->setAttribute("type", "text/css");
         (&style_elem)->invoke_build( _doc, repr, false);
         TS_ASSERT( style_elem.is_css );
@@ -128,15 +127,15 @@ public:
     void testReadContent()
     {
         TS_ASSERT( _doc );
-        TS_ASSERT( sp_document_repr_doc(_doc) );
-        if ( !sp_document_repr_doc(_doc) ) {
+        TS_ASSERT( _doc->getReprDoc() );
+        if ( !_doc->getReprDoc() ) {
             return; // evil early return
         }
 
         SPStyleElem &style_elem = *SP_STYLE_ELEM(g_object_new(SP_TYPE_STYLE_ELEM, NULL));
-        Inkscape::XML::Node *const repr = sp_document_repr_doc(_doc)->createElement("svg:style");
+        Inkscape::XML::Node *const repr = _doc->getReprDoc()->createElement("svg:style");
         repr->setAttribute("type", "text/css");
-        Inkscape::XML::Node *const content_repr = sp_document_repr_doc(_doc)->createTextNode(".myclass { }");
+        Inkscape::XML::Node *const content_repr = _doc->getReprDoc()->createTextNode(".myclass { }");
         repr->addChild(content_repr, NULL);
         (&style_elem)->invoke_build(_doc, repr, false);
         TS_ASSERT( style_elem.is_css );
@@ -163,4 +162,4 @@ public:
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :