doc_view_controller.mm 1.67 KB
Newer Older
1
/*
2
 * Copyright (C) 2014-2019 CZ.NIC
3 4 5 6 7 8 9 10 11 12 13 14
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 17 18 19 20 21 22 23 24 25
 *
 * In addition, as a special exception, the copyright holders give
 * permission to link the code of portions of this program with the
 * OpenSSL library under certain conditions as described in each
 * individual source file, and distribute linked combinations including
 * the two.
 */

#include <QtCore>

26 27
#include "ios/src/doc_view_controller.h"

28 29 30 31 32 33 34 35
@interface DocViewController ()

@end

@implementation DocViewController

#pragma mark -
#pragma mark View Life Cycle
36 37
- (void)viewDidLoad
{
38 39 40 41 42
	[super viewDidLoad];
}

#pragma mark -
#pragma mark Document Interaction Controller Delegate Methods
43 44 45
- (UIViewController *) documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController *)controller
{
	Q_UNUSED(controller);
46 47 48 49 50 51
	//return [[[[UIApplication sharedApplication]windows] firstObject]rootViewController];
	return self;
}

- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller
{
52
	Q_UNUSED(controller);
53 54 55 56
	[self removeFromParentViewController];
}

@end