// bind template to controller class Frame: LSWSkyrixFrame {} Window: LSWWindowFrame { title = label; onClose = closeWindow; } Buttons: SkyButtonRow { oid = documentId; ordering = ( openloc, editasnew, delete, rename, checkout, reject, release, lock, unlock, mail, upload, edit, refresh, unzip, saveas); /* default buttons */ onClip = placeInClipboard; onEdit = edit; onMail = mailObject; onDelete = deleteDocument; onRename = renameDocument; onEditasnew = editAsNew; onCheckout = checkoutDocument; onReject = rejectDocument; onRelease = releaseDocument; onLock = lockDocument; onUnlock = unlockDocument; onUpload = upload; onRefresh = refresh; onUnzip = unzipDocument; onSaveas = saveAs; urlMail = objectUrl; urlOpenloc = openerUrlForFile; hasMail = hasMail; hasClip = hasClip; hasEditasnew= hasEditAsNew; hasCheckout = hasCheckout; hasReject = hasReject; hasRelease = hasRelease; hasLock = hasLock; hasUnlock = hasUnlock; hasUpload = hasUpload; hasEdit = hasTypeEdit; hasDelete = hasDelete; hasRename = hasRename; hasUnzip = hasUnzip; hasSaveas = hasSaveAs; hasOpenloc = hasOpenLocally; /* labels */ checkout = labels.checkout; clip = labels.clip; delete = labels.delete; edit = labels.edit; editasnew = labels.editAsNew; lock = labels.lock; mail = labels.send; openloc = labels.openloc; refresh = labels.refresh; reject = labels.reject; release = labels.release; rename = labels.rename; saveas = labels.saveAs; unlock = labels.unlock; unzip = labels.unzip; upload = labels.upload; } /* standard viewer */ MainButtonRow: WOGenericContainer { elementName = "tr"; BGCOLOR = config.colors_mainButtonRow; } DocIcon: SkyP4DocumentIcon { projectName = fileSystemInfo.NSFileSystemName; documentPath = _documentPath; mimeType = documentAttributes.NSFileMimeType; } DocPath: SkyP4DocumentPath { fileManager = fileManager; documentId = documentId; currentPath = folderPath; document = document; action = folderClicked; } TitleFont: SkyConfigFont {} TabView: SkyTabView { selection = session.userDefaults.skyp4_documentviewer_tab; } /* locking */ IfLocked: WOConditional { condition = isDocumentLocked; } LockUser: SkyRichString { color = "red"; value = documentAttributes.NSFileOwnerAccountName; } LockedBy: WOString { value = labels.lockedLabel; } /* content */ DownloadLink: SkyP4DownloadLink { projectId = fileSystemInfo.NSFileSystemNumber; documentPath = _documentPath; versionTag = versionToView; } /* dynamic tabs */ ActiveTabKeys: WORepetition { list = tabKeys; item = activeTabKey; } ShowActiveTabKey: WOConditional { condition = showActiveTabKey; } ActiveTabComponent: WOComponentReference { component = componentForActiveTab; fileManager = fileManager; document = document; documentGlobalID = documentGlobalID; documentPath = documentPath; } ActiveTab: SkySimpleTabItem { key = activeTabKey; label = labels.$activeTabKey; }