| 1 |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* This file is part of the LibreOffice project. |
| 4 |
* |
| 5 |
* This Source Code Form is subject to the terms of the Mozilla Public |
| 6 |
* License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 |
* |
| 9 |
* This file incorporates work covered by the following license notice: |
| 10 |
* |
| 11 |
* Licensed to the Apache Software Foundation (ASF) under one or more |
| 12 |
* contributor license agreements. See the NOTICE file distributed |
| 13 |
* with this work for additional information regarding copyright |
| 14 |
* ownership. The ASF licenses this file to you under the Apache |
| 15 |
* License, Version 2.0 (the "License"); you may not use this file |
| 16 |
* except in compliance with the License. You may obtain a copy of |
| 17 |
* the License at http://www.apache.org/licenses/LICENSE-2.0 . |
| 18 |
*/ |
| 19 |
|
| 20 |
module ooo { module vba { module word { |
| 21 |
|
| 22 |
interface XDocument |
| 23 |
{ |
| 24 |
interface com::sun::star::script::XInvocation; |
| 25 |
interface XConnectable; |
| 26 |
|
| 27 |
[attribute, readonly] XRange Content; |
| 28 |
[attribute, readonly] XWindow ActiveWindow; |
| 29 |
[attribute] any AttachedTemplate; |
| 30 |
[attribute] long ProtectionType; |
| 31 |
[attribute] boolean UpdateStylesOnOpen; |
| 32 |
[attribute] boolean AutoHyphenation; |
| 33 |
[attribute] long HyphenationZone; |
| 34 |
[attribute] long ConsecutiveHyphensLimit; |
| 35 |
[attribute, readonly] XMailMerge MailMerge; |
| 36 |
|
| 37 |
XRange Range( [in] any Start, [in] any End ) raises (com::sun::star::script::BasicErrorException); |
| 38 |
any BuiltInDocumentProperties( [in] any Index ); |
| 39 |
any CustomDocumentProperties( [in] any Index ); |
| 40 |
any Bookmarks( [in] any Index ); |
| 41 |
any ContentControls( [in] any Index ); |
| 42 |
any SelectContentControlsByTag( [in] any Index ); |
| 43 |
any SelectContentControlsByTitle( [in] any Index ); |
| 44 |
any Variables( [in] any Index ); |
| 45 |
any Paragraphs( [in] any Index ); |
| 46 |
any Styles( [in] any Index ) raises (com::sun::star::script::BasicErrorException); |
| 47 |
any Tables( [in] any Index ); |
| 48 |
any Fields( [in] any Index ); |
| 49 |
any Shapes( [in] any Index ); |
| 50 |
void Select(); |
| 51 |
any Sections( [in] any Index ); |
| 52 |
void Activate(); |
| 53 |
any PageSetup(); |
| 54 |
any TablesOfContents([in] any Index); |
| 55 |
any FormFields([in] any Index); |
| 56 |
void Protect( [in] long Type, [in] any NOReset, [in] any Password, [in] any UseIRM, [in] any EnforceStyleLock ); |
| 57 |
void PrintOut([in] any Background, [in] any Append, [in] any Range, [in] any OutputFileName, [in] any From, [in] any To, [in] any Item, [in] any Copies, [in] any Pages, [in] any PageType, [in] any PrintToFile, [in] any Collate, [in] any FileName, [in] any ActivePrinterMacGX, [in] any ManualDuplexPrint, [in] any PrintZoomColumn, [in] any PrintZoomRow, [in] any PrintZoomPaperWidth, [in] any PrintZoomPaperHeight); |
| 58 |
void PrintPreview(); |
| 59 |
void ClosePrintPreview(); |
| 60 |
any Revisions( [in] any index ); |
| 61 |
any Frames( [in] any index ); |
| 62 |
void SaveAs2000( [in] any FileName, [in] any FileFormat, [in] any LockComments, [in] any Password, [in] any AddToRecentFiles, [in] any WritePassword, [in] any ReadOnlyRecommended, [in] any EmbedTrueTypeFonts, [in] any SaveNativePictureFormat, [in] any SaveFormsData, [in] any SaveAsAOCELetter ); |
| 63 |
void SaveAs( [in] any FileName, [in] any FileFormat, [in] any LockComments, [in] any Password, [in] any AddToRecentFiles, [in] any WritePassword, [in] any ReadOnlyRecommended, [in] any EmbedTrueTypeFonts, [in] any SaveNativePictureFormat, [in] any SaveFormsData, [in] any SaveAsAOCELetter, [in] any Encoding, [in] any InsertLineBreaks, [in] any AllowSubstitutions, [in] any LineEnding, [in] any AddBiDiMarks ); |
| 64 |
void Close( [in] any SaveChanges, [in] any OriginalFormat, [in] any RouteDocument ); |
| 65 |
// This is a COLEAT-specific addition |
| 66 |
void SavePreviewPngAs( [in] any FileName ); |
| 67 |
}; |
| 68 |
|
| 69 |
}; }; }; |
| 70 |
|
| 71 |
|
| 72 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |