LibreOffice Module sw (master) 1
Classes | Functions
SwTranslateHelper Namespace Reference

Classes

struct  TranslateAPIConfig
 

Functions

SW_DLLPUBLIC OString ExportPaMToHTML (SwPaM *pCursor)
 
SW_DLLPUBLIC void PasteHTMLToPaM (SwWrtShell &rWrtSh, SwPaM *pCursor, const OString &rData)
 
SW_DLLPUBLIC void TranslateDocument (SwWrtShell &rWrtSh, const TranslateAPIConfig &rConfig)
 
SW_DLLPUBLIC void TranslateDocumentCancellable (SwWrtShell &rWrtSh, const TranslateAPIConfig &rConfig, bool &rCancelTranslation)
 

Function Documentation

◆ ExportPaMToHTML()

OString SwTranslateHelper::ExportPaMToHTML ( SwPaM pCursor)

◆ PasteHTMLToPaM()

void SwTranslateHelper::PasteHTMLToPaM ( SwWrtShell rWrtSh,
SwPaM pCursor,
const OString &  rData 
)

◆ TranslateDocument()

void SwTranslateHelper::TranslateDocument ( SwWrtShell rWrtSh,
const TranslateAPIConfig rConfig 
)

Definition at line 94 of file translatehelper.cxx.

References TranslateDocumentCancellable().

Referenced by SwTextShell::Execute().

◆ TranslateDocumentCancellable()

void SwTranslateHelper::TranslateDocumentCancellable ( SwWrtShell rWrtSh,
const TranslateAPIConfig rConfig,
bool &  rCancelTranslation 
)