Kaydet (Commit) 2bc11eb5 authored tarafından Matúš Kukan's avatar Matúš Kukan

tk: Constructor feature for DefaultGridColumnModel.

Change-Id: Ia4d20eb2a3c91fbdb1dd85c37b8162c6856d0f28
üst a9f94e57
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <com/sun/star/awt/grid/XGridColumnModel.hpp> #include <com/sun/star/awt/grid/XGridColumnModel.hpp>
#include <com/sun/star/awt/grid/XGridColumn.hpp> #include <com/sun/star/awt/grid/XGridColumn.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <comphelper/sequence.hxx> #include <comphelper/sequence.hxx>
#include <comphelper/componentguard.hxx> #include <comphelper/componentguard.hxx>
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
using namespace css::awt; using namespace css::awt;
using namespace css::awt::grid; using namespace css::awt::grid;
using namespace css::container; using namespace css::container;
using namespace css::lang;
using namespace css::uno; using namespace css::uno;
using namespace toolkit; using namespace toolkit;
...@@ -108,7 +110,7 @@ private: ...@@ -108,7 +110,7 @@ private:
++col ++col
) )
{ {
Reference< XCloneable > const xCloneable( *col, UNO_QUERY_THROW ); Reference< css::util::XCloneable > const xCloneable( *col, UNO_QUERY_THROW );
Reference< XGridColumn > const xClone( xCloneable->createClone(), UNO_QUERY_THROW ); Reference< XGridColumn > const xClone( xCloneable->createClone(), UNO_QUERY_THROW );
GridColumn* const pGridColumn = GridColumn::getImplementation( xClone ); GridColumn* const pGridColumn = GridColumn::getImplementation( xClone );
...@@ -390,7 +392,7 @@ private: ...@@ -390,7 +392,7 @@ private:
} }
//------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------
Reference< XCloneable > SAL_CALL DefaultGridColumnModel::createClone( ) throw (RuntimeException) Reference< css::util::XCloneable > SAL_CALL DefaultGridColumnModel::createClone( ) throw (RuntimeException)
{ {
::comphelper::ComponentGuard aGuard( *this, rBHelper ); ::comphelper::ComponentGuard aGuard( *this, rBHelper );
return new DefaultGridColumnModel( *this ); return new DefaultGridColumnModel( *this );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment