Kaydet (Commit) 15c98e06 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Merge branch 'master' of git://anongit.freedesktop.org/libreoffice/writer

Conflicts:
	sw/source/ui/dbui/mmoutputpage.cxx
......@@ -1998,9 +1998,13 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
pDoc->GetNodes().GetEndOfInserts().StartOfSectionIndex()
< aInsPos.GetIndex() )
{
nNodeCnt -=
ULONG nDistance =
( pAktNode->EndOfSectionIndex() -
aRg.aStart.GetIndex() );
if (nDistance < nNodeCnt)
nNodeCnt -= nDistance;
else
nNodeCnt = 1;
// dann alle Nodes der Tabelle in die akt. Zelle kopieren
// fuer den TabellenNode einen DummyNode einfuegen?
......@@ -2035,7 +2039,11 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
SwNodeIndex nStt( aInsPos, -1 );
SwTableNode* pTblNd = ((SwTableNode*)pAktNode)->
MakeCopy( pDoc, aInsPos );
nNodeCnt -= aInsPos.GetIndex() - nStt.GetIndex() -2;
ULONG nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
if (nDistance < nNodeCnt)
nNodeCnt -= nDistance;
else
nNodeCnt = 1;
aRg.aStart = pAktNode->EndOfSectionIndex();
......@@ -2059,7 +2067,11 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
SwSectionNode* pSectNd = ((SwSectionNode*)pAktNode)->
MakeCopy( pDoc, aInsPos );
nNodeCnt -= aInsPos.GetIndex() - nStt.GetIndex() -2;
ULONG nDistance = aInsPos.GetIndex() - nStt.GetIndex() - 2;
if (nDistance < nNodeCnt)
nNodeCnt -= nDistance;
else
nNodeCnt = 1;
aRg.aStart = pAktNode->EndOfSectionIndex();
if( bNewFrms && pSectNd &&
......
......@@ -1044,25 +1044,20 @@ IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton)
String sExtension = lcl_GetExtensionForDocType(nDocType);
switch( nDocType )
{
case MM_DOCTYPE_OOO : break;
case MM_DOCTYPE_PDF :
case MM_DOCTYPE_OOO:
{
//the method SwIOSystemGetFilterOfFormat( ) returns the template filter
//because it uses the same user data :-(
SfxFilterMatcher aMatcher( pFilterContainer->GetName() );
SfxFilterMatcherIter aIter( &aMatcher );
const SfxFilter* pFilter = aIter.First();
String sFilterMime( String::CreateFromAscii( "application/pdf" ));
while ( pFilter )
{
if( pFilter->GetMimeType() == sFilterMime && pFilter->CanExport() )
{
pSfxFlt = pFilter;
break;
}
pFilter = aIter.Next();
}
//Make sure we don't pick e.g. the flat xml filter
//for this format
pSfxFlt = SwIoSystem::GetFilterOfFormat(
String::CreateFromAscii( FILTER_XML ),
SwDocShell::Factory().GetFilterContainer() );
}
break;
case MM_DOCTYPE_PDF:
{
pSfxFlt = pFilterContainer->GetFilter4FilterName(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("writer_pdf_Export")),
SFX_FILTER_EXPORT);
}
break;
case MM_DOCTYPE_WORD:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment