xref: /aoo42x/main/sw/sdi/swpatch.txt (revision 184e05d2)
1*184e05d2SAndrew Rist# *************************************************************
2*184e05d2SAndrew Rist#
3*184e05d2SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*184e05d2SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*184e05d2SAndrew Rist#  distributed with this work for additional information
6*184e05d2SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*184e05d2SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*184e05d2SAndrew Rist#  "License"); you may not use this file except in compliance
9*184e05d2SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*184e05d2SAndrew Rist#
11*184e05d2SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*184e05d2SAndrew Rist#
13*184e05d2SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*184e05d2SAndrew Rist#  software distributed under the License is distributed on an
15*184e05d2SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*184e05d2SAndrew Rist#  KIND, either express or implied.  See the License for the
17*184e05d2SAndrew Rist#  specific language governing permissions and limitations
18*184e05d2SAndrew Rist#  under the License.
19*184e05d2SAndrew Rist#
20*184e05d2SAndrew Rist# *************************************************************
21*184e05d2SAndrew Rist
22cdf0e10cSrcweirswinter.h:
23cdf0e10cSrcweir
24cdf0e10cSrcweirunsigned char SYSCALL SwDocumentGetIsPrinting( C_Object ObjHdl );
25cdf0e10cSrcweir
26cdf0e10cSrcweir
27cdf0e10cSrcweirswinter.c:
28cdf0e10cSrcweir
29cdf0e10cSrcweirunsigned char SYSCALL SwDocumentGetIsPrinting( C_Object ObjHdl )
30cdf0e10cSrcweir{
31cdf0e10cSrcweir    if( SvIPCIsConnected() )
32cdf0e10cSrcweir    {
33cdf0e10cSrcweir        return (unsigned char) pIPCCallFunction( SvIPCGetClient(), 136598,
34cdf0e10cSrcweir             ObjHdl , 1, NULL );
35cdf0e10cSrcweir    }
36cdf0e10cSrcweir    return 0;
37cdf0e10cSrcweir}
38cdf0e10cSrcweir
39cdf0e10cSrcweir#ifdef _MSC_VER
40cdf0e10cSrcweir#pragma code_seg("swinter2","CODE")
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir
43