os/textandloc/textrendering/word/group/README.TXT
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/textrendering/word/group/README.TXT	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,71 @@
     1.4 +Contents
     1.5 +--------
     1.6 +
     1.7 +1.  How do I internationalize a Word template?
     1.8 +    1.1  For Word with a single "normal" template?
     1.9 +    1.2  For Word with multiple templates?
    1.10 +
    1.11 +------------------------------------------------------------------------
    1.12 +
    1.13 +1.  How do I internationalize a Word template?
    1.14 +    1.1 For Word with a single "normal" template?
    1.15 +
    1.16 +It depends on the version of Word, if it's word with templates
    1.17 +
    1.18 +You write a tool to do this (please!):
    1.19 +
    1.20 +Get WORD and WPENG, and associated components.
    1.21 +
    1.22 +WPENG:
    1.23 +
    1.24 +Remove the comments from CWordModel::ConstructL() around this code:
    1.25 +	iStyleList=NULL;
    1.26 +	iStyleShortCutList=NULL;
    1.27 +	iStyleList=CStyleList::NewL();
    1.28 +	iStyleShortCutList=new(ELeave) CStyleShortCutList(3);
    1.29 +	for (TInt ii=0;ii<3;ii++)
    1.30 +		{
    1.31 +		CParagraphStyle* style=CParagraphStyle::NewL(*iParaFormatLayer,*iCharFormatLayer);
    1.32 +		RParagraphStyleInfo info(style);
    1.33 +		iStyleList->AppendL(&info);
    1.34 +		}
    1.35 +	iStyleList->At(0).iStyle->SetType(KSystemParagraphStyleUid);
    1.36 +	iStyleList->At(0).iStyle->iName=_L("Heading 1");
    1.37 +	iStyleList->At(1).iStyle->SetType(KSystemParagraphStyleUid);
    1.38 +	iStyleList->At(1).iStyle->iName=_L("Heading 2");
    1.39 +	iStyleList->At(2).iStyle->SetType(KSystemParagraphStyleUid);
    1.40 +	iStyleList->At(2).iStyle->iName=_L("Heading 3");
    1.41 +	iStyleShortCutList->AppendL('1');
    1.42 +	iStyleShortCutList->AppendL('2');
    1.43 +	iStyleShortCutList->AppendL('3');
    1.44 +	iNormalStyleShortCut='N';
    1.45 +
    1.46 +Rename "Heading" and shortcuts above to your desired heading and
    1.47 +shortcut text.
    1.48 +
    1.49 +WORD:
    1.50 +
    1.51 +In CWordDocument::NewDocumentL()
    1.52 +
    1.53 +comment out these two lines:
    1.54 +
    1.55 +	LocateTemplateL(templateFileName);
    1.56 +	//
    1.57 +	DoNewDocumentL(templateFileName);
    1.58 +
    1.59 +Start Word in the emulator.  When Word has opened, close it straight
    1.60 +away.  Open the document created (probably C:\Documents\Word) in word.
    1.61 +You are now fine to edit the style information, the text should be
    1.62 +OK.
    1.63 +
    1.64 +Don't forget all the other Word settings, such as Object view (set to
    1.65 +ICONIC by default - should be glass door) and printer settings (set to
    1.66 +Printer via PC for normal font information)
    1.67 +
    1.68 +------------------------------------------------------------------------
    1.69 +
    1.70 +    1.2 For Word with a single "normal" template?
    1.71 +
    1.72 +This hasn't been documented yet, though it shouldn't be radically
    1.73 +different from the above.  Use your initiative.
    1.74 +