LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | List of all members
SdrHHCWrapper Class Reference

#include <sdrhhcwrap.hxx>

Inheritance diagram for SdrHHCWrapper:
[legend]
Collaboration diagram for SdrHHCWrapper:
[legend]

Public Member Functions

 SdrHHCWrapper (SwView *pVw, LanguageType nSourceLanguage, LanguageType nTargetLanguage, const vcl::Font *pTargetFnt, sal_Int32 nConvOptions, bool bInteractive)
 
virtual ~SdrHHCWrapper () override
 
virtual bool ConvertNextDocument () override
 
void StartTextConversion ()
 
- Public Member Functions inherited from SdrOutliner
 SdrOutliner (SfxItemPool *pItemPool, OutlinerMode nMode)
 
virtual ~SdrOutliner () override
 
void SetTextObj (const SdrTextObj *pObj)
 
void SetTextObjNoInit (const SdrTextObj *pObj)
 
const SdrTextObjGetTextObj () const
 
void setVisualizedPage (const SdrPage *pPage)
 
const SdrPagegetVisualizedPage () const
 
virtual OUString CalcFieldValue (const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, boost::optional< Color > &rpTxtColor, boost::optional< Color > &rpFldColor) override
 
bool hasEditViewCallbacks () const
 

Private Attributes

SwViewpView
 
SdrTextObjpTextObj
 
std::unique_ptr< OutlinerViewpOutlView
 
sal_Int32 const nOptions
 
sal_uInt16 nDocIndex
 
LanguageType const nSourceLang
 
LanguageType const nTargetLang
 
const vcl::FontpTargetFont
 
bool const bIsInteractive
 

Detailed Description

Definition at line 28 of file sdrhhcwrap.hxx.

Constructor & Destructor Documentation

SdrHHCWrapper::SdrHHCWrapper ( SwView pVw,
LanguageType  nSourceLanguage,
LanguageType  nTargetLanguage,
const vcl::Font pTargetFnt,
sal_Int32  nConvOptions,
bool  bInteractive 
)
SdrHHCWrapper::~SdrHHCWrapper ( )
overridevirtual

Member Function Documentation

bool SdrHHCWrapper::ConvertNextDocument ( )
overridevirtual

! update mode needs to be set to true otherwise ! the call to 'HasConvertibleTextPortion' will not always ! work correctly because the document may not be properly ! formatted when some information is accessed, and thus ! incorrect results get returned.

Definition at line 107 of file sdrhhcwrap.cxx.

References SwDocShell::GetDoc(), SwView::GetDocShell(), SwViewShell::GetDrawView(), SwView::GetEditWin(), SdrTextObj::GetLogicRect(), SdrPaintView::GetSdrPageView(), tools::Rectangle::GetSize(), SwDrawContact::GetTextObjectsFromFormat(), SwView::GetWrtShell(), SwViewShell::MakeVisible(), nDocIndex, nSourceLang, pOutlView, pTextObj, pView, SdrObjEditView::SdrBeginTextEdit(), SdrObjEditView::SdrEndTextEdit(), and SetPaperSize.

void SdrHHCWrapper::StartTextConversion ( )

Definition at line 102 of file sdrhhcwrap.cxx.

References bIsInteractive, nOptions, nSourceLang, nTargetLang, pOutlView, and pTargetFont.

Referenced by SwHHCWrapper::~SwHHCWrapper().

Member Data Documentation

bool const SdrHHCWrapper::bIsInteractive
private

Definition at line 40 of file sdrhhcwrap.hxx.

Referenced by StartTextConversion().

sal_uInt16 SdrHHCWrapper::nDocIndex
private

Definition at line 36 of file sdrhhcwrap.hxx.

Referenced by ConvertNextDocument().

sal_Int32 const SdrHHCWrapper::nOptions
private

Definition at line 35 of file sdrhhcwrap.hxx.

Referenced by StartTextConversion().

LanguageType const SdrHHCWrapper::nSourceLang
private

Definition at line 37 of file sdrhhcwrap.hxx.

Referenced by ConvertNextDocument(), and StartTextConversion().

LanguageType const SdrHHCWrapper::nTargetLang
private

Definition at line 38 of file sdrhhcwrap.hxx.

Referenced by StartTextConversion().

std::unique_ptr<OutlinerView> SdrHHCWrapper::pOutlView
private
const vcl::Font* SdrHHCWrapper::pTargetFont
private

Definition at line 39 of file sdrhhcwrap.hxx.

Referenced by StartTextConversion().

SdrTextObj* SdrHHCWrapper::pTextObj
private

Definition at line 33 of file sdrhhcwrap.hxx.

Referenced by ConvertNextDocument(), and ~SdrHHCWrapper().

SwView* SdrHHCWrapper::pView
private

Definition at line 32 of file sdrhhcwrap.hxx.

Referenced by ConvertNextDocument(), SdrHHCWrapper(), and ~SdrHHCWrapper().


The documentation for this class was generated from the following files: