xref: /trunk/main/toolkit/source/awt/vclxfixedline.cxx (revision 91144cd0085a7583d2099b982122deb2184ab956)
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 
24 #include "vclxfixedline.hxx"
25 
26 #include <com/sun/star/awt/PosSize.hpp>
27 #include <toolkit/helper/property.hxx>
28 #include <toolkit/helper/vclunohelper.hxx>
29 #include <tools/debug.hxx>
30 #include <vcl/fixed.hxx>
31 
32 #include "forward.hxx"
33 
34 namespace layoutimpl
35 {
36 
37 using namespace ::com::sun::star::uno;
38 using namespace ::com::sun::star::awt;
39 using namespace ::com::sun::star::lang;
40 using namespace ::com::sun::star::beans;
41 using namespace ::com::sun::star;
42 
DBG_NAME(VCLXFixedLine)43 DBG_NAME( VCLXFixedLine )
44 
45 VCLXFixedLine::VCLXFixedLine()
46   : VCLXWindow()
47 {
48     DBG_CTOR( VCLXFixedLine, NULL );
49 }
50 
~VCLXFixedLine()51 VCLXFixedLine::~VCLXFixedLine()
52 {
53     DBG_DTOR( VCLXFixedLine, NULL );
54 }
55 
56 IMPLEMENT_FORWARD_XTYPEPROVIDER1( VCLXFixedLine, VCLXWindow );
57 
dispose()58 void SAL_CALL VCLXFixedLine::dispose()
59 {
60     {
61         ::vos::OGuard aGuard( GetMutex() );
62 
63         EventObject aDisposeEvent;
64         aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
65     }
66 
67     VCLXWindow::dispose();
68 }
69 
getMinimumSize()70 ::com::sun::star::awt::Size SAL_CALL VCLXFixedLine::getMinimumSize()
71 {
72     return awt::Size( 8, 8 );
73 }
74 
ProcessWindowEvent(const VclWindowEvent & _rVclWindowEvent)75 void VCLXFixedLine::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
76 {
77     ::vos::OClearableGuard aGuard( GetMutex() );
78 /*
79     switch ( _rVclWindowEvent.GetId() )
80     {
81         default:
82             aGuard.clear();
83 */
84             VCLXWindow::ProcessWindowEvent( _rVclWindowEvent );
85 /*
86             break;
87     }
88 */
89 }
90 
setProperty(const::rtl::OUString & PropertyName,const Any & Value)91 void SAL_CALL VCLXFixedLine::setProperty( const ::rtl::OUString& PropertyName, const Any &Value )
92 {
93     ::vos::OGuard aGuard( GetMutex() );
94 
95     if ( GetWindow() )
96     {
97 /*
98         sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
99         switch ( nPropertyId )
100         {
101             default:
102 */
103                 VCLXWindow::setProperty( PropertyName, Value );
104 //        }
105     }
106 }
107 
getProperty(const::rtl::OUString & PropertyName)108 Any SAL_CALL VCLXFixedLine::getProperty( const ::rtl::OUString& PropertyName )
109 {
110     ::vos::OGuard aGuard( GetMutex() );
111 
112     Any aReturn;
113     if ( GetWindow() )
114     {
115 /*
116         sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
117         switch ( nPropertyId )
118         {
119             default:
120 */
121                 aReturn = VCLXWindow::getProperty( PropertyName );
122   //      }
123     }
124     return aReturn;
125 }
126 
127 } // namespace layoutimpl
128