summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIssa Alkurtass <ialkurtass@kacst.edu.sa>2013-06-15 14:47:10 +0200
committerIssa Alkurtass <ialkurtass@kacst.edu.sa>2013-06-15 18:37:01 +0200
commit16613995dd9489e190e74eadae357a7b6c45c594 (patch)
treea5ff70af49fbcdfa4448abc187050ed6df7a8727
parentff318ccb0cd5e87633a1bcc9c491702cba76e712 (diff)
Enable Sifr theme
Change-Id: I3adcc90fe7621c11e77b05d4394b8d55ad223469
-rw-r--r--configure.ac8
-rw-r--r--cui/uiconfig/ui/optviewpage.ui1
-rw-r--r--icon-themes/README2
-rw-r--r--include/vcl/settings.hxx5
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs5
-rw-r--r--scp2/source/ooo/file_ooo.scp9
-rw-r--r--scp2/source/ooo/module_hidden_ooo.scp3
-rw-r--r--vcl/source/app/settings.cxx3
8 files changed, 29 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 5bca1f5dccdf..7d0ae76133f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1249,7 +1249,7 @@ AC_ARG_WITH(galleries,
AC_ARG_WITH(theme,
AS_HELP_STRING([--with-theme="theme1 theme2..."],
[Choose which themes to include. By default those themes with an '*' are included.
- Possible choices: *crystal, *default (galaxy), *hicontrast, human, industrial, *oxygen, *tango, *tango_testing.]),
+ Possible choices: *crystal, *default (galaxy), *hicontrast, human, industrial, *oxygen, *sifr, *tango, *tango_testing.]),
,)
AC_ARG_WITH(helppack-integration,
@@ -10695,7 +10695,7 @@ dnl ===================================================================
AC_MSG_CHECKING([which themes to include])
# if none given use default subset of available themes
if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
- with_theme="crystal default hicontrast oxygen tango"
+ with_theme="crystal default hicontrast oxygen tango sifr"
test "$ENABLE_RELEASE_BUILD" = "FALSE" && with_theme="$with_theme tango_testing"
fi
@@ -10703,7 +10703,7 @@ WITH_THEMES=""
if test "x$with_theme" != "xno"; then
for theme in $with_theme; do
case $theme in
- crystal|default|galaxy|hicontrast|human|industrial|oxygen|tango|tango_testing) : ;;
+ crystal|default|galaxy|hicontrast|human|industrial|oxygen|sifr|tango|tango_testing) : ;;
*) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
esac
WITH_THEMES="$WITH_THEMES $theme"
@@ -11869,7 +11869,7 @@ if test "$enable_mpl_subset" = "yes"; then
fi
for theme in $WITH_THEMES; do
case $theme in
- crystal|default|hicontrast|human|oxygen)
+ crystal|default|hicontrast|human|oxygen|sifr)
AC_MSG_ERROR([need to disable icon themes from '$WITH_THEMES': $theme present, use --with-theme=tango]) ;;
*) : ;;
esac
diff --git a/cui/uiconfig/ui/optviewpage.ui b/cui/uiconfig/ui/optviewpage.ui
index 2cc72b1caf2a..b537723587f6 100644
--- a/cui/uiconfig/ui/optviewpage.ui
+++ b/cui/uiconfig/ui/optviewpage.ui
@@ -119,6 +119,7 @@
<item translatable="yes">Oxygen</item>
<item translatable="yes">Classic</item>
<item translatable="yes">Human</item>
+ <item translatable="yes">Sifr</item>
<item translatable="yes">Tango Testing</item>
</items>
</object>
diff --git a/icon-themes/README b/icon-themes/README
index 1358cd47b197..84f3f8560b80 100644
--- a/icon-themes/README
+++ b/icon-themes/README
@@ -28,7 +28,7 @@ How to add a new image set:
scp2 compilation crashes when using a dash '-'.
It evidently splits the name into two strings.
-- Add its name (new_set) to WITH_THEMES variable in configure.in
+- Add its name (new_set) to WITH_THEMES variable in configure.ac
- Add its gid to the Files section of gid_Module_Root_Brand in
scp2/source/ooo/module_hidden_ooo.scp and add a corresponding File entry
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx
index 4a7cdf8fc7e6..2c4d6ba71beb 100644
--- a/include/vcl/settings.hxx
+++ b/include/vcl/settings.hxx
@@ -418,8 +418,9 @@ private:
#define STYLE_SYMBOLS_OXYGEN ((sal_uLong)6)
#define STYLE_SYMBOLS_CLASSIC ((sal_uLong)7)
#define STYLE_SYMBOLS_HUMAN ((sal_uLong)8)
-#define STYLE_SYMBOLS_TANGO_TESTING ((sal_uLong)9)
-#define STYLE_SYMBOLS_THEMES_MAX ((sal_uLong)10)
+#define STYLE_SYMBOLS_SIFR ((sal_uLong)9)
+#define STYLE_SYMBOLS_TANGO_TESTING ((sal_uLong)10)
+#define STYLE_SYMBOLS_THEMES_MAX ((sal_uLong)11)
#define STYLE_MENUIMAGES_OFF ((sal_uInt16)0)
#define STYLE_MENUIMAGES_ON ((sal_uInt16)1)
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index f20d0bd685d5..a50e335f9b4a 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -5617,6 +5617,11 @@
<desc>Tango Testing - used for testing by the design team</desc>
</info>
</enumeration>
+ <enumeration oor:value="sifr">
+ <info>
+ <desc>Sifr - an adaptation of the Gnome symbolic theme</desc>
+ </info>
+ </enumeration>
</constraints>
<value>auto</value>
</prop>
diff --git a/scp2/source/ooo/file_ooo.scp b/scp2/source/ooo/file_ooo.scp
index c0f10e28d407..a191c49a7616 100644
--- a/scp2/source/ooo/file_ooo.scp
+++ b/scp2/source/ooo/file_ooo.scp
@@ -845,6 +845,15 @@ File gid_File_ImagesTangoTesting_Zip
End
#endif
+#ifdef THEME_SIFR
+File gid_File_ImagesSifr_Zip
+ TXT_FILE_BODY;
+ Dir = gid_Brand_Dir_Share_Config;
+ Name = "images_sifr.zip";
+ Styles = (PACKED);
+End
+#endif
+
#ifdef THEME_HUMAN
File gid_File_ImagesHuman_Zip
TXT_FILE_BODY;
diff --git a/scp2/source/ooo/module_hidden_ooo.scp b/scp2/source/ooo/module_hidden_ooo.scp
index 59ab1d47f282..bc3eda5d6395 100644
--- a/scp2/source/ooo/module_hidden_ooo.scp
+++ b/scp2/source/ooo/module_hidden_ooo.scp
@@ -400,6 +400,9 @@ Module gid_Module_Root_Files_Images
#ifdef THEME_HUMAN
gid_File_ImagesHuman_Zip,
#endif
+#ifdef THEME_SIFR
+ gid_File_ImagesSifr_Zip
+#endif
#ifdef THEME_TANGO
gid_File_ImagesTango_Zip
#endif
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 63f056e57366..0df08a4ba2a6 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -547,6 +547,7 @@ OUString StyleSettings::ImplSymbolsStyleToName( sal_uLong nStyle ) const
case STYLE_SYMBOLS_OXYGEN: return OUString("oxygen");
case STYLE_SYMBOLS_CLASSIC: return OUString("classic");
case STYLE_SYMBOLS_HUMAN: return OUString("human");
+ case STYLE_SYMBOLS_SIFR: return OUString("sifr");
case STYLE_SYMBOLS_TANGO_TESTING: return OUString("tango_testing");
}
@@ -573,6 +574,8 @@ sal_uLong StyleSettings::ImplNameToSymbolsStyle( const OUString &rName ) const
return STYLE_SYMBOLS_CLASSIC;
else if ( rName == OUString("human") )
return STYLE_SYMBOLS_HUMAN;
+ else if ( rName == OUString("sifr") )
+ return STYLE_SYMBOLS_SIFR;
else if ( rName == OUString("tango_testing") )
return STYLE_SYMBOLS_TANGO_TESTING;