libreoffice-online/ios/Mobile/DocumentViewController.h
Tor Lillqvist 9d6c174462 tdf#128577: Close an already open document when asked to open a new one
Add a "singleton" class method to DocumentViewController to return the
(as for now) singleton DocumentViewController.

Change-Id: I0b8a8def558cfe7f9469b6062a86311dfa63f549
Reviewed-on: https://gerrit.libreoffice.org/82007
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 2807f907d947549a17c5bae586b85d412d552a09)
Reviewed-on: https://gerrit.libreoffice.org/82021
2019-11-04 15:25:54 +01:00

27 lines
792 B
Objective-C

// -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*-
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import "Document.h"
@interface DocumentViewController : UIViewController
@property (strong) Document *document;
@property (strong) WKWebView *webView;
@property (strong) WKWebView *slideshowWebView;
@property std::string slideshowFile;
@property (strong) NSURL *slideshowURL;
- (void)bye;
+ (DocumentViewController*)singleton;
@end
// vim:set shiftwidth=4 softtabstop=4 expandtab: