filters
RTFImport Class Reference
List of all members.Detailed Description
Definition at line 244 of file rtfimport.h.
Member Function Documentation
void RTFImport::addAnchor | ( | const char * | instance | ) |
Add anchor to current destination (see KWord DTD).
- Parameters:
-
instance the frameset number in the document
Definition at line 2033 of file rtfimport.cpp.
void RTFImport::addDateTime | ( | const QString & | format, | |
const bool | isDate, | |||
RTFFormat & | fmt | |||
) |
Add a date/time field and split it for KWord.
- Parameters:
-
format format of the date/time isDate is it a date field? (For the default format, if needed)
Definition at line 1650 of file rtfimport.cpp.
Add format information to document node.
- Parameters:
-
node the document node (destination) format the format information baseFormat the format information is based on this format
Definition at line 2050 of file rtfimport.cpp.
void RTFImport::addLayout | ( | DomNode & | node, | |
const QString & | name, | |||
const RTFLayout & | layout, | |||
bool | frameBreak | |||
) |
Add layout information to document node.
- Parameters:
-
node the document node (destination) name the name of the current style layout the paragraph layout information frameBreak paragraph is always the last in a frame if true
Definition at line 2264 of file rtfimport.cpp.
void RTFImport::addParagraph | ( | DomNode & | node, | |
bool | frameBreak | |||
) |
Add paragraph information to document node.
- Parameters:
-
node the document node (destination) frameBreak paragraph is always the last in a frame if true
Definition at line 2415 of file rtfimport.cpp.
void RTFImport::changeDestination | ( | RTFProperty * | property | ) |
KoFilter::ConversionStatus RTFImport::convert | ( | const QCString & | from, | |
const QCString & | to | |||
) | [virtual] |
Convert document from RTF to KWord format.
- Parameters:
-
from the mimetype for RTF to the mimetype for KWord
- Returns:
- true if the document was successfully converted
Definition at line 312 of file rtfimport.cpp.
void RTFImport::finishTable | ( | ) |
void RTFImport::ignoreKeyword | ( | RTFProperty * | ) |
Skip the keyword, as we do not need to do anything with it (either because it is supported anyway or because we cannot support it.
)
Definition at line 801 of file rtfimport.cpp.
void RTFImport::insertCellDef | ( | RTFProperty * | ) |
void RTFImport::insertDateTime | ( | RTFProperty * | property | ) |
void RTFImport::insertHexSymbol | ( | RTFProperty * | ) |
void RTFImport::insertPageNumber | ( | RTFProperty * | ) |
void RTFImport::insertSymbol | ( | RTFProperty * | property | ) |
void RTFImport::insertTabDef | ( | RTFProperty * | ) |
void RTFImport::insertTableRow | ( | RTFProperty * | = 0L |
) |
void RTFImport::insertUnicodeSymbol | ( | RTFProperty * | ) |
void RTFImport::insertUTF8 | ( | int | ch | ) |
Inserts a single (Unicode) character in UTF8 format.
- Parameters:
-
ch the character to write to the current destination
Definition at line 1212 of file rtfimport.cpp.
void RTFImport::parseBlipUid | ( | RTFProperty * | ) |
void RTFImport::parseColorTable | ( | RTFProperty * | ) |
void RTFImport::parseField | ( | RTFProperty * | ) |
Parse recursive fields.
- Note:
- The { ...} group will be used for unsupported and embedded fields.
Definition at line 1693 of file rtfimport.cpp.
void RTFImport::parseFontTable | ( | RTFProperty * | ) |
void RTFImport::parseFootNote | ( | RTFProperty * | ) |
void RTFImport::parseGroup | ( | RTFProperty * | ) |
void RTFImport::parsePicture | ( | RTFProperty * | ) |
void RTFImport::parsePlainText | ( | RTFProperty * | ) |
void RTFImport::parseRichText | ( | RTFProperty * | ) |
void RTFImport::parseStyleSheet | ( | RTFProperty * | ) |
void RTFImport::resetState | ( | ) |
Reset formatting properties to their default settings.
Definition at line 2001 of file rtfimport.cpp.
void RTFImport::selectLayoutBorder | ( | RTFProperty * | property | ) |
Select which border is the current one.
- Parameters:
-
property the property to set
Definition at line 1070 of file rtfimport.cpp.
void RTFImport::selectLayoutBorderFromCell | ( | RTFProperty * | property | ) |
Select which border is the current one, in case of a cell.
- Parameters:
-
property the property to set
Definition at line 1075 of file rtfimport.cpp.
void RTFImport::setAnsiCodepage | ( | RTFProperty * | ) |
Set document codepage to CP1252.
- Note:
- Old RTF files have a keyword but no keyword
Definition at line 833 of file rtfimport.cpp.
void RTFImport::setBorderColor | ( | RTFProperty * | ) |
Sets the value of a border color specified by token.
- Deprecated:
- not portable, as it needs an out-of-specification use of offsetof
Definition at line 965 of file rtfimport.cpp.
void RTFImport::setBorderProperty | ( | RTFProperty * | property | ) |
Sets the value of a border property specified by token.
- Parameters:
-
property the property to set
Definition at line 949 of file rtfimport.cpp.
void RTFImport::setBorderStyle | ( | RTFProperty * | property | ) |
Sets the value of a border property specified by token.
- Parameters:
-
property the property to set
Definition at line 934 of file rtfimport.cpp.
void RTFImport::setCharset | ( | RTFProperty * | property | ) |
Sets the charset.
- Parameters:
-
property the property to set
- Deprecated:
- not portable, as it needs an out-of-specification use of offsetof
Definition at line 870 of file rtfimport.cpp.
void RTFImport::setCodepage | ( | RTFProperty * | ) |
Set document codepage.
- Note:
- Mac's code pages > 10000 are not supported
Definition at line 805 of file rtfimport.cpp.
void RTFImport::setEnumProperty | ( | RTFProperty * | property | ) |
Sets an enumeration (flag) RTF property specified by token.
- Parameters:
-
property the property to set
- Deprecated:
- not portable, as it assumes that an enum is a char
Definition at line 907 of file rtfimport.cpp.
void RTFImport::setFlagProperty | ( | RTFProperty * | property | ) |
Sets a boolean RTF property specified by token.
- Parameters:
-
property the property to set
- Deprecated:
- not portable, as it needs an out-of-specification use of offsetof
Definition at line 865 of file rtfimport.cpp.
void RTFImport::setFontStyleHint | ( | RTFProperty * | property | ) |
void RTFImport::setMacCodepage | ( | RTFProperty * | ) |
Set document codepage to Mac (also known as MacRoman or as Apple Roman).
Definition at line 824 of file rtfimport.cpp.
void RTFImport::setNumericProperty | ( | RTFProperty * | property | ) |
Sets the value of a numeric RTF property specified by token.
- Parameters:
-
property the property to set
- Deprecated:
- not portable, as it assumes that an enum is a char
Definition at line 902 of file rtfimport.cpp.
void RTFImport::setParagraphDefaults | ( | RTFProperty * | = 0L |
) |
void RTFImport::setPcaCodepage | ( | RTFProperty * | ) |
void RTFImport::setPcCodepage | ( | RTFProperty * | ) |
Set document codepage to IBM 435.
- Note:
- As Qt does not support IBM 435, this is currently approximated as IBM 850
Definition at line 851 of file rtfimport.cpp.
void RTFImport::setPictureType | ( | RTFProperty * | property | ) |
void RTFImport::setPlainFormatting | ( | RTFProperty * | = 0L |
) |
void RTFImport::setSectionDefaults | ( | RTFProperty * | = 0L |
) |
void RTFImport::setSimpleUnderlineProperty | ( | RTFProperty * | ) |
Sets the enumaration value for \ul-type keywords \ul switches on simple underline \ul0 switches off all underlines.
- Since:
- 1.4 (renamed)
Definition at line 922 of file rtfimport.cpp.
void RTFImport::setTableRowDefaults | ( | RTFProperty * | = 0L |
) |
void RTFImport::setToggleProperty | ( | RTFProperty * | ) |
Sets the value of a boolean RTF property specified by token.
- Parameters:
-
property the property to set
- Deprecated:
- not portable, as it needs an out-of-specification use of offsetof
Definition at line 860 of file rtfimport.cpp.
void RTFImport::setUnderlineProperty | ( | RTFProperty * | property | ) |
Set underline properties.
- Parameters:
-
property the property to set
- Since:
- 1.4 (changed behaviour)
Definition at line 929 of file rtfimport.cpp.
void RTFImport::setUpProperty | ( | RTFProperty * | ) |
void RTFImport::skipGroup | ( | RTFProperty * | ) |
Discard all tokens until the current group is closed.
Definition at line 1995 of file rtfimport.cpp.
void RTFImport::writeOutPart | ( | const char * | name, | |
const DomNode & | node | |||
) |
Write out part (file inside the store).
- Parameters:
-
name the internal name of the part node the data to write
Definition at line 2613 of file rtfimport.cpp.
Member Data Documentation
int RTFImport::fnnum |
QPtrList<RTFTextState> RTFImport::footnotes |
QString RTFImport::inFileName |
bool RTFImport::m_batch [protected] |
Should the filter system be in batch mode (i.e. non-interactive).
Definition at line 572 of file rtfimport.h.
Dummy text state for destinations without own RTFTextState.
- Note:
- this is mainly to avoid dangling or NULL pointers
Definition at line 537 of file rtfimport.h.
QTextCodec* RTFImport::textCodec [protected] |
QTextCodec* RTFImport::utf8TextCodec [protected] |
The documentation for this class was generated from the following files: