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 nRendererId, OutputDevice *pFirstFrameOutDev) |
wrappers for non-const calls at GraphicObject More... | |
void | StopGraphicAnimation (const OutputDevice *pOut, tools::Long nRendererId) |
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 &, SwNode &, 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 |
virtual Size | GetTwipSize () const =0 |
virtual bool | SavePersistentData () |
virtual bool | RestorePersistentData () |
Dummies for loading/saving of persistent data when working with graphics and OLE objects. More... | |
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 SwContentFrame * | MakeFrame (SwFrame *pSib)=0 |
MakeFrame will be called for a certain layout pSib is another SwFrame of the same layout (e.g. More... | |
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 | CanJoinNext (SwPosition *pIdx) const |
Can we join two Nodes? We can return the 2nd position in pIdx. More... | |
bool | CanJoinPrev (SwNodeIndex *pIdx=nullptr) const |
Can we join two Nodes? We can return the 2nd position in pIdx. More... | |
bool | GoNext (SwContentIndex *, SwCursorSkipMode nMode) const |
bool | GoNext (SwPosition *, SwCursorSkipMode nMode) const |
bool | GoPrevious (SwContentIndex *, SwCursorSkipMode 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 SwContentNode * | MakeCopy (SwDoc &, SwNode &rWhere, bool bNewFrames) const =0 |
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... | |
template<class T > | |
const T & | GetAttr (TypedWhichId< T > nWhich, bool bInParent=true) const |
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... | |
template<class T > | |
const T * | GetNoCondAttr (TypedWhichId< T > nWhich, bool bInParents) const |
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 &) |
![]() | |
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... | |
SwNodeOffset | StartOfSectionIndex () const |
const SwStartNode * | StartOfSectionNode () const |
SwStartNode * | StartOfSectionNode () |
SwNodeOffset | 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 ... including anchor in case of frames or footnotes)? More... | |
const SwPageDesc * | FindPageDesc (SwNodeOffset *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... | |
SwNodeOffset | 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... | |
bool | operator== (const SwNode &rOther) const |
bool | operator!= (const SwNode &rOther) const |
bool | operator< (const SwNode &rOther) const |
bool | operator<= (const SwNode &rOther) const |
bool | operator> (const SwNode &rOther) const |
bool | operator>= (const SwNode &rOther) const |
sw::AccessibilityCheckStatus & | getAccessibilityCheckStatus () |
void | resetAndQueueAccessibilityCheck () |
![]() | |
BorderCacheOwner () | |
BorderCacheOwner (BorderCacheOwner &) | |
BorderCacheOwner & | operator= (const BorderCacheOwner &) |
~BorderCacheOwner () | |
bool | IsInCache () const |
void | InvalidateInSwCache (const sal_uInt16) |
Private Member Functions | |
SwGrfNode (SwNode &rWhere, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr) | |
Ctor for reading (SW/G) without graphics. More... | |
SwGrfNode (SwNode &rWhere, std::u16string_view rGrfName, const OUString &rFltName, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr) | |
Create new SW/G reader. More... | |
SwGrfNode (SwNode &rWhere, const GraphicObject &rGrfObj, SwGrfFormatColl *pGrfColl, SwAttrSet const *pAutoAttr) | |
void | InsertLink (std::u16string_view 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 class | Merge { None , First , NonFirst , Hidden } |
sw_redlinehide: redline node merge state More... | |
![]() | |
static std::unique_ptr< SwOLENodes > | CreateOLENodesArray (const SwFormatColl &rColl, bool bOnlyWithInvalidSize) |
![]() | |
SwNoTextNode (SwNode &rWhere, const SwNodeType nNdType, SwGrfFormatColl *pGrColl, SwAttrSet const *pAutoAttr) | |
![]() | |
SwContentNode () | |
only used by SwContentNodeTmp in SwTextNode::Update More... | |
SwContentNode (const SwNode &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... | |
virtual void | NewAttrSet (SwAttrPool &)=0 |
Make respective nodes create the specific AttrSets. 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 |
![]() | |
SwNode () | |
only used by SwContentNodeTmp in SwTextNode::Update More... | |
SwNode (const SwNode &rWhere, const SwNodeType nNodeId) | |
SwNode (SwNodes &rNodes, SwNodeOffset nPos, const SwNodeType nNodeId) | |
for the initial StartNode More... | |
![]() | |
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 60 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 100 of file ndgrf.cxx.
References Connect, tools::SvRef< typename 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 79 of file ndgrf.cxx.
References Grf, mbChangeTwipSize, mbFrameInPaint, mbInSwapIn, and mbScaleImageMap.
|
overridevirtual |
Definition at line 276 of file ndgrf.cxx.
References SwContentNode::DelFrames(), tools::SvRef< typename T >::get(), SwNode::GetDoc(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), tools::SvRef< typename 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 852 of file ndgrf.cxx.
References IsLinkedFile(), mbIsStreamReadOnly, mbLinkedInputStreamReady, and mxInputStream.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::ApplyInputStream().
bool SwGrfNode::GetFileFilterNms | ( | OUString * | pFileNm, |
OUString * | pFilterNm | ||
) | const |
Definition at line 493 of file ndgrf.cxx.
References sfx2::ClientDde, sfx2::ClientGraphic, sfx2::cTokenSeparator, tools::SvRef< typename T >::get(), sfx2::LinkManager::GetDisplayNames(), tools::SvRef< typename T >::is(), mxLink, and nType.
Referenced by DocxAttributeOutput::FlyFrameGraphic(), SwFEShell::GetGrfAtPos(), SwDoc::GetGrfNms(), SwEditShell::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 732 of file ndgrf.cxx.
References Both, convertTwipToMm100(), Dont, SwFrame::FindPageFrame(), FRound(), SvxGrfCrop::GetBottom(), SvxGrfCrop::GetLeft(), GraphicAttr::GetMirrorFlags(), SvxGrfCrop::GetRight(), SwContentNode::GetSwAttrSet(), SvxGrfCrop::GetTop(), SfxEnumItem< typename EnumT >::GetValue(), SwRotationGrf::GetValue(), Horizontal, SwMirrorGrf::IsGrfToggle(), min(), SwFrame::OnRightPage(), rSet, 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(), and SwNoTextFrame::ImplPaintPictureGraphic().
const Graphic & SwGrfNode::GetGrf | ( | bool | bWait = false | ) | const |
Definition at line 373 of file ndgrf.cxx.
References GraphicObject::GetGraphic(), maGrfObj, and SwapIn().
Referenced by RtfAttributeOutput::FlyFrameGraphic(), DocxAttributeOutput::FlyFrameGraphic(), SwEditShell::GetGraphic(), SwFEShell::GetGrfAtPos(), SwEditShell::GetIMapGraphic(), 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(), GetReplacementGrfObj(), SwNoTextFrame::ImplPaintPictureGraphic(), and SwEditShell::IsLinkedGrfSwapOut().
|
inline |
Definition at line 132 of file ndgrf.hxx.
Referenced by SwFEShell::GetGrfAtPos(), SwNoTextFrame::ImplPaintPictureGraphic(), and UpdateLinkWithInputStream().
const GraphicObject * SwGrfNode::GetReplacementGrfObj | ( | ) | const |
Definition at line 385 of file ndgrf.cxx.
References Graphic::GetBitmapEx(), GraphicObject::GetGraphic(), GetGrfObj(), Graphic::GetType(), Graphic::getVectorGraphicData(), and mpReplacementGraphic.
|
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(), SwNoTextFrame::ImplPaintPictureGraphic(), SwHTMLParser::InsertImage(), OutHTML_FrameFormatGrfNode(), and SwWW8ImplReader::SetAttributesAtGrfNode().
|
inline |
Definition at line 122 of file ndgrf.hxx.
References GraphicObject::HasUserData().
Referenced by SavePersistentData().
|
private |
Definition at line 566 of file ndgrf.cxx.
References sfx2::ClientGraphic, sfx2::cTokenSeparator, tools::SvRef< typename T >::get(), SwNode::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), SwNode::GetNodes(), o3tl::getToken(), sfx2::LinkManager::InsertDDELink(), sfx2::LinkManager::InsertFileLink(), IDocumentLinksAdministration::IsVisibleLinks(), and mxLink.
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 886 of file ndgrf.cxx.
References tools::SvRef< typename T >::get(), sfx2::LinkManager::GetDisplayNames(), IsLinkedFile(), and mxLink.
Referenced by SwNoTextFrame::ImplPaintPictureGraphic().
|
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< typename T >::is().
Referenced by SwFEShell::GetGrfAtPos(), SwUndoInsert::RepeatImpl(), and SwUndoReRead::SaveGraphicData().
|
inline |
Definition at line 169 of file ndgrf.hxx.
References sfx2::ClientDde, tools::SvRef< typename T >::is(), and mxLink.
Referenced by MakeCopy().
|
inline |
Definition at line 164 of file ndgrf.hxx.
References sfx2::ClientGraphic, tools::SvRef< typename T >::is(), and mxLink.
Referenced by ApplyInputStream(), DocxAttributeOutput::FlyFrameGraphic(), SwDoc::GetGrfNms(), SwEditShell::GetGrfNms(), SwNoTextFrame::ImplPaintPictureGraphic(), IsAsyncRetrieveInputStreamPossible(), SwEditShell::IsLinkedGrfSwapOut(), MakeCopy(), WW8Export::OutGrf(), OutHTML_FrameFormatGrfNode(), SwGrfNode(), TriggerAsyncRetrieveInputStream(), UpdateLinkWithInputStream(), SwBasicEscherEx::WriteGrfFlyFrame(), and SwWW8WrGrf::WriteGrfFromGrfNode().
|
inline |
Definition at line 144 of file ndgrf.hxx.
Referenced by SwNoTextFrame::ImplPaintPictureGraphic().
|
inline |
Definition at line 106 of file ndgrf.hxx.
Referenced by SwHTMLParser::ConnectImageMaps(), and SetTwipSize().
bool SwGrfNode::IsTransparent | ( | ) | const |
Definition at line 821 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 704 of file ndgrf.cxx.
References SwDoc::CopyGrfColl(), tools::SvRef< typename 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 595 of file ndgrf.cxx.
References tools::SvRef< typename T >::clear(), tools::SvRef< typename T >::get(), GraphicObject::GetGraphic(), SwNode::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), tools::SvRef< typename T >::is(), Graphic::IsGfxLink(), maGrfObj, mbInSwapIn, mxLink, pLink, sfx2::LinkManager::Remove(), GraphicObject::SetGraphic(), and Graphic::setOriginURL().
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 tools::SvRef< typename T >::clear(), sfx2::ClientDde, sfx2::ClientGraphic, Connect, tools::SvRef< typename T >::get(), SwNode::GetDoc(), GraphicObject::GetGraphic(), GetGraphicSizeTwip(), SwNode::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), SwContentNode::getLayoutFrame(), IDocumentLinksAdministration::GetLinkManager(), SwNode::GetNodes(), Graphic::getOriginURL(), GraphicObject::GetType(), InsertLink(), tools::SvRef< typename T >::is(), maGrfObj, sfx2::MakeLnkName(), mbInSwapIn, mpReplacementGraphic, mxLink, onGraphicChanged(), sfx2::LinkManager::Remove(), Graphic::SetDefaultType(), GraphicObject::SetGraphic(), 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 553 of file ndgrf.cxx.
References tools::SvRef< typename T >::get(), SwNode::getIDocumentLayoutAccess(), SwNode::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), sfx2::LinkManager::InsertDDELink(), tools::SvRef< typename T >::is(), IDocumentLinksAdministration::IsVisibleLinks(), and mxLink.
|
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 525 of file ndgrf.cxx.
References tools::SvRef< typename T >::get(), SwNode::GetDoc(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), HasEmbeddedStreamName(), tools::SvRef< typename 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 644 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 SwHTMLParser::InsertImage().
|
inline |
Definition at line 104 of file ndgrf.hxx.
Referenced by SwNoTextFrame::PaintSwFrame().
void SwGrfNode::SetGraphic | ( | const Graphic & | rGraphic | ) |
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().
void SwGrfNode::SetTwipSize | ( | const Size & | rSz | ) |
Definition at line 631 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 pOut, and GraphicObject::StartAnimation().
Referenced by SwNoTextFrame::ImplPaintPictureAnimate().
|
inline |
Definition at line 88 of file ndgrf.hxx.
References pOut, and GraphicObject::StopAnimation().
|
private |
Loading of graphic immediately before displaying.
Definition at line 445 of file ndgrf.cxx.
References tools::SvRef< typename T >::get(), GraphicObject::GetGraphic(), GetGraphicSizeTwip(), GraphicObject::GetType(), Size::Height(), maGrfObj, mbInBaseLinkSwapIn, mbInSwapIn, mnGrfSize, mpReplacementGraphic, mxLink, onGraphicChanged(), pLink, GraphicObject::SetGraphic(), SetTwipSize(), and Size::Width().
Referenced by GetGrf(), GetGrfObj(), GetTwipSize(), ReRead(), and SavePersistentData().
void SwGrfNode::TriggerAsyncRetrieveInputStream | ( | ) |
Definition at line 827 of file ndgrf.cxx.
References tools::SvRef< typename T >::get(), sfx2::LinkManager::GetDisplayNames(), SwNode::GetDoc(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SwDoc::GetPersist(), SfxObjectShell::HasName(), IsLinkedFile(), mpThreadConsumer, and mxLink.
Referenced by SwNoTextFrame::ImplPaintPictureGraphic().
void SwGrfNode::TriggerGraphicArrived | ( | ) |
Definition at line 367 of file ndgrf.cxx.
Referenced by SwBaseLink::DataChanged(), and UpdateLinkWithInputStream().
void SwGrfNode::UpdateLinkWithInputStream | ( | ) |
Definition at line 868 of file ndgrf.cxx.
References GetLink(), IsLinkedFile(), mbInSwapIn, mbIsStreamReadOnly, mbLinkedInputStreamReady, mpThreadConsumer, mxInputStream, and TriggerGraphicArrived().
Referenced by SwNoTextFrame::ImplPaintPictureGraphic().
|
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().