Adapt prev 4f78696117ebe4f729880b5d9bfc2f5817b73543 to 3.5 rtl::OUString
[LibreOffice.git] / ooo_custom_images / README.txt
blobe6514d863fc8a0c17ba8bab507a05aa0395708c3
1 How to add a new image set:
2 ---------------------------
4 - Create a directory for it here (let's call it e.g. new_set)
6 - Add its images_ name to CUSTOM_IMAGE_SETS in
7   postprocess/packimages/pack/makefile.mk
9 - Add its gid to the Files section of gid_Module_Root_Brand in
10   scp2/source/ooo/module_hidden_ooo.scp and add a corresponding File entry
11   to scp2/source/ooo/file_ooo.scp (see for example
12   gid_Brand_File_ImagesCrystal_Zip)
14 - Add a vcl constant for it in vcl/inc/settings.hxx, e.g.
15   #define STYLE_SYMBOLS_NEW_SET ((ULONG)5)
17 - Map the vcl constant to its real name in
18     ::rtl::OUString StyleSettings::GetCurrentSymbolsStyleName() const
19   and 
20     ULONG StyleSettings::ImplNameToSymbolsStyle( const ::rtl::OUString &rName ) const
21   both in vcl/source/app/settings.cxx, e.g.
22     case STYLE_SYMBOLS_NEW_SET: return ::rtl::OUString::createFromAscii( "new_set" );
23   and 
24     else if ( rName == ::rtl::OUString::createFromAscii( "new_set" ) )
25         return STYLE_SYMBOLS_NEW_SET;
27 - Add localized item names to 'ListBox LB_ICONSTYLE' to
28     'StringList [ de ]'
29   and 'StringList [ en-US ]', e.g.
30     < "New set" ; > ;
31   both in cui/source/options/optgdlg.src
33 - Add all known localizations of the new item to svx/source/dialog/localize.sdf, e.g.
34     svx source\dialog\optgdlg.src       0       stringlist      OFA_TP_VIEW.LB_ICONSTYLE        6                       0       cs      New set                         2002-02-02 02:02:02
35   the check box item will not be visible in the other localizations otherwise, see http://www.openoffice.org/issues/show_bug.cgi?id=74982
37 - Add the new_set to 'SymbolsStyle' property
38   in officecfg/registry/schema/org/openoffice/Office/Common.xcs.
40 - The default theme for various desktops (KDE, GNOME, ...) is defined in
41     ULONG StyleSettings::GetCurrentSymbolsStyle() const in
42   vcl/source/app/settings.cxx
44 - The fallback for particular icons is defined in
45     postprocess/packimages/pack/makefile.mk