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() throw(RuntimeException)
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     throw(::com::sun::star::uno::RuntimeException)
72 {
73     return awt::Size( 8, 8 );
74 }
75 
ProcessWindowEvent(const VclWindowEvent & _rVclWindowEvent)76 void VCLXFixedLine::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
77 {
78     ::vos::OClearableGuard aGuard( GetMutex() );
79 /*
80     switch ( _rVclWindowEvent.GetId() )
81     {
82         default:
83             aGuard.clear();
84 */
85             VCLXWindow::ProcessWindowEvent( _rVclWindowEvent );
86 /*
87             break;
88     }
89 */
90 }
91 
setProperty(const::rtl::OUString & PropertyName,const Any & Value)92 void SAL_CALL VCLXFixedLine::setProperty( const ::rtl::OUString& PropertyName, const Any &Value ) throw(RuntimeException)
93 {
94     ::vos::OGuard aGuard( GetMutex() );
95 
96     if ( GetWindow() )
97     {
98 /*
99         sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
100         switch ( nPropertyId )
101         {
102             default:
103 */
104                 VCLXWindow::setProperty( PropertyName, Value );
105 //        }
106     }
107 }
108 
getProperty(const::rtl::OUString & PropertyName)109 Any SAL_CALL VCLXFixedLine::getProperty( const ::rtl::OUString& PropertyName ) throw(RuntimeException)
110 {
111     ::vos::OGuard aGuard( GetMutex() );
112 
113     Any aReturn;
114     if ( GetWindow() )
115     {
116 /*
117         sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
118         switch ( nPropertyId )
119         {
120             default:
121 */
122                 aReturn = VCLXWindow::getProperty( PropertyName );
123   //      }
124     }
125     return aReturn;
126 }
127 
128 } // namespace layoutimpl
129