LibreOffice Module svtools (master) 1
|
#include <embedhlp.hxx>
Public Member Functions | |
const css::uno::Reference< css::embed::XEmbeddedObject > & | operator-> () const |
const css::uno::Reference< css::embed::XEmbeddedObject > & | GetObject () const |
EmbeddedObjectRef () | |
void | Assign (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, sal_Int64 nAspect) |
EmbeddedObjectRef (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, sal_Int64 nAspect) | |
~EmbeddedObjectRef () | |
EmbeddedObjectRef (const EmbeddedObjectRef &) | |
void | AssignToContainer (comphelper::EmbeddedObjectContainer *pContainer, const OUString &rPersistName) |
comphelper::EmbeddedObjectContainer * | GetContainer () const |
sal_Int64 | GetViewAspect () const |
void | SetViewAspect (sal_Int64 nAspect) |
const Graphic * | GetGraphic () const |
Size | GetSize (MapMode const *pTargetMapMode) const |
void | SetGraphic (const Graphic &rGraphic, const OUString &rMediaType) |
void | SetGraphicStream (const css::uno::Reference< css::io::XInputStream > &xInGrStream, const OUString &rMediaType) |
void | UpdateReplacement (bool bUpdateOle=false) |
void | UpdateReplacementOnDemand () |
void | Lock (bool bLock=true) |
void | Clear () |
bool | is () const |
bool | IsLocked () const |
void | SetIsProtectedHdl (const Link< LinkParamNone *, bool > &rProtectedHdl) |
const Link< LinkParamNone *, bool > & | GetIsProtectedHdl () const |
bool | IsChart () const |
OUString | GetChartType () |
sal_uInt32 | getGraphicVersion () const |
void | SetDefaultSizeForChart (const Size &rSizeIn_100TH_MM) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Static Public Member Functions | |
static void | DrawPaintReplacement (const tools::Rectangle &rRect, const OUString &rText, OutputDevice *pOut) |
static void | DrawShading (const tools::Rectangle &rRect, OutputDevice *pOut) |
static bool | TryRunningState (const css::uno::Reference< css::embed::XEmbeddedObject > &) |
static void | SetGraphicToContainer (const Graphic &rGraphic, comphelper::EmbeddedObjectContainer &aContainer, const OUString &aName, const OUString &aMediaType) |
static css::uno::Reference< css::io::XInputStream > | GetGraphicReplacementStream (sal_Int64 nViewAspect, const css::uno::Reference< css::embed::XEmbeddedObject > &, OUString *pMediaType) noexcept |
static bool | IsChart (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj) |
Private Member Functions | |
SVT_DLLPRIVATE std::unique_ptr< SvStream > | GetGraphicStream (bool bUpdate) const |
SVT_DLLPRIVATE void | GetReplacement (bool bUpdate) |
SVT_DLLPRIVATE void | UpdateOleObject (bool bUpdateOle) |
EmbeddedObjectRef & | operator= (const EmbeddedObjectRef &)=delete |
Private Attributes | |
std::unique_ptr< EmbeddedObjectRef_Impl > | mpImpl |
Definition at line 46 of file embedhlp.hxx.
svt::EmbeddedObjectRef::EmbeddedObjectRef | ( | ) |
Definition at line 325 of file embedhlp.cxx.
svt::EmbeddedObjectRef::EmbeddedObjectRef | ( | const css::uno::Reference< css::embed::XEmbeddedObject > & | xObj, |
sal_Int64 | nAspect | ||
) |
References Clear().
svt::EmbeddedObjectRef::~EmbeddedObjectRef | ( | ) |
Definition at line 341 of file embedhlp.cxx.
References Clear().
svt::EmbeddedObjectRef::EmbeddedObjectRef | ( | const EmbeddedObjectRef & | rObj | ) |
Definition at line 335 of file embedhlp.cxx.
References mpImpl.
void svt::EmbeddedObjectRef::Assign | ( | const css::uno::Reference< css::embed::XEmbeddedObject > & | xObj, |
sal_Int64 | nAspect | ||
) |
Definition at line 346 of file embedhlp.cxx.
References Clear(), DBG_ASSERT, IsChart(), and mpImpl.
void svt::EmbeddedObjectRef::AssignToContainer | ( | comphelper::EmbeddedObjectContainer * | pContainer, |
const OUString & | rPersistName | ||
) |
Definition at line 409 of file embedhlp.cxx.
References mpImpl, and SetGraphicToContainer().
void svt::EmbeddedObjectRef::Clear | ( | ) |
Definition at line 365 of file embedhlp.cxx.
References mpImpl, and TOOLS_WARN_EXCEPTION.
Referenced by Assign(), and ~EmbeddedObjectRef().
|
static |
Definition at line 734 of file embedhlp.cxx.
References Point::AdjustX(), Point::AdjustY(), COL_LIGHTRED(), FAMILY_SWISS, tools::Rectangle::GetHeight(), BitmapEx::GetSizePixel(), tools::Rectangle::GetWidth(), Size::Height(), i, pOut, vcl::Font::SetColor(), vcl::Font::SetFamily(), vcl::Font::SetFontSize(), vcl::Font::SetTransparent(), vcl::Font::SetWeight(), Point::setX(), Point::setY(), tools::Rectangle::TopLeft(), WEIGHT_BOLD, Size::Width(), Point::X(), and Point::Y().
|
static |
Definition at line 816 of file embedhlp.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), COL_BLACK(), tools::Rectangle::GetSize(), Size::Height(), i, GDIMetaFile::IsRecord(), pOut, tools::Rectangle::TopLeft(), and Size::Width().
void svt::EmbeddedObjectRef::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 1084 of file embedhlp.cxx.
References mpImpl.
OUString svt::EmbeddedObjectRef::GetChartType | ( | ) |
Definition at line 971 of file embedhlp.cxx.
References IsChart(), mpImpl, Style, and TryRunningState().
comphelper::EmbeddedObjectContainer * svt::EmbeddedObjectRef::GetContainer | ( | ) | const |
const Graphic * svt::EmbeddedObjectRef::GetGraphic | ( | ) | const |
Definition at line 508 of file embedhlp.cxx.
References DBG_UNHANDLED_EXCEPTION, GetReplacement(), and mpImpl.
Referenced by GetSize().
|
staticnoexcept |
Definition at line 902 of file embedhlp.cxx.
Referenced by GetGraphicStream().
|
private |
Definition at line 627 of file embedhlp.cxx.
References utl::UcbStreamHelper::CreateStream(), DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, GetContainer(), GraphicFilter::GetGraphicFilter(), GetGraphicReplacementStream(), comphelper::EmbeddedObjectContainer::getUserAllowsLinkUpdate(), GraphicFilter::ImportGraphic(), Graphic::IsNone(), mpImpl, nConstBufferSize, SAL_INFO, SAL_WARN, u, and xStream.
Referenced by GetReplacement().
sal_uInt32 svt::EmbeddedObjectRef::getGraphicVersion | ( | ) | const |
Definition at line 1065 of file embedhlp.cxx.
References mpImpl.
const Link< LinkParamNone *, bool > & svt::EmbeddedObjectRef::GetIsProtectedHdl | ( | ) | const |
Definition at line 448 of file embedhlp.cxx.
References mpImpl.
const uno::Reference< embed::XEmbeddedObject > & svt::EmbeddedObjectRef::GetObject | ( | ) | const |
|
private |
Definition at line 453 of file embedhlp.cxx.
References GraphicFilter::GetGraphicFilter(), GetGraphicStream(), GraphicFilter::ImportGraphic(), Graphic::IsNone(), mpImpl, SAL_WARN, and u.
Referenced by GetGraphic(), and UpdateReplacement().
Definition at line 526 of file embedhlp.cxx.
References GetGraphic(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), OutputDevice::LogicToLogic(), mpImpl, SAL_WARN, TOOLS_WARN_EXCEPTION, and VCLUnoHelper::UnoEmbed2VCLMapUnit().
sal_Int64 svt::EmbeddedObjectRef::GetViewAspect | ( | ) | const |
Definition at line 423 of file embedhlp.cxx.
References mpImpl.
bool svt::EmbeddedObjectRef::is | ( | ) | const |
Definition at line 404 of file embedhlp.cxx.
References mpImpl.
bool svt::EmbeddedObjectRef::IsChart | ( | ) | const |
Definition at line 955 of file embedhlp.cxx.
References IsChart(), and mpImpl.
Referenced by Assign(), GetChartType(), and IsChart().
|
static |
Definition at line 911 of file embedhlp.cxx.
References SO3_SCH_CLASSID_30, SO3_SCH_CLASSID_40, SO3_SCH_CLASSID_50, and SO3_SCH_CLASSID_60.
bool svt::EmbeddedObjectRef::IsLocked | ( | ) | const |
Definition at line 438 of file embedhlp.cxx.
References mpImpl.
void svt::EmbeddedObjectRef::Lock | ( | bool | bLock = true | ) |
Definition at line 433 of file embedhlp.cxx.
References mpImpl.
const uno::Reference< embed::XEmbeddedObject > & svt::EmbeddedObjectRef::operator-> | ( | ) | const |
Definition at line 315 of file embedhlp.cxx.
References mpImpl.
|
privatedelete |
References GetObject().
void svt::EmbeddedObjectRef::SetDefaultSizeForChart | ( | const Size & | rSizeIn_100TH_MM | ) |
Definition at line 1070 of file embedhlp.cxx.
References DBG_ASSERT, Size::getHeight(), Size::getWidth(), and mpImpl.
void svt::EmbeddedObjectRef::SetGraphic | ( | const Graphic & | rGraphic, |
const OUString & | rMediaType | ||
) |
Definition at line 615 of file embedhlp.cxx.
References mpImpl, and SetGraphicToContainer().
void svt::EmbeddedObjectRef::SetGraphicStream | ( | const css::uno::Reference< css::io::XInputStream > & | xInGrStream, |
const OUString & | rMediaType | ||
) |
Definition at line 587 of file embedhlp.cxx.
References utl::UcbStreamHelper::CreateStream(), GraphicFilter::GetGraphicFilter(), GraphicFilter::ImportGraphic(), mpImpl, and u.
|
static |
Definition at line 867 of file embedhlp.cxx.
References aName, ERRCODE_NONE, SvStream::GetError(), Graphic::GetSharedGfxLink(), comphelper::EmbeddedObjectContainer::InsertGraphicStream(), SvStream::Seek(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_CURRENT, TypeSerializer::writeGraphic(), and xStream.
Referenced by AssignToContainer(), and SetGraphic().
void svt::EmbeddedObjectRef::SetIsProtectedHdl | ( | const Link< LinkParamNone *, bool > & | rProtectedHdl | ) |
Definition at line 443 of file embedhlp.cxx.
References mpImpl.
void svt::EmbeddedObjectRef::SetViewAspect | ( | sal_Int64 | nAspect | ) |
Definition at line 428 of file embedhlp.cxx.
References mpImpl.
|
static |
Definition at line 849 of file embedhlp.cxx.
Referenced by GetChartType(), and SvEmbedTransferHelper::GetData().
|
private |
Definition at line 934 of file embedhlp.cxx.
References GetObject().
Referenced by UpdateReplacement().
void svt::EmbeddedObjectRef::UpdateReplacement | ( | bool | bUpdateOle = false | ) |
Definition at line 920 of file embedhlp.cxx.
References GetReplacement(), mpImpl, SAL_WARN, and UpdateOleObject().
void svt::EmbeddedObjectRef::UpdateReplacementOnDemand | ( | ) |
Definition at line 942 of file embedhlp.cxx.
References mpImpl.
|
private |
Definition at line 48 of file embedhlp.hxx.
Referenced by Assign(), AssignToContainer(), Clear(), dumpAsXml(), EmbeddedObjectRef(), GetChartType(), GetContainer(), GetGraphic(), GetGraphicStream(), getGraphicVersion(), GetIsProtectedHdl(), GetObject(), GetReplacement(), GetSize(), GetViewAspect(), is(), IsChart(), IsLocked(), Lock(), operator->(), SetDefaultSizeForChart(), SetGraphic(), SetGraphicStream(), SetIsProtectedHdl(), SetViewAspect(), UpdateReplacement(), and UpdateReplacementOnDemand().