24#include <osl/diagnose.h>
41 sal_Int32 nConvOptions,
43 SdrOutliner(pVw->GetDocShell()->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel()->
44 GetDrawOutliner().GetEmptyItemSet().GetPool(),
47 m_pTextObj( nullptr ),
48 m_nOptions( nConvOptions ),
50 m_nSourceLang( nSourceLanguage ),
51 m_nTargetLang( nTargetLanguage ),
52 m_pTargetFont( pTargetFnt ),
53 m_bIsInteractive( bInteractive )
57 MapMode aMapMode (MapUnit::MapTwip);
58 SetRefMapMode(aMapMode);
82 OSL_ENSURE( pSdrView,
"SdrHHCWrapper without DrawView?" );
84 SetUpdateLayout(
false);
98 bool bNextDoc =
false;
103 OSL_ENSURE( pSdrView,
"SdrHHCWrapper without DrawView?" );
105 SetUpdateLayout(
false);
114 std::list<SdrTextObj*> aTextObjs;
116 for (
auto const& textObj : aTextObjs)
134 SetUpdateLayout(
true);
138 OSL_ENSURE( pSdrView,
"SdrHHCWrapper without DrawView?" );
144 SetUpdateLayout(
true);
150 SetUpdateLayout(
false);
virtual SfxPrinter * getPrinter(bool bCreate) const =0
Return the printer set at the document.
void StartTextConversion()
const vcl::Font * m_pTargetFont
std::unique_ptr< OutlinerView > m_pOutlView
LanguageType m_nTargetLang
LanguageType m_nSourceLang
virtual ~SdrHHCWrapper() override
virtual bool ConvertNextDocument() override
SdrHHCWrapper(SwView *pVw, LanguageType nSourceLanguage, LanguageType nTargetLanguage, const vcl::Font *pTargetFnt, sal_Int32 nConvOptions, bool bInteractive)
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false)
virtual bool SdrBeginTextEdit(SdrObject *pObj, SdrPageView *pPV=nullptr, vcl::Window *pWin=nullptr, bool bIsNewObj=false, SdrOutliner *pGivenOutliner=nullptr, OutlinerView *pGivenOutlinerView=nullptr, bool bDontDeleteOutliner=false, bool bOnlyOneView=false, bool bGrabFocus=true)
SdrPageView * GetSdrPageView() const
virtual const tools::Rectangle & GetLogicRect() const override
weld::Window * GetFrameWeld() const
SwDoc * GetDoc()
returns Doc. But be careful!
IDocumentDeviceAccess const & getIDocumentDeviceAccess() const
Of course Writer needs its own rectangles.
const IDocumentDeviceAccess & getIDocumentDeviceAccess() const
Provides access to the document device interface.
void MakeVisible(const SwRect &)
SwWrtShell & GetWrtShell() const
SwDocShell * GetDocShell()
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
virtual void SetText(const OUString &rStr) override