Kaydet (Commit) b2207e16 authored tarafından Szymon Kłos's avatar Szymon Kłos

Embedded documents: don't open in web view mode

Change-Id: I621d4ba4223c1b389acdb63bb6f8f10ef3f3ba48
Reviewed-on: https://gerrit.libreoffice.org/40076Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst 30907c0b
......@@ -304,14 +304,13 @@ void SwTransferable::AddSupportedFormats()
}
}
void SwTransferable::InitOle( SfxObjectShell* pDoc, SwDoc& rDoc )
void SwTransferable::InitOle( SfxObjectShell* pDoc, SwDoc& )
{
//set OleVisArea. Upper left corner of the page and size of
//RealSize in Twips.
const Size aSz( OLESIZE );
SwRect aVis( Point( DOCUMENTBORDER, DOCUMENTBORDER ), aSz );
pDoc->SetVisArea( aVis.SVRect() );
rDoc.getIDocumentSettingAccess().set(DocumentSettingId::BROWSE_MODE, true );
}
uno::Reference < embed::XEmbeddedObject > SwTransferable::FindOLEObj( sal_Int64& nAspect ) const
......
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