writerfilter: it's enough if dmapper gives the media descriptor to its impl

Change-Id: Ia973799453d9ede60be3699ff8973e31605f06ef
This commit is contained in:
Miklos Vajna
2015-10-22 09:12:26 +02:00
parent 024f722ea3
commit 44bee388a3
3 changed files with 6 additions and 9 deletions

View File

@@ -66,7 +66,6 @@
#include <comphelper/storagehelper.hxx>
#include <comphelper/sequence.hxx>
#include <filter/msfilter/util.hxx>
#include <unotools/mediadescriptor.hxx>
#include <TextEffectsHandler.hxx>
#include <CellColorHandler.hxx>
@@ -99,8 +98,7 @@ DomainMapper::DomainMapper( const uno::Reference< uno::XComponentContext >& xCon
LoggedProperties("DomainMapper"),
LoggedTable("DomainMapper"),
LoggedStream("DomainMapper"),
m_pImpl( new DomainMapper_Impl( *this, xContext, xModel, eDocumentType, rMediaDesc.getUnpackedValueOrDefault("TextInsertModeRange", uno::Reference<text::XTextRange>()),
!rMediaDesc.getUnpackedValueOrDefault("InsertMode", false))),
m_pImpl(new DomainMapper_Impl(*this, xContext, xModel, eDocumentType, rMediaDesc)),
mbIsSplitPara(false)
{
// #i24363# tab stops relative to indent

View File

@@ -81,6 +81,7 @@
#include <filter/msfilter/util.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <unotools/mediadescriptor.hxx>
using namespace ::com::sun::star;
using namespace oox;
@@ -175,8 +176,7 @@ DomainMapper_Impl::DomainMapper_Impl(
uno::Reference<uno::XComponentContext> const& xContext,
uno::Reference<lang::XComponent> const& xModel,
SourceDocumentType eDocumentType,
uno::Reference<text::XTextRange> const& xInsertTextRange,
bool bIsNewDoc) :
utl::MediaDescriptor& rMediaDesc) :
m_eDocumentType( eDocumentType ),
m_rDMapper( rDMapper ),
m_xTextDocument( xModel, uno::UNO_QUERY ),
@@ -227,8 +227,8 @@ DomainMapper_Impl::DomainMapper_Impl(
m_xAnnotationField(),
m_nAnnotationId( -1 ),
m_aAnnotationPositions(),
m_xInsertTextRange(xInsertTextRange),
m_bIsNewDoc(bIsNewDoc),
m_xInsertTextRange(rMediaDesc.getUnpackedValueOrDefault("TextInsertModeRange", uno::Reference<text::XTextRange>())),
m_bIsNewDoc(!rMediaDesc.getUnpackedValueOrDefault("InsertMode", false)),
m_bInTableStyleRunProps(false),
m_nTableDepth(0),
m_bHasFtnSep(false),

View File

@@ -471,8 +471,7 @@ public:
css::uno::Reference < css::uno::XComponentContext > const& xContext,
css::uno::Reference< css::lang::XComponent > const& xModel,
SourceDocumentType eDocumentType,
css::uno::Reference< css::text::XTextRange > const& xInsertTextRange,
bool bIsNewDoc );
utl::MediaDescriptor& rMediaDesc);
virtual ~DomainMapper_Impl();
SectionPropertyMap* GetLastSectionContext( )