/* -*- 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 . */ #include #include struct Conversation { }; struct DdeDataImp { }; DdeData::DdeData() { } DdeData::DdeData( SAL_UNUSED_PARAMETER const OUString& ) { } DdeData::DdeData(const DdeData&) { } DdeData::DdeData(DdeData&&) noexcept { } DdeData::DdeData( const void*, tools::Long, SotClipboardFormatId) { } DdeData::~DdeData() { } void DdeData::SetFormat( SAL_UNUSED_PARAMETER SotClipboardFormatId ) { } SotClipboardFormatId DdeData::GetFormat() const { return SotClipboardFormatId::NONE; } DdeData& DdeData::operator=(const DdeData&) { return *this; } DdeData& DdeData::operator=(DdeData&&) noexcept { return *this; } tools::Long DdeData::getSize() const { return 0; } void const * DdeData::getData() const { return nullptr; } struct DdeImp {}; tools::Long DdeConnection::GetError() const { return 0; } DdeConnection::DdeConnection( SAL_UNUSED_PARAMETER const OUString&, SAL_UNUSED_PARAMETER const OUString& ) : pService(nullptr) , pTopic(nullptr) { } DdeConnection::~DdeConnection() { } OUString DdeConnection::GetServiceName() const { return OUString(); } OUString DdeConnection::GetTopicName() const { return OUString(); } DdeTransaction::DdeTransaction( DdeConnection& rConnection, SAL_UNUSED_PARAMETER const OUString&, tools::Long ) : rDde(rConnection) , pName(nullptr) , nType(0) , nId(0) , nTime(0) , bBusy(false) { } void DdeTransaction::Execute() { } void DdeTransaction::Done( SAL_UNUSED_PARAMETER bool ) { } void DdeTransaction::Data( SAL_UNUSED_PARAMETER const DdeData* ) { } DdeTransaction::~DdeTransaction() { } DdeRequest::DdeRequest( DdeConnection& rConnection, const OUString& rString, tools::Long lLong ) : DdeTransaction( rConnection, rString, lLong ) { } DdeExecute::DdeExecute( DdeConnection& rConnection, const OUString& rString, tools::Long lLong ) : DdeTransaction( rConnection, rString, lLong ) { } DdePoke::DdePoke( DdeConnection& rConnection, const OUString& rString, const DdeData&, tools::Long lLong ) : DdeTransaction( rConnection, rString, lLong ) { } DdeTopic::DdeTopic( SAL_UNUSED_PARAMETER const OUString& ) : pName(nullptr) { } DdeTopic::~DdeTopic() { } void DdeTopic::InsertItem( SAL_UNUSED_PARAMETER DdeItem* ) { } DdeItem* DdeTopic::AddItem( const DdeItem& rDdeItem ) { return const_cast(&rDdeItem); } void DdeTopic::RemoveItem( SAL_UNUSED_PARAMETER const DdeItem& ) { } DdeData* DdeTopic::Get(SAL_UNUSED_PARAMETER SotClipboardFormatId) { return nullptr; } bool DdeTopic::MakeItem( SAL_UNUSED_PARAMETER const OUString& ) { return false; } bool DdeTopic::StartAdviseLoop() { return false; } bool DdeTopic::Execute( SAL_UNUSED_PARAMETER const OUString* ) { return false; } bool DdeTopic::Put( SAL_UNUSED_PARAMETER const DdeData* ) { return false; } OUString DdeTopic::GetName() const { return OUString(); } DdeService::DdeService( SAL_UNUSED_PARAMETER const OUString& ) : pSysTopic(nullptr) , pName(nullptr) , nStatus(0) { } OUString DdeService::Topics() { return OUString(); } OUString DdeService::Formats() { return OUString(); } OUString DdeService::SysItems() { return OUString(); } OUString DdeService::Status() { return OUString(); } DdeService::~DdeService() { } void DdeService::AddFormat(SAL_UNUSED_PARAMETER SotClipboardFormatId) { } void DdeService::AddTopic( SAL_UNUSED_PARAMETER const DdeTopic& ) { } void DdeService::RemoveTopic( SAL_UNUSED_PARAMETER const DdeTopic& ) { } OUString DdeService::GetName() const { return OUString(); } DdeServices& DdeService::GetServices() { static DdeServices SINGLETON; return SINGLETON; } DdeItem::DdeItem( SAL_UNUSED_PARAMETER const OUString& ) : pName(nullptr) , pMyTopic(nullptr) , pImpData(nullptr) , nType(0) { } DdeItem::DdeItem( const DdeItem& ) : pName(nullptr) , pMyTopic(nullptr) , pImpData(nullptr) , nType(0) { } DdeItem::~DdeItem() { } void DdeItem::NotifyClient() { } DdeGetPutItem::DdeGetPutItem( const OUString& rStr ) : DdeItem( rStr ) { } DdeGetPutItem::DdeGetPutItem( const DdeItem& rItem ) : DdeItem( rItem ) { } DdeData* DdeGetPutItem::Get( SAL_UNUSED_PARAMETER SotClipboardFormatId ) { return nullptr; } bool DdeGetPutItem::Put( SAL_UNUSED_PARAMETER const DdeData* ) { return false; } void DdeGetPutItem::AdviseLoop( SAL_UNUSED_PARAMETER bool ) { } DdeLink::DdeLink( DdeConnection& rConnection, const OUString& rString, tools::Long l ) : DdeTransaction( rConnection, rString, l ) { } DdeLink::~DdeLink() { } void DdeLink::Notify() { } DdeHotLink::DdeHotLink( DdeConnection& rConnection, const OUString& rString ) : DdeLink( rConnection, rString, 0 ) { } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ora/viewer LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-28make quotes warning clearer for conditional format dialogPranam Lashkari
Change-Id: I70fcc98962c46be32352fad72d5717fa685b881e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175133 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit d3bc1970fa9bd7acf7a6d0a2e1dba756cfc70e86) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175618 Reviewed-by: Pranam Lashkari <lpranam@collabora.com> Tested-by: Jenkins
2024-10-26Fix wrong string ID's for the sensitivity reportRafael Lima
Change-Id: I4fe860e29eaf11601c633ff32c44d0c4e67b0958 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175605 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-10-09tdf#157519 Implement Sensitivity Report in LpSolve solverRafael Lima
This patch implements sensitivity analysis when using the LpSolve solver engine. It also adds the infrastructure needed for future implementations in other solver engines via the css::sheet::SensitivityReport struct. Change-Id: I74c2ed9c6201a0b2ffc29ef612d2b778d11a3bef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173642 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-09-27tdf#160062 Uno API to set solver settings at the sheet levelRafael Lima
This patch creates the API necessary to create solver models via macros, so that the model is visible in the Solver dialog, and the model is saved to the file. This patch also includes a comprehensive unit test in scsolverobj.cxx. Visit the bug ticket for a file with some examples of such macros. Change-Id: Ib9cfbbdaab8243cd6b901a2bcd99e46c27be97e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171769 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-09-18tdf#162760 Fix solver crashing with unset parametersRafael Lima
This patch fixes 2 related issues: 1) Solver engines may crash internally and we need to catch these exceptions and inform the user instead of letting Calc crash entirely. 2) When initializing solver settings, we only set the default values for the first engine; we need to set the defaults for all engines. Change-Id: Ia598f7c17c25b5d6277f2ce24d2f4d552f897fe0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172955 Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com> Tested-by: Jenkins
2024-08-23tdf#140394 - Manage names dialog: check if formula is a valid print rangeAndreas Heinisch
Change-Id: I65572967987fcc2ef0cdf840eb1ba042b4f298e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164434 Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> Tested-by: Jenkins
2024-07-28related tdf#115474: improve warning msg for slow autoformatThorsten Behrens
Perhaps this alerts users that they've unintentionally selected a very large range (Ctrl-A vs. Ctrl-End for selecting content)? Change-Id: I8d60cf6186d1faf94c58684cad2ead49381819d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170995 Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Tested-by: Jenkins
2024-06-18Add warning and progress to AutoFormatOliver Specht
Applying AutoFormat to large selections may take really long. A warning has been added to warn users. Additionally a progress is shown while AutoFormat is working. Change-Id: I74909a6243748ebfe0089406ebe947bb48eb93d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167950 Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Tested-by: Jenkins