1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 /**
23  * AccComponent.cpp : Implementation of CUAccCOMApp and DLL registration.
24  */
25 #include "stdafx.h"
26 #include "UAccCOM2.h"
27 #include "AccComponent.h"
28 
29 /**
30  * Returns the location of the upper left corner of the object's bounding
31  * box relative to the parent.
32  *
33  * @param    Location    the upper left corner of the object's bounding box.
34  */
get_locationInParent(long * x,long * y)35 STDMETHODIMP CAccComponent::get_locationInParent(long *x, long *y)
36 {
37 
38     return CAccComponentBase::get_locationInParent(x,y);
39 }
40 
41 /**
42  * Returns the foreground color of this object.
43  *
44  * @param    Color    the color of foreground.
45  */
get_foreground(IA2Color * foreground)46 STDMETHODIMP CAccComponent::get_foreground(IA2Color * foreground)
47 {
48 
49     return CAccComponentBase::get_foreground(foreground);
50 }
51 
52 /**
53  * Returns the background color of this object.
54  *
55  * @param    Color    the color of background.
56  */
get_background(IA2Color * background)57 STDMETHODIMP CAccComponent::get_background(IA2Color * background)
58 {
59 
60     return CAccComponentBase::get_background(background);
61 }
62 
63 /**
64  * Overide of IUNOXWrapper.
65  *
66  * @param    pXInterface    the pointer of UNO interface.
67  */
put_XInterface(long pXInterface)68 STDMETHODIMP CAccComponent::put_XInterface(long pXInterface)
69 {
70 
71     return CAccComponentBase::put_XInterface(pXInterface);
72 }
73