• Eike Rathke's avatar
    Prepare for translated new AutoFormat Table Styles, tdf#101349 · b56cd805
    Eike Rathke yazdı
    Stored in file are resource IDs for predefined style names, user
    defined styles are stored with ID 0xffff and display the given
    name. The 16 old styles have IDs 0..15, so add strings for the 10
    new styles and append those to the already existing IDs assigning
    them the range 16..25
    
    Once the final autotbl.fmt file with only new styles will be
    available, patch that to change the 0xffff user defined to those
    16..25 (0x10 to 0x19) IDs, it is the uint16 immediately following
    the style name (Little Endian). Order of styles should match the
    one in this change, if not, change the change..
    
    Also, this eliminates the duplicated translation entries in
    sw/inc/strings.hrc and instead in
    sw/source/core/doc/DocumentStylePoolManager.cxx pulls the
    translations from include/svx/strings.hrc
    
    Change-Id: I7827ae22ab05901e6580ff1b9cd812db55f94f7f
    Reviewed-on: https://gerrit.libreoffice.org/45544Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
    b56cd805
poolfmt.hxx 19.3 KB