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