textrendering/word/group/README.TXT
changeset 32 8b9155204a54
parent 0 1fb32624e06b
equal deleted inserted replaced
31:b9ad20498fb4 32:8b9155204a54
       
     1 Contents
       
     2 --------
       
     3 
       
     4 1.  How do I internationalize a Word template?
       
     5     1.1  For Word with a single "normal" template?
       
     6     1.2  For Word with multiple templates?
       
     7 
       
     8 ------------------------------------------------------------------------
       
     9 
       
    10 1.  How do I internationalize a Word template?
       
    11     1.1 For Word with a single "normal" template?
       
    12 
       
    13 It depends on the version of Word, if it's word with templates
       
    14 
       
    15 You write a tool to do this (please!):
       
    16 
       
    17 Get WORD and WPENG, and associated components.
       
    18 
       
    19 WPENG:
       
    20 
       
    21 Remove the comments from CWordModel::ConstructL() around this code:
       
    22 	iStyleList=NULL;
       
    23 	iStyleShortCutList=NULL;
       
    24 	iStyleList=CStyleList::NewL();
       
    25 	iStyleShortCutList=new(ELeave) CStyleShortCutList(3);
       
    26 	for (TInt ii=0;ii<3;ii++)
       
    27 		{
       
    28 		CParagraphStyle* style=CParagraphStyle::NewL(*iParaFormatLayer,*iCharFormatLayer);
       
    29 		RParagraphStyleInfo info(style);
       
    30 		iStyleList->AppendL(&info);
       
    31 		}
       
    32 	iStyleList->At(0).iStyle->SetType(KSystemParagraphStyleUid);
       
    33 	iStyleList->At(0).iStyle->iName=_L("Heading 1");
       
    34 	iStyleList->At(1).iStyle->SetType(KSystemParagraphStyleUid);
       
    35 	iStyleList->At(1).iStyle->iName=_L("Heading 2");
       
    36 	iStyleList->At(2).iStyle->SetType(KSystemParagraphStyleUid);
       
    37 	iStyleList->At(2).iStyle->iName=_L("Heading 3");
       
    38 	iStyleShortCutList->AppendL('1');
       
    39 	iStyleShortCutList->AppendL('2');
       
    40 	iStyleShortCutList->AppendL('3');
       
    41 	iNormalStyleShortCut='N';
       
    42 
       
    43 Rename "Heading" and shortcuts above to your desired heading and
       
    44 shortcut text.
       
    45 
       
    46 WORD:
       
    47 
       
    48 In CWordDocument::NewDocumentL()
       
    49 
       
    50 comment out these two lines:
       
    51 
       
    52 	LocateTemplateL(templateFileName);
       
    53 	//
       
    54 	DoNewDocumentL(templateFileName);
       
    55 
       
    56 Start Word in the emulator.  When Word has opened, close it straight
       
    57 away.  Open the document created (probably C:\Documents\Word) in word.
       
    58 You are now fine to edit the style information, the text should be
       
    59 OK.
       
    60 
       
    61 Don't forget all the other Word settings, such as Object view (set to
       
    62 ICONIC by default - should be glass door) and printer settings (set to
       
    63 Printer via PC for normal font information)
       
    64 
       
    65 ------------------------------------------------------------------------
       
    66 
       
    67     1.2 For Word with a single "normal" template?
       
    68 
       
    69 This hasn't been documented yet, though it shouldn't be radically
       
    70 different from the above.  Use your initiative.
       
    71