summaryrefslogtreecommitdiff
path: root/ios/shared/ios_sharedlo/cxx/mlo_uno.h
blob: c1e499c53fc960b4dede3b0a62cc905a814afbf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// 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/.

#ifndef __LibreOffice_mlo_uno__
#define __LibreOffice_mlo_uno__

#ifdef __cplusplus
extern "C" {
#endif

    typedef enum {MARK_ALL,MARK_FIRST,MARK_NEXT,MARK_PREVIOUS} MLOFindSelectionType;
    typedef enum {LAST_PAGE,CURRENT_PAGE} MLOGetPageType;

    BOOL mlo_is_document_open(void);
    BOOL mlo_open_file(NSString * file);
    void mlo_close(void);
    long mlo_get_page_count(void);
    long mlo_get_current_page(void);
    int mlo_find(NSString * toSearch,MLOFindSelectionType type);
    void mlo_get_selection(NSMutableString * mutableString);
    void mlo_fetch_view_data(NSMutableString * mutableString);
    void mlo_select_all(void);
    void mlo_save(void);

#ifdef __cplusplus
}
#endif
#endif /* defined(__LibreOffice_mlo_uno__) */