2018-09-11 01:30:55 -05:00
|
|
|
// -*- Mode: C++; 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/.
|
|
|
|
|
2019-02-22 12:50:07 -06:00
|
|
|
#include "ios.h"
|
|
|
|
|
2018-09-11 01:30:55 -05:00
|
|
|
#import <Foundation/Foundation.h>
|
Pass correct argument on iOS as pBuffer to lok::Document::paintTile()
On iOS it shouldn't actually be pointer to a pixel char buffer, but a
craphics context reference. (This is how it has been since the
experimental TiledLibreOffice app, maybe five years ago? Sadly it
wasn't documented in the LibreOfficeKit include file. But it is how
LibreOfficeLight used the API, too.)
In TiledLibreOffice we rendered tiles directly into the CALayer of the
view. In this Online-based app we of course do render tiles into pixel
char buffers, just like in real Online, but we need to create bitmap
graphics contexts for them and pass that to paintTile().
Now I get white tiles, not totally zero-filled ones. But still no
document contents rendered.
I don't yet want to change the pBuffer parameter to actually be a
buffer pointer on iOS, too, like on other platforms. Also, changing it
will mean the LibreOfficeLight app would need changing, too, and I
don't feel like doing that. But ideally, sure, that should be done.
2018-09-21 02:10:53 -05:00
|
|
|
#import <CoreGraphics/CoreGraphics.h>
|
2018-09-11 01:30:55 -05:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#import <native-code.h>
|
|
|
|
}
|
|
|
|
|
2021-04-07 07:56:04 -05:00
|
|
|
const char *user_name = nullptr;
|
|
|
|
|
2018-09-13 11:16:00 -05:00
|
|
|
int loolwsd_server_socket_fd = -1;
|
2020-04-24 02:46:54 -05:00
|
|
|
|
2019-10-11 04:18:27 -05:00
|
|
|
LibreOfficeKit *lo_kit;
|
2018-09-13 11:16:00 -05:00
|
|
|
|
2018-09-11 01:30:55 -05:00
|
|
|
// vim:set shiftwidth=4 softtabstop=4 expandtab:
|