25#include <com/sun/star/lang/XMultiServiceFactory.hpp>
33 using ::com::sun::star::sdbc::XConnection;
34 using ::com::sun::star::lang::XMultiServiceFactory;
38 OUString sSupportService;
42 aValue >>= sSupportService;
44 return sSupportService;
47 View::View(
const Reference< XConnection >& _rxConnection,
bool _bCaseSensitive,
48 const OUString& _rCatalogName,
const OUString& _rSchemaName,
const OUString& _rName )
49 :
View_Base( _bCaseSensitive, _rName, _rxConnection->getMetaData(), OUString(), _rSchemaName, _rCatalogName )
54 Reference<XMultiServiceFactory> xFac(_rxConnection,UNO_QUERY_THROW);
57 catch(
const Exception& )
70 Any SAL_CALL View::queryInterface(
const Type & _rType )
75 if ( !aReturn.hasValue() )
80 Sequence< Type > SAL_CALL View::getTypes( )
85 std::vector<Type> aOwnTypes;
86 aOwnTypes.reserve(
aTypes.getLength());
90 for(;pIter != pEnd ;++pIter)
92 if( *pIter != aAlterType || m_xViewAccess.is() )
93 aOwnTypes.push_back(*pIter);
96 return Sequence< Type >(aOwnTypes.data(), aOwnTypes.size());
99 void SAL_CALL View::alterCommand(
const OUString& _rNewCommand )
101 OSL_ENSURE(m_xViewAccess.is(),
"Illegal call to AlterView!");
102 m_xViewAccess->alterCommand(
this,_rNewCommand);
105 void SAL_CALL View::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle )
const
107 if ( _nHandle == m_nCommandHandle && m_xViewAccess.is() )
111 _rValue <<= m_xViewAccess->getCommand(
const_cast<View*
>(
this));
115 View_Base::getFastPropertyValue( _rValue, _nHandle );
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
css::uno::Type const & get()
View(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, bool _bCaseSensitive, const OUString &_rCatalogName, const OUString &_rSchemaName, const OUString &_rName)
#define DBG_UNHANDLED_EXCEPTION(...)
static OUString lcl_getServiceNameForSetting(const Reference< css::sdbc::XConnection > &_xConnection, const OUString &i_sSetting)
IMPLEMENT_GET_IMPLEMENTATION_ID(DrawController)
SVX_DLLPUBLIC OUString getProperty(css::uno::Reference< css::beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)
constexpr OUStringLiteral PROPERTY_COMMAND(u"Command")
#define IMPLEMENT_FORWARD_REFCOUNT(classname, refcountbase)