~verzegnassi-stefano/ubuntu-docviewer-app/lo-plugin-prototype

« back to all changes in this revision

Viewing changes to src/app/qml/loView/LOViewDefaultHeader.qml

  • Committer: Stefano Verzegnassi
  • Date: 2015-06-26 14:56:23 UTC
  • Revision ID: stefano92.100@gmail.com-20150626145623-nrz72cuhfv6p761g
Added document type property to LibreOffice plugin LODocument class

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                elide: Text.ElideMiddle
52
52
 
53
53
                fontSize: "small"
54
 
                text: targetPage.currentPage
 
54
                text: {
 
55
                    switch(loDocument.documentType) {
 
56
                    case 0:
 
57
                        return i18n.tr("LibreOffice text document")
 
58
                    case 1:
 
59
                        return i18n.tr("LibreOffice spread sheet")
 
60
                    case 2:
 
61
                        return i18n.tr("LibreOffice presentation")
 
62
                    case 3:
 
63
                        return i18n.tr("LibreOffice Draw document")
 
64
                    case 4:
 
65
                        return i18n.tr("Unknown LibreOffice document")
 
66
                    default:
 
67
                        return i18n.tr("Unknown type document")
 
68
                    }
 
69
                }
55
70
            }
56
71
        }
57
72
    }