public: enum ReplacementAction
{
eExchange, // simply exchange one text with another
eReplacementBracketed, // keep the original, and put the replacement in brackets after it
eOriginalBracketed, // replace the original text, but put it in brackets after the replacement
eReplacementAbove, // keep the original, and put the replacement text as ruby text above it
eOriginalAbove, // replace the original text, but put it as ruby text above it
eReplacementBelow, // keep the original, and put the replacement text as ruby text below it
eOriginalBelow // replace the original text, but put it as ruby text below it
};
enum ConversionType // does not specify direction...
{
eConvHangulHanja, // Korean Hangul/Hanja conversion
eConvSimplifiedTraditional // Chinese simplified / Chinese traditional conversion
};
// Note: conversion direction for eConvSimplifiedTraditional is // specified by source language. // This one is for Hangul/Hanja where source and target language // are the same. enum ConversionDirection
{
eHangulToHanja,
eHanjaToHangul
};
enum ConversionFormat
{
eSimpleConversion, // used for simplified / traditional Chinese as well
eHangulBracketed,
eHanjaBracketed,
eRubyHanjaAbove,
eRubyHanjaBelow,
eRubyHangulAbove,
eRubyHangulBelow
};
// used to set initial values of m_pImpl object from saved ones staticbool m_bUseSavedValues; // defines if the following two values should be used for initialization staticbool m_bTryBothDirectionsSave; static ConversionDirection m_ePrimaryConversionDirectionSave;
// converts the whole document void ConvertDocument();
weld::Widget* GetUIParent() const; // the parent window for any UI we raise
LanguageType GetSourceLanguage() const;
LanguageType GetTargetLanguage() const; const vcl::Font* GetTargetFont() const;
sal_Int32 GetConversionOptions() const; bool IsInteractive() const;
// chinese text conversion staticinlinebool IsSimplified( LanguageType nLang ); staticinlinebool IsTraditional( LanguageType nLang ); staticinlinebool IsChinese( LanguageType nLang );
// used to specify that the conversion direction states from the // last incarnation should be used as // initial conversion direction for the next incarnation. // (A hack used to transport a state information from // one incarnation to the next. Used in Writers text conversion...) staticvoid SetUseSavedConversionDirectionState( bool bVal ); staticbool IsUseSavedConversionDirectionState();
protected: /** retrieves the next text portion which is to be analyzed
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.