summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/uno/ColumnModel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/uno/ColumnModel.cxx')
-rw-r--r--dbaccess/source/ui/uno/ColumnModel.cxx25
1 files changed, 8 insertions, 17 deletions
diff --git a/dbaccess/source/ui/uno/ColumnModel.cxx b/dbaccess/source/ui/uno/ColumnModel.cxx
index 4d8caec6901c..9b4615cd4b01 100644
--- a/dbaccess/source/ui/uno/ColumnModel.cxx
+++ b/dbaccess/source/ui/uno/ColumnModel.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "ColumnModel.hxx"
#include <com/sun/star/awt/FontRelief.hpp>
#include <com/sun/star/awt/FontEmphasisMark.hpp>
@@ -35,10 +34,8 @@ extern "C" void SAL_CALL createRegistryInfo_OColumnControlModel()
static ::dbaui::OMultiInstanceAutoRegistration< ::dbaui::OColumnControlModel> aAutoRegistration;
}
-//.........................................................................
namespace dbaui
{
-//.........................................................................
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -48,9 +45,7 @@ using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
-
DBG_NAME(OColumnControlModel)
-//------------------------------------------------------------------
OColumnControlModel::OColumnControlModel(const Reference<XMultiServiceFactory>& _rxFactory)
:OPropertyContainer(m_aBHelper)
,OColumnControlModel_BASE(m_aMutex)
@@ -63,7 +58,7 @@ OColumnControlModel::OColumnControlModel(const Reference<XMultiServiceFactory>&
DBG_CTOR(OColumnControlModel,NULL);
registerProperties();
}
-// -----------------------------------------------------------------------------
+
OColumnControlModel::OColumnControlModel(const OColumnControlModel* _pSource,const Reference<XMultiServiceFactory>& _rxFactory)
:OPropertyContainer(m_aBHelper)
,OColumnControlModel_BASE(m_aMutex)
@@ -77,7 +72,7 @@ OColumnControlModel::OColumnControlModel(const OColumnControlModel* _pSource,con
DBG_CTOR(OColumnControlModel,NULL);
registerProperties();
}
-// -----------------------------------------------------------------------------
+
OColumnControlModel::~OColumnControlModel()
{
DBG_DTOR(OColumnControlModel,NULL);
@@ -87,7 +82,7 @@ OColumnControlModel::~OColumnControlModel()
dispose();
}
}
-// -----------------------------------------------------------------------------
+
void OColumnControlModel::registerProperties()
{
registerProperty( PROPERTY_ACTIVE_CONNECTION, PROPERTY_ID_ACTIVE_CONNECTION, PropertyAttribute::TRANSIENT | PropertyAttribute::BOUND,
@@ -108,23 +103,22 @@ void OColumnControlModel::registerProperties()
registerProperty( PROPERTY_EDIT_WIDTH, PROPERTY_ID_EDIT_WIDTH, PropertyAttribute::BOUND,
&m_nWidth, ::getCppuType( &m_nWidth ) );
}
+
// XCloneable
-//------------------------------------------------------------------------------
Reference< XCloneable > SAL_CALL OColumnControlModel::createClone( ) throw (RuntimeException)
{
return new OColumnControlModel( this, getORB() );
}
-//------------------------------------------------------------------------------
+
IMPLEMENT_TYPEPROVIDER2(OColumnControlModel,OColumnControlModel_BASE,comphelper::OPropertyContainer)
IMPLEMENT_PROPERTYCONTAINER_DEFAULTS(OColumnControlModel)
IMPLEMENT_SERVICE_INFO2_STATIC(OColumnControlModel,"com.sun.star.comp.dbu.OColumnControlModel","com.sun.star.awt.UnoControlModel","com.sun.star.sdb.ColumnDescriptorControlModel")
IMPLEMENT_FORWARD_REFCOUNT( OColumnControlModel, OColumnControlModel_BASE )
-//------------------------------------------------------------------------------
Any SAL_CALL OColumnControlModel::queryInterface( const Type& _rType ) throw (RuntimeException)
{
return OColumnControlModel_BASE::queryInterface( _rType );
}
-// -----------------------------------------------------------------------------
+
// com::sun::star::XAggregation
Any SAL_CALL OColumnControlModel::queryAggregation( const Type& rType ) throw(RuntimeException)
{
@@ -133,25 +127,22 @@ Any SAL_CALL OColumnControlModel::queryAggregation( const Type& rType ) throw(Ru
aRet = comphelper::OPropertyContainer::queryInterface(rType);
return aRet;
}
-//------------------------------------------------------------------------------
+
OUString SAL_CALL OColumnControlModel::getServiceName() throw ( RuntimeException)
{
return OUString();
}
-//------------------------------------------------------------------------------
+
void OColumnControlModel::write(const Reference<XObjectOutputStream>& /*_rxOutStream*/) throw ( ::com::sun::star::io::IOException, RuntimeException)
{
// TODO
}
-//------------------------------------------------------------------------------
void OColumnControlModel::read(const Reference<XObjectInputStream>& /*_rxInStream*/) throw ( ::com::sun::star::io::IOException, RuntimeException)
{
// TODO
}
-//.........................................................................
} // namespace dbaui
-//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */