2011-09-29 15:42:27 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-01-04 15:23:17 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
|
|
|
*
|
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
|
|
*
|
|
|
|
* This file is part of OpenOffice.org.
|
|
|
|
*
|
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include "unogridcolumnfacade.hxx"
|
|
|
|
#include "unocontroltablemodel.hxx"
|
|
|
|
|
|
|
|
#include "svtools/table/defaultinputhandler.hxx"
|
|
|
|
#include "svtools/table/gridtablerenderer.hxx"
|
|
|
|
#include "svtools/table/tablecontrol.hxx"
|
|
|
|
|
|
|
|
/** === begin UNO includes === **/
|
|
|
|
#include <com/sun/star/awt/grid/XGridColumn.hpp>
|
|
|
|
#include <com/sun/star/view/SelectionType.hpp>
|
|
|
|
#include <com/sun/star/awt/grid/XGridColumnListener.hpp>
|
|
|
|
/** === end UNO includes === **/
|
|
|
|
|
|
|
|
#include <comphelper/stlunosequence.hxx>
|
|
|
|
#include <tools/debug.hxx>
|
|
|
|
#include <tools/diagnose_ex.h>
|
|
|
|
#include <vcl/svapp.hxx>
|
2011-03-11 12:04:44 -06:00
|
|
|
#include <osl/mutex.hxx>
|
2011-01-04 15:23:17 -06:00
|
|
|
|
|
|
|
// .....................................................................................................................
|
|
|
|
namespace svt { namespace table
|
|
|
|
{
|
|
|
|
// .....................................................................................................................
|
|
|
|
|
|
|
|
/** === begin UNO using === **/
|
|
|
|
using ::com::sun::star::uno::Reference;
|
|
|
|
using ::com::sun::star::uno::RuntimeException;
|
|
|
|
using ::com::sun::star::uno::Sequence;
|
|
|
|
using ::com::sun::star::uno::UNO_QUERY_THROW;
|
|
|
|
using ::com::sun::star::uno::UNO_QUERY;
|
|
|
|
using ::com::sun::star::awt::grid::XGridColumn;
|
|
|
|
using ::com::sun::star::uno::XInterface;
|
|
|
|
using ::com::sun::star::uno::Exception;
|
|
|
|
using ::com::sun::star::awt::grid::XGridColumnListener;
|
|
|
|
using ::com::sun::star::lang::EventObject;
|
|
|
|
using ::com::sun::star::awt::grid::GridColumnEvent;
|
|
|
|
using ::com::sun::star::uno::Any;
|
|
|
|
using ::com::sun::star::style::HorizontalAlignment_LEFT;
|
|
|
|
using ::com::sun::star::style::HorizontalAlignment;
|
|
|
|
/** === end UNO using === **/
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
template< class ATTRIBUTE_TYPE >
|
|
|
|
void lcl_set( Reference< XGridColumn > const & i_column, void ( SAL_CALL XGridColumn::*i_setter )( ATTRIBUTE_TYPE ),
|
|
|
|
ATTRIBUTE_TYPE i_value )
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
(i_column.get()->*i_setter) ( i_value );
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
template< class ATTRIBUTE_TYPE >
|
|
|
|
ATTRIBUTE_TYPE lcl_get( Reference< XGridColumn > const & i_column, ATTRIBUTE_TYPE ( SAL_CALL XGridColumn::*i_getter )() )
|
|
|
|
{
|
|
|
|
ATTRIBUTE_TYPE value = ATTRIBUTE_TYPE();
|
|
|
|
try
|
|
|
|
{
|
|
|
|
value = (i_column.get()->*i_getter)();
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//==================================================================================================================
|
|
|
|
//= ColumnChangeMultiplexer
|
|
|
|
//==================================================================================================================
|
|
|
|
typedef ::cppu::WeakImplHelper1 < XGridColumnListener
|
|
|
|
> ColumnChangeMultiplexer_Base;
|
|
|
|
class ColumnChangeMultiplexer :public ColumnChangeMultiplexer_Base
|
|
|
|
,public ::boost::noncopyable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ColumnChangeMultiplexer( UnoGridColumnFacade& i_colImpl );
|
|
|
|
|
|
|
|
void dispose();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
~ColumnChangeMultiplexer();
|
|
|
|
|
|
|
|
// XGridColumnListener
|
|
|
|
virtual void SAL_CALL columnChanged( const GridColumnEvent& i_event ) throw (RuntimeException);
|
|
|
|
|
|
|
|
// XEventListener
|
|
|
|
virtual void SAL_CALL disposing( const EventObject& i_event ) throw (RuntimeException);
|
|
|
|
|
|
|
|
private:
|
|
|
|
UnoGridColumnFacade* m_pColumnImplementation;
|
|
|
|
};
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
ColumnChangeMultiplexer::ColumnChangeMultiplexer( UnoGridColumnFacade& i_colImpl )
|
|
|
|
:m_pColumnImplementation( &i_colImpl )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
ColumnChangeMultiplexer::~ColumnChangeMultiplexer()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void ColumnChangeMultiplexer::dispose()
|
|
|
|
{
|
|
|
|
DBG_TESTSOLARMUTEX();
|
|
|
|
m_pColumnImplementation = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void SAL_CALL ColumnChangeMultiplexer::columnChanged( const GridColumnEvent& i_event ) throw (RuntimeException)
|
|
|
|
{
|
2011-01-19 05:39:41 -06:00
|
|
|
if ( i_event.AttributeName.equalsAscii( "DataColumnIndex" ) )
|
|
|
|
{
|
2011-03-18 09:55:08 -05:00
|
|
|
SolarMutexGuard aGuard;
|
2011-01-19 05:39:41 -06:00
|
|
|
if ( m_pColumnImplementation != NULL )
|
|
|
|
m_pColumnImplementation->dataColumnIndexChanged();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2011-01-04 15:23:17 -06:00
|
|
|
ColumnAttributeGroup nChangedAttributes( COL_ATTRS_NONE );
|
|
|
|
|
2011-01-11 04:42:27 -06:00
|
|
|
if ( i_event.AttributeName.equalsAscii( "HorizontalAlign" ) )
|
2011-01-04 15:23:17 -06:00
|
|
|
nChangedAttributes |= COL_ATTRS_APPEARANCE;
|
|
|
|
|
2011-01-11 04:42:27 -06:00
|
|
|
if ( i_event.AttributeName.equalsAscii( "ColumnWidth" )
|
2011-01-05 05:16:37 -06:00
|
|
|
|| i_event.AttributeName.equalsAscii( "MaxWidth" )
|
|
|
|
|| i_event.AttributeName.equalsAscii( "MinWidth" )
|
2011-01-11 04:42:27 -06:00
|
|
|
|| i_event.AttributeName.equalsAscii( "PreferredWidth" )
|
|
|
|
|| i_event.AttributeName.equalsAscii( "Resizeable" )
|
2011-01-24 09:04:17 -06:00
|
|
|
|| i_event.AttributeName.equalsAscii( "Flexibility" )
|
2011-01-04 15:23:17 -06:00
|
|
|
)
|
|
|
|
nChangedAttributes |= COL_ATTRS_WIDTH;
|
|
|
|
|
|
|
|
OSL_ENSURE( nChangedAttributes != COL_ATTRS_NONE,
|
|
|
|
"ColumnChangeMultiplexer::columnChanged: unknown column attributed changed!" );
|
|
|
|
|
2011-03-18 09:55:08 -05:00
|
|
|
SolarMutexGuard aGuard;
|
2011-01-04 15:23:17 -06:00
|
|
|
if ( m_pColumnImplementation != NULL )
|
|
|
|
m_pColumnImplementation->columnChanged( nChangedAttributes );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void SAL_CALL ColumnChangeMultiplexer::disposing( const EventObject& i_event ) throw (RuntimeException)
|
|
|
|
{
|
|
|
|
OSL_UNUSED( i_event );
|
|
|
|
}
|
|
|
|
|
|
|
|
//==================================================================================================================
|
|
|
|
//= UnoGridColumnFacade
|
|
|
|
//==================================================================================================================
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
UnoGridColumnFacade::UnoGridColumnFacade( UnoControlTableModel const & i_owner, Reference< XGridColumn > const & i_gridColumn )
|
|
|
|
:m_pOwner( &i_owner )
|
2011-01-19 05:39:41 -06:00
|
|
|
,m_nDataColumnIndex( -1 )
|
2011-01-25 13:57:27 -06:00
|
|
|
,m_xGridColumn( i_gridColumn, UNO_QUERY_THROW )
|
2011-01-04 15:23:17 -06:00
|
|
|
,m_pChangeMultiplexer( new ColumnChangeMultiplexer( *this ) )
|
|
|
|
{
|
|
|
|
m_xGridColumn->addGridColumnListener( m_pChangeMultiplexer.get() );
|
2011-01-19 05:39:41 -06:00
|
|
|
impl_updateDataColumnIndex_nothrow();
|
2011-01-04 15:23:17 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
UnoGridColumnFacade::~UnoGridColumnFacade()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::dispose()
|
|
|
|
{
|
|
|
|
DBG_TESTSOLARMUTEX();
|
|
|
|
ENSURE_OR_RETURN_VOID( m_pOwner != NULL, "UnoGridColumnFacade::dispose: already disposed!" );
|
|
|
|
|
|
|
|
m_xGridColumn->removeGridColumnListener( m_pChangeMultiplexer.get() );
|
|
|
|
m_pChangeMultiplexer->dispose();
|
|
|
|
m_pChangeMultiplexer.clear();
|
|
|
|
m_xGridColumn.clear();
|
|
|
|
m_pOwner = NULL;
|
|
|
|
}
|
|
|
|
|
2011-01-19 05:39:41 -06:00
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::impl_updateDataColumnIndex_nothrow()
|
|
|
|
{
|
|
|
|
m_nDataColumnIndex = -1;
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
try
|
|
|
|
{
|
|
|
|
m_nDataColumnIndex = m_xGridColumn->getDataColumnIndex();
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::dataColumnIndexChanged()
|
|
|
|
{
|
|
|
|
DBG_TESTSOLARMUTEX();
|
|
|
|
impl_updateDataColumnIndex_nothrow();
|
|
|
|
if ( m_pOwner != NULL )
|
|
|
|
m_pOwner->notifyAllDataChanged();
|
|
|
|
}
|
|
|
|
|
2011-01-04 15:23:17 -06:00
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::columnChanged( ColumnAttributeGroup const i_attributeGroup )
|
|
|
|
{
|
|
|
|
DBG_TESTSOLARMUTEX();
|
|
|
|
if ( m_pOwner != NULL )
|
|
|
|
m_pOwner->notifyColumnChange( m_pOwner->getColumnPos( *this ), i_attributeGroup );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
Any UnoGridColumnFacade::getID() const
|
|
|
|
{
|
|
|
|
Any aID;
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", aID );
|
|
|
|
try
|
|
|
|
{
|
|
|
|
aID = m_xGridColumn->getIdentifier();
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
return aID;
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setID( const Any& i_ID )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
try
|
|
|
|
{
|
|
|
|
m_xGridColumn->setIdentifier( i_ID );
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
String UnoGridColumnFacade::getName() const
|
|
|
|
{
|
|
|
|
::rtl::OUString sName;
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", sName );
|
|
|
|
try
|
|
|
|
{
|
|
|
|
sName = m_xGridColumn->getTitle();
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
return sName;
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setName( const String& _rName )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
try
|
|
|
|
{
|
|
|
|
m_xGridColumn->setTitle( _rName );
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-11 04:42:27 -06:00
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
String UnoGridColumnFacade::getHelpText() const
|
|
|
|
{
|
|
|
|
::rtl::OUString sHelpText;
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", sHelpText );
|
|
|
|
try
|
|
|
|
{
|
|
|
|
sHelpText = m_xGridColumn->getHelpText();
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
return sHelpText;
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setHelpText( const String& i_helpText )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
try
|
|
|
|
{
|
|
|
|
m_xGridColumn->setHelpText( i_helpText );
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
|
|
|
DBG_UNHANDLED_EXCEPTION();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-04 15:23:17 -06:00
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
bool UnoGridColumnFacade::isResizable() const
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", false );
|
|
|
|
return lcl_get( m_xGridColumn, &XGridColumn::getResizeable );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
2011-01-24 04:44:36 -06:00
|
|
|
void UnoGridColumnFacade::setResizable( bool i_resizable )
|
2011-01-04 15:23:17 -06:00
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
2011-01-24 04:44:36 -06:00
|
|
|
lcl_set( m_xGridColumn, &XGridColumn::setResizeable, sal_Bool( i_resizable ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
sal_Int32 UnoGridColumnFacade::getFlexibility() const
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", 1 );
|
|
|
|
return lcl_get( m_xGridColumn, &XGridColumn::getFlexibility );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setFlexibility( sal_Int32 const i_flexibility )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
lcl_set( m_xGridColumn, &XGridColumn::setFlexibility, i_flexibility );
|
2011-01-04 15:23:17 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
TableMetrics UnoGridColumnFacade::getWidth() const
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", 0 );
|
|
|
|
return lcl_get( m_xGridColumn, &XGridColumn::getColumnWidth );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setWidth( TableMetrics _nWidth )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
lcl_set( m_xGridColumn, &XGridColumn::setColumnWidth, _nWidth );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
TableMetrics UnoGridColumnFacade::getMinWidth() const
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", 0 );
|
|
|
|
return lcl_get( m_xGridColumn, &XGridColumn::getMinWidth );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setMinWidth( TableMetrics _nMinWidth )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
lcl_set( m_xGridColumn, &XGridColumn::setMinWidth, _nMinWidth );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
TableMetrics UnoGridColumnFacade::getMaxWidth() const
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", 0 );
|
|
|
|
return lcl_get( m_xGridColumn, &XGridColumn::getMaxWidth );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setMaxWidth( TableMetrics _nMaxWidth )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
lcl_set( m_xGridColumn, &XGridColumn::setMinWidth, _nMaxWidth );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
::com::sun::star::style::HorizontalAlignment UnoGridColumnFacade::getHorizontalAlign()
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", HorizontalAlignment_LEFT );
|
|
|
|
return lcl_get( m_xGridColumn, &XGridColumn::getHorizontalAlign );
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
|
|
void UnoGridColumnFacade::setHorizontalAlign( com::sun::star::style::HorizontalAlignment _align )
|
|
|
|
{
|
|
|
|
ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" );
|
|
|
|
lcl_set( m_xGridColumn, &XGridColumn::setHorizontalAlign, _align );
|
|
|
|
}
|
|
|
|
|
|
|
|
// .....................................................................................................................
|
|
|
|
} } // svt::table
|
|
|
|
// .....................................................................................................................
|
2011-09-29 15:42:27 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|