LibreOffice Module sw (master)
1
|
#include <ndgrf.hxx>
Public Member Functions | |
virtual | ~SwGrfNode () override |
const Graphic & | GetGrf (bool bWait=false) const |
const GraphicObject & | GetGrfObj (bool bWait=false) const |
const GraphicObject * | GetReplacementGrfObj () const |
void | SetGraphic (const Graphic &rGraphic) |
isolated only way to set GraphicObject to allow more actions when doing so More... | |
void | TriggerGraphicArrived () |
void | StartGraphicAnimation (OutputDevice *pOut, const Point &rPt, const Size &rSz, tools::Long nExtraData, OutputDevice *pFirstFrameOutDev) |
wrappers for non-const calls at GraphicObject More... | |
void | StopGraphicAnimation (const OutputDevice *pOut, tools::Long nExtraData) |
virtual Size | GetTwipSize () const override |
void | SetTwipSize (const Size &rSz) |
bool | IsTransparent () const |
bool | IsAnimated () const |
bool | IsChgTwipSize () const |
void | SetChgTwipSize (bool b) |
bool | IsFrameInPaint () const |
void | SetFrameInPaint (bool b) |
bool | IsScaleImageMap () const |
void | SetScaleImageMap (bool b) |
virtual SwContentNode * | MakeCopy (SwDoc &, const SwNodeIndex &, bool bNewFrames) const override |
in ndcopy.cxx More... | |
bool | ReRead (const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic=nullptr, bool bModify=true) |
Re-read in case graphic was not OK. More... | |
bool | HasEmbeddedStreamName () const |
virtual bool | SavePersistentData () override |
Communicate to graphic that node is in Undo-range. More... | |
virtual bool | RestorePersistentData () override |
Dummies for loading/saving of persistent data when working with graphics and OLE objects. More... | |
bool | IsGrfLink () const |
Query link-data. More... | |
bool | IsLinkedFile () const |
bool | IsLinkedDDE () const |
const tools::SvRef< sfx2::SvBaseLink > & | GetLink () const |
bool | GetFileFilterNms (OUString *pFileNm, OUString *pFilterNm) const |
void | ReleaseLink () |
void | ScaleImageMap () |
Scale an image-map: the image-map becomes zoomed in / out by factor between graphic-size and border-size. More... | |
GraphicAttr & | GetGraphicAttr (GraphicAttr &, const SwFrame *pFrame) const |
Returns the with our graphic attributes filled Graphic-Attr-Structure. More... | |
std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > | GetThreadConsumer () const |
bool | IsLinkedInputStreamReady () const |
void | TriggerAsyncRetrieveInputStream () |
void | ApplyInputStream (const css::uno::Reference< css::io::XInputStream > &xInputStream, const bool bIsStreamReadOnly) |
void | UpdateLinkWithInputStream () |
bool | IsAsyncRetrieveInputStreamPossible () const |
![]() | |
virtual | ~SwNoTextNode () override |
virtual SwContentFrame * | MakeFrame (SwFrame *) override |
MakeFrame will be called for a certain layout pSib is another SwFrame of the same layout (e.g. More... | |
SwGrfFormatColl * | GetGrfColl () const |
OUString | GetTitle () const |
void | SetTitle (const OUString &rTitle) |
OUString | GetDescription () const |
void | SetDescription (const OUString &rDescription) |
void | SetContour (const tools::PolyPolygon *pPoly, bool bAutomatic=false) |
const tools::PolyPolygon * | HasContour () const |
bool | HasContour_ () const |
void | GetContour (tools::PolyPolygon &rPoly) const |
void | CreateContour () |
void | SetAutomaticContour (bool bSet) |
bool | HasAutomaticContour () const |
void | SetContourAPI (const tools::PolyPolygon *pPoly) |
bool | GetContourAPI (tools::PolyPolygon &rPoly) const |
void | SetPixelContour (bool bSet) |
bool | IsPixelContour () const |
bool | IsContourMapModeValid () const |
Graphic | GetGraphic () const |
![]() | |
virtual SwContentNode * | JoinNext () |
bool | CanJoinNext (SwNodeIndex *pIdx=nullptr) const |
Is it possible to join two nodes? In pIdx the second position can be returned. More... | |
bool | CanJoinPrev (SwNodeIndex *pIdx=nullptr) const |
Can we join two Nodes? We can return the 2nd position in pIdx. More... | |
void | MakeStartIndex (SwIndex *pIdx) |
void | MakeEndIndex (SwIndex *pIdx) |
bool | GoNext (SwIndex *, sal_uInt16 nMode) const |
bool | GoPrevious (SwIndex *, sal_uInt16 nMode) const |
SwContentFrame * | getLayoutFrame (const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const |
SwRect | FindLayoutRect (const bool bPrtArea=false, const Point *pPoint=nullptr) const |
SwRect | FindPageFrameRect () const |
void | MakeFramesForAdjacentContentNode (SwContentNode &rNode) |
Method creates all views of document for given node. More... | |
void | DelFrames (SwRootFrame const *pLayout) |
Method deletes all views of document for the node. More... | |
virtual sal_Int32 | Len () const |
virtual bool | GetInfo (SfxPoolItem &) const override |
Get information from Client. More... | |
const SfxPoolItem & | GetAttr (sal_uInt16 nWhich, bool bInParent=true) const |
SS for PoolItems: hard attributation. More... | |
bool | GetAttr (SfxItemSet &rSet) const |
virtual bool | SetAttr (const SfxPoolItem &) |
made virtual More... | |
virtual bool | SetAttr (const SfxItemSet &rSet) |
virtual bool | ResetAttr (sal_uInt16 nWhich1, sal_uInt16 nWhich2=0) |
virtual bool | ResetAttr (const std::vector< sal_uInt16 > &rWhichArr) |
virtual sal_uInt16 | ResetAllAttr () |
const SfxPoolItem * | GetNoCondAttr (sal_uInt16 nWhich, bool bInParents) const |
Obtains attribute that is not delivered via conditional style! More... | |
const SwAttrSet & | GetSwAttrSet () const |
Does node has already its own auto-attributes? Access to SwAttrSet. More... | |
const SwAttrSet * | GetpSwAttrSet () const |
bool | HasSwAttrSet () const |
virtual SwFormatColl * | ChgFormatColl (SwFormatColl *) |
SwFormatColl * | GetFormatColl () const |
SwFormatColl & | GetAnyFormatColl () const |
void | SetCondFormatColl (SwFormatColl *) |
SwFormatColl * | GetCondFormatColl () const |
bool | IsAnyCondition (SwCollCondition &rTmp) const |
void | ChkCondColl (const SwTextFormatColl *pColl=nullptr) |
bool | InvalidateNumRule () |
Invalidates NumRule at the node. More... | |
SvxFrameDirection | GetTextDirection (const SwPosition &rPos, const Point *pPt) const |
determines the text direction for a certain position. More... | |
void | SetModifyAtAttr (bool bSetModifyAtAttr) const |
bool | GetModifyAtAttr () const |
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr | getSdrAllFillAttributesHelper () const |
void | UpdateAttr (const SwUpdateAttr &) |
![]() | |
virtual void | CallSwClientNotify (const SfxHint &rHint) const override |
![]() | |
SwModify () | |
virtual | ~SwModify () override |
void | Add (SwClient *pDepend) |
SwClient * | Remove (SwClient *pDepend) |
bool | HasWriterListeners () const |
bool | HasOnlyOneListener () const |
void | LockModify () |
void | UnlockModify () |
bool | IsModifyLocked () const |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::unique_ptr< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
![]() | |
bool | IsLast () const |
![]() | |
BroadcasterMixin ()=default | |
BroadcasterMixin (BroadcasterMixin const &)=default | |
BroadcasterMixin & | operator= (const BroadcasterMixin &) |
SvtBroadcaster & | GetNotifier () |
![]() | |
bool | IsCreateFrameWhenHidingRedlines () const |
void | SetRedlineMergeFlag (Merge const eMerge) |
Merge | GetRedlineMergeFlag () const |
virtual | ~SwNode () override=0 |
the = 0 forces the class to be an abstract base class, but the dtor can be still called from subclasses More... | |
tools::Long | GetSerial () const |
sal_uInt16 | GetSectionLevel () const |
Returns the section level at the position given by aIndex. More... | |
sal_uLong | StartOfSectionIndex () const |
const SwStartNode * | StartOfSectionNode () const |
SwStartNode * | StartOfSectionNode () |
sal_uLong | EndOfSectionIndex () const |
const SwEndNode * | EndOfSectionNode () const |
SwEndNode * | EndOfSectionNode () |
sal_uInt8 | GetAutoFormatLvl () const |
void | SetAutoFormatLvl (sal_uInt8 nVal) |
bool | IsIgnoreDontExpand () const |
void | SetIgnoreDontExpand (bool bNew) |
SwNodeType | GetNodeType () const |
SwStartNode * | GetStartNode () |
const SwStartNode * | GetStartNode () const |
SwContentNode * | GetContentNode () |
const SwContentNode * | GetContentNode () const |
SwEndNode * | GetEndNode () |
const SwEndNode * | GetEndNode () const |
SwTextNode * | GetTextNode () |
Inline methods from Node.hxx. More... | |
const SwTextNode * | GetTextNode () const |
SwOLENode * | GetOLENode () |
Inline methods from Node.hxx. More... | |
const SwOLENode * | GetOLENode () const |
SwNoTextNode * | GetNoTextNode () |
const SwNoTextNode * | GetNoTextNode () const |
SwGrfNode * | GetGrfNode () |
const SwGrfNode * | GetGrfNode () const |
SwTableNode * | GetTableNode () |
const SwTableNode * | GetTableNode () const |
SwSectionNode * | GetSectionNode () |
const SwSectionNode * | GetSectionNode () const |
bool | IsStartNode () const |
bool | IsContentNode () const |
bool | IsEndNode () const |
bool | IsTextNode () const |
bool | IsTableNode () const |
bool | IsSectionNode () const |
bool | IsOLENode () const |
bool | IsNoTextNode () const |
bool | IsGrfNode () const |
bool | IsInRedlines () const |
Checks if this node is in redlines. More... | |
SwTableNode * | FindTableNode () |
Search table node, in which it is. More... | |
const SwTableNode * | FindTableNode () const |
SwSectionNode * | FindSectionNode () |
Search section node, in which it is. More... | |
const SwSectionNode * | FindSectionNode () const |
SwStartNode * | FindSttNodeByType (SwStartNodeType eTyp) |
const SwStartNode * | FindSttNodeByType (SwStartNodeType eTyp) const |
const SwStartNode * | FindTableBoxStartNode () const |
const SwStartNode * | FindFlyStartNode () const |
const SwStartNode * | FindFootnoteStartNode () const |
const SwStartNode * | FindHeaderStartNode () const |
const SwStartNode * | FindFooterStartNode () const |
SwNodes & | GetNodes () |
Node is in which nodes-array/doc? More... | |
const SwNodes & | GetNodes () const |
SwDoc & | GetDoc () |
const SwDoc & | GetDoc () const |
const IDocumentSettingAccess * | getIDocumentSettingAccess () const |
Provides access to the document setting interface. More... | |
const IDocumentDeviceAccess & | getIDocumentDeviceAccess () const |
Provides access to the document device interface. More... | |
const IDocumentMarkAccess * | getIDocumentMarkAccess () const |
Provides access to the document bookmark interface. More... | |
const IDocumentRedlineAccess & | getIDocumentRedlineAccess () const |
Provides access to the document redline interface. More... | |
const IDocumentStylePoolAccess & | getIDocumentStylePoolAccess () const |
Provides access to the document style pool interface. More... | |
const IDocumentDrawModelAccess & | getIDocumentDrawModelAccess () const |
Provides access to the document draw model interface. More... | |
const IDocumentLayoutAccess & | getIDocumentLayoutAccess () const |
Provides access to the document layout interface. More... | |
IDocumentLayoutAccess & | getIDocumentLayoutAccess () |
const IDocumentLinksAdministration & | getIDocumentLinksAdministration () const |
Provides access to the document links administration interface. More... | |
IDocumentLinksAdministration & | getIDocumentLinksAdministration () |
const IDocumentFieldsAccess & | getIDocumentFieldsAccess () const |
Provides access to the document fields administration interface. More... | |
IDocumentFieldsAccess & | getIDocumentFieldsAccess () |
IDocumentContentOperations & | getIDocumentContentOperations () |
Provides access to the document content operations interface. More... | |
IStyleAccess & | getIDocumentStyleAccess () |
Provides access to the document automatic styles interface. More... | |
IDocumentListItems & | getIDocumentListItems () |
Provides access to the document's numbered items interface. More... | |
bool | IsInVisibleArea (SwViewShell const *pSh) const |
Is node in the visible area of the Shell? More... | |
bool | IsInProtectSect () const |
Is node in a protected area? More... | |
bool | IsProtect () const |
Is node in something that is protected (range, frame, table cells ... More... | |
const SwPageDesc * | FindPageDesc (size_t *pPgDescNdIdx=nullptr) const |
Search PageDesc with which this node is formatted. More... | |
SwFrameFormat * | GetFlyFormat () const |
If node is in a fly return the respective format. More... | |
SwTableBox * | GetTableBox () const |
If node is in a table return the respective table box. More... | |
sal_uLong | GetIndex () const |
const SwTextNode * | FindOutlineNodeOfLevel (sal_uInt8 nLvl, SwRootFrame const *pLayout=nullptr) const |
sal_uInt8 | HasPrevNextLayNode () const |
std::vector< SwFrameFormat * > const * | GetAnchoredFlys () const |
void | AddAnchoredFly (SwFrameFormat *) |
void | RemoveAnchoredFly (SwFrameFormat *) |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More... | |
![]() | |
BorderCacheOwner () | |
BorderCacheOwner (BorderCacheOwner &) | |
BorderCacheOwner & | operator= (const BorderCacheOwner &) |
~BorderCacheOwner () | |
bool | IsInCache () const |
void | InvalidateInSwCache (const sal_uInt16) |
![]() | |
SwIndexReg () | |
virtual | ~SwIndexReg () |
void | MoveTo (SwIndexReg &rArr) |
const SwIndex * | GetFirstIndex () const |
Private Member Functions | |
SwGrfNode (const SwNodeIndex &rWhere, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr) | |
Ctor for reading (SW/G) without graphics. More... | |
SwGrfNode (const SwNodeIndex &rWhere, const OUString &rGrfName, const OUString &rFltName, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr) | |
Create new SW/G reader. More... | |
SwGrfNode (const SwNodeIndex &rWhere, const GraphicObject &rGrfObj, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr) | |
void | InsertLink (const OUString &rGrfName, const OUString &rFltName) |
void | onGraphicChanged () |
allow reaction on change of content of GraphicObject, so always call when GraphicObject content changes More... | |
bool | SwapIn (bool bWaitForData=false) |
Loading of graphic immediately before displaying. More... | |
Private Attributes | |
GraphicObject | maGrfObj |
std::unique_ptr< GraphicObject > | mpReplacementGraphic |
tools::SvRef< sfx2::SvBaseLink > | mxLink |
If graphics only as link then pointer is set. More... | |
Size | mnGrfSize |
bool | mbInSwapIn:1 |
bool | mbInBaseLinkSwapIn:1 |
bool | mbChangeTwipSize:1 |
bool | mbFrameInPaint:1 |
To avoid Start-/EndActions in Paint via SwapIn. More... | |
bool | mbScaleImageMap:1 |
Scale image map in SetTwipSize. More... | |
std::shared_ptr< SwAsyncRetrieveInputStreamThreadConsumer > | mpThreadConsumer |
bool | mbLinkedInputStreamReady |
css::uno::Reference< css::io::XInputStream > | mxInputStream |
bool | mbIsStreamReadOnly |
Friends | |
class | SwNodes |
Additional Inherited Members | |
![]() | |
enum | Merge { Merge::None, Merge::First, Merge::NonFirst, Merge::Hidden } |
sw_redlinehide: redline node merge state More... | |
![]() | |
static std::unique_ptr< SwOLENodes > | CreateOLENodesArray (const SwFormatColl &rColl, bool bOnlyWithInvalidSize) |
![]() | |
SwNoTextNode (const SwNodeIndex &rWhere, const SwNodeType nNdType, SwGrfFormatColl *pGrColl, SwAttrSet const *pAutoAttr) | |
![]() | |
SwContentNode (const SwNodeIndex &rWhere, const SwNodeType nNodeType, SwFormatColl *pFormatColl) | |
virtual | ~SwContentNode () override=0 |
the = 0 forces the class to be an abstract base class, but the dtor can be still called from subclasses More... | |
sal_uInt16 | ClearItemsFromAttrSet (const std::vector< sal_uInt16 > &rWhichIds) |
There some functions that like to remove items from the internal SwAttrSet (handle): More... | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
![]() | |
SwNode (const SwNodeIndex &rWhere, const SwNodeType nNodeId) | |
SwNode (SwNodes &rNodes, sal_uLong nPos, const SwNodeType nNodeId) | |
for the initial StartNode More... | |
![]() | |
virtual void | Update (SwIndex const &rPos, const sal_Int32 nChangeLen, const bool bNegative=false, const bool bDelete=false) |
bool | HasAnyIndex () const |
![]() | |
std::shared_ptr< const SfxItemSet > | mpAttrSet |
Attribute-set for all auto attributes of a ContentNode. More... | |
![]() | |
SwStartNode * | m_pStartOfSection |
|
private |
Ctor for reading (SW/G) without graphics.
Definition at line 58 of file ndgrf.cxx.
References Grf, mbChangeTwipSize, mbFrameInPaint, mbInSwapIn, mbScaleImageMap, and ReRead().
|
private |
Create new SW/G reader.
Use this ctor if you want to read a linked graphic.
Definition at line 99 of file ndgrf.cxx.
References Connect, tools::SvRef< T >::get(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), Grf, InsertLink(), FStatHelper::IsDocument(), IsLinkedFile(), maGrfObj, mbChangeTwipSize, mbFrameInPaint, mbInSwapIn, mbScaleImageMap, mxLink, INetURLObject::NONE, Graphic::SetDefaultType(), and GraphicObject::SetGraphic().
|
private |
Definition at line 78 of file ndgrf.cxx.
References Grf, mbChangeTwipSize, mbFrameInPaint, mbInSwapIn, and mbScaleImageMap.
|
overridevirtual |
Definition at line 276 of file ndgrf.cxx.
References SwContentNode::DelFrames(), sfx2::SvBaseLink::Disconnect(), tools::SvRef< T >::get(), SwNode::GetDoc(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), SwModify::HasWriterListeners(), tools::SvRef< T >::is(), mbInSwapIn, mpReplacementGraphic, mpThreadConsumer, mxLink, sfx2::LinkManager::Remove(), RES_PAGEDESC(), and SwContentNode::ResetAttr().
void SwGrfNode::ApplyInputStream | ( | const css::uno::Reference< css::io::XInputStream > & | xInputStream, |
const bool | bIsStreamReadOnly | ||
) |
Definition at line 832 of file ndgrf.cxx.
References sw::BroadcastingModify::CallSwClientNotify(), IsLinkedFile(), mbIsStreamReadOnly, mbLinkedInputStreamReady, mxInputStream, and RES_LINKED_GRAPHIC_STREAM_ARRIVED().
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::ApplyInputStream().
bool SwGrfNode::GetFileFilterNms | ( | OUString * | pFileNm, |
OUString * | pFilterNm | ||
) | const |
Definition at line 494 of file ndgrf.cxx.
References sfx2::ClientDde, sfx2::ClientGraphic, sfx2::cTokenSeparator, tools::SvRef< T >::get(), sfx2::LinkManager::GetDisplayNames(), sfx2::SvBaseLink::GetLinkManager(), sfx2::SvBaseLink::GetObjType(), tools::SvRef< T >::is(), mxLink, and nType.
Referenced by DocxAttributeOutput::FlyFrameGraphic(), SwFEShell::GetGrfAtPos(), SwEditShell::GetGrfNms(), SwDoc::GetGrfNms(), GetRealURL(), WW8Export::OutGrf(), OutHTML_FrameFormatGrfNode(), SwUndoInsert::RepeatImpl(), SwUndoReRead::SaveGraphicData(), SwBasicEscherEx::WriteGrfFlyFrame(), and SwWW8WrGrf::WriteGrfFromGrfNode().
GraphicAttr & SwGrfNode::GetGraphicAttr | ( | GraphicAttr & | rGA, |
const SwFrame * | pFrame | ||
) | const |
Returns the with our graphic attributes filled Graphic-Attr-Structure.
returns the Graphic-Attr-Structure filled with our graphic attributes
Definition at line 733 of file ndgrf.cxx.
References Both, convertTwipToMm100(), Dont, SwFrame::FindPageFrame(), FRound(), SvxGrfCrop::GetBottom(), SwAttrSet::GetChannelBGrf(), SwAttrSet::GetChannelGGrf(), SwAttrSet::GetChannelRGrf(), SwAttrSet::GetContrastGrf(), SwAttrSet::GetCropGrf(), SwAttrSet::GetDrawModeGrf(), SwAttrSet::GetGammaGrf(), SwAttrSet::GetInvertGrf(), SvxGrfCrop::GetLeft(), SwAttrSet::GetLuminanceGrf(), SwAttrSet::GetMirrorGrf(), SvxGrfCrop::GetRight(), SwAttrSet::GetRotationGrf(), SwContentNode::GetSwAttrSet(), SvxGrfCrop::GetTop(), SwAttrSet::GetTransparencyGrf(), SfxBoolItem::GetValue(), SfxEnumItem< class >::GetValue(), CntByteItem::GetValue(), SfxInt16Item::GetValue(), SwRotationGrf::GetValue(), SwGammaGrf::GetValue(), Horizontal, SwMirrorGrf::IsGrfToggle(), SwFrame::OnRightPage(), GraphicAttr::SetAlpha(), GraphicAttr::SetChannelB(), GraphicAttr::SetChannelG(), GraphicAttr::SetChannelR(), GraphicAttr::SetContrast(), GraphicAttr::SetCrop(), GraphicAttr::SetDrawMode(), GraphicAttr::SetGamma(), GraphicAttr::SetInvert(), GraphicAttr::SetLuminance(), GraphicAttr::SetMirrorFlags(), GraphicAttr::SetRotation(), and Vertical.
Referenced by SwEditShell::GetGraphicAttr(), SwXFrame::getPropertyValue(), and SwNoTextFrame::PaintPicture().
const Graphic & SwGrfNode::GetGrf | ( | bool | bWait = false | ) | const |
Definition at line 373 of file ndgrf.cxx.
References GraphicObject::GetGraphic(), maGrfObj, and SwapIn().
Referenced by DocxAttributeOutput::FlyFrameGraphic(), RtfAttributeOutput::FlyFrameGraphic(), SwEditShell::GetGraphic(), SwFEShell::GetGrfAtPos(), SwEditShell::GetIMapGraphic(), SwXFrame::getPropertyValue(), MakeCopy(), onGraphicChanged(), OutHTML_FrameFormatGrfNode(), SwUndoInsert::RepeatImpl(), SwUndoReRead::SaveGraphicData(), and SwBasicEscherEx::WriteGrfFlyFrame().
const GraphicObject & SwGrfNode::GetGrfObj | ( | bool | bWait = false | ) | const |
Definition at line 379 of file ndgrf.cxx.
References maGrfObj, and SwapIn().
Referenced by SwBaseLink::DataChanged(), SwFlyFrame::GetContour(), SwEditShell::GetGraphicObj(), SwEditShell::GetGraphicType(), SwXFrame::getPropertyValue(), GetReplacementGrfObj(), SwEditShell::IsLinkedGrfSwapOut(), and SwNoTextFrame::PaintPicture().
|
inline |
Definition at line 132 of file ndgrf.hxx.
Referenced by SwFEShell::GetGrfAtPos(), SwNoTextFrame::PaintPicture(), and UpdateLinkWithInputStream().
const GraphicObject * SwGrfNode::GetReplacementGrfObj | ( | ) | const |
Definition at line 385 of file ndgrf.cxx.
References GraphicObject::GetGraphic(), SwNoTextNode::GetGraphic(), GetGrfObj(), Graphic::GetType(), Graphic::getVectorGraphicData(), and mpReplacementGraphic.
Referenced by SwXFrame::getPropertyValue().
|
inline |
Definition at line 143 of file ndgrf.hxx.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread().
|
overridevirtual |
Implements SwNoTextNode.
Definition at line 432 of file ndgrf.cxx.
References Size::Height(), mnGrfSize, SwapIn(), and Size::Width().
Referenced by SwBaseLink::DataChanged(), RtfAttributeOutput::FlyFrameGraphic(), SwHTMLParser::InsertImage(), OutHTML_FrameFormatGrfNode(), and SwNoTextFrame::PaintPicture().
|
inline |
Definition at line 122 of file ndgrf.hxx.
References GraphicObject::HasUserData().
Referenced by SavePersistentData().
|
private |
Definition at line 567 of file ndgrf.cxx.
References sfx2::ClientGraphic, sfx2::cTokenSeparator, tools::SvRef< T >::get(), SwNode::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), SwNode::GetNodes(), sfx2::LinkManager::InsertDDELink(), sfx2::LinkManager::InsertFileLink(), IDocumentLinksAdministration::IsVisibleLinks(), mxLink, sfx2::SvBaseLink::SetContentType(), sfx2::SvBaseLink::SetSynchron(), and sfx2::SvBaseLink::SetVisible().
Referenced by ReRead(), and SwGrfNode().
|
inline |
Definition at line 95 of file ndgrf.hxx.
References GraphicObject::IsAnimated().
Referenced by SwNoTextFrame::HasAnimation(), SwNoTextFrame::StopAnimation(), and SwViewShell::~SwViewShell().
bool SwGrfNode::IsAsyncRetrieveInputStreamPossible | ( | ) | const |
Definition at line 867 of file ndgrf.cxx.
References tools::SvRef< T >::get(), sfx2::LinkManager::GetDisplayNames(), IsLinkedFile(), and mxLink.
Referenced by SwNoTextFrame::PaintPicture().
|
inline |
Definition at line 97 of file ndgrf.hxx.
Referenced by SetGrfFlySize().
|
inline |
Definition at line 103 of file ndgrf.hxx.
Referenced by SwBaseLink::DataChanged().
|
inline |
Query link-data.
Definition at line 129 of file ndgrf.hxx.
References tools::SvRef< T >::is().
Referenced by SwFEShell::GetGrfAtPos(), SwUndoInsert::RepeatImpl(), and SwUndoReRead::SaveGraphicData().
|
inline |
Definition at line 169 of file ndgrf.hxx.
References sfx2::ClientDde, sfx2::SvBaseLink::GetObjType(), tools::SvRef< T >::is(), and mxLink.
Referenced by MakeCopy().
|
inline |
Definition at line 164 of file ndgrf.hxx.
References sfx2::ClientGraphic, sfx2::SvBaseLink::GetObjType(), tools::SvRef< T >::is(), and mxLink.
Referenced by ApplyInputStream(), DocxAttributeOutput::FlyFrameGraphic(), SwEditShell::GetGrfNms(), IsAsyncRetrieveInputStreamPossible(), SwEditShell::IsLinkedGrfSwapOut(), MakeCopy(), WW8Export::OutGrf(), OutHTML_FrameFormatGrfNode(), SwNoTextFrame::PaintPicture(), SwGrfNode(), TriggerAsyncRetrieveInputStream(), UpdateLinkWithInputStream(), SwBasicEscherEx::WriteGrfFlyFrame(), and SwWW8WrGrf::WriteGrfFromGrfNode().
|
inline |
Definition at line 144 of file ndgrf.hxx.
Referenced by SwNoTextFrame::PaintPicture().
|
inline |
Definition at line 106 of file ndgrf.hxx.
Referenced by SwHTMLParser::ConnectImageMaps(), and SetTwipSize().
bool SwGrfNode::IsTransparent | ( | ) | const |
Definition at line 801 of file ndgrf.cxx.
References SwContentNode::GetSwAttrSet(), SwAttrSet::GetTransparencyGrf(), CntByteItem::GetValue(), GraphicObject::IsTransparent(), and maGrfObj.
Referenced by SwNoTextFrame::IsTransparent().
|
overridevirtual |
in ndcopy.cxx
Implements SwContentNode.
Definition at line 705 of file ndgrf.cxx.
References SwDoc::CopyGrfColl(), tools::SvRef< T >::get(), SwNoTextNode::GetDescription(), sfx2::LinkManager::GetDisplayNames(), GetGrf(), SwNoTextNode::GetGrfColl(), SwContentNode::GetpSwAttrSet(), SwNoTextNode::GetTitle(), SwNoTextNode::HasAutomaticContour(), SwNoTextNode::HasContour(), IsLinkedDDE(), IsLinkedFile(), SwNodes::MakeGrfNode(), sfx2::MakeLnkName(), mxLink, SwNoTextNode::SetContour(), SwNoTextNode::SetDescription(), and SwNoTextNode::SetTitle().
|
private |
allow reaction on change of content of GraphicObject, so always call when GraphicObject content changes
allow reaction on change of content of GraphicObject
Definition at line 309 of file ndgrf.cxx.
References aName, drawinglayer::primitive2d::ObjectInfoPrimitive2D::getDesc(), SwNode::GetFlyFormat(), GetGrf(), drawinglayer::primitive2d::ObjectInfoPrimitive2D::getName(), drawinglayer::processor2d::ObjectInfoPrimitiveExtractor2D::getResult(), drawinglayer::primitive2d::ObjectInfoPrimitive2D::getTitle(), Graphic::getVectorGraphicData(), drawinglayer::processor2d::BaseProcessor2D::process(), SwNoTextNode::SetDescription(), and SwNoTextNode::SetTitle().
Referenced by ReRead(), SetGraphic(), and SwapIn().
void SwGrfNode::ReleaseLink | ( | ) |
Definition at line 596 of file ndgrf.cxx.
References tools::SvRef< T >::clear(), tools::SvRef< T >::get(), GraphicObject::GetGraphic(), SwNode::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), tools::SvRef< T >::is(), maGrfObj, mbInSwapIn, mxLink, pLink, sfx2::LinkManager::Remove(), GraphicObject::SetGraphic(), and SwBaseLink::SwapIn().
bool SwGrfNode::ReRead | ( | const OUString & | rGrfName, |
const OUString & | rFltName, | ||
const Graphic * | pGraphic = nullptr , |
||
bool | bModify = true |
||
) |
Re-read in case graphic was not OK.
The current one gets replaced by the new one.
Definition at line 130 of file ndgrf.cxx.
References sw::BroadcastingModify::CallSwClientNotify(), tools::SvRef< T >::clear(), sfx2::ClientDde, sfx2::ClientGraphic, Connect, sfx2::SvBaseLink::Disconnect(), tools::SvRef< T >::get(), SwNode::GetDoc(), GraphicObject::GetGraphic(), GetGraphicSizeTwip(), SwNode::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), SwContentNode::getLayoutFrame(), IDocumentLinksAdministration::GetLinkManager(), SwNode::GetNodes(), sfx2::SvBaseLink::GetObjType(), Graphic::getOriginURL(), GraphicObject::GetType(), InsertLink(), tools::SvRef< T >::is(), maGrfObj, sfx2::MakeLnkName(), mbInSwapIn, mpReplacementGraphic, mxLink, onGraphicChanged(), sfx2::LinkManager::Remove(), Graphic::SetDefaultType(), GraphicObject::SetGraphic(), sfx2::SvBaseLink::SetLinkSourceName(), Graphic::setOriginURL(), SetTwipSize(), and SwapIn().
Referenced by sw::DocumentContentOperationsManager::ReRead(), SwUndoReRead::SetAndSave(), and SwGrfNode().
|
overridevirtual |
Dummies for loading/saving of persistent data when working with graphics and OLE objects.
Reimplemented from SwNoTextNode.
Definition at line 554 of file ndgrf.cxx.
References tools::SvRef< T >::get(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::getIDocumentLayoutAccess(), SwNode::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), sfx2::LinkManager::InsertDDELink(), tools::SvRef< T >::is(), IDocumentLinksAdministration::IsVisibleLinks(), mxLink, sfx2::SvBaseLink::SetVisible(), and sfx2::SvBaseLink::Update().
|
overridevirtual |
Communicate to graphic that node is in Undo-range.
Make a graphic object ready for UNDO.
If it is already in storage, it needs to be loaded.
Reimplemented from SwNoTextNode.
Definition at line 526 of file ndgrf.cxx.
References tools::SvRef< T >::get(), SwNode::GetDoc(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), HasEmbeddedStreamName(), tools::SvRef< T >::is(), mbInSwapIn, mxLink, sfx2::LinkManager::Remove(), and SwapIn().
void SwGrfNode::ScaleImageMap | ( | ) |
Scale an image-map: the image-map becomes zoomed in / out by factor between graphic-size and border-size.
Definition at line 645 of file ndgrf.cxx.
References aURL, SvxBoxItem::CalcLineSpace(), SwFormat::GetBox(), SwNode::GetFlyFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightPercent(), SwFormat::GetURL(), SvxSizeItem::GetWidth(), SwFormatFrameSize::GetWidthPercent(), Size::Height(), mnGrfSize, SwFormat::SetFormatAttr(), and Size::Width().
Referenced by SwHTMLParser::ConnectImageMaps(), and SetTwipSize().
|
inline |
Definition at line 98 of file ndgrf.hxx.
Referenced by SwXFrame::attachToRange(), and SwHTMLParser::InsertImage().
|
inline |
Definition at line 104 of file ndgrf.hxx.
Referenced by SwNoTextFrame::PaintSwFrame().
isolated only way to set GraphicObject to allow more actions when doing so
Definition at line 361 of file ndgrf.cxx.
References maGrfObj, onGraphicChanged(), and GraphicObject::SetGraphic().
Referenced by SwBaseLink::DataChanged().
|
inline |
Definition at line 107 of file ndgrf.hxx.
Referenced by SwHTMLParser::InsertImage(), and SetTwipSize().
Definition at line 632 of file ndgrf.cxx.
References Size::Height(), IsScaleImageMap(), mnGrfSize, ScaleImageMap(), SetScaleImageMap(), and Size::Width().
Referenced by SwBaseLink::DataChanged(), SwHTMLParser::InsertImage(), ReRead(), SetGrfFlySize(), and SwapIn().
|
inline |
wrappers for non-const calls at GraphicObject
Definition at line 86 of file ndgrf.hxx.
References GraphicObject::StartAnimation().
Referenced by SwNoTextFrame::PaintPicture().
|
inline |
Definition at line 88 of file ndgrf.hxx.
References GraphicObject::StopAnimation().
|
private |
Loading of graphic immediately before displaying.
Definition at line 445 of file ndgrf.cxx.
References sw::BroadcastingModify::CallSwClientNotify(), tools::SvRef< T >::get(), GraphicObject::GetGraphic(), GetGraphicSizeTwip(), GraphicObject::GetType(), Size::Height(), maGrfObj, mbInBaseLinkSwapIn, mbInSwapIn, mnGrfSize, mpReplacementGraphic, mxLink, onGraphicChanged(), pLink, RES_GRAPHIC_PIECE_ARRIVED(), GraphicObject::SetGraphic(), SetTwipSize(), SwBaseLink::SwapIn(), and Size::Width().
Referenced by GetGrf(), GetGrfObj(), GetTwipSize(), ReRead(), and SavePersistentData().
void SwGrfNode::TriggerAsyncRetrieveInputStream | ( | ) |
Definition at line 807 of file ndgrf.cxx.
References tools::SvRef< T >::get(), sfx2::LinkManager::GetDisplayNames(), SwNode::GetDoc(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SwDoc::GetPersist(), SfxObjectShell::HasName(), IsLinkedFile(), mpThreadConsumer, and mxLink.
Referenced by SwNoTextFrame::PaintPicture().
void SwGrfNode::TriggerGraphicArrived | ( | ) |
Definition at line 367 of file ndgrf.cxx.
References sw::BroadcastingModify::CallSwClientNotify().
Referenced by SwBaseLink::DataChanged(), and UpdateLinkWithInputStream().
void SwGrfNode::UpdateLinkWithInputStream | ( | ) |
Definition at line 849 of file ndgrf.cxx.
References sfx2::SvBaseLink::clearStreamToLoadFrom(), GetLink(), IsLinkedFile(), mbInSwapIn, mbIsStreamReadOnly, mbLinkedInputStreamReady, mpThreadConsumer, mxInputStream, sfx2::SvBaseLink::setStreamToLoadFrom(), TriggerGraphicArrived(), and sfx2::SvBaseLink::Update().
Referenced by SwNoTextFrame::PaintPicture().
|
private |
Definition at line 38 of file ndgrf.hxx.
Referenced by GetGrf(), GetGrfObj(), IsTransparent(), ReleaseLink(), ReRead(), SetGraphic(), SwapIn(), and SwGrfNode().
|
private |
Definition at line 45 of file ndgrf.hxx.
Referenced by SwGrfNode().
|
private |
To avoid Start-/EndActions in Paint via SwapIn.
Definition at line 46 of file ndgrf.hxx.
Referenced by SwGrfNode().
|
private |
|
private |
Definition at line 42 of file ndgrf.hxx.
Referenced by ReleaseLink(), ReRead(), SavePersistentData(), SwapIn(), SwGrfNode(), UpdateLinkWithInputStream(), and ~SwGrfNode().
|
private |
Definition at line 52 of file ndgrf.hxx.
Referenced by ApplyInputStream(), and UpdateLinkWithInputStream().
|
private |
Definition at line 50 of file ndgrf.hxx.
Referenced by ApplyInputStream(), and UpdateLinkWithInputStream().
|
private |
|
private |
Definition at line 41 of file ndgrf.hxx.
Referenced by GetTwipSize(), ScaleImageMap(), SetTwipSize(), and SwapIn().
|
private |
Definition at line 39 of file ndgrf.hxx.
Referenced by GetReplacementGrfObj(), ReRead(), SwapIn(), and ~SwGrfNode().
|
private |
Definition at line 49 of file ndgrf.hxx.
Referenced by TriggerAsyncRetrieveInputStream(), UpdateLinkWithInputStream(), and ~SwGrfNode().
|
private |
Definition at line 51 of file ndgrf.hxx.
Referenced by ApplyInputStream(), and UpdateLinkWithInputStream().
|
private |
If graphics only as link then pointer is set.
Definition at line 40 of file ndgrf.hxx.
Referenced by GetFileFilterNms(), InsertLink(), IsAsyncRetrieveInputStreamPossible(), IsLinkedDDE(), IsLinkedFile(), MakeCopy(), ReleaseLink(), ReRead(), RestorePersistentData(), SavePersistentData(), SwapIn(), SwGrfNode(), TriggerAsyncRetrieveInputStream(), and ~SwGrfNode().