Willkommen im Forum
Jan1979 hat geschrieben:die Bezeichnung/Namen der Referenzen
Diese Querverweise sind spezielle Textmarken (TextFields), und sie haben keinen Namen.
Programmatisch können sie nur über eine Aufzählung angesprochen werden
Code: Alles auswählen
Sub LO_5_37115
' 20150803
' Printing writer's cross references
s = "com.sun.star.text.TextField.GetReference"
oDoc = ThisComponent
oTextFields = oDoc.getTextFields()
eTextFields = oTextFields.createEnumeration()
While eTextFields.hasMoreElements()
oField = eTextFields.nextElement()
If oField.supportsService(s) Then
Print oField.SourceName
End If
WEnd
End Sub
MRI hat geschrieben:' Properties of a TextField / Type: Cross-Reference
(LibreOffice 5.0.0.5, Linux)
'Anchor .text.XTextRange -INTERFACE- Pseud Read_Only
'AnchorType .text.TextContentAnchorType AS_CHARACTER Read_Only 22271
'AnchorTypes [].text.TextContentAnchorType -Sequence- Read_Only 22265
'CurrentPresentation string "" 12
'ImplementationId []byte -SEQUENCE- Pseud Read_Only
'ImplementationName string SwXTextField Pseud Read_Only
'IsFieldDisplayed short True Read_Only 33
'IsFieldUsed float True Read_Only 32
'PropertySetInfo .beans.XPropertySetInfo -INTERFACE- Pseud Read_Only
'ReferenceFieldPart short 1 18
'ReferenceFieldSource short 2 19
'SequenceNumber short 0 24
'SourceName string __RefHeading___... 10
'SupportedServiceNames []string -Sequence- Pseud Read_Only
'TextFieldMaster .beans.XPropertySet -INTERFACE- Pseud Read_Only
'TextWrap .text.WrapTextMode NONE Read_Only 22270
'Types []type -Sequence- Pseud Read_Only
Vielleicht hilft Dir das weiter?!