LCOV - code coverage report
Current view: top level - starmath/inc - unomodel.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_STARMATH_INC_UNOMODEL_HXX
      20             : #define INCLUDED_STARMATH_INC_UNOMODEL_HXX
      21             : 
      22             : #include <com/sun/star/beans/XPropertySet.hpp>
      23             : #include <com/sun/star/beans/XMultiPropertySet.hpp>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <com/sun/star/view/XRenderable.hpp>
      26             : 
      27             : #include <sfx2/sfxbasemodel.hxx>
      28             : #include <comphelper/propertysethelper.hxx>
      29             : #include <vcl/print.hxx>
      30             : #include <oox/mathml/export.hxx>
      31             : #include <oox/mathml/import.hxx>
      32             : #include <memory>
      33             : 
      34             : 
      35             : #define PRTUIOPT_TITLE_ROW          "TitleRow"
      36             : #define PRTUIOPT_FORMULA_TEXT       "FormulaText"
      37             : #define PRTUIOPT_BORDER             "Border"
      38             : #define PRTUIOPT_PRINT_FORMAT       "PrintFormat"
      39             : #define PRTUIOPT_PRINT_SCALE        "PrintScale"
      40             : 
      41           0 : class SmPrintUIOptions : public vcl::PrinterOptionsHelper
      42             : {
      43             : public:
      44             :     SmPrintUIOptions();
      45             : };
      46             : 
      47             : 
      48             : 
      49             : 
      50             : 
      51             : class SmModel : public SfxBaseModel,
      52             :                 public comphelper::PropertySetHelper,
      53             :                 public com::sun::star::lang::XServiceInfo,
      54             :                 public com::sun::star::view::XRenderable,
      55             :                 public oox::FormulaExportBase,
      56             :                 public oox::FormulaImportBase
      57             : {
      58             :     std::unique_ptr<SmPrintUIOptions> m_pPrintUIOptions;
      59             : protected:
      60             :     virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues )
      61             :         throw (css::uno::RuntimeException, css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, std::exception) SAL_OVERRIDE;
      62             :     virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue )
      63             :         throw (css::uno::RuntimeException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException, std::exception) SAL_OVERRIDE;
      64             : public:
      65             :     SmModel( SfxObjectShell *pObjSh = 0 );
      66             :     virtual ~SmModel() throw ();
      67             : 
      68             :     //XInterface
      69             :     virtual     ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      70             :     virtual void SAL_CALL acquire(  ) throw() SAL_OVERRIDE;
      71             :     virtual void SAL_CALL release(  ) throw() SAL_OVERRIDE;
      72             : 
      73             :     //XTypeProvider
      74             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             : 
      76             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
      77             : 
      78             :     //XUnoTunnel
      79             :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             : 
      81             :     //XRenderable
      82             :     virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      83             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      84             :     virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             : 
      86             :     //XServiceInfo
      87             :     virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      88             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      89             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      90             : 
      91             :     virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xParent ) throw( ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      92             : 
      93             :     // oox::FormulaExportBase
      94             :     virtual void writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer, oox::core::OoxmlVersion version ) SAL_OVERRIDE;
      95             :     virtual void writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding) SAL_OVERRIDE;
      96             :     // oox::FormulaImportBase
      97             :     virtual void readFormulaOoxml( oox::formulaimport::XmlStream& stream ) SAL_OVERRIDE;
      98             :     virtual Size getFormulaSize() const SAL_OVERRIDE;
      99             : };
     100             : 
     101             : 
     102             : 
     103             : #endif
     104             : 
     105             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11