4b7ecde829
Luckily the UISceneOpenURLOptions has a property openInPlace that seems to be good to use for this. If openInPlace is false, that means we should open the document read-only. This is a stopgap fix to avoid the situation where the user does changes to a document that is an attachment in an email message. Those changes won't be saved anywhere they could be found later. Better to keep the document read-only. The ideal solution would be to ask the user right away where they want an editable copy of the document to be stored. Later. Signed-off-by: Tor Lillqvist <tml@iki.fi> Change-Id: Ifd7d824d4f73cbf458f8597cd0974cf171b35be7
30 lines
755 B
Objective-C
30 lines
755 B
Objective-C
// -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*-
|
|
//
|
|
// 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 <string>
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#define LOK_USE_UNSTABLE_API
|
|
#import <LibreOfficeKit/LibreOfficeKit.h>
|
|
|
|
@class DocumentViewController;
|
|
|
|
@interface CODocument : UIDocument {
|
|
@public
|
|
int fakeClientFd;
|
|
NSURL *copyFileURL;
|
|
unsigned appDocId;
|
|
bool readOnly;
|
|
}
|
|
|
|
@property (weak) DocumentViewController *viewController;
|
|
|
|
- (void)send2JS:(const char*)buffer length:(int)length;
|
|
|
|
@end
|
|
|
|
// vim:set shiftwidth=4 softtabstop=4 expandtab:
|