/* -*- 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; typedef void (*SALOBJECTPROC)( void* pInst, SalObjEvent nEvent ); 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_uInt32 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() const { return m_bMouseTransparent; } void EnableEraseBackground( bool bEnable ) { m_bEraseBackground = bEnable; } bool IsEraseBackgroundEnabled() const { return m_bEraseBackground; } }; #endif // INCLUDED_VCL_INC_SALOBJ_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -5.3'>distro/collabora/cp-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-01-24Add WordBasic.FileClose()Tor Lillqvist
2019-01-22Found documentation for WordBasic.ToolsOptionsView()Tor Lillqvist
2019-01-21Add a couple of known parameters to WordBasic.ToolsOptionsViewTor Lillqvist
2019-01-21Add a (dummy) WordBasic.FileSave()Tor Lillqvist
2019-01-21Add a dummy WordBasic.ToolsOptionsViewTor Lillqvist
2019-01-21Add Documents.OpenOld() method and Application.CustomizationContext propertyTor Lillqvist
2018-09-17oovbaapi: hack Excel / OptionButton compatibility into Button for now.Michael Meeks
2018-06-13Add a MailMerge class and object to the Writer VBA APITor Lillqvist
2018-06-12Add ExistingBookmark() to WordBasicTor Lillqvist
2018-06-12Add ooo.vba.word.XWordBasic.WindowName() methodTor Lillqvist
2018-06-12Add ooo.vba.word.XWindow.Caption propertyTor Lillqvist
2018-06-07Add ooo.vba.word.Application.StatusBar property for debug output from clientTor Lillqvist
2018-05-31Add WordBasic property and its FileOpen "command"Tor Lillqvist
2018-05-31Implement NewWorkbook and WorkbookOpen Automation callbacks in CalcTor Lillqvist
2018-05-31Add Author property to ooo::vba::excel::XWorkbook and implement itTor Lillqvist
2018-05-31Can simplify, our IDL compiler is more clever nowadaysTor Lillqvist
2018-05-31Initial steps to make also Calc usable from Automation clientsTor Lillqvist
2018-05-31Add ooo.vba.excel.XApplicationOutgoingTor Lillqvist
2018-05-31Can simplify, our IDL compiler is more clever nowadaysTor Lillqvist
2018-05-31Add window geometry attributes, too, to ooo.vba.word.XApplicationTor Lillqvist
2018-05-31Add Move() to ooo.vba.word.XApplicationTor Lillqvist
2018-05-31Add Resize() method to ooo.vba.word.XApplicationTor Lillqvist
2018-05-31Add a WindowState attribute to ooo.vba.word.XApplication, tooTor Lillqvist
2018-05-31Can simplify, our IDL compiler is more clever nowadaysTor Lillqvist
2018-05-31Add DocumentOpen and NewDocument to XApplicationOutgoing and emit suchTor Lillqvist
2018-05-31Add ooo::vba::word::XDocuments::OpenNoRepairDialog()Tor Lillqvist
2018-05-31Add ooo::vba::word::XApplicationOutgoing::DocumentBeforeClose() callbackTor Lillqvist
2018-05-31Prepare to handle out (and inout) parameters to event callbacksTor Lillqvist
2018-05-31Add Document.Close event generationTor Lillqvist
2018-05-31Add ooo.vba.word.XDocumentOutgoingTor Lillqvist
2018-05-30Work in progress related to invoking events in Automation clientsTor Lillqvist
2018-05-30Add a (dummy) ooo::vba::word::XApplication::ShowMe() implementationTor Lillqvist
2018-05-30Add Caption property to ooo::vba::XApplicationBaseTor Lillqvist
2018-05-30Whitespace fixTor Lillqvist
2018-04-12Fix typosAndrea Gelmini
2018-02-12Fix typosAndrea Gelmini
2017-11-13Fix typosAndrea Gelmini
2017-09-08oovbaapi: create XOval and XLine shape typesTamas Bunth
2017-08-17Fix typosAndrea Gelmini
2017-07-25fix some "deffer" spellingNoel Grandin
2017-07-14implement Application.FileDialog attributeTamas Bunth
2017-06-30oovbaapi: add Borders.TintAndShade PropertyTamas Bunth
2017-06-24oovbaapi: add Application.OperatingSystem propertyTamas Bunth
2017-06-08oovbaapi: add Interior.PatternTintAndShade Property (Excel)Miklos Vajna
2017-06-08oovbaapi: add Interior.TintAndShade Property (Excel)Miklos Vajna
2017-06-08oovbaapi: add XlThemeColor Enumeration (Excel)Miklos Vajna
2017-05-03remove empty commentsNoel Grandin