LibreOffice Module sw (master) 1
|
#include <ndole.hxx>
Public Member Functions | |
SwOLEObj (const svt::EmbeddedObjectRef &pObj) | |
SwOLEObj (OUString aName, sal_Int64 nAspect) | |
~SwOLEObj () COVERITY_NOEXCEPT_FALSE | |
bool | UnloadObject () |
OUString | GetDescription () |
css::uno::Reference< css::embed::XEmbeddedObject > const & | GetOleRef () |
svt::EmbeddedObjectRef & | GetObject () |
const OUString & | GetCurrentPersistName () const |
OUString | GetStyleString () |
bool | IsOleRef () const |
To avoid unnecessary loading of object. More... | |
bool | IsProtected () const |
drawinglayer::primitive2d::Primitive2DContainer const & | tryToGetChartContentAsPrimitive2DSequence (basegfx::B2DRange &rRange, bool bSynchron) |
void | resetBufferedData () |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Static Public Member Functions | |
static bool | UnloadObject (css::uno::Reference< css::embed::XEmbeddedObject > const &xObj, const SwDoc *pDoc, sal_Int64 nAspect) |
Private Member Functions | |
SwOLEObj (const SwOLEObj &rObj)=delete | |
void | SetNode (SwOLENode *pNode) |
DECL_LINK (IsProtectedHdl, LinkParamNone *, bool) | |
Private Attributes | |
const SwOLENode * | m_pOLENode |
rtl::Reference< SwOLEListener_Impl > | m_xListener |
svt::EmbeddedObjectRef | m_xOLERef |
Either ref or name are known. More... | |
OUString | m_aName |
drawinglayer::primitive2d::Primitive2DContainer | m_aPrimitive2DSequence |
basegfx::B2DRange | m_aRange |
sal_uInt32 | m_nGraphicVersion |
std::unique_ptr< DeflateData > | m_pDeflateData |
Friends | |
class | SwOLENode |
|
privatedelete |
SwOLEObj::SwOLEObj | ( | const svt::EmbeddedObjectRef & | pObj | ) |
Definition at line 844 of file ndole.cxx.
References svt::EmbeddedObjectRef::is(), svt::EmbeddedObjectRef::Lock(), m_xListener, and m_xOLERef.
SwOLEObj::SwOLEObj | ( | OUString | aName, |
sal_Int64 | nAspect | ||
) |
Definition at line 857 of file ndole.cxx.
References svt::EmbeddedObjectRef::Lock(), m_aName, m_xOLERef, and svt::EmbeddedObjectRef::SetViewAspect().
SwOLEObj::~SwOLEObj | ( | ) |
Definition at line 866 of file ndole.cxx.
References svt::EmbeddedObjectRef::AssignToContainer(), svt::EmbeddedObjectRef::Clear(), svt::EmbeddedObjectRef::GetContainer(), SwNode::GetDoc(), svt::EmbeddedObjectRef::GetObject(), SwDoc::GetPersist(), comphelper::EmbeddedObjectContainer::HasEmbeddedObject(), svt::EmbeddedObjectRef::is(), SwDoc::IsInDtor(), svt::EmbeddedObjectRef::Lock(), m_aName, m_pDeflateData, m_pOLENode, m_xListener, m_xOLERef, p, and comphelper::EmbeddedObjectContainer::RemoveEmbeddedObject().
|
private |
void SwOLEObj::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 1251 of file ndole.cxx.
References svt::EmbeddedObjectRef::dumpAsXml(), and m_xOLERef.
Referenced by SwOLENode::dumpAsXml().
|
inline |
Definition at line 72 of file ndole.hxx.
References m_aName.
Referenced by SwXMLTextParagraphExport::_exportTextEmbedded(), SwOLENode::BreakFileLink_Impl(), SwXMLTextImportHelper::createAndInsertOLEObject(), SwChartDataProvider::Impl_createDataSource(), SwNoTextFrame::ImplPaintPictureBitmap(), OutHTML_FrameFormatOLENodeGrf(), and SwDocShell::RemoveOLEObjects().
OUString SwOLEObj::GetDescription | ( | ) |
Definition at line 1140 of file ndole.cxx.
References aClassID, GetOleRef(), SotExchange::IsChart(), SotExchange::IsMath(), and SwResId().
Referenced by SwOLENode::GetDescription().
svt::EmbeddedObjectRef & SwOLEObj::GetObject | ( | ) |
Definition at line 1063 of file ndole.cxx.
References GetOleRef(), and m_xOLERef.
Referenced by SwXMLTextParagraphExport::_collectTextEmbeddedAutoStyles(), SwXMLTextParagraphExport::_exportTextEmbedded(), SwXMLTextImportHelper::createAndInsertOLEObject(), SwChartHelper::DoUpdateAllCharts(), SwOLENode::GetAspect(), SwEditShell::GetOLEObject(), SwOLENode::GetTwipSize(), SwContentNotify::ImplDestroy(), SwNoTextFrame::ImplPaintPictureBitmap(), SwHTMLParser::InsertEmbed(), lcl_InsertLabel(), lcl_MoveAllLowerObjs(), SwNodes::MakeOLENode(), OutHTML_FrameFormatOLENodeGrf(), SwNoTextFrame::PaintPicture(), SwFlyFrame::PaintSwFrame(), SwDoc::PrtOLENotify(), SwOLENode::SetAspect(), tryToGetChartContentAsPrimitive2DSequence(), SwViewShell::UpdateOleObjectPreviews(), and DocxAttributeOutput::WriteOLE().
uno::Reference< embed::XEmbeddedObject > const & SwOLEObj::GetOleRef | ( | ) |
Definition at line 1012 of file ndole.cxx.
References svt::EmbeddedObjectRef::Assign(), svt::EmbeddedObjectRef::AssignToContainer(), o3tl::convert(), g_pOLELRU_Cache, SwNode::GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwContentNode::getLayoutFrame(), svt::EmbeddedObjectRef::GetObject(), SwDoc::GetPersist(), svt::EmbeddedObjectRef::GetViewAspect(), svt::EmbeddedObjectRef::is(), LINK, m_aName, m_pOLENode, m_xListener, m_xOLERef, o3tl::mm100, p, sDocumentBaseURL, svt::EmbeddedObjectRef::SetIsProtectedHdl(), tools::Rectangle::SetSize(), SO3_DUMMY_CLASSID, SwRect::SSize(), and o3tl::twip.
Referenced by SwFEShell::AlignAllFormulasToBaseline(), SwTaggedPDFHelper::BeginBlockStructureElements(), SwOLENode::BreakFileLink_Impl(), sw::DocumentChartDataProviderManager::CreateChartInternalDataProviders(), sw::DocumentLayoutManager::DelLayoutFormat(), SwChartHelper::DoUpdateAllCharts(), SwXMLTextImportHelper::endAppletOrPlugin(), SwFEShell::FindFlyFrame(), RtfAttributeOutput::FlyFrameOLEMath(), GetDescription(), SwXTextEmbeddedObject::getExtendedControlOverEmbeddedObject(), SwOLENode::GetGraphic(), GetObject(), SwFEShell::GetOleRef(), SwHTMLWriter::GuessOLENodeFrameType(), IMPL_LINK_NOARG(), SwNoTextFrame::ImplPaintPictureBitmap(), SwFEShell::IsSelObjProtected(), SwChartLockController_Helper::LockUnlockAllCharts(), SwXOLEListener::modified(), OutHTML_FrameFormatOLENode(), OutHTML_FrameFormatOLENodeGrf(), SwUndoInsert::RepeatImpl(), SwOLENode::RestorePersistentData(), SwOLENode::SavePersistentData(), SwOLEListener_Impl::SwOLEListener_Impl(), WW8Export::TestOleNeedsGraphic(), SwTOXBaseSection::UpdateContent(), SwOLENode::UpdateLinkURL_Impl(), DocxAttributeOutput::WriteFlyFrame(), DocxAttributeOutput::WriteOLE(), SwBasicEscherEx::WriteOLEFlyFrame(), and DocxExport::WriteOLEObject().
OUString SwOLEObj::GetStyleString | ( | ) |
Definition at line 969 of file ndole.cxx.
References svt::EmbeddedObjectRef::GetChartType(), svt::EmbeddedObjectRef::is(), svt::EmbeddedObjectRef::IsChart(), and m_xOLERef.
bool SwOLEObj::IsOleRef | ( | ) | const |
To avoid unnecessary loading of object.
Definition at line 977 of file ndole.cxx.
References svt::EmbeddedObjectRef::is(), and m_xOLERef.
Referenced by sw::DocumentLayoutManager::DelLayoutFormat(), SwContentNotify::ImplDestroy(), SwOLEListener_Impl::SwOLEListener_Impl(), and SwTOXBaseSection::UpdateContent().
bool SwOLEObj::IsProtected | ( | ) | const |
Definition at line 984 of file ndole.cxx.
References SwContentNode::getLayoutFrame(), SwFrame::GetUpper(), SwFrame::IsFlyFrame(), SwFrame::IsProtected(), and m_pOLENode.
Referenced by IMPL_LINK(), and SwOleClient::IsProtected().
void SwOLEObj::resetBufferedData | ( | ) |
Definition at line 1238 of file ndole.cxx.
References m_aPrimitive2DSequence, m_aRange, m_pDeflateData, and basegfx::Range2D< typename TYPE, typename TRAITS >::reset().
Referenced by SwOLEListener_Impl::stateChanged(), tryToGetChartContentAsPrimitive2DSequence(), and SwDoc::UpdateCharts_().
|
private |
Definition at line 931 of file ndole.cxx.
References svt::EmbeddedObjectRef::AssignToContainer(), SwNode::GetDoc(), svt::EmbeddedObjectRef::GetObject(), SwDoc::GetPersist(), m_aName, m_pOLENode, m_xOLERef, and p.
Referenced by SwOLENode::SwOLENode().
drawinglayer::primitive2d::Primitive2DContainer const & SwOLEObj::tryToGetChartContentAsPrimitive2DSequence | ( | basegfx::B2DRange & | rRange, |
bool | bSynchron | ||
) |
Definition at line 1156 of file ndole.cxx.
References svt::EmbeddedObjectRef::getGraphicVersion(), GetObject(), comphelper::ThreadPool::getSharedOptimalPool(), svt::EmbeddedObjectRef::is(), svt::EmbeddedObjectRef::IsChart(), basegfx::Range2D< typename TYPE, typename TRAITS >::isEmpty(), m_aPrimitive2DSequence, m_aRange, m_nGraphicVersion, m_pDeflateData, m_xOLERef, comphelper::ThreadPool::pushTask(), resetBufferedData(), and ChartHelper::tryToGetChartContentAsPrimitive2DSequence().
Referenced by SwNoTextFrame::ImplPaintPictureBitmap().
bool SwOLEObj::UnloadObject | ( | ) |
Definition at line 1069 of file ndole.cxx.
References SwNode::GetDoc(), svt::EmbeddedObjectRef::GetObject(), svt::EmbeddedObjectRef::GetViewAspect(), m_pOLENode, m_xOLERef, and UnloadObject().
Referenced by SwTransferable::PasteOLE(), and UnloadObject().
|
static |
|
private |
Definition at line 44 of file ndole.hxx.
Referenced by GetOleRef(), SwOLENode::IsOLEObjectDeleted(), SwOLENode::MakeCopy(), SwOLENode::RestorePersistentData(), SwOLENode::SavePersistentData(), SetNode(), and ~SwOLEObj().
|
private |
Definition at line 47 of file ndole.hxx.
Referenced by resetBufferedData(), and tryToGetChartContentAsPrimitive2DSequence().
|
private |
Definition at line 48 of file ndole.hxx.
Referenced by resetBufferedData(), and tryToGetChartContentAsPrimitive2DSequence().
|
private |
Definition at line 49 of file ndole.hxx.
Referenced by tryToGetChartContentAsPrimitive2DSequence().
|
private |
Definition at line 50 of file ndole.hxx.
Referenced by resetBufferedData(), tryToGetChartContentAsPrimitive2DSequence(), and ~SwOLEObj().
|
private |
Definition at line 38 of file ndole.hxx.
Referenced by GetOleRef(), IsProtected(), SetNode(), UnloadObject(), and ~SwOLEObj().
|
private |
Definition at line 39 of file ndole.hxx.
Referenced by GetOleRef(), SwOLEObj(), and ~SwOLEObj().
|
private |
Either ref or name are known.
If only name is known, ref is obtained on demand by GetOleRef() from Sfx.
Definition at line 43 of file ndole.hxx.
Referenced by SwOLENode::CheckFileLink_Impl(), dumpAsXml(), SwOLENode::GetGraphic(), SwOLENode::GetNewReplacement(), GetObject(), GetOleRef(), GetStyleString(), SwOLENode::IsOLEObjectDeleted(), IsOleRef(), SwOLENode::RestorePersistentData(), SwOLENode::SavePersistentData(), SetNode(), SwOLEObj(), tryToGetChartContentAsPrimitive2DSequence(), UnloadObject(), SwOLENode::UpdateLinkURL_Impl(), and ~SwOLEObj().