/* -*- 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_VCL_INC_SALOBJ_HXX #define INCLUDED_VCL_INC_SALOBJ_HXX #include #include #include "salwtype.hxx" struct SystemEnvData; class VCL_PLUGIN_PUBLIC SalObject { void* m_pInst; SALOBJECTPROC m_pCallback; bool m_bMouseTransparent:1, m_bEraseBackground:1; public: SalObject() : m_pInst( nullptr ), m_pCallback( nullptr ), m_bMouseTransparent( false ), m_bEraseBackground( true ) {} virtual ~SalObject(); virtual void ResetClipRegion() = 0; virtual void BeginSetClipRegion( sal_uLong nRects ) = 0; virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0; virtual void EndSetClipRegion() = 0; virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight ) = 0; virtual void Show( bool bVisible ) = 0; virtual void Enable( bool /* nEnable */ ) {} // overridden by WinSalObject virtual void GrabFocus() {} virtual void SetForwardKey( bool /* bEnable */ ) {} virtual void SetLeaveEnterBackgrounds(const css::uno::Sequence& /*rLeaveArgs*/, const css::uno::Sequence& /*rEnterArgs*/) {} virtual const SystemEnvData* GetSystemData() const = 0; void SetCallback( void* pInst, SALOBJECTPROC pProc ) { m_pInst = pInst; m_pCallback = pProc; } void CallCallback( SalObjEvent nEvent ) { if (m_pCallback) m_pCallback( m_pInst, nEvent ); } void SetMouseTransparent( bool bMouseTransparent ) { m_bMouseTransparent = bMouseTransparent; } bool IsMouseTransparent() { return m_bMouseTransparent; } void EnableEraseBackground( bool bEnable ) { m_bEraseBackground = bEnable; } bool IsEraseBackgroundEnabled() { return m_bEraseBackground; } }; #endif // INCLUDED_VCL_INC_SALOBJ_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ stro/collabora/cp-5.1'>distro/collabora/cp-5.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
-02-02
AgeCommit message (Expand)Author
2018-10-17oox: add an environment variable to bypass the SmartArt warningMiklos Vajna
shell: MSVC: pragma warning: make more specific, remove obsoleteMike Kaganski
2017-10-27loplugin:includeform: shell (Windows)Stephan Bergmann
2017-09-29Drop check for Windows versions we don't supportMike Kaganski
2017-09-28shell: use Unicode on WindowsMike Kaganski
2017-09-22Windows: avoid dependence on UNICODE define; prefer W functionsMike Kaganski
2017-09-18Use even more WIN32_LEAN_AND_MEANMike Kaganski
2017-09-16Use more WIN32_LEAN_AND_MEANMike Kaganski
2017-04-11tdf#103058: allow optional registration for MS ProgIDsMike Kaganski
2017-04-04loplugin:redundantinline (clang-cl)Stephan Bergmann
2017-03-14Various clang-cl/loplugin warningsStephan Bergmann
2017-03-10CosmeticsTor Lillqvist
2017-03-10tdf#103058: Implement OpenDocuments ActiveX controlMike Kaganski
2017-02-10Remove MinGW supportStephan Bergmann
2017-01-11loplugin:externvar (clang-cl)Stephan Bergmann
2016-10-15clang-cl loplugin: shellStephan Bergmann
2016-09-09loplugin:constantparam in sfx2Noel Grandin
2016-08-25new loplugin: countusersofdefaultparamsNoel Grandin
2016-06-22Work towards tdf#72606 EasyHack _tstring/TCHAR eliminationskswales
2016-04-19WIP tdf#89609 Ignore subsecond precision in iso8601Muhammet Kara
2016-04-07Drop pointless "internal" directory level for already internal include filesTor Lillqvist
2016-03-31use SAL_N_ELEMENTS more widelyNoel Grandin
2016-02-16use consistent #define checks for the Windows platformNoel Grandin
2016-02-09Remove excess newlinesChris Sherlock
2016-02-05Fix typosAndrea Gelmini
2015-11-23loplugin:unusedfields in shell/Noel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-08-04shell,sfx2,sd: inline some use-once typedefsNoel Grandin
2015-07-23inline a handful of use-once #definesNoel Grandin
2015-07-06loplugin:unusedmethods sax,shell,stoc,basegfxNoel Grandin
2015-07-04Fix typosAndrea Gelmini
2015-07-03Revert "loplugin:unusedmethods sax,shell,stoc,basegfx"Michael Stahl
2015-07-03loplugin:unusedmethods sax,shell,stoc,basegfxNoel Grandin
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2015-04-01Typo: wheter->whetherJulien Nabet
2015-03-09V801: Decreased performanceCaolán McNamara
2015-03-04V813: Decreased performanceCaolán McNamara
2015-02-07loplugin:deletedspecialStephan Bergmann
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin
2014-10-02shell (Windows): std::auto_ptr -> std::unique_ptrStephan Bergmann
2014-08-08match va_start() with va_end()Takeshi Abe
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
2014-02-26Remove visual noise from shellAlexander Wilms
2013-12-20Spelling correction: s/retrive/retrieve/Tor Lillqvist
2013-11-06include <stack>Takeshi Abe
2013-11-06Drop unnecessary #includesTakeshi Abe
2013-11-05fixincludeguards.sh: shellThomas Arnhold