1*b1cdbd2cSJim JagielskiHow to add a new image set: 2*b1cdbd2cSJim Jagielski--------------------------- 3*b1cdbd2cSJim Jagielski 4*b1cdbd2cSJim Jagielski- Create a directory for it here (let's call it e.g. new_set) 5*b1cdbd2cSJim Jagielski 6*b1cdbd2cSJim Jagielski- Add its images_ name to ALLTAR in instsetoo_native/packimages/makefile.mk 7*b1cdbd2cSJim Jagielski 8*b1cdbd2cSJim Jagielski- Add its gid to the Files section of gid_Module_Root_Brand in 9*b1cdbd2cSJim Jagielski scp2/source/ooo/common_brand.scp and add a corresponding File entry to the 10*b1cdbd2cSJim Jagielski brand layer(s) where the image set shall be available (see for example 11*b1cdbd2cSJim Jagielski gid_Brand_File_ImagesCrystal_Zip in scp2/source/ooo/ooo_brand.scp) 12*b1cdbd2cSJim Jagielski 13*b1cdbd2cSJim Jagielski- Add a SfxSymbolsStyle constant for it in svtools/inc/imgdef.hxx, e.g. 14*b1cdbd2cSJim Jagielski SFX_SYMBOLS_STYLE_NEW_SET 15*b1cdbd2cSJim Jagielski 16*b1cdbd2cSJim Jagielski- Add a vcl constant for it in vcl/inc/settings.hxx, e.g. 17*b1cdbd2cSJim Jagielski #define STYLE_SYMBOLS_NEW_SET ((ULONG)5) 18*b1cdbd2cSJim Jagielski 19*b1cdbd2cSJim Jagielski- Map the vcl constant to its real name in 20*b1cdbd2cSJim Jagielski ::rtl::OUString StyleSettings::GetCurrentSymbolsStyleName() const 21*b1cdbd2cSJim Jagielski and 22*b1cdbd2cSJim Jagielski ULONG StyleSettings::ImplNameToSymbolsStyle( const ::rtl::OUString &rName ) const 23*b1cdbd2cSJim Jagielski both in vcl/source/app/settings.cxx, e.g. 24*b1cdbd2cSJim Jagielski case STYLE_SYMBOLS_NEW_SET: return ::rtl::OUString::createFromAscii( "new_set" ); 25*b1cdbd2cSJim Jagielski and 26*b1cdbd2cSJim Jagielski else if ( rName == ::rtl::OUString::createFromAscii( "new_set" ) ) 27*b1cdbd2cSJim Jagielski return STYLE_SYMBOLS_NEW_SET; 28*b1cdbd2cSJim Jagielski 29*b1cdbd2cSJim Jagielski- Enhance the SFX_SYMBOLS_STYLE <-> STYLE_SYMBOLS converting functions 30*b1cdbd2cSJim Jagielski static sal_Int16 implSymbolsStyleFromVCL( ULONG nStyle ) 31*b1cdbd2cSJim Jagielski and 32*b1cdbd2cSJim Jagielski static ULONG implSymbolsStyleToVCL( sal_Int16 nStyle ) 33*b1cdbd2cSJim Jagielski in svtools/source/config/miscopt.cxx. 34*b1cdbd2cSJim Jagielski 35*b1cdbd2cSJim Jagielski- Add SFX_SYMBOLS_STYLE constant to 'switch( nStyleLB_NewSelection )' in 36*b1cdbd2cSJim Jagielski BOOL OfaViewTabPage::FillItemSet( SfxItemSet& rSet ) 37*b1cdbd2cSJim Jagielski and to 'switch ( aMiscOptions.GetCurrentSymbolsStyle() )' in 38*b1cdbd2cSJim Jagielski void OfaViewTabPage::Reset( const SfxItemSet& rSet ) 39*b1cdbd2cSJim Jagielski both in svx/source/dialog/optgdlg.cxx. 40*b1cdbd2cSJim Jagielski 41*b1cdbd2cSJim Jagielski- Add localized item names to 'ListBox LB_ICONSTYLE' to 42*b1cdbd2cSJim Jagielski 'StringList [ de ]' 43*b1cdbd2cSJim Jagielski and 'StringList [ en-US ]', e.g. 44*b1cdbd2cSJim Jagielski < "New set" ; > ; 45*b1cdbd2cSJim Jagielski both in svx/source/dialog/optgdlg.src 46*b1cdbd2cSJim Jagielski 47*b1cdbd2cSJim Jagielski- Add all known localizations of the new item to svx/source/dialog/localize.sdf, e.g. 48*b1cdbd2cSJim Jagielski svx source\dialog\optgdlg.src 0 stringlist OFA_TP_VIEW.LB_ICONSTYLE 6 0 cs New set 2002-02-02 02:02:02 49*b1cdbd2cSJim Jagielski the check box item will not be visible in the other localizations otherwise, see https://issues.apache.org/ooo/show_bug.cgi?id=74982 50*b1cdbd2cSJim Jagielski 51*b1cdbd2cSJim Jagielski- Add the new_set to 'SymbolsStyle' property 52*b1cdbd2cSJim Jagielski in officecfg/registry/schema/org/openoffice/Office/Common.xcs. 53*b1cdbd2cSJim Jagielski 54*b1cdbd2cSJim Jagielski- The default theme for various desktops (KDE, GNOME, ...) is defined in 55*b1cdbd2cSJim Jagielski ULONG StyleSettings::GetCurrentSymbolsStyle() const in 56*b1cdbd2cSJim Jagielski vcl/source/app/settings.cxx 57*b1cdbd2cSJim Jagielski 58*b1cdbd2cSJim Jagielski- The fallback for particular icons is defined in 59*b1cdbd2cSJim Jagielski instsetoo_native/packimages/makefile.mk 60