git-svn-id: svn://10.65.10.50/branches/R_10_00@23289 c028cbd2-c16b-5b4b-a496-9718f37d4682
61 lines
1.7 KiB
C
61 lines
1.7 KiB
C
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: rtfutils.h
|
|
// Purpose: RTF-specific code
|
|
// Author: Julian Smart
|
|
// Modified by:
|
|
// Created: 7.9.93
|
|
// RCS-ID: $Id: rtfutils.h 25095 2004-01-08 11:54:30Z JS $
|
|
// Copyright: (c) Julian Smart
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/*
|
|
* Write a suitable RTF header.
|
|
*
|
|
*/
|
|
|
|
void WriteRTFHeader(FILE *fd);
|
|
|
|
/*
|
|
* Given a TexChunk with a string value, scans through the string
|
|
* converting Latex-isms into RTF-isms, such as 2 newlines -> \par,
|
|
* and inserting spaces at the start of lines since in Latex, a newline
|
|
* implies a space, but not in RTF.
|
|
*
|
|
*/
|
|
|
|
void ProcessText2RTF(TexChunk *chunk);
|
|
|
|
/*
|
|
* Scan through all chunks starting from the given one,
|
|
* calling ProcessText2RTF to convert Latex-isms to RTF-isms.
|
|
* This should be called after Tex2Any has parsed the file,
|
|
* and before TraverseDocument is called.
|
|
*
|
|
*/
|
|
|
|
void Text2RTF(TexChunk *chunk);
|
|
|
|
|
|
/*
|
|
* Keeping track of environments to restore the styles after \pard.
|
|
* Push strings like "\qc" onto stack.
|
|
*
|
|
*/
|
|
|
|
void PushEnvironmentStyle(wxChar *style);
|
|
|
|
void PopEnvironmentStyle(void);
|
|
|
|
// Write out the styles, most recent first.
|
|
void WriteEnvironmentStyles(void);
|
|
|
|
// Called on start/end of macro examination
|
|
void DefaultRtfOnMacro(wxChar *name, int no_args, bool start);
|
|
|
|
// Called on start/end of argument examination
|
|
bool DefaultRtfOnArgument(wxChar *macro_name, int arg_no, bool start);
|
|
|
|
// Reset memory of which levels have 'books' (for WinHelp 4 contents file)
|
|
void ResetContentsLevels(int level);
|