LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/vba - vbalisthelper.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 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             :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4             :  *
       5             :  * The contents of this file are subject to the Mozilla Public License Version
       6             :  * 1.1 (the "License"); you may not use this file except in compliance with
       7             :  * the License. You may obtain a copy of the License at
       8             :  * http://www.mozilla.org/MPL/
       9             :  *
      10             :  * Software distributed under the License is distributed on an "AS IS" basis,
      11             :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12             :  * for the specific language governing rights and limitations under the
      13             :  * License.
      14             :  *
      15             :  * The Initial Developer of the Original Code is
      16             :  *       Novell Inc.
      17             :  * Portions created by the Initial Developer are Copyright (C) 2010 the
      18             :  * Initial Developer. All Rights Reserved.
      19             :  *
      20             :  * Contributor(s): <pflin@novell.com>
      21             :  *
      22             :  * Alternatively, the contents of this file may be used under the terms of
      23             :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      24             :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      25             :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      26             :  * instead of those above.
      27             :  */
      28             : #ifndef SW_VBA_LISTHELPER_HXX
      29             : #define SW_VBA_LISTHELPER_HXX
      30             : 
      31             : #include <vbahelper/vbahelperinterface.hxx>
      32             : #include <com/sun/star/container/XIndexReplace.hpp>
      33             : #include <com/sun/star/container/XNameContainer.hpp>
      34             : #include <com/sun/star/text/XTextDocument.hpp>
      35             : #include <boost/shared_ptr.hpp>
      36             : 
      37             : 
      38             : class SwVbaListHelper;
      39             : typedef ::boost::shared_ptr< SwVbaListHelper > SwVbaListHelperRef;
      40             : 
      41           0 : class SwVbaListHelper
      42             : {
      43             : private:
      44             :     css::uno::Reference< css::text::XTextDocument > mxTextDocument;
      45             :     css::uno::Reference< css::container::XIndexReplace > mxNumberingRules;
      46             :     css::uno::Reference< css::container::XNameContainer > mxStyleFamily;
      47             :     css::uno::Reference< css::beans::XPropertySet > mxStyleProps;
      48             :     sal_Int32 mnGalleryType;
      49             :     sal_Int32 mnTemplateType;
      50             :     rtl::OUString msStyleName;
      51             : 
      52             :     void Init() throw( css::uno::RuntimeException );
      53             :     void CreateListTemplate() throw( css::uno::RuntimeException );
      54             :     void CreateBulletListTemplate() throw( css::uno::RuntimeException );
      55             :     void CreateNumberListTemplate() throw( css::uno::RuntimeException );
      56             :     void CreateOutlineNumberListTemplate() throw( css::uno::RuntimeException );
      57             :     void CreateOutlineNumberForType1() throw( css::uno::RuntimeException );
      58             :     void CreateOutlineNumberForType2() throw( css::uno::RuntimeException );
      59             :     void CreateOutlineNumberForType3() throw( css::uno::RuntimeException );
      60             :     void CreateOutlineNumberForType4() throw( css::uno::RuntimeException );
      61             :     void CreateOutlineNumberForType5() throw( css::uno::RuntimeException );
      62             :     void CreateOutlineNumberForType6() throw( css::uno::RuntimeException );
      63             :     void CreateOutlineNumberForType7() throw( css::uno::RuntimeException );
      64             : 
      65             : public:
      66             :     SwVbaListHelper( const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) throw( css::uno::RuntimeException );
      67             : 
      68           0 :     sal_Int32 getGalleryType() const { return mnGalleryType; }
      69           0 :     css::uno::Reference< css::container::XIndexReplace > getNumberingRules() const { return mxNumberingRules; }
      70             :     css::uno::Any getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const rtl::OUString& sName ) throw( css::uno::RuntimeException );
      71             :     void setPropertyValueWithNameAndLevel( sal_Int32 nLevel, const rtl::OUString& sName, const css::uno::Any& aValue ) throw( css::uno::RuntimeException );
      72             : 
      73             : };
      74             : 
      75             : #endif//SW_VBA_LISTHELPER_HXX
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10