26
25
property Page targetPage
27
property alias activityRunning: activity.running
29
26
head: targetPage.head
35
ActivityIndicator { id: activity }
39
Layout.fillWidth: true
43
//horizontalAlignment: Text.AlignHCenter
44
elide: Text.ElideMiddle
46
font.weight: Font.DemiBold
47
text: targetPage.title
51
//horizontalAlignment: Text.AlignHCenter
52
elide: Text.ElideMiddle
56
if (!loPageContentLoader.item)
57
return i18n.tr("Loading...")
59
switch(loPageContentLoader.item.loDocument.documentType) {
61
return i18n.tr("LibreOffice text document")
63
return i18n.tr("LibreOffice spread sheet")
65
return i18n.tr("LibreOffice presentation")
67
return i18n.tr("LibreOffice Draw document")
69
return i18n.tr("Unknown LibreOffice document")
71
return i18n.tr("Unknown type document")
32
verticalCenter: parent.verticalCenter
36
anchors { left: parent.left; right: parent.right }
37
elide: Text.ElideMiddle
38
font.weight: Font.DemiBold
39
text: targetPage.title
42
anchors { left: parent.left; right: parent.right }
43
elide: Text.ElideMiddle
46
if (!loPageContentLoader.item)
47
return i18n.tr("Loading...")
49
switch(loPageContentLoader.item.loDocument.documentType) {
51
return i18n.tr("LibreOffice text document")
53
return i18n.tr("LibreOffice spread sheet")
55
return i18n.tr("LibreOffice presentation")
57
return i18n.tr("LibreOffice Draw document")
59
return i18n.tr("Unknown LibreOffice document")
61
return i18n.tr("Unknown type document")
78
68
backAction: Action {
80
70
text: (pageStack.depth > 1) ? i18n.tr("Back") : i18n.tr("Close")
102
92
iconName: "browser-tabs"
103
93
text: i18n.tr("Go to position...")
104
94
onTriggered: PopupUtils.open(Qt.resolvedUrl("LOViewGotoDialog.qml"), targetPage)
105
visible: loDocument.documentType == LibreOffice.Document.TextDocument
95
visible: loPageContentLoader.item.loDocument.documentType == LibreOffice.Document.TextDocument