24#include <com/sun/star/sheet/ExternalLinkInfo.hpp>
30 namespace sheet {
struct DDEItemInfo; }
31 namespace sheet {
class XDDELink; }
32 namespace sheet {
class XExternalDocLink; }
33 namespace sheet {
class XExternalSheetCache; }
61 template<
typename Type >
91 css::sheet::DDEItemInfo& orItemInfo )
const;
95 OUString& orDdeServer,
97 OUString& orDdeItem );
110 css::uno::Reference< css::sheet::XDDELink >
128 void setRange( sal_Int32 nFirst, sal_Int32 nLast );
130 void setExternalRange( sal_Int32 nDocLink, sal_Int32 nFirst, sal_Int32 nLast );
172template<
typename charT,
typename traits >
173inline std::basic_ostream<charT, traits> &
operator <<(
186 default:
return stream << static_cast<int>(type);
250 css::uno::Reference< css::sheet::XExternalSheetCache >
275 css::uno::Reference< css::sheet::XExternalDocLink >
321 css::uno::Sequence< css::sheet::ExternalLinkInfo >
container_type::iterator iterator
Base class for defined names and external names.
const RefSheetsModel * getRefSheets(sal_Int32 nRefId) const
Returns the specified sheet indexes for a reference identifier.
::std::vector< RefSheetsModel > RefSheetsModelVec
ExternalLinkRef createExternalLink()
Creates a new external link and inserts it into the list of links.
RefVector< ExternalLink > ExternalLinkVec
void importExternalAddin(SequenceInputStream &rStrm)
Imports the EXTERNALADDIN record from the passed stream.
void importExternalSelf(SequenceInputStream &rStrm)
Imports the EXTERNALSELF record from the passed stream.
ExternalLinkRef getExternalLink(sal_Int32 nRefId, bool bUseRefSheets=true) const
Returns the external link for the passed reference identifier.
css::uno::Sequence< css::sheet::ExternalLinkInfo > getLinkInfos() const
Returns the sequence of link infos needed by the XML formula parser.
void importExternalSheets(SequenceInputStream &rStrm)
Imports the EXTERNALSHEETS record from the passed stream.
bool mbUseRefSheets
Sheet indexes for reference ids.
void importExternalSame(SequenceInputStream &rStrm)
Imports the EXTERNALSAME record from the passed stream.
RefSheetsModelVec maRefSheets
Real external links needed for formula parser.
ExternalLinkRef importExternalReference(const AttributeList &rAttribs)
Imports the externalReference element containing .
ExternalLinkVec maLinks
Implicit self reference at index 0.
ExternalLinkBuffer(const WorkbookHelper &rHelper)
ExternalLinkRef importExternalRef(SequenceInputStream &rStrm)
Imports the EXTERNALREF record from the passed stream.
ExternalLinkVec maExtLinks
List of link structures for all kinds of links.
LinkSheetRange getSheetRange(sal_Int32 nRefId) const
Returns the sheet range for the specified reference (BIFF8 only).
ExternalLinkRef mxSelfRef
const OUString & getClassName() const
Returns the class name of this external link.
ExternalLinkType getLinkType() const
Returns the type of this external link.
void importExtSheetNames(SequenceInputStream &rStrm)
Imports the EXTSHEETNAMES record containing the sheet names in an externally linked document.
OUString maRelId
Type of the function library, if link type is ExternalLinkType::Library.
ExternalNameRef createExternalName()
sal_Int32 getSheetCacheIndex(sal_Int32 nTabId) const
Returns the external sheet cache index or for the passed sheet.
void importDefinedName(const AttributeList &rAttribs)
Imports the definedName element describing an external name.
void importDdeLink(const AttributeList &rAttribs)
Imports the ddeLink element describing a DDE link.
RefVector< ExternalName > maExtNames
External sheet cache indexes.
void importExternalSelf(SequenceInputStream &rStrm)
Imports the EXTERNALSELF record from the passed stream.
void importExternalReference(const AttributeList &rAttribs)
Imports the externalReference element containing the relation identifier.
std::vector< sal_Int32 > maSheetCaches
Interface for an external document.
FunctionLibraryType getFuncLibraryType() const
Returns the type of the external library if this is a library link.
css::sheet::ExternalLinkInfo getLinkInfo() const
Returns the link info needed by the XML formula parser.
void importSheetName(const AttributeList &rAttribs)
Imports the sheetName element containing the sheet name in an externally linked document.
void getSheetRange(LinkSheetRange &orSheetRange, sal_Int32 nTabId1, sal_Int32 nTabId2) const
Returns the internal sheet range or range of external sheet caches for the passed sheet range (BIFF o...
ExternalNameRef getNameByIndex(sal_Int32 nIndex) const
Returns the external name with the passed zero-based index.
void importExternalAddin(SequenceInputStream &rStrm)
Imports the EXTERNALADDIN record from the passed stream.
void setDdeOleTargetUrl(const OUString &rClassName, const OUString &rTargetUrl, ExternalLinkType eLinkType)
OUString maClassName
Relation identifier for the external link fragment.
void parseExternalReference(const ::oox::core::Relations &rRelations, const OUString &rRelId)
void setExternalTargetUrl(const OUString &rTargetUrl, const OUString &rTargetType)
OUString maTargetUrl
DDE service, OLE class name.
void setSelfLinkType()
Sets the link type to 'self reference'.
ExternalNameRef importExternalName(SequenceInputStream &rStrm)
Imports the EXTERNALNAME record describing an external name.
const OUString & getRelId() const
Returns the relation identifier for the external link fragment.
FunctionLibraryType meFuncLibType
Type of this link object.
void importOleLink(const ::oox::core::Relations &rRelations, const AttributeList &rAttribs)
Imports the oleLink element describing an OLE link.
void importExternalBook(const ::oox::core::Relations &rRelations, const AttributeList &rAttribs)
Imports the externalBook element describing an externally linked document.
ExternalNameRef importOleItem(const AttributeList &rAttribs)
Imports the oleItem element describing an object of an OLE link.
void insertExternalSheet(const OUString &rSheetName)
Creates an external document link and the sheet cache for the passed sheet name.
css::uno::Reference< css::sheet::XExternalDocLink > mxDocLink
Target link, DDE topic, OLE target.
ExternalLinkType meLinkType
sal_Int32 getDocumentLinkIndex() const
Returns the token index of the external document.
ExternalLink(const WorkbookHelper &rHelper)
ExternalNameRef importDdeItem(const AttributeList &rAttribs)
Imports the ddeItem element describing an item of a DDE link.
void importExternalRef(SequenceInputStream &rStrm)
Imports the EXTERNALREF record from the passed stream.
void importExternalBook(const ::oox::core::Relations &rRelations, SequenceInputStream &rStrm)
Imports the EXTERNALBOOK record describing an externally linked document, DDE link,...
css::uno::Reference< css::sheet::XExternalSheetCache > getSheetCache(sal_Int32 nTabId) const
Returns the sheet cache of the external sheet with the passed index.
const OUString & getTargetUrl() const
Returns the target URL of this external link.
void importExternalSame(SequenceInputStream &rStrm)
Imports the EXTERNALSAME record from the passed stream.
void importExternalName(SequenceInputStream &rStrm)
Imports the EXTERNALNAME record containing the name (only).
void importDdeItemError(SequenceInputStream &rStrm)
Imports the DDEITEM_ERROR record containing an error code in a link result.
void importDefinedName(const AttributeList &rAttribs)
Imports the definedName element.
void importDdeItemBool(SequenceInputStream &rStrm)
Imports the DDEITEM_BOOL record containing a boolean value in a link result.
void importDdeItemValues(SequenceInputStream &rStrm)
Imports the DDEITEMVALUES record containing the size of the DDE result matrix.
void importDdeItemString(SequenceInputStream &rStrm)
Imports the DDEITEM_STRING record containing a string in a link result.
void importValues(const AttributeList &rAttribs)
Imports the values element containing the size of the DDE result matrix.
ResultMatrix::iterator maCurrIt
DDE/OLE link results.
void importDdeItemDouble(SequenceInputStream &rStrm)
Imports the DDEITEM_DOUBLE record containing a double value in a link result.
ExternalName(const ExternalLink &rParentLink)
ExternalNameModel maExtNameModel
External link this name belongs to.
void importDdeItem(const AttributeList &rAttribs)
Imports the ddeItem element describing an item of a DDE link.
const ExternalLink & mrParentLink
bool getDdeItemInfo(css::sheet::DDEItemInfo &orItemInfo) const
Returns the DDE item info needed by the XML formula parser.
void importExternalNameFlags(SequenceInputStream &rStrm)
Imports the EXTERNALNAMEFLAGS record containing the settings of an external name.
void importOleItem(const AttributeList &rAttribs)
Imports the oleItem element describing an object of an OLE link.
css::uno::Reference< css::sheet::XDDELink > mxDdeLink
Current position in result matrix.
ResultMatrix maResults
Additional name data.
bool mbDdeLinkCreated
Interface of a DDE link.
bool getDdeLinkData(OUString &orDdeServer, OUString &orDdeTopic, OUString &orDdeItem)
Returns the complete DDE link data of this DDE item.
Matrix< css::uno::Any > ResultMatrix
void appendResultValue(const Type &rValue)
Appends the passed value to the result set.
void setResultSize(sal_Int32 nColumns, sal_Int32 nRows)
Sets the size of the result matrix.
Contains indexes for a range of sheets in the spreadsheet document.
LinkSheetRangeType meType
void setSameSheet()
Sets this struct to "use current sheet" state.
sal_Int32 getLastSheet() const
sal_Int32 mnFirst
Document link token index for external links.
bool isDeleted() const
Returns true, if the sheet indexes are valid and different.
void setExternalRange(sal_Int32 nDocLink, sal_Int32 nFirst, sal_Int32 nLast)
Sets the passed external sheet cache range to the members of this struct.
bool isExternal() const
Returns true, if the sheet range points to an external document.
sal_Int32 getFirstSheet() const
sal_Int32 mnDocLink
Link sheet range type.
sal_Int32 mnLast
Index of the first sheet or index of first external sheet cache.
sal_Int32 getDocLinkIndex() const
void setRange(sal_Int32 nFirst, sal_Int32 nLast)
Sets the passed absolute sheet range to the members of this struct.
void setDeleted()
Sets this struct to deleted state.
bool is3dRange() const
Returns true, if the sheet indexes are valid and different.
bool isSameSheet() const
Returns true, if the sheet indexes are valid and different.
@ LINKSHEETRANGE_SAMESHEET
Sheet range in an external document.
@ LINKSHEETRANGE_EXTERNAL
Sheet range in the own document.
@ LINKSHEETRANGE_INTERNAL
Helper class to provide access to global workbook data.
Reference< XOutputStream > stream
std::shared_ptr< ExternalName > ExternalNameRef
std::shared_ptr< ExternalLink > ExternalLinkRef
@ PathMissing
Link refers to an external spreadsheet document.
@ Library
Just for round-tripping (FIXME: Functionality not actually implemented after all.)
@ External
Link refers to the current sheet.
@ Same
Link refers to the current workbook.
@ DDE
Link refers to an external add-in.
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, const ExternalLinkType &type)
FunctionLibraryType
This enumeration contains constants for all known external libraries containing supported sheet funct...
bool mbStdDocName
Picture link.
ExternalNameModel()
Iconified object link.
bool mbOleObj
Name is the StdDocumentName for DDE.
bool mbPreferPic
Notify application on data change.
bool mbIconified
Name is an OLE object.
Represents a REF entry in the BIFF12 EXTERNALSHEETS or in the BIFF8 EXTERNSHEET record.
sal_Int32 mnTabId1
Zero-based index into list of external documents.
void readBiff12Data(SequenceInputStream &rStrm)
RefSheetsModel()
Zero-based index to last sheet in external document.
sal_Int32 mnTabId2
Zero-based index to first sheet in external document.