/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_RELATIONCONTROL_HXX #define INCLUDED_DBACCESS_SOURCE_UI_INC_RELATIONCONTROL_HXX #include #include #include #include "JoinTableView.hxx" namespace dbaui { class OTableListBoxControl; class IRelationControlInterface; class ORelationControl; class OTableListBoxControl { VclPtr m_pLeftTable; VclPtr m_pRightTable; VclPtr m_pRC_Tables; const OJoinTableView::OTableWindowMap* m_pTableMap; IRelationControlInterface* m_pParentDialog; OUString m_strCurrentLeft; OUString m_strCurrentRight; private: DECL_LINK( OnTableChanged, ListBox* ); public: OTableListBoxControl(VclBuilderContainer* _pParent, const OJoinTableView::OTableWindowMap* _pTableMap, IRelationControlInterface* _pParentDialog); virtual ~OTableListBoxControl(); /** fillListBoxes fills the list boxes with the table windows */ void fillListBoxes(); /** fillAndDisable fill the listboxes only with one entry and then disable them @param _pConnectionData contains the data which should be filled into the listboxes */ void fillAndDisable(const TTableConnectionData::value_type& _pConnectionData); /** enables the relation control * * \param _bEnable when sal_True enables it, otherwise disable it. */ void enableRelation(bool _bEnable); /** NotifyCellChange notifies the browse control that the connection data has changed */ void NotifyCellChange(); /** Init is a call through to the control inside this one @param _pConnData the connection data which is used to init the control */ void Init(const TTableConnectionData::value_type& _pConnData); void lateUIInit(); void lateInit(); void Disable(); void Invalidate(); bool SaveModified(); TTableWindowData::value_type getReferencingTable() const; /** getContainer returns the container interface @return the interface of the container */ IRelationControlInterface* getContainer() const { return m_pParentDialog; } }; } #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_RELATIONCONTROL_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ption> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-10clang-tidy modernize-loop-convert scaddins to sdextNoel Grandin
Change-Id: I63ccc56df1a1de8bc443abb95e520246c457912f Reviewed-on: https://gerrit.libreoffice.org/24798 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I8aec30601862feaeb99e3ce01adf61665688fa9a
2015-09-30Fix typosAndrea Gelmini
Change-Id: I3ea8a90f0ec917b4e26335fcd31a5f7e0888589e Reviewed-on: https://gerrit.libreoffice.org/18972 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann
Change-Id: I82330271362a428b2850d0f561770d35de1ee6b0
2015-06-02loplugin:loopvartoosmallNoel Grandin
Change-Id: Ib4def3435eab4625645c5afe3b151f9f430564ac
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara
Change-Id: I82f668ef72e916d2ff11df5cda2a02653999f66f
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77