1 /* 2 * Copyright (C) 2012 Emweb bv, Herent, Belgium. 3 * 4 * See the LICENSE file for terms of use. 5 */ 6 7 #include "Wt/WApplication.h" 8 #include "Wt/WCssTheme.h" 9 #include "Wt/WLinkedCssStyleSheet.h" 10 11 namespace Wt { 12 WTheme()13WTheme::WTheme() 14 { } 15 resourcesUrl()16std::string WTheme::resourcesUrl() const 17 { 18 return WApplication::relativeResourcesUrl() + "themes/" + name() + "/"; 19 } 20 ~WTheme()21WTheme::~WTheme() 22 { } 23 init(WApplication * app)24void WTheme::init(WApplication *app) const 25 { } 26 serveCss(WStringStream & out)27void WTheme::serveCss(WStringStream& out) const 28 { 29 std::vector<WLinkedCssStyleSheet> sheets = styleSheets(); 30 31 for (unsigned i = 0; i < sheets.size(); ++i) 32 sheets[i].cssText(out); 33 } 34 35 } 36