/* -*- 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_SC_INC_TOKENUNO_HXX #define INCLUDED_SC_INC_TOKENUNO_HXX #include #include #include #include #include #include #include #include #include #include #include "address.hxx" #include "compiler.hxx" class ScTokenArray; class ScDocShell; class ScTokenConversion { public: static SC_DLLPUBLIC bool ConvertToTokenArray( ScDocument& rDoc, ScTokenArray& rTokenArray, const css::uno::Sequence< css::sheet::FormulaToken >& rSequence ); static SC_DLLPUBLIC bool ConvertToTokenSequence( const ScDocument& rDoc, css::uno::Sequence< css::sheet::FormulaToken >& rSequence, const ScTokenArray& rTokenArray ); }; class ScFormulaParserObj : public ::cppu::WeakImplHelper< css::sheet::XFormulaParser, css::beans::XPropertySet, css::lang::XServiceInfo >, public SfxListener { private: css::uno::Sequence< const css::sheet::FormulaOpCodeMapEntry > maOpCodeMapping; css::uno::Sequence maExternalLinks; ScCompiler::OpCodeMapPtr mxOpCodeMap; ScDocShell* mpDocShell; sal_Int16 mnConv; bool mbEnglish; bool mbIgnoreSpaces; bool mbCompileFAP; void SetCompilerFlags( ScCompiler& rCompiler ) const; public: ScFormulaParserObj(ScDocShell* pDocSh); virtual ~ScFormulaParserObj() override; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; // XFormulaParser virtual css::uno::Sequence< css::sheet::FormulaToken > SAL_CALL parseFormula( const OUString& aFormula, const css::table::CellAddress& rReferencePos ) override; virtual OUString SAL_CALL printFormula( const css::uno::Sequence< css::sheet::FormulaToken >& aTokens, const css::table::CellAddress& rReferencePos ) override; // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override; virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override; virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override; virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override; virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override; virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; // XServiceInfo virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; class ScFormulaOpCodeMapperObj : public formula::FormulaOpCodeMapperObj { public: ScFormulaOpCodeMapperObj(::std::unique_ptr && _pCompiler); }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ v-5.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2014-06-17improve the inlinesimplememberfunctions clang pluginNoel Grandin
2014-06-05various: remove SAL_THROW macroNoel Grandin
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin
2014-04-30coverity#708727 Uninitialized pointer fieldCaolán McNamara
2014-01-23coverity#1158416 Uninitialized pointer fieldCaolán McNamara
2013-12-06Zip .ui translations per UIConfig target.Matúš Kukan
2013-11-11xmlreader: include <> for external includesNorbert Thiebaud
2013-06-24fdo#43460 shell,vcl,xmlreader: use isEmpty()Jelle van der Waa
2013-06-03re-base on ALv2 code. Includes:Michael Meeks
2013-05-16Some string literal clean upStephan Bergmann
2013-05-06cleanup whitespaces due to RTL_CONSTASCII_USTRINGPARAM removalPhilipp Riemer
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
2013-04-24gbuild: drop uses of removed packagesDavid Tardon
2013-04-23execute move of global headersBjoern Michaelsen
2013-04-22re-base on ALv2 code.Michael Meeks
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2013-04-04remove HAVE_SFINAE_ANONYMOUS_BROKENLuboš Luňák
2013-03-20use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks
2013-02-28remove all d.lstMichael Stahl
2013-02-25xmlreader does not depend on any offapi .idl filesStephan Bergmann
2013-02-19I want HAVE_SFINAE_ANONYMOUS_BROKEN here rather than RTL_FAST_STRINGCaolán McNamara
2013-02-19reuse the ConstCharArrayDetector in SpanCaolán McNamara
2013-02-19add equals(OString const &text) to SpanChr. Rossmanith
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl
2013-01-21Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()Jean-Noël Rouvignac
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens
2012-10-27remove xmlreader from string now I don't need it anymoreCaolán McNamara
2012-10-17allow XmlReader to parse a stringCaolán McNamara
2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl
2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl
2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud