LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/vba - vbastyle.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 Functions: 0 3 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 SW_VBA_STYLE_HXX
      20             : #define SW_VBA_STYLE_HXX
      21             : #include <ooo/vba/word/XStyle.hpp>
      22             : #include <vbahelper/vbahelperinterface.hxx>
      23             : #include <com/sun/star/beans/XPropertySet.hpp>
      24             : #include <com/sun/star/frame/XModel.hpp>
      25             : #include <com/sun/star/container/XNameContainer.hpp>
      26             : #include <com/sun/star/style/XStyle.hpp>
      27             : #include <ooo/vba/word/XFont.hpp>
      28             : #include <ooo/vba/word/XListTemplate.hpp>
      29             : 
      30             : 
      31             : typedef InheritedHelperInterfaceImpl1< ooo::vba::word::XStyle > SwVbaStyle_BASE;
      32             : 
      33             : class SwVbaStyle : public SwVbaStyle_BASE
      34             : {
      35             : private:
      36             :     css::uno::Reference< css::frame::XModel > mxModel;
      37             :     css::uno::Reference< css::beans::XPropertySet > mxStyleProps;
      38             :     css::uno::Reference< css::style::XStyle > mxStyle;
      39             : public:
      40             :     SwVbaStyle( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet ) throw ( css::script::BasicErrorException, css::uno::RuntimeException );
      41           0 :     virtual ~SwVbaStyle(){}
      42             : 
      43             :     static void setStyle( const css::uno::Reference< css::beans::XPropertySet >& xParaProps, const css::uno::Any& xStyle ) throw (css::uno::RuntimeException);
      44             :     static sal_Int32 getLanguageID( const css::uno::Reference< css::beans::XPropertySet >& xTCProps ) throw (css::uno::RuntimeException);
      45             :     static void setLanguageID( const css::uno::Reference< css::beans::XPropertySet >& xTCProps, sal_Int32 _languageid ) throw (css::uno::RuntimeException);
      46             : 
      47             :     // Attributes
      48             :     virtual rtl::OUString SAL_CALL getName() throw (css::uno::RuntimeException);
      49             :     virtual void SAL_CALL setName( const rtl::OUString& Name ) throw (css::uno::RuntimeException);
      50             :     virtual ::sal_Int32 SAL_CALL getLanguageID( ) throw (css::uno::RuntimeException);
      51             :     virtual void SAL_CALL setLanguageID( ::sal_Int32 _languageid ) throw (css::uno::RuntimeException);
      52             :     virtual ::sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException);
      53             :     virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException);
      54             :     virtual ::rtl::OUString SAL_CALL getNameLocal() throw (css::uno::RuntimeException);
      55             :     virtual void SAL_CALL setNameLocal( const ::rtl::OUString& _namelocal ) throw (css::uno::RuntimeException);
      56             :     virtual css::uno::Reference< ::ooo::vba::word::XParagraphFormat > SAL_CALL getParagraphFormat() throw (css::uno::RuntimeException);
      57             :     virtual ::sal_Bool SAL_CALL getAutomaticallyUpdate() throw (css::uno::RuntimeException);
      58             :     virtual void SAL_CALL setAutomaticallyUpdate( ::sal_Bool _automaticallyupdate ) throw (css::uno::RuntimeException);
      59             :     virtual css::uno::Any SAL_CALL getBaseStyle() throw (css::uno::RuntimeException);
      60             :     virtual void SAL_CALL setBaseStyle( const css::uno::Any& _basestyle ) throw (css::uno::RuntimeException);
      61             :     virtual css::uno::Any SAL_CALL getNextParagraphStyle() throw (css::uno::RuntimeException);
      62             :     virtual void SAL_CALL setNextParagraphStyle( const css::uno::Any& _nextparagraphstyle ) throw (css::uno::RuntimeException);
      63             :     virtual ::sal_Int32 SAL_CALL getListLevelNumber() throw (css::uno::RuntimeException);
      64             : 
      65             :     //XDefaultProperty
      66           0 :     virtual ::rtl::OUString SAL_CALL getDefaultPropertyName(  ) throw (css::uno::RuntimeException) { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Name")); }
      67             : 
      68             :     // XHelperInterface
      69             :     virtual rtl::OUString getServiceImplName();
      70             :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      71             : };
      72             : 
      73             : #endif //SW_VBA_AXIS_HXX
      74             : 
      75             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10