/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ScrollHelper.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-17 07:00:23 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. * * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2005 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library 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 for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * ************************************************************************/ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_dbaccess.hxx" #ifndef DBAUI_SCROLLHELPER_HXX #include "ScrollHelper.hxx" #endif #ifndef _TOOLS_DEBUG_HXX #include #endif #define LISTBOX_SCROLLING_AREA 12 namespace dbaui { DBG_NAME(OScrollHelper) // ----------------------------------------------------------------------------- OScrollHelper::OScrollHelper() { DBG_CTOR(OScrollHelper,NULL); } // ----------------------------------------------------------------------------- OScrollHelper::~OScrollHelper() { DBG_DTOR(OScrollHelper,NULL); } // ----------------------------------------------------------------------------- void OScrollHelper::scroll(const Point& _rPoint, const Size& _rOutputSize) { // Scrolling Areas Rectangle aScrollArea( Point(0, _rOutputSize.Height() - LISTBOX_SCROLLING_AREA), Size(_rOutputSize.Width(), LISTBOX_SCROLLING_AREA) ); Link aToCall; // if pointer in bottom area begin scroll if( aScrollArea.IsInside(_rPoint) ) aToCall = m_aUpScroll; else { aScrollArea.SetPos(Point(0,0)); // if pointer in top area begin scroll if( aScrollArea.IsInside(_rPoint) ) aToCall = m_aDownScroll; } if ( aToCall.IsSet() ) aToCall.Call( NULL ); } // ----------------------------------------------------------------------------- } // ----------------------------------------------------------------------------- lue='distro/collabora/co-24.04.13'>distro/collabora/co-24.04.13 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/weakobject.cxx
AgeCommit message (Expand)Author
2022-08-29ref-count SdrObjectNoel Grandin
2022-02-17Bump compiler plugins Clang baseline to 12.0.1Stephan Bergmann
2021-07-14new loplugin:weakobjectNoel Grandin
2020-07-10replace usage of whitelist with allowlistThorsten Behrens
2019-03-12make (some) clang plugins share the same RecursiveASTVisitorLuboš Luňák
2019-03-11change some clang plugins to FilteringPluginsLuboš Luňák
2018-02-02remove connectivity OSubComponentNoel Grandin
2017-11-07Clean away temporarily added using declarationsStephan Bergmann
2017-09-29Adapt loplugins to clang-cl's (implicit) -fdelayed-template-parsingStephan Bergmann
2017-02-01loplugin: use TypeCheck instead of getQualifiedNameAsStringNoel Grandin
2016-07-12Fix typo relase_ChildImpl -> release_ChildImplStephan Bergmann
2016-06-28More Clang 3.4 "(anonymous namespace)" fixesStephan Bergmann
2016-06-28Adapt to Clang 3.4 (in preparation of a buildbot on CentOS 7)Stephan Bergmann
2016-06-24Fix check for calls to OWeakObject::releaseStephan Bergmann
2016-06-24compilerplugins: add OWeakObject::release() override checkMichael Stahl