Fonts support in CMS Theme.
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / CmsTheme.java
index bd4daec2eec6cf53c59fad747e27a9d0681330b6..e5089e35f65716ef02de5d15e4c73068f682f54c 100644 (file)
@@ -19,12 +19,21 @@ public interface CmsTheme {
         */
        InputStream getResourceAsStream(String resourceName) throws IOException;
 
+       /** Relative paths to standard web CSS. */
+       Set<String> getWebCssPaths();
+
        /** Relative paths to RAP specific CSS. */
        Set<String> getRapCssPaths();
 
+       /** Relative paths to SWT specific CSS. */
+       Set<String> getSwtCssPaths();
+
        /** Relative paths to images such as icons. */
        Set<String> getImagesPaths();
 
+       /** Relative paths to fonts. */
+       Set<String> 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 <code>null</code> if not found.