Suppose I have two files, created by storeToURL from the same SpreadsheetDocument without any changes in-between.
Later I opened both these copies from user code and chose TWICE one of these two components RANDOMLY from the StarDesktop both times assigning the first sheet to an object variable, the first time to vari1, the second time to vari2.
How can I distinguish between vari1, vari2 being two ways of access to the SAME thing and vari1, vari2 pointing to DIFFERENT objects only having every property beyond the origin in common.
Precautionary remark:
EqualUNOObjects ALWAYS returns FALSE for sheets, ranges, cells and the like, even for the same object created in the same way twice.
I could not yet find a property pointing "upwards" from a sheet (like .Parent or .Component or .Model or ...).
This looks strange to me. However, even for TextDocument where everything seems to point upwards and often infinitely loops back to self from seemingly subordinate properties, nothing points to the model. This MIGHT be intended. For security/saftey? For what reasons?