Changeset 99 for trunk/Lucide


Ignore:
Timestamp:
Aug 13, 2006, 10:29:52 AM (15 years ago)
Author:
Eugene Romanenko
Message:

Internationalize 'embedded' values

Location:
trunk/Lucide
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/BIN/Lucide.lng

    r94 r99  
    9191FONTINFO_TYPE=Type
    9292FONTINFO_EMBEDDED=Embedded?
     93# Embedded types
     94FONTINFO_EMBED_NOT_EMBEDDED=Not embedded
     95FONTINFO_EMBED_EMBEDDED=Embedded
     96FONTINFO_EMBED_EMBEDDED_SUBSET=Embedded subset
    9397
    9498#
  • trunk/Lucide/SOURCE/gui/fontsInfoDlg.cpp

    r91 r99  
    2222 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    2323 * in which case the provisions of the LGPL are applicable instead of those
    24  * above. If you wish to allow use of your version of this file only under the 
     24 * above. If you wish to allow use of your version of this file only under the
    2525 * terms of the LGPL, and not to allow others to use your version of this file
    2626 * under the terms of the CDDL, indicate your decision by deleting the
    2727 * provisions above and replace them with the notice and other provisions
    2828 * required by the LGPL. If you do not delete the provisions above, a recipient
    29  * may use your version of this file under the terms of any one of the CDDL 
     29 * may use your version of this file under the terms of any one of the CDDL
    3030 * or the LGPL.
    3131 *
     
    5656    type       = newstrdupL( FONTINFO_TYPE );
    5757    embed      = newstrdupL( FONTINFO_EMBEDDED );
     58    emb_notembedded    = newstrdupL( FONTINFO_EMBED_NOT_EMBEDDED );
     59    emb_embedded       = newstrdupL( FONTINFO_EMBED_EMBEDDED );
     60    emb_embeddedsubset = newstrdupL( FONTINFO_EMBED_EMBEDDED_SUBSET );
    5861}
    5962
     
    6366    delete type;
    6467    delete embed;
     68    delete emb_notembedded;
     69    delete emb_embedded;
     70    delete emb_embeddedsubset;
    6571}
    6672
     
    100106            r->miniRecordCore.hptrIcon = NULLHANDLE;
    101107            r->type = newstrdup( fonts->_buffer[i].type );
    102             r->embed = newstrdup( fonts->_buffer[i].embedded );
     108            r->embed = NULL;
     109            switch ( fonts->_buffer[i].embedded )
     110            {
     111                case LU_FONTEMBED_NOT_EMBEDDED:
     112                    r->embed = newstrdup( emb_notembedded );
     113                    break;
     114                case LU_FONTEMBED_EMBEDDED:
     115                    r->embed = newstrdup( emb_embedded );
     116                    break;
     117                case LU_FONTEMBED_EMBEDDED_SUBSET:
     118                    r->embed = newstrdup( emb_embeddedsubset );
     119                    break;
     120            }
    103121
    104122            RECORDINSERT ri;
  • trunk/Lucide/SOURCE/gui/fontsInfoDlg.h

    r35 r99  
    6464        // columns titles
    6565        PSZ name, type, embed;
     66        // embed values
     67        PSZ emb_notembedded, emb_embedded, emb_embeddedsubset;
    6668};
    6769
  • trunk/Lucide/SOURCE/gui/messages.cpp

    r94 r99  
    7676const char *FONTINFO_TYPE     = "FONTINFO_TYPE";
    7777const char *FONTINFO_EMBEDDED = "FONTINFO_EMBEDDED";
     78// 'Fonts Info' Embedded types
     79const char *FONTINFO_EMBED_NOT_EMBEDDED    = "FONTINFO_EMBED_NOT_EMBEDDED";
     80const char *FONTINFO_EMBED_EMBEDDED        = "FONTINFO_EMBED_EMBEDDED";
     81const char *FONTINFO_EMBED_EMBEDDED_SUBSET = "FONTINFO_EMBED_EMBEDDED_SUBSET";
    7882
    7983
  • trunk/Lucide/SOURCE/gui/messages.h

    r94 r99  
    7676extern const char *FONTINFO_TYPE;
    7777extern const char *FONTINFO_EMBEDDED;
     78// 'Fonts Info' Embedded types
     79extern const char *FONTINFO_EMBED_NOT_EMBEDDED;
     80extern const char *FONTINFO_EMBED_EMBEDDED;
     81extern const char *FONTINFO_EMBED_EMBEDDED_SUBSET;
    7882
    7983
  • trunk/Lucide/SOURCE/plugins/ludoc/ludoc.cpp

    r95 r99  
    332332                    SOMFree( fonts->_buffer[ i ].type );
    333333                }
    334                 if ( fonts->_buffer[ i ].embedded != NULL ) {
    335                     SOMFree( fonts->_buffer[ i ].embedded );
    336                 }
    337334            }
    338335
  • trunk/Lucide/SOURCE/plugins/ludoc/lutypes.h

    r50 r99  
    6767
    6868
     69#define LU_FONTEMBED_NOT_EMBEDDED               0
     70#define LU_FONTEMBED_EMBEDDED                   1
     71#define LU_FONTEMBED_EMBEDDED_SUBSET    2
     72
    6973struct LuFontInfo
    7074{
    71         char *name;
    72         char *type;
    73         char *embedded;
     75        char  *name;
     76        char  *type;
     77        short embedded;
    7478};
    7579
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.cpp

    r95 r99  
    801801
    802802        // embedded
    803         char *e = NULL;
    804803        if ( info->getEmbedded() ) {
    805804            if ( info->getSubset() ) {
    806                 e = "Embedded subset";
     805                fonts->_buffer[i].embedded = LU_FONTEMBED_EMBEDDED_SUBSET;
    807806            } else {
    808                 e = "Embedded";
     807                fonts->_buffer[i].embedded = LU_FONTEMBED_EMBEDDED;
    809808            }
    810809        } else {
    811             e = "Not embedded";
    812         }
    813         fonts->_buffer[i].embedded = somstrdup( e );
    814 
     810            fonts->_buffer[i].embedded = LU_FONTEMBED_NOT_EMBEDDED;
     811        }
    815812    }
    816813
Note: See TracChangeset for help on using the changeset viewer.