This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new b6e50c6233 pre-commit(mixed-line-ending): autofix dxp, h, mk, rc files
(#325)
b6e50c6233 is described below
commit b6e50c6233bea6d94fd2142ea1ba0ffb8a754de7
Author: John Bampton <[email protected]>
AuthorDate: Mon Mar 3 08:54:10 2025 +1000
pre-commit(mixed-line-ending): autofix dxp, h, mk, rc files (#325)
---
.pre-commit-config.yaml | 2 +-
ext_libraries/Repository.mk | 72 +--
main/cppcanvas/inc/cppcanvas/cppcanvasdllapi.h | 26 +-
.../source/win32/customactions/rebase/rebase.dxp | 2 +-
main/solenv/inc/svpm.h | 186 +++---
main/ucb/source/ucp/odma/odma.h | 716 ++++++++++-----------
main/winaccessibility/source/UAccCOM/AccAction.h | 4 +-
.../source/UAccCOM/AccActionBase.h | 4 +-
.../winaccessibility/source/UAccCOM/AccComponent.h | 4 +-
.../source/UAccCOM/AccComponentBase.h | 4 +-
.../source/UAccCOM/AccEditableText.h | 4 +-
.../winaccessibility/source/UAccCOM/AccHyperLink.h | 4 +-
.../winaccessibility/source/UAccCOM/AccHypertext.h | 4 +-
main/winaccessibility/source/UAccCOM/AccImage.h | 4 +-
main/winaccessibility/source/UAccCOM/AccRelation.h | 4 +-
main/winaccessibility/source/UAccCOM/AccTable.h | 4 +-
main/winaccessibility/source/UAccCOM/AccText.h | 4 +-
main/winaccessibility/source/UAccCOM/AccTextBase.h | 4 +-
main/winaccessibility/source/UAccCOM/AccValue.h | 4 +-
.../source/UAccCOM/AccessibleKeyStroke.h | 4 +-
.../source/UAccCOM/CheckEnableAccessible.h | 22 +-
main/winaccessibility/source/UAccCOM/EnumVariant.h | 4 +-
main/winaccessibility/source/UAccCOM/Resource.h | 4 +-
main/winaccessibility/source/UAccCOM/UAccCOM.rc | 4 +-
main/winaccessibility/source/UAccCOM/UNOXWrapper.h | 4 +-
main/winaccessibility/source/UAccCOM/acccommon.h | 4 +-
main/winaccessibility/source/UAccCOM/stdafx.h | 4 +-
27 files changed, 553 insertions(+), 553 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 699ad86f91..bf31d6c0f6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,7 +35,7 @@ repos:
- id: end-of-file-fixer
files:
(m|M)akefile$|\.(bat|c|dxp|h|hrc|hxx|idl|in|ini|java|md|mk|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|ya?ml)$|^ext_libraries/.*$|^main/[a-z].*\.cxx$|^test/.*$
- id: mixed-line-ending
- files:
^main/.*\.(c|h)xx$|^main/.*\.mk$|^main/.*\.java$|\.(idl|in|ini|pl|pm|py|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$
+ files:
^main/.*\.(c|h)xx$|^main/.*\.java$|\.(dxp|h|hrc|idl|in|ini|md|mk|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$
- id: trailing-whitespace
files: \.(bat|ini|pl|rc|sh|xcs|xdl|xmi|xsd|ya?ml)$
- repo: https://github.com/codespell-project/codespell
diff --git a/ext_libraries/Repository.mk b/ext_libraries/Repository.mk
index f1f14519de..8da08098ac 100644
--- a/ext_libraries/Repository.mk
+++ b/ext_libraries/Repository.mk
@@ -1,36 +1,36 @@
-#**************************************************************
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#**************************************************************
-
-
-
-$(eval $(call gb_Helper_register_repository,EXT_LIBRARIES))
-
-$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
- apr
\
- apr-util
\
- expat_xmlparse
\
- expat_xmltok
\
- serf
\
- libeay32
\
- ssleay32
\
- zlib
\
- gtest
\
-))
+#**************************************************************
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+$(eval $(call gb_Helper_register_repository,EXT_LIBRARIES))
+
+$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
+ apr
\
+ apr-util
\
+ expat_xmlparse
\
+ expat_xmltok
\
+ serf
\
+ libeay32
\
+ ssleay32
\
+ zlib
\
+ gtest
\
+))
diff --git a/main/cppcanvas/inc/cppcanvas/cppcanvasdllapi.h
b/main/cppcanvas/inc/cppcanvas/cppcanvasdllapi.h
index bbc52a5904..f6275b7c83 100644
--- a/main/cppcanvas/inc/cppcanvas/cppcanvasdllapi.h
+++ b/main/cppcanvas/inc/cppcanvas/cppcanvasdllapi.h
@@ -19,16 +19,16 @@
*
*************************************************************/
-
-#ifndef INCLUDED_CPPCANVASDLLAPI_H
-#define INCLUDED_CPPCANVASDLLAPI_H
-
-#if defined CPPCANVAS_DLLIMPLEMENTATION
-
-#define CPPCANVAS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
-#else
-#define CPPCANVAS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
-#endif
-#define CPPCANVAS_DLLPRIVATE SAL_DLLPRIVATE
-
-#endif
+
+#ifndef INCLUDED_CPPCANVASDLLAPI_H
+#define INCLUDED_CPPCANVASDLLAPI_H
+
+#if defined CPPCANVAS_DLLIMPLEMENTATION
+
+#define CPPCANVAS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
+#else
+#define CPPCANVAS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
+#endif
+#define CPPCANVAS_DLLPRIVATE SAL_DLLPRIVATE
+
+#endif
diff --git a/main/setup_native/source/win32/customactions/rebase/rebase.dxp
b/main/setup_native/source/win32/customactions/rebase/rebase.dxp
index 47ea23951f..097d256958 100644
--- a/main/setup_native/source/win32/customactions/rebase/rebase.dxp
+++ b/main/setup_native/source/win32/customactions/rebase/rebase.dxp
@@ -1 +1 @@
-RebaseLibrariesOnProperties
+RebaseLibrariesOnProperties
diff --git a/main/solenv/inc/svpm.h b/main/solenv/inc/svpm.h
index 02e1ad57ec..74aa96128d 100644
--- a/main/solenv/inc/svpm.h
+++ b/main/solenv/inc/svpm.h
@@ -1,93 +1,93 @@
-/*************************************************************************
-
- Copyright 2011 Yuri Dario <[email protected]>
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- ************************************************************************/
-
-#ifndef _SVPM_H
-#define _SVPM_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef __ZTC__
-#define _Seg16 _far16
-#define _Far16 _far16
-#define _System _syscall
-#define _Pascal _pascal
-#define _Cdecl _cdecl
-#endif
-
-#define BOOL PM_BOOL
-#define BYTE PM_BYTE
-#define ADDRESS PM_ADDRESS // YD xmloff
-#define LINE PM_LINE // YD basic
-#define CM_ERROR PM_CM_ERROR // YD automation
-#define CURSOR_FRAME PM_CURSOR_FRAME // YD binfilter
-#define POLYGON PM_POLYGON // YD sd
-#define FIXED PM_FIXED // YD oox
-#define DATETIME PM_DATETIME // YD oox ooo320
-#define RGB_RED PM_RGB_RED // YD vcl
-#define RGB_GREEN PM_RGB_GREEN // YD vcl
-#define RGB_BLUE PM_RGB_BLUE // YD vcl
-#define RGB PM_RGB // YD rsc bison 2.3
-
-#define RGB_RED PM_RGB_RED // YD xmlhelp
-#define RGB_BLUE PM_RGB_BLUE // YD xmlhelp
-#define RGB_GREEN PM_RGB_GREEN // YD xmlhelp
-#define CURSOR_FRAME PM_CURSOR_FRAME // YD xmlhelp
-#define CM_ERROR PM_CM_ERROR // YD xmlhelp
-#define ADDRESS PM_ADDRESS // YD xmlhelp
-#define COMMENT PM_COMMENT // YD offuh
-
-#define INCL_PM
-#define INCL_DOSSEMAPHORES
-
-//yd 26/03/2006 OOo hack
-#define OS2EMX_PLAIN_CHAR
-
-#include <os2.h>
-#include <unikbd.h>
-#ifdef VCL_OS2
-#include <pmbidi.h>
-#endif
-
-#undef BOOL
-#undef BYTE
-#undef ADDRESS
-#undef LINE
-#undef CM_ERROR
-#undef CURSOR_FRAME
-#undef POLYGON
-#undef FIXED
-#undef DATETIME
-#undef RGB_RED
-#undef RGB_GREEN
-#undef RGB_BLUE
-#undef RGB
-#undef RGB_RED
-#undef RGB_BLUE
-#undef CURSOR_FRAME
-#undef ADDRESS
-#undef RGB_GREEN
-#undef CM_ERROR
-#undef COMMENT
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // _SVPM_H
+/*************************************************************************
+
+ Copyright 2011 Yuri Dario <[email protected]>
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ ************************************************************************/
+
+#ifndef _SVPM_H
+#define _SVPM_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __ZTC__
+#define _Seg16 _far16
+#define _Far16 _far16
+#define _System _syscall
+#define _Pascal _pascal
+#define _Cdecl _cdecl
+#endif
+
+#define BOOL PM_BOOL
+#define BYTE PM_BYTE
+#define ADDRESS PM_ADDRESS // YD xmloff
+#define LINE PM_LINE // YD basic
+#define CM_ERROR PM_CM_ERROR // YD automation
+#define CURSOR_FRAME PM_CURSOR_FRAME // YD binfilter
+#define POLYGON PM_POLYGON // YD sd
+#define FIXED PM_FIXED // YD oox
+#define DATETIME PM_DATETIME // YD oox ooo320
+#define RGB_RED PM_RGB_RED // YD vcl
+#define RGB_GREEN PM_RGB_GREEN // YD vcl
+#define RGB_BLUE PM_RGB_BLUE // YD vcl
+#define RGB PM_RGB // YD rsc bison 2.3
+
+#define RGB_RED PM_RGB_RED // YD xmlhelp
+#define RGB_BLUE PM_RGB_BLUE // YD xmlhelp
+#define RGB_GREEN PM_RGB_GREEN // YD xmlhelp
+#define CURSOR_FRAME PM_CURSOR_FRAME // YD xmlhelp
+#define CM_ERROR PM_CM_ERROR // YD xmlhelp
+#define ADDRESS PM_ADDRESS // YD xmlhelp
+#define COMMENT PM_COMMENT // YD offuh
+
+#define INCL_PM
+#define INCL_DOSSEMAPHORES
+
+//yd 26/03/2006 OOo hack
+#define OS2EMX_PLAIN_CHAR
+
+#include <os2.h>
+#include <unikbd.h>
+#ifdef VCL_OS2
+#include <pmbidi.h>
+#endif
+
+#undef BOOL
+#undef BYTE
+#undef ADDRESS
+#undef LINE
+#undef CM_ERROR
+#undef CURSOR_FRAME
+#undef POLYGON
+#undef FIXED
+#undef DATETIME
+#undef RGB_RED
+#undef RGB_GREEN
+#undef RGB_BLUE
+#undef RGB
+#undef RGB_RED
+#undef RGB_BLUE
+#undef CURSOR_FRAME
+#undef ADDRESS
+#undef RGB_GREEN
+#undef CM_ERROR
+#undef COMMENT
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _SVPM_H
diff --git a/main/ucb/source/ucp/odma/odma.h b/main/ucb/source/ucp/odma/odma.h
index a6ab27023e..a6791402f6 100644
--- a/main/ucb/source/ucp/odma/odma.h
+++ b/main/ucb/source/ucp/odma/odma.h
@@ -1,358 +1,358 @@
-/* odma.h - Definitions, prototypes, etc. for Open Document Management API
- (ODMA) version 2.0.
- OPEN DOCUMENT MANAGEMENT API LICENSE 1.0
-
- ODMA 2.0 SPECIFICATIONS AND SOFTWARE
- ------------------------------------
-
- Copyright � 1994-1998 AIIM International
-
-LICENSE:
-
- Redistribution and use in source and binary forms, with or
- without modifications, are permitted provided that the
- following conditions are met:
-
- * Redistributions of source code must retain the above
- copyright notice, this list of conditions and the
- following disclaimer.
-
- * Redistributions in binary form must reproduce the
- above copyright notice, this list of conditions and
- the following disclaimer in the documentation and/or
- other materials provided with the distribution.
-
- * Neither the name of AIIM International nor the names
- of its contributors may be used to endorse or promote
- products derived from this software without specific
- prior written permission.
-
-DISCLAIMER:
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
- CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- SUCH DAMAGE.
-
- COPYRIGHT (C) 1994, 1995
- AIIM International
- All Right Reserved
-*/
-
-#ifndef ODMA_H
-#define ODMA_H
-
-/* Type definitions */
-typedef LPVOID ODMHANDLE;
-typedef LPSTR (*ODMSAVEASCALLBACK)(DWORD dwEnvData, LPSTR lpszFormat, LPVOID
pInstanceData);
-typedef int ODMSTATUS;
-
-/* Constants */
-#define ODM_API_VERSION 200 /* Version of
the API */
-
-#ifdef WIN32
- #define ODM_DOCID_MAX 255 /* Win32 */
-
-#elif defined( _WINDOWS_ ) || defined( _MSDOS )
- #define ODM_DOCID_MAX 80 /* Windows 3.x */
-
-#else
- #define ODM_DOCID_MAX 255 /* Other platforms */
-#endif
-
-#define ODM_DMSID_MAX 9 /* Max length of a DMS
ID including the
-
/* terminating NULL character. */
-
-#define ODM_APPID_MAX 16 /* Max length of a
application ID including
-
/* the terminating NULL character. */
-
-// ODMA 2.0
-#define ODM_QUERYID_MAX 255 // Max length
of a query ID including
-
// the terminating NULL character.
-
-#define ODM_FORMAT_MAX 81 // Max length of a format including
-
// the terminating NULL character.
-
-// Maximum length of a filename returned by ODMA including the terminating
-// NULL character. Platform dependent.
-
-#ifdef WIN32
- #define ODM_FILENAME_MAX 255 /* Win32 */
-
-#elif defined( _WINDOWS_ ) || defined( _MSDOS )
- #define ODM_FILENAME_MAX 128 /* Windows 3.x */
-
-#elif defined( unix ) || defined( _UNIX )
- #define ODM_FILENAME_MAX 1024 /* Unix */
-
-#else
- #define ODM_FILENAME_MAX 255 /* Other platforms */
-#endif
-
-
-/* Common format type names */
-#define ODM_FORMAT_TEXT "Text"
-#define ODM_FORMAT_RTF "Rich text format"
-#define ODM_FORMAT_DCA "DCA RFT" /* IBM DCA Rich Format Text */
-#define ODM_FORMAT_TIFF "Tiff"
-#define ODM_FORMAT_GIF "Gif" /* Compuserve Graphics
Interchange Format */
-#define ODM_FORMAT_BMP "Windows bitmap"
-#define ODM_FORMAT_PCX "PCX"
-#define ODM_FORMAT_CGM "CGM" /* Computer Graphics
Metafile */
-#define ODM_FORMAT_EXE "Executable file"
-#define ODM_FORMAT_PCL "PCL" /* HP Printer Control
Language */
-#define ODM_FORMAT_PS "PostScript"
-
-
-/* Error returns */
-#define ODM_SUCCESS 0 // Success!
-#define ODM_E_FAIL 1 /* Unspecified failure
*/
-#define ODM_E_CANCEL 2 /* Action was cancelled at
user's request */
-#define ODM_E_NODMS 3 /* DMS not registered */
-#define ODM_E_CANTINIT 4 /* DMS failed to initialize */
-#define ODM_E_VERSION 5 /* DMS doesn't support the
requested
-
version of ODMA */
-#define ODM_E_APPSELECT 6 /* User has indicated that he
wants to use
- the application's file selection
- capabilities rather than those of the
- DMS. */
-#define ODM_E_USERINT 7 /* Requested action cannot be
performed
- without user interaction, but silent
- mode was specified. */
-#define ODM_E_HANDLE 8 /* The DMHANDLE argument was invalid.
*/
-#define ODM_E_ACCESS 9 /* User does not have requested access
- rights to specified document. */
-#define ODM_E_INUSE 10 /* Document is currently in
use and cannot
- be accessed in specified mode. */
-#define ODM_E_DOCID 11 /* Invalid document ID */
-#define ODM_E_OPENMODE 12 /* The specified action is
incompatible
- with the mode in which the document was
- opened. */
-#define ODM_E_NOOPEN 13 /* The specified document is not
open. */
-#define ODM_E_ITEM 14 /* Invalid item specifier. */
-#define ODM_E_OTHERAPP 15 /* Selected document was for another
app. */
-#define ODM_E_NOMOREDATA 16 /* No more data is available */
-#define ODM_E_PARTIALSUCCESS 17 /* */
-// Additional Error code from ODMA 2.0
-#define ODM_E_REQARG 18 /* */
-#define ODM_E_NOSUPPORT 19 /* */
-#define ODM_E_TRUNCATED 20 /* */
-#define ODM_E_INVARG 21
-#define ODM_E_OFFLINE 22 /* */
-
-
-// ODMOpenDoc modes
-#define ODM_MODIFYMODE 1 /* Open document in a modifiable mode.
*/
-#define ODM_VIEWMODE 2 /* Open document in non-modifiable
mode. */
-// ODMA 2.0
-#define ODM_REFCOPY 3
-
-
-// Actions for ODMActivate
-#define ODM_NONE 0 /* No specific action is
requested. */
-#define ODM_DELETE 1 /* Delete the specified
document. */
-#define ODM_SHOWATTRIBUTES 2 /* Display the specified document's
profile
- or attributes. */
-#define ODM_EDITATTRIBUTES 3 /* Edit the specified document's
profile or
- attributes. */
-#define ODM_VIEWDOC 4 /* Display the specified
document in a
- viewer window. */
-#define ODM_OPENDOC 5 /* Open the specified document
in its
- native application. */
-// ODMA 2.0
-#define ODM_NEWDOC 6
-#define ODM_CHECKOUT 7
-#define ODM_CANCELCHECKOUT 8
-#define ODM_CHECKIN 9
-#define ODM_SHOWHISTORY 10
-
-
-// Item selectors for ODMGetDocInfo and ODMSetDocInfo
-#define ODM_AUTHOR 1 /* Author of the document. */
-#define ODM_NAME 2 /* Descriptive name of the
document. */
-#define ODM_TYPE 3 /* Type of the document. */
-#define ODM_TITLETEXT 4 /* Suggested text to display in the
- document window's title bar. */
-#define ODM_DMS_DEFINED 5 /* DMS defined data. */
-#define ODM_CONTENTFORMAT 6 /* String describing document's format
*/
-// ODMA 2.0
-#define ODM_ALTERNATE_RENDERINGS 7
-#define ODM_CHECKEDOUTBY 8
-#define ODM_CHECKOUTCOMMENT 9
-#define ODM_CHECKOUTDATE 10
-#define ODM_CREATEDBY 11
-#define ODM_CREATEDDATE 12
-#define ODM_DOCID_LATEST 13
-#define ODM_DOCID_RELEASED 14
-#define ODM_DOCVERSION 15
-#define ODM_DOCVERSION_LATEST 16
-#define ODM_DOCVERSION_RELEASED 17
-#define ODM_LOCATION 18
-#define ODM_KEYWORDS 19
-#define ODM_LASTCHECKINBY 20
-#define ODM_LASTCHECKINDATE 21
-#define ODM_MODIFYDATE 22
-#define ODM_MODIFYDATE_LATEST 23
-#define ODM_MODIFYDATE_RELEASED 24
-#define ODM_OWNER 25
-#define ODM_SUBJECT 26
-#define ODM_TITLETEXT_RO 27
-#define ODM_URL 28
-
-
-// Item selectors for ODMQueryCapability ODMA 2.0
-#define ODM_QC_ACTIVATE 1
-#define ODM_QC_CLOSEDOC 2
-#define ODM_QC_CLOSEDOCEX 3
-#define ODM_QC_GETALTERNATECONTENT 4
-#define ODM_QC_GETDMSINFO 5
-#define ODM_QC_GETDOCINFO 6
-#define ODM_QC_GETDOCRELATION 7
-#define ODM_QC_GETLEADMONIKER 8
-#define ODM_QC_NEWDOC 9
-#define ODM_QC_OPENDOC 10
-#define ODM_QC_QUERYCLOSE 11
-#define ODM_QC_QUERYEXECUTE 12
-#define ODM_QC_QUERYGETRESULTS 13
-#define ODM_QC_SAVEAS 14
-#define ODM_QC_SAVEASEX 15
-#define ODM_QC_SAVEDOC 16
-#define ODM_QC_SAVEDOCEX 17
-#define ODM_QC_SELECTDOC 18
-#define ODM_QC_SELECTDOCEX 19
-#define ODM_QC_SETALTERNATECONTENT 20
-#define ODM_QC_SETDOCEVENT 21
-#define ODM_QC_SETDOCRELATION 22
-#define ODM_QC_SETDOCINFO 23
-
-
-// Misc. modes, flags
-#define ODM_SILENT 16 /* Don't interact with the
user while
- fulfilling this request. */
-//ODMA 2.0
-#define ODM_VERSION_SAME 1
-#define ODM_VERSION_MAJOR 2
-#define ODM_VERSION_MINOR 4
-#define ODM_VERSION_CHANGED 8
-#define ODM_ALT_DELETE 32
-
-//ODMA 2.0 DMS Info Flags
-#define ODM_EXT_QUERY 1
-#define ODM_EXT_WORKFLOW 2
-
-// Flags for Query Interface
-#define ODM_ALL 1 // All DMS's
should be searched
-#define ODM_SPECIFIC 2 // Only specific DMS's should
be searched
-
-
-// Function prototypes
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-ODMSTATUS WINAPI ODMRegisterApp(ODMHANDLE FAR *pOdmHandle, WORD version,
- LPSTR lpszAppId, DWORD dwEnvData, LPVOID pReserved);
-
-void WINAPI ODMUnRegisterApp(ODMHANDLE odmHandle);
-
-ODMSTATUS WINAPI ODMSelectDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPDWORD pdwFlags);
-
-ODMSTATUS WINAPI ODMOpenDoc(ODMHANDLE odmHandle, DWORD flags,
- LPSTR lpszDocId, LPSTR lpszDocLocation);
-
-ODMSTATUS WINAPI ODMSaveDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPSTR lpszNewDocId);
-
-ODMSTATUS WINAPI ODMCloseDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
- DWORD activeTime, DWORD pagesPrinted, LPVOID sessionData, WORD dataLen);
-
-ODMSTATUS WINAPI ODMNewDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
- DWORD dwFlags, LPSTR lpszFormat, LPSTR lpszDocLocation);
-
-ODMSTATUS WINAPI ODMSaveAs(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPSTR lpszNewDocId, LPSTR lpszFormat, ODMSAVEASCALLBACK pcbCallBack,
- LPVOID pInstanceData);
-
-ODMSTATUS WINAPI ODMActivate(ODMHANDLE odmHandle, WORD action,
- LPSTR lpszDocId);
-
-ODMSTATUS WINAPI ODMGetDocInfo(ODMHANDLE odmHandle, LPSTR lpszDocId,
- WORD item, LPSTR lpszData, WORD dataLen);
-
-ODMSTATUS WINAPI ODMSetDocInfo(ODMHANDLE odmHandle, LPSTR lpszDocId,
- WORD item, LPSTR lpszData);
-
-ODMSTATUS WINAPI ODMGetDMSInfo(ODMHANDLE odmHandle, LPSTR lpszDmsId,
- LPWORD pwVerNo, LPDWORD pdwExtensions);
-
-/* Query Enhancements */
-WORD WINAPI ODMGetDMSCount();
-
-WORD WINAPI ODMGetDMSList( LPSTR buffer, WORD buffer_size );
-
-ODMSTATUS WINAPI ODMGetDMS( LPCSTR lpszAppId, LPSTR lpszDMSId );
-
-ODMSTATUS WINAPI ODMSetDMS( LPCSTR lpszAppId, LPCSTR lpszDMSId );
-
-ODMSTATUS WINAPI ODMQueryExecute(ODMHANDLE odmHandle, LPCSTR lpszQuery,
- DWORD flags,
LPCSTR lpszDMSList, LPSTR queryId );
-
-ODMSTATUS WINAPI ODMQueryGetResults(ODMHANDLE odmHandle, LPCSTR queryId,
- LPSTR
lpszDocId, LPSTR lpszDocName, WORD docNameLen,
- WORD
*docCount );
-
-ODMSTATUS WINAPI ODMQueryClose(ODMHANDLE odmHandle, LPCSTR queryId );
-
-/* ODMA 2.0 Enhancements */
-ODMSTATUS WINAPI ODMCloseDocEx(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPDWORD pdwFlags, DWORD
activeTime, DWORD pagesPrinted,
- LPVOID sessionData,
WORD dataLen);
-
-ODMSTATUS WINAPI ODMSaveAsEx(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPSTR lpszNewDocId,
LPSTR lpszFormat, ODMSAVEASCALLBACK pcbCallBack,
- LPVOID pInstanceData,
LPDWORD pdwFlags);
-
-ODMSTATUS WINAPI ODMSaveDocEx(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPSTR lpszNewDocId,
LPDWORD pdwFlags);
-
-ODMSTATUS WINAPI ODMSelectDocEx(ODMHANDLE odmHandle, LPSTR lpszDocIds,
- LPWORD pwDocIdsLen,
LPWORD pwDocCount, LPDWORD pdwFlags,
- LPSTR lpszFormatFilter);
-
-ODMSTATUS WINAPI ODMQueryCapability(ODMHANDLE odmHandle, LPCSTR lpszDmsId,
- DWORD function, DWORD
item, DWORD flags);
-
-ODMSTATUS WINAPI ODMSetDocEvent(ODMHANDLE odmHandle, LPSTR lpszDocId,
- DWORD flags, DWORD
event, LPVOID lpData, DWORD dwDataLen,
- LPSTR lpszComment);
-
-ODMSTATUS WINAPI ODMGetAlternateContent(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPDWORD pdwFlags, LPSTR
lpszFormat, LPSTR lpszDocLocation);
-
-ODMSTATUS WINAPI ODMSetAlternateContent(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPDWORD pdwFlags, LPSTR
lpszFormat, LPSTR lpszDocLocation);
-
-ODMSTATUS WINAPI ODMGetDocRelation(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPDWORD pdwFlags, LPSTR
lpszLinkedId, LPSTR lpszFormat,
- LPSTR lpszPreviousId);
-
-ODMSTATUS WINAPI ODMSetDocRelation(ODMHANDLE odmHandle, LPSTR lpszDocId,
- LPDWORD pdwFlags, LPSTR
lpszLinkedId, LPSTR lpszFormat,
- LPSTR lpszPreviousId);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
+/* odma.h - Definitions, prototypes, etc. for Open Document Management API
+ (ODMA) version 2.0.
+ OPEN DOCUMENT MANAGEMENT API LICENSE 1.0
+
+ ODMA 2.0 SPECIFICATIONS AND SOFTWARE
+ ------------------------------------
+
+ Copyright � 1994-1998 AIIM International
+
+LICENSE:
+
+ Redistribution and use in source and binary forms, with or
+ without modifications, are permitted provided that the
+ following conditions are met:
+
+ * Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+
+ * Redistributions in binary form must reproduce the
+ above copyright notice, this list of conditions and
+ the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+
+ * Neither the name of AIIM International nor the names
+ of its contributors may be used to endorse or promote
+ products derived from this software without specific
+ prior written permission.
+
+DISCLAIMER:
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+ COPYRIGHT (C) 1994, 1995
+ AIIM International
+ All Right Reserved
+*/
+
+#ifndef ODMA_H
+#define ODMA_H
+
+/* Type definitions */
+typedef LPVOID ODMHANDLE;
+typedef LPSTR (*ODMSAVEASCALLBACK)(DWORD dwEnvData, LPSTR lpszFormat, LPVOID
pInstanceData);
+typedef int ODMSTATUS;
+
+/* Constants */
+#define ODM_API_VERSION 200 /* Version of
the API */
+
+#ifdef WIN32
+ #define ODM_DOCID_MAX 255 /* Win32 */
+
+#elif defined( _WINDOWS_ ) || defined( _MSDOS )
+ #define ODM_DOCID_MAX 80 /* Windows 3.x */
+
+#else
+ #define ODM_DOCID_MAX 255 /* Other platforms */
+#endif
+
+#define ODM_DMSID_MAX 9 /* Max length of a DMS
ID including the
+
/* terminating NULL character. */
+
+#define ODM_APPID_MAX 16 /* Max length of a
application ID including
+
/* the terminating NULL character. */
+
+// ODMA 2.0
+#define ODM_QUERYID_MAX 255 // Max length
of a query ID including
+
// the terminating NULL character.
+
+#define ODM_FORMAT_MAX 81 // Max length of a format including
+
// the terminating NULL character.
+
+// Maximum length of a filename returned by ODMA including the terminating
+// NULL character. Platform dependent.
+
+#ifdef WIN32
+ #define ODM_FILENAME_MAX 255 /* Win32 */
+
+#elif defined( _WINDOWS_ ) || defined( _MSDOS )
+ #define ODM_FILENAME_MAX 128 /* Windows 3.x */
+
+#elif defined( unix ) || defined( _UNIX )
+ #define ODM_FILENAME_MAX 1024 /* Unix */
+
+#else
+ #define ODM_FILENAME_MAX 255 /* Other platforms */
+#endif
+
+
+/* Common format type names */
+#define ODM_FORMAT_TEXT "Text"
+#define ODM_FORMAT_RTF "Rich text format"
+#define ODM_FORMAT_DCA "DCA RFT" /* IBM DCA Rich Format Text */
+#define ODM_FORMAT_TIFF "Tiff"
+#define ODM_FORMAT_GIF "Gif" /* Compuserve Graphics
Interchange Format */
+#define ODM_FORMAT_BMP "Windows bitmap"
+#define ODM_FORMAT_PCX "PCX"
+#define ODM_FORMAT_CGM "CGM" /* Computer Graphics
Metafile */
+#define ODM_FORMAT_EXE "Executable file"
+#define ODM_FORMAT_PCL "PCL" /* HP Printer Control
Language */
+#define ODM_FORMAT_PS "PostScript"
+
+
+/* Error returns */
+#define ODM_SUCCESS 0 // Success!
+#define ODM_E_FAIL 1 /* Unspecified failure
*/
+#define ODM_E_CANCEL 2 /* Action was cancelled at
user's request */
+#define ODM_E_NODMS 3 /* DMS not registered */
+#define ODM_E_CANTINIT 4 /* DMS failed to initialize */
+#define ODM_E_VERSION 5 /* DMS doesn't support the
requested
+
version of ODMA */
+#define ODM_E_APPSELECT 6 /* User has indicated that he
wants to use
+ the application's file selection
+ capabilities rather than those of the
+ DMS. */
+#define ODM_E_USERINT 7 /* Requested action cannot be
performed
+ without user interaction, but silent
+ mode was specified. */
+#define ODM_E_HANDLE 8 /* The DMHANDLE argument was invalid.
*/
+#define ODM_E_ACCESS 9 /* User does not have requested access
+ rights to specified document. */
+#define ODM_E_INUSE 10 /* Document is currently in
use and cannot
+ be accessed in specified mode. */
+#define ODM_E_DOCID 11 /* Invalid document ID */
+#define ODM_E_OPENMODE 12 /* The specified action is
incompatible
+ with the mode in which the document was
+ opened. */
+#define ODM_E_NOOPEN 13 /* The specified document is not
open. */
+#define ODM_E_ITEM 14 /* Invalid item specifier. */
+#define ODM_E_OTHERAPP 15 /* Selected document was for another
app. */
+#define ODM_E_NOMOREDATA 16 /* No more data is available */
+#define ODM_E_PARTIALSUCCESS 17 /* */
+// Additional Error code from ODMA 2.0
+#define ODM_E_REQARG 18 /* */
+#define ODM_E_NOSUPPORT 19 /* */
+#define ODM_E_TRUNCATED 20 /* */
+#define ODM_E_INVARG 21
+#define ODM_E_OFFLINE 22 /* */
+
+
+// ODMOpenDoc modes
+#define ODM_MODIFYMODE 1 /* Open document in a modifiable mode.
*/
+#define ODM_VIEWMODE 2 /* Open document in non-modifiable
mode. */
+// ODMA 2.0
+#define ODM_REFCOPY 3
+
+
+// Actions for ODMActivate
+#define ODM_NONE 0 /* No specific action is
requested. */
+#define ODM_DELETE 1 /* Delete the specified
document. */
+#define ODM_SHOWATTRIBUTES 2 /* Display the specified document's
profile
+ or attributes. */
+#define ODM_EDITATTRIBUTES 3 /* Edit the specified document's
profile or
+ attributes. */
+#define ODM_VIEWDOC 4 /* Display the specified
document in a
+ viewer window. */
+#define ODM_OPENDOC 5 /* Open the specified document
in its
+ native application. */
+// ODMA 2.0
+#define ODM_NEWDOC 6
+#define ODM_CHECKOUT 7
+#define ODM_CANCELCHECKOUT 8
+#define ODM_CHECKIN 9
+#define ODM_SHOWHISTORY 10
+
+
+// Item selectors for ODMGetDocInfo and ODMSetDocInfo
+#define ODM_AUTHOR 1 /* Author of the document. */
+#define ODM_NAME 2 /* Descriptive name of the
document. */
+#define ODM_TYPE 3 /* Type of the document. */
+#define ODM_TITLETEXT 4 /* Suggested text to display in the
+ document window's title bar. */
+#define ODM_DMS_DEFINED 5 /* DMS defined data. */
+#define ODM_CONTENTFORMAT 6 /* String describing document's format
*/
+// ODMA 2.0
+#define ODM_ALTERNATE_RENDERINGS 7
+#define ODM_CHECKEDOUTBY 8
+#define ODM_CHECKOUTCOMMENT 9
+#define ODM_CHECKOUTDATE 10
+#define ODM_CREATEDBY 11
+#define ODM_CREATEDDATE 12
+#define ODM_DOCID_LATEST 13
+#define ODM_DOCID_RELEASED 14
+#define ODM_DOCVERSION 15
+#define ODM_DOCVERSION_LATEST 16
+#define ODM_DOCVERSION_RELEASED 17
+#define ODM_LOCATION 18
+#define ODM_KEYWORDS 19
+#define ODM_LASTCHECKINBY 20
+#define ODM_LASTCHECKINDATE 21
+#define ODM_MODIFYDATE 22
+#define ODM_MODIFYDATE_LATEST 23
+#define ODM_MODIFYDATE_RELEASED 24
+#define ODM_OWNER 25
+#define ODM_SUBJECT 26
+#define ODM_TITLETEXT_RO 27
+#define ODM_URL 28
+
+
+// Item selectors for ODMQueryCapability ODMA 2.0
+#define ODM_QC_ACTIVATE 1
+#define ODM_QC_CLOSEDOC 2
+#define ODM_QC_CLOSEDOCEX 3
+#define ODM_QC_GETALTERNATECONTENT 4
+#define ODM_QC_GETDMSINFO 5
+#define ODM_QC_GETDOCINFO 6
+#define ODM_QC_GETDOCRELATION 7
+#define ODM_QC_GETLEADMONIKER 8
+#define ODM_QC_NEWDOC 9
+#define ODM_QC_OPENDOC 10
+#define ODM_QC_QUERYCLOSE 11
+#define ODM_QC_QUERYEXECUTE 12
+#define ODM_QC_QUERYGETRESULTS 13
+#define ODM_QC_SAVEAS 14
+#define ODM_QC_SAVEASEX 15
+#define ODM_QC_SAVEDOC 16
+#define ODM_QC_SAVEDOCEX 17
+#define ODM_QC_SELECTDOC 18
+#define ODM_QC_SELECTDOCEX 19
+#define ODM_QC_SETALTERNATECONTENT 20
+#define ODM_QC_SETDOCEVENT 21
+#define ODM_QC_SETDOCRELATION 22
+#define ODM_QC_SETDOCINFO 23
+
+
+// Misc. modes, flags
+#define ODM_SILENT 16 /* Don't interact with the
user while
+ fulfilling this request. */
+//ODMA 2.0
+#define ODM_VERSION_SAME 1
+#define ODM_VERSION_MAJOR 2
+#define ODM_VERSION_MINOR 4
+#define ODM_VERSION_CHANGED 8
+#define ODM_ALT_DELETE 32
+
+//ODMA 2.0 DMS Info Flags
+#define ODM_EXT_QUERY 1
+#define ODM_EXT_WORKFLOW 2
+
+// Flags for Query Interface
+#define ODM_ALL 1 // All DMS's
should be searched
+#define ODM_SPECIFIC 2 // Only specific DMS's should
be searched
+
+
+// Function prototypes
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ODMSTATUS WINAPI ODMRegisterApp(ODMHANDLE FAR *pOdmHandle, WORD version,
+ LPSTR lpszAppId, DWORD dwEnvData, LPVOID pReserved);
+
+void WINAPI ODMUnRegisterApp(ODMHANDLE odmHandle);
+
+ODMSTATUS WINAPI ODMSelectDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPDWORD pdwFlags);
+
+ODMSTATUS WINAPI ODMOpenDoc(ODMHANDLE odmHandle, DWORD flags,
+ LPSTR lpszDocId, LPSTR lpszDocLocation);
+
+ODMSTATUS WINAPI ODMSaveDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPSTR lpszNewDocId);
+
+ODMSTATUS WINAPI ODMCloseDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ DWORD activeTime, DWORD pagesPrinted, LPVOID sessionData, WORD dataLen);
+
+ODMSTATUS WINAPI ODMNewDoc(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ DWORD dwFlags, LPSTR lpszFormat, LPSTR lpszDocLocation);
+
+ODMSTATUS WINAPI ODMSaveAs(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPSTR lpszNewDocId, LPSTR lpszFormat, ODMSAVEASCALLBACK pcbCallBack,
+ LPVOID pInstanceData);
+
+ODMSTATUS WINAPI ODMActivate(ODMHANDLE odmHandle, WORD action,
+ LPSTR lpszDocId);
+
+ODMSTATUS WINAPI ODMGetDocInfo(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ WORD item, LPSTR lpszData, WORD dataLen);
+
+ODMSTATUS WINAPI ODMSetDocInfo(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ WORD item, LPSTR lpszData);
+
+ODMSTATUS WINAPI ODMGetDMSInfo(ODMHANDLE odmHandle, LPSTR lpszDmsId,
+ LPWORD pwVerNo, LPDWORD pdwExtensions);
+
+/* Query Enhancements */
+WORD WINAPI ODMGetDMSCount();
+
+WORD WINAPI ODMGetDMSList( LPSTR buffer, WORD buffer_size );
+
+ODMSTATUS WINAPI ODMGetDMS( LPCSTR lpszAppId, LPSTR lpszDMSId );
+
+ODMSTATUS WINAPI ODMSetDMS( LPCSTR lpszAppId, LPCSTR lpszDMSId );
+
+ODMSTATUS WINAPI ODMQueryExecute(ODMHANDLE odmHandle, LPCSTR lpszQuery,
+ DWORD flags,
LPCSTR lpszDMSList, LPSTR queryId );
+
+ODMSTATUS WINAPI ODMQueryGetResults(ODMHANDLE odmHandle, LPCSTR queryId,
+ LPSTR
lpszDocId, LPSTR lpszDocName, WORD docNameLen,
+ WORD
*docCount );
+
+ODMSTATUS WINAPI ODMQueryClose(ODMHANDLE odmHandle, LPCSTR queryId );
+
+/* ODMA 2.0 Enhancements */
+ODMSTATUS WINAPI ODMCloseDocEx(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPDWORD pdwFlags, DWORD
activeTime, DWORD pagesPrinted,
+ LPVOID sessionData,
WORD dataLen);
+
+ODMSTATUS WINAPI ODMSaveAsEx(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPSTR lpszNewDocId,
LPSTR lpszFormat, ODMSAVEASCALLBACK pcbCallBack,
+ LPVOID pInstanceData,
LPDWORD pdwFlags);
+
+ODMSTATUS WINAPI ODMSaveDocEx(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPSTR lpszNewDocId,
LPDWORD pdwFlags);
+
+ODMSTATUS WINAPI ODMSelectDocEx(ODMHANDLE odmHandle, LPSTR lpszDocIds,
+ LPWORD pwDocIdsLen,
LPWORD pwDocCount, LPDWORD pdwFlags,
+ LPSTR lpszFormatFilter);
+
+ODMSTATUS WINAPI ODMQueryCapability(ODMHANDLE odmHandle, LPCSTR lpszDmsId,
+ DWORD function, DWORD
item, DWORD flags);
+
+ODMSTATUS WINAPI ODMSetDocEvent(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ DWORD flags, DWORD
event, LPVOID lpData, DWORD dwDataLen,
+ LPSTR lpszComment);
+
+ODMSTATUS WINAPI ODMGetAlternateContent(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPDWORD pdwFlags, LPSTR
lpszFormat, LPSTR lpszDocLocation);
+
+ODMSTATUS WINAPI ODMSetAlternateContent(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPDWORD pdwFlags, LPSTR
lpszFormat, LPSTR lpszDocLocation);
+
+ODMSTATUS WINAPI ODMGetDocRelation(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPDWORD pdwFlags, LPSTR
lpszLinkedId, LPSTR lpszFormat,
+ LPSTR lpszPreviousId);
+
+ODMSTATUS WINAPI ODMSetDocRelation(ODMHANDLE odmHandle, LPSTR lpszDocId,
+ LPDWORD pdwFlags, LPSTR
lpszLinkedId, LPSTR lpszFormat,
+ LPSTR lpszPreviousId);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/main/winaccessibility/source/UAccCOM/AccAction.h
b/main/winaccessibility/source/UAccCOM/AccAction.h
index b98e7d5139..5f72446a4f 100644
--- a/main/winaccessibility/source/UAccCOM/AccAction.h
+++ b/main/winaccessibility/source/UAccCOM/AccAction.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#ifndef __ACCACTION_H_
#define __ACCACTION_H_
diff --git a/main/winaccessibility/source/UAccCOM/AccActionBase.h
b/main/winaccessibility/source/UAccCOM/AccActionBase.h
index 986a9dccfe..b2b7d6d462 100644
--- a/main/winaccessibility/source/UAccCOM/AccActionBase.h
+++ b/main/winaccessibility/source/UAccCOM/AccActionBase.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
//////////////////////////////////////////////////////////////////////
// AccActionBase.h: interface for the CAccActionBase class.
//////////////////////////////////////////////////////////////////////
diff --git a/main/winaccessibility/source/UAccCOM/AccComponent.h
b/main/winaccessibility/source/UAccCOM/AccComponent.h
index f0bbc5ee5e..4961a6b2ab 100644
--- a/main/winaccessibility/source/UAccCOM/AccComponent.h
+++ b/main/winaccessibility/source/UAccCOM/AccComponent.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#if
!defined(AFX_ACCCOMPONENT_H__626D760C_3944_4B0E_BB4D_F0D20AEDF7DC__INCLUDED_)
#define AFX_ACCCOMPONENT_H__626D760C_3944_4B0E_BB4D_F0D20AEDF7DC__INCLUDED_
diff --git a/main/winaccessibility/source/UAccCOM/AccComponentBase.h
b/main/winaccessibility/source/UAccCOM/AccComponentBase.h
index a59f6730a7..fe5f402301 100644
--- a/main/winaccessibility/source/UAccCOM/AccComponentBase.h
+++ b/main/winaccessibility/source/UAccCOM/AccComponentBase.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
//////////////////////////////////////////////////////////////////////
// AccComponentBase.h: interface for the CAccComponentBase class.
//////////////////////////////////////////////////////////////////////
diff --git a/main/winaccessibility/source/UAccCOM/AccEditableText.h
b/main/winaccessibility/source/UAccCOM/AccEditableText.h
index 0e430248f5..af016d46b2 100644
--- a/main/winaccessibility/source/UAccCOM/AccEditableText.h
+++ b/main/winaccessibility/source/UAccCOM/AccEditableText.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#if
!defined(AFX_ACCEDITABLETEXT_H__0C41AFBE_5A87_4D9D_A284_CEC264D91F81__INCLUDED_)
#define AFX_ACCEDITABLETEXT_H__0C41AFBE_5A87_4D9D_A284_CEC264D91F81__INCLUDED_
diff --git a/main/winaccessibility/source/UAccCOM/AccHyperLink.h
b/main/winaccessibility/source/UAccCOM/AccHyperLink.h
index 8fe6700f10..18050f9438 100644
--- a/main/winaccessibility/source/UAccCOM/AccHyperLink.h
+++ b/main/winaccessibility/source/UAccCOM/AccHyperLink.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#if
!defined(AFX_ACCHYPERLINK_H__59DA79A5_A895_43DB_9495_2B2049CF5C65__INCLUDED_)
#define AFX_ACCHYPERLINK_H__59DA79A5_A895_43DB_9495_2B2049CF5C65__INCLUDED_
diff --git a/main/winaccessibility/source/UAccCOM/AccHypertext.h
b/main/winaccessibility/source/UAccCOM/AccHypertext.h
index 767eaa7d6a..ccbe7e0b03 100644
--- a/main/winaccessibility/source/UAccCOM/AccHypertext.h
+++ b/main/winaccessibility/source/UAccCOM/AccHypertext.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#if
!defined(AFX_ACCHYPERTEXT_H__6DC133B6_03DB_42C6_A9B7_27AF4FDA00CA__INCLUDED_)
#define AFX_ACCHYPERTEXT_H__6DC133B6_03DB_42C6_A9B7_27AF4FDA00CA__INCLUDED_
diff --git a/main/winaccessibility/source/UAccCOM/AccImage.h
b/main/winaccessibility/source/UAccCOM/AccImage.h
index 17514b477e..e4e02de1c4 100644
--- a/main/winaccessibility/source/UAccCOM/AccImage.h
+++ b/main/winaccessibility/source/UAccCOM/AccImage.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#if !defined(AFX_ACCIMAGE_H__D5E55275_CCD4_497F_8E77_F9B391D2F4A8__INCLUDED_)
#define AFX_ACCIMAGE_H__D5E55275_CCD4_497F_8E77_F9B391D2F4A8__INCLUDED_
diff --git a/main/winaccessibility/source/UAccCOM/AccRelation.h
b/main/winaccessibility/source/UAccCOM/AccRelation.h
index 075b7e2fa1..964f7529f9 100644
--- a/main/winaccessibility/source/UAccCOM/AccRelation.h
+++ b/main/winaccessibility/source/UAccCOM/AccRelation.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#ifndef __ACCRELATION_H_
#define __ACCRELATION_H_
diff --git a/main/winaccessibility/source/UAccCOM/AccTable.h
b/main/winaccessibility/source/UAccCOM/AccTable.h
index d3ca3ceb5f..0fd88ca7c1 100644
--- a/main/winaccessibility/source/UAccCOM/AccTable.h
+++ b/main/winaccessibility/source/UAccCOM/AccTable.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#ifndef __ACCTABLE_H_
#define __ACCTABLE_H_
diff --git a/main/winaccessibility/source/UAccCOM/AccText.h
b/main/winaccessibility/source/UAccCOM/AccText.h
index 14000ba2a8..1e1d698f0a 100644
--- a/main/winaccessibility/source/UAccCOM/AccText.h
+++ b/main/winaccessibility/source/UAccCOM/AccText.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#if !defined(AFX_ACCTEXT_H__F06C5496_9959_4C7C_873E_A8D50CFB290D__INCLUDED_)
#define AFX_ACCTEXT_H__F06C5496_9959_4C7C_873E_A8D50CFB290D__INCLUDED_
diff --git a/main/winaccessibility/source/UAccCOM/AccTextBase.h
b/main/winaccessibility/source/UAccCOM/AccTextBase.h
index 7dc7785cab..ab595011b0 100644
--- a/main/winaccessibility/source/UAccCOM/AccTextBase.h
+++ b/main/winaccessibility/source/UAccCOM/AccTextBase.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
// AccTextBase.h: interface for the CAccTextBase class.
//
//////////////////////////////////////////////////////////////////////
diff --git a/main/winaccessibility/source/UAccCOM/AccValue.h
b/main/winaccessibility/source/UAccCOM/AccValue.h
index 002a757d08..7b3cfe19e5 100644
--- a/main/winaccessibility/source/UAccCOM/AccValue.h
+++ b/main/winaccessibility/source/UAccCOM/AccValue.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#if !defined(AFX_ACCVALUE_H__CBA4972C_4188_4A18_A3CD_4A1FA3DDED38__INCLUDED_)
#define AFX_ACCVALUE_H__CBA4972C_4188_4A18_A3CD_4A1FA3DDED38__INCLUDED_
diff --git a/main/winaccessibility/source/UAccCOM/AccessibleKeyStroke.h
b/main/winaccessibility/source/UAccCOM/AccessibleKeyStroke.h
index 076151e06a..0cd00e705e 100644
--- a/main/winaccessibility/source/UAccCOM/AccessibleKeyStroke.h
+++ b/main/winaccessibility/source/UAccCOM/AccessibleKeyStroke.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#ifndef __ACCESSIBLEKEYSTROKE_H_
#define __ACCESSIBLEKEYSTROKE_H_
diff --git a/main/winaccessibility/source/UAccCOM/CheckEnableAccessible.h
b/main/winaccessibility/source/UAccCOM/CheckEnableAccessible.h
index 3c7ed0728a..754fe43c0d 100644
--- a/main/winaccessibility/source/UAccCOM/CheckEnableAccessible.h
+++ b/main/winaccessibility/source/UAccCOM/CheckEnableAccessible.h
@@ -17,14 +17,14 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
-#ifndef _CHECKENABLEACCESSIBLE_HXX
-#define _CHECKENABLEACCESSIBLE_HXX
-
-bool IsEnableAccessibleInterface();
-
-#define CHECK_ENABLE_INF if(!IsEnableAccessibleInterface()){ return S_FALSE; }
-#define CHECK_ENABLE_INF_ZERO if(!IsEnableAccessibleInterface()){ return 0; }
-
-#endif //_CHECKENABLEACCESSIBLE_HXX
+ *************************************************************/
+
+#ifndef _CHECKENABLEACCESSIBLE_HXX
+#define _CHECKENABLEACCESSIBLE_HXX
+
+bool IsEnableAccessibleInterface();
+
+#define CHECK_ENABLE_INF if(!IsEnableAccessibleInterface()){ return S_FALSE; }
+#define CHECK_ENABLE_INF_ZERO if(!IsEnableAccessibleInterface()){ return 0; }
+
+#endif //_CHECKENABLEACCESSIBLE_HXX
diff --git a/main/winaccessibility/source/UAccCOM/EnumVariant.h
b/main/winaccessibility/source/UAccCOM/EnumVariant.h
index 9a8f0a69f4..e10e521857 100644
--- a/main/winaccessibility/source/UAccCOM/EnumVariant.h
+++ b/main/winaccessibility/source/UAccCOM/EnumVariant.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#ifndef __ENUMVARIANT_H_
#define __ENUMVARIANT_H_
diff --git a/main/winaccessibility/source/UAccCOM/Resource.h
b/main/winaccessibility/source/UAccCOM/Resource.h
index fe71c6a27c..ba655baabb 100644
--- a/main/winaccessibility/source/UAccCOM/Resource.h
+++ b/main/winaccessibility/source/UAccCOM/Resource.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by UAccCOM.rc
diff --git a/main/winaccessibility/source/UAccCOM/UAccCOM.rc
b/main/winaccessibility/source/UAccCOM/UAccCOM.rc
index 5ad01c3653..e743653421 100644
--- a/main/winaccessibility/source/UAccCOM/UAccCOM.rc
+++ b/main/winaccessibility/source/UAccCOM/UAccCOM.rc
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
diff --git a/main/winaccessibility/source/UAccCOM/UNOXWrapper.h
b/main/winaccessibility/source/UAccCOM/UNOXWrapper.h
index c0d28d0911..8f55b0c861 100644
--- a/main/winaccessibility/source/UAccCOM/UNOXWrapper.h
+++ b/main/winaccessibility/source/UAccCOM/UNOXWrapper.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#ifndef __UNOXWRAPPER_H_
#define __UNOXWRAPPER_H_
diff --git a/main/winaccessibility/source/UAccCOM/acccommon.h
b/main/winaccessibility/source/UAccCOM/acccommon.h
index a7e5df21e9..3dc18d2353 100644
--- a/main/winaccessibility/source/UAccCOM/acccommon.h
+++ b/main/winaccessibility/source/UAccCOM/acccommon.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
#ifndef __ACCCOMMON_H_
#define __ACCCOMMON_H_
diff --git a/main/winaccessibility/source/UAccCOM/stdafx.h
b/main/winaccessibility/source/UAccCOM/stdafx.h
index a4fa6265a4..ffe92406a4 100644
--- a/main/winaccessibility/source/UAccCOM/stdafx.h
+++ b/main/winaccessibility/source/UAccCOM/stdafx.h
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
*
- *************************************************************/
-
+ *************************************************************/
+
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently