OSDN Git Service

web/css/attr_text.hpp: white_space
authorMyun2 <myun2@nwhite.info>
Thu, 30 Dec 2010 07:28:43 +0000 (16:28 +0900)
committerMyun2 <myun2@nwhite.info>
Thu, 30 Dec 2010 07:28:43 +0000 (16:28 +0900)
roast/include/roast/web/css/attr_text.hpp

index 5de0b14..0f16d4a 100644 (file)
@@ -438,13 +438,19 @@ namespace roast
                        };
                        typedef text_transform_<_true_analyze> text_transform;
                        
-                       /*
-                               ROAST_LEXICAL_FIXSTR(white_space,                       "white-space")
-                               normal | pre | nowrap | pre-wrap | pre-line | inherit
-                       */
-
-
-
+                       //      white_space
+                       template <typename _Value>
+                       struct white_space_ : declaration_<_attrname_str::white_space, _Value>
+                       {
+                               ROAST_CSS_STR_DEF(normal)
+                               ROAST_CSS_STR_DEF(pre)
+                               ROAST_CSS_STR_DEF(nowrap)
+                               ROAST_LEXICAL_FIXSTR(pre_wrap, "pre-wrap")
+                               ROAST_LEXICAL_FIXSTR(pre_line, "pre-line")
+                               ROAST_CSS_STR_DEF(inherit)
+                       };
+                       typedef white_space_<_true_analyze> white_space;
+                       
                        /*
                                ROAST_LEXICAL_FIXSTR(font_stretch,                      "font-stretch")
                                normal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit