Hello,
 do we have somewhere documentation on how UI strings are handled?
 Specifically, I'd like to do something like in the attachment, adjusting the 
tooltip for the font combo in the toolbar. Its tooltip text is hardcoded in 
officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu . How do 
I get the UI strings for the usage in the code (i.e. including l10n) and, 
since I assume that includes removing it from the .xcu file, will something 
else be affected by that?
-- 
 Lubos Lunak
 l.lunak@suse.cz
void SvxFontNameBox_Impl::CheckAndMarkUnknownFont( const OUString& fontname )
{
    if( fontname == GetText())
        return;
    GetDocFontList_Impl( &pFontList, this );
    // If the font is unknown, show it in italic.
    Font font = GetControlFont();
    if( pFontList != NULL && pFontList->IsAvailable( fontname ))
    {
        if( font.GetItalic() != ITALIC_NONE )
        {
            font.SetItalic( ITALIC_NONE );
            SetControlFont( font );
            SetQuickHelpText( OUString( "Font Name" ));
        }
    }
    else
    {
        if( font.GetItalic() != ITALIC_NORMAL )
        {
            font.SetItalic( ITALIC_NORMAL );
            SetControlFont( font );
            SetQuickHelpText( OUString( "Font Name. Current font is not available and will be 
substituted." ));
        }
    }
}
Context
- Adding/modifying UI strings · Lubos Lunak
 
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.