office-gobmx/ooo_custom_images
Vladimir Glazounov 6f22f0f174 CWS-TOOLING: integrate CWS native231
2009-03-03 11:19:58 +0100 is  r268715 : #i98648# preparations for OOo 3.2
2009-03-03 11:19:02 +0100 is  r268714 : #i98648# preparations for OOo 3.2
2009-03-02 16:26:53 +0100 is  r268662 : #i98648# preparations for OOo 3.2
2009-03-02 16:26:13 +0100 is  r268660 : #i98648# preparations for OOo 3.2
2009-03-15 12:10:21 +00:00
..
broffice/introabout CWS-TOOLING: integrate CWS native231 2009-03-15 12:10:21 +00:00
c04/svx/res
classic INTEGRATION: CWS iconupdate300u1 (1.1.2); FILE ADDED 2008-07-04 16:18:06 +00:00
dev/introabout update splashscreen, #i93184# 2008-09-02 08:08:07 +00:00
dev_broffice/introabout INTEGRATION: CWS native133 (1.2.24); FILE MERGED 2008-03-05 17:51:44 +00:00
dev_nologo/introabout update splashscreen, #i93184# 2008-09-02 08:08:07 +00:00
dev_nologo_broffice/introabout INTEGRATION: CWS native133 (1.2.18); FILE MERGED 2008-03-05 17:52:47 +00:00
industrial INTEGRATION: CWS changefileheader (1.3.78); FILE MERGED 2008-04-11 09:40:59 +00:00
nologo update splashscreen, #i93184# 2008-09-02 08:08:07 +00:00
nologo_broffice/introabout CWS-TOOLING: integrate CWS native231 2009-03-15 12:10:21 +00:00
tango CWS-TOOLING: integrate CWS overline3 2009-01-05 17:49:45 +00:00
README.txt INTEGRATION: CWS sb83 (1.3.22); FILE MERGED 2008-03-18 13:06:08 +00:00

How to add a new image set:
---------------------------

- Create a directory for it here (let's call it e.g. new_set)

- Add its images_ name to ALLTAR in instsetoo_native/packimages/makefile.mk

- Add its gid to the Files section of gid_Module_Root_Brand in
  scp2/source/ooo/common_brand.scp and add a corresponding File entry to the
  brand layer(s) where the image set shall be available (see for example
  gid_Brand_File_ImagesCrystal_Zip in scp2/source/ooo/ooo_brand.scp)

- Add a SfxSymbolsStyle constant for it in svtools/inc/imgdef.hxx, e.g.
  SFX_SYMBOLS_STYLE_NEW_SET

- Add a vcl constant for it in vcl/inc/settings.hxx, e.g.
  #define STYLE_SYMBOLS_NEW_SET ((ULONG)5)

- Map the vcl constant to its real name in
    ::rtl::OUString StyleSettings::GetCurrentSymbolsStyleName() const
  and 
    ULONG StyleSettings::ImplNameToSymbolsStyle( const ::rtl::OUString &rName ) const
  both in vcl/source/app/settings.cxx, e.g.
    case STYLE_SYMBOLS_NEW_SET: return ::rtl::OUString::createFromAscii( "new_set" );
  and 
    else if ( rName == ::rtl::OUString::createFromAscii( "new_set" ) )
    	return STYLE_SYMBOLS_NEW_SET;

- Enhance the SFX_SYMBOLS_STYLE <-> STYLE_SYMBOLS converting functions
    static sal_Int16 implSymbolsStyleFromVCL( ULONG nStyle )
  and
    static ULONG implSymbolsStyleToVCL( sal_Int16 nStyle )
  in svtools/source/config/miscopt.cxx.

- Add SFX_SYMBOLS_STYLE constant to 'switch( nStyleLB_NewSelection )' in 
    BOOL OfaViewTabPage::FillItemSet( SfxItemSet& rSet )
  and to 'switch ( aMiscOptions.GetCurrentSymbolsStyle() )' in
    void OfaViewTabPage::Reset( const SfxItemSet& rSet )
  both in svx/source/dialog/optgdlg.cxx.

- Add localized item names to 'ListBox LB_ICONSTYLE' to
    'StringList [ de ]'
  and 'StringList [ en-US ]', e.g.
    < "New set" ; > ;
  both in svx/source/dialog/optgdlg.src

- Add all known localizations of the new item to svx/source/dialog/localize.sdf, e.g.
    svx	source\dialog\optgdlg.src	0	stringlist	OFA_TP_VIEW.LB_ICONSTYLE	6			0	cs	New set				2002-02-02 02:02:02
  the check box item will not be visible in the other localizations otherwise, see http://www.openoffice.org/issues/show_bug.cgi?id=74982

- Add the new_set to 'SymbolsStyle' property
  in officecfg/registry/schema/org/openoffice/Office/Common.xcs.

- The default theme for various desktops (KDE, GNOME, ...) is defined in
    ULONG StyleSettings::GetCurrentSymbolsStyle() const in
  vcl/source/app/settings.cxx

- The fallback for particular icons is defined in
    instsetoo_native/packimages/makefile.mk