LibreOffice Module dbaccess (master) 1
ColumnModel.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
21#include <com/sun/star/awt/XControlModel.hpp>
22#include <com/sun/star/lang/XServiceInfo.hpp>
23#include <com/sun/star/util/XCloneable.hpp>
24#include <com/sun/star/io/XPersistObject.hpp>
25#include <com/sun/star/sdbc/XConnection.hpp>
29#include <comphelper/uno3.hxx>
32
33namespace dbaui
34{
35
36// OColumnControlModel
37typedef ::cppu::WeakAggComponentImplHelper4 < css::awt::XControlModel
38 , css::lang::XServiceInfo
39 , css::util::XCloneable
40 , css::io::XPersistObject
42
44
47 ,public ::comphelper::OPropertyArrayUsageHelper< OColumnControlModel >
49{
50
51// [properties]
52 css::uno::Reference< css::sdbc::XConnection> m_xConnection;
53 css::uno::Reference< css::beans::XPropertySet > m_xColumn;
55 css::uno::Any m_aTabStop;
57 sal_Int16 m_nBorder;
58 sal_Int32 m_nWidth;
59// [properties]
60
61 void registerProperties();
62protected:
63
64 virtual ~OColumnControlModel() override;
66public:
67 explicit OColumnControlModel();
68
69// UNO binding
71
72// css::lang::XServiceInfo
74
75 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes() override;
76 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
77
78// css::uno::XAggregation
79 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& aType ) override;
80
81// css::io::XPersistObject
82 virtual OUString SAL_CALL getServiceName() override;
83 virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream>& _rxOutStream) override;
84 virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream>& _rxInStream) override;
85
86// OPropertyArrayUsageHelper
87 virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
88 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
89 virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const override;
90
91
92 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override;
93};
94
95} // namespace dbaui
96
97/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~OColumnControlModel() override
Definition: ColumnModel.cxx:67
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
css::uno::Reference< css::beans::XPropertySet > m_xColumn
Definition: ColumnModel.hxx:53
virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &aType) override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
Definition: ColumnModel.cxx:98
css::uno::Reference< css::sdbc::XConnection > m_xConnection
Definition: ColumnModel.hxx:52
virtual OUString SAL_CALL getServiceName() override
Type
::cppu::WeakAggComponentImplHelper4< css::awt::XControlModel, css::lang::XServiceInfo, css::util::XCloneable, css::io::XPersistObject > OColumnControlModel_BASE
Definition: ColumnModel.hxx:41
signed char sal_Int8
#define DECLARE_XINTERFACE()