https://bugs.documentfoundation.org/show_bug.cgi?id=87111
--- Comment #3 from Michael Meeks <michael.me...@collabora.com> --- To find all the pivot tables use: sc/inc/document.hxx (ScDocument)'s: SC_DLLPUBLIC ScDPCollection* GetDPCollection(); sc/inc/dpobject.hxx (ScDPCollection): -> a list of Pivot Tables (Data Pilot) ultimately this: typedef std::vector< std::unique_ptr<ScDPObject> > TablesType; TablesType maTables; Where a 'ScDPObject' - is really a Pivot Table. So we need to find all of the sheets that may reference us in this case - by poking at ScDPObjects ... Quite probably this: const ScSheetSourceDesc* GetSheetDesc() const { return pSheetDesc; } Tells us about the source ranges this comes from. This is defined in: sc/inc/dpshttab.hxx Which has: SC_DLLPUBLIC const ScRange& GetSourceRange() const; sc/inc/address.hxx: // ScRange class ScRange { public: ScAddress aStart; ScAddress aEnd; class ScAddress { private: SCROW nRow; SCCOL nCol; SCTAB nTab; =) Beware: a source range can be 3D - ie. it can span rows, columns -and- sheets =) Thanks ! -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs