X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2FCmsTheme.java;h=e5089e35f65716ef02de5d15e4c73068f682f54c;hb=11c9710b1d2456c8304a5841d775af008a794431;hp=bd4daec2eec6cf53c59fad747e27a9d0681330b6;hpb=ebdd232d5f7d14000c423caede5cf2b0248b234a;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsTheme.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsTheme.java index bd4daec2e..e5089e35f 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsTheme.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsTheme.java @@ -19,12 +19,21 @@ public interface CmsTheme { */ InputStream getResourceAsStream(String resourceName) throws IOException; + /** Relative paths to standard web CSS. */ + Set getWebCssPaths(); + /** Relative paths to RAP specific CSS. */ Set getRapCssPaths(); + /** Relative paths to SWT specific CSS. */ + Set getSwtCssPaths(); + /** Relative paths to images such as icons. */ Set getImagesPaths(); + /** Relative paths to fonts. */ + Set getFontsPaths(); + /** Tags to be added to the header section of the HTML page. */ String getHtmlHeaders(); @@ -34,6 +43,9 @@ public interface CmsTheme { /** The default icon size (typically the smallest). */ Integer getDefaultIconSize(); + /** Loads one of the relative path provided by the other methods. */ + InputStream loadPath(String path) throws IOException; + /** * And icon with this file name (without the extension), with a best effort to * find the appropriate size, or null if not found.