LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/svx - numvset.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 10 0.0 %
Date: 2012-08-25 Functions: 0 7 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 8 0.0 %

           Branch data     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 _SVX_NUMVSET_HXX
      20                 :            : #define _SVX_NUMVSET_HXX
      21                 :            : 
      22                 :            : #include <svtools/valueset.hxx>
      23                 :            : #include <limits.h>
      24                 :            : #include <com/sun/star/uno/Reference.h>
      25                 :            : #include <com/sun/star/uno/Sequence.h>
      26                 :            : #include <com/sun/star/lang/Locale.hpp>
      27                 :            : #include "svx/svxdllapi.h"
      28                 :            : 
      29                 :            : namespace com{namespace sun{ namespace star{
      30                 :            :     namespace container{
      31                 :            :         class XIndexAccess;
      32                 :            :     }
      33                 :            :     namespace beans{
      34                 :            :         struct PropertyValue;
      35                 :            :     }
      36                 :            :     namespace text{
      37                 :            :         class XNumberingFormatter;
      38                 :            :     }
      39                 :            : }}}
      40                 :            : 
      41                 :            : class SvxBrushItem;
      42                 :            : class SvxNumRule;
      43                 :            : struct SvxBmpItemInfo
      44                 :            : {
      45                 :            :     SvxBrushItem*   pBrushItem;
      46                 :            :     sal_uInt16          nItemId;
      47                 :            : };
      48                 :            : 
      49                 :            : class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet
      50                 :            : {
      51                 :            :     Color           aLineColor;
      52                 :            :     sal_uInt16          nPageType;
      53                 :            :     sal_Bool            bHTMLMode;
      54                 :            :     Rectangle       aOrgRect;
      55                 :            :     VirtualDevice*  pVDev;
      56                 :            : 
      57                 :            :     com::sun::star::uno::Reference<com::sun::star::text::XNumberingFormatter> xFormatter;
      58                 :            :     com::sun::star::lang::Locale aLocale;
      59                 :            : 
      60                 :            :     com::sun::star::uno::Sequence<
      61                 :            :         com::sun::star::uno::Sequence<
      62                 :            :             com::sun::star::beans::PropertyValue> > aNumSettings;
      63                 :            : 
      64                 :            :     com::sun::star::uno::Sequence<
      65                 :            :         com::sun::star::uno::Reference<
      66                 :            :             com::sun::star::container::XIndexAccess> > aOutlineSettings;
      67                 :            :     public:
      68                 :            :         SvxNumValueSet( Window* pParent, const ResId& rResId, sal_uInt16 nType );
      69                 :            :         ~SvxNumValueSet();
      70                 :            : 
      71                 :            :     virtual void    UserDraw( const UserDrawEvent& rUDEvt );
      72                 :            : 
      73                 :            :     void            SetHTMLMode(sal_Bool bSet) {bHTMLMode = bSet;}
      74                 :            :     void            SetNumberingSettings(
      75                 :            :         const com::sun::star::uno::Sequence<
      76                 :            :             com::sun::star::uno::Sequence<
      77                 :            :                 com::sun::star::beans::PropertyValue> >& aNum,
      78                 :            :         com::sun::star::uno::Reference<com::sun::star::text::XNumberingFormatter>& xFormatter,
      79                 :            :         const com::sun::star::lang::Locale& rLocale );
      80                 :            : 
      81                 :            :     void            SetOutlineNumberingSettings(
      82                 :            :             com::sun::star::uno::Sequence<
      83                 :            :                 com::sun::star::uno::Reference<
      84                 :            :                     com::sun::star::container::XIndexAccess> >& rOutline,
      85                 :            :             com::sun::star::uno::Reference<com::sun::star::text::XNumberingFormatter>& xFormatter,
      86                 :            :             const com::sun::star::lang::Locale& rLocale);
      87                 :            : };
      88                 :            : 
      89                 :            : class SVX_DLLPUBLIC SvxBmpNumValueSet : public SvxNumValueSet
      90                 :            : {
      91                 :            :     String      sBullets;
      92                 :            :     Timer       aFormatTimer;
      93                 :            :     sal_Bool        bGrfNotFound;
      94                 :            : 
      95                 :            :     protected:
      96                 :            :         DECL_LINK(FormatHdl_Impl, void *);
      97                 :            : 
      98                 :          0 :     void            SetGrfNotFound(sal_Bool bSet) {bGrfNotFound = bSet;}
      99                 :            :     sal_Bool            IsGrfNotFound()const {return bGrfNotFound;}
     100                 :            : 
     101                 :            :     Timer&          GetFormatTimer() {return aFormatTimer;}
     102                 :            : 
     103                 :            :     public:
     104                 :            :         SvxBmpNumValueSet( Window* pParent, const ResId& rResId);
     105                 :            :         ~SvxBmpNumValueSet();
     106                 :            : 
     107                 :            :     virtual void    UserDraw( const UserDrawEvent& rUDEvt );
     108                 :            : 
     109                 :            : };
     110                 :            : 
     111 [ #  # ][ #  # ]:          0 : class SvxNumberingPreview : public Window
     112                 :            : {
     113                 :            :     const SvxNumRule*   pActNum;
     114                 :            :     Font                aStdFont;
     115                 :            :     long                nPageWidth;
     116                 :            :     const String*       pOutlineNames;
     117                 :            :     sal_Bool                bPosition;
     118                 :            :     sal_uInt16              nActLevel;
     119                 :            : 
     120                 :            :     protected:
     121                 :            :         virtual void        Paint( const Rectangle& rRect );
     122                 :            : 
     123                 :            :     public:
     124                 :          0 :         SvxNumberingPreview(Window* pParent, const ResId& rResId ) :
     125                 :            :             Window(pParent, rResId),
     126         [ #  # ]:          0 :             pActNum(0),nPageWidth(0), pOutlineNames(0), bPosition(sal_False), nActLevel(USHRT_MAX)
     127         [ #  # ]:          0 :             { SetBorderStyle( WINDOW_BORDER_MONO ); }
     128                 :            : 
     129                 :          0 :         void    SetNumRule(const SvxNumRule* pNum)
     130                 :          0 :                     {pActNum = pNum; Invalidate();};
     131                 :            :         void    SetPageWidth(long nPgWidth)
     132                 :            :                                 {nPageWidth = nPgWidth;}
     133                 :            :         void    SetOutlineNames(const String* pNames)
     134                 :            :                         {pOutlineNames = pNames;}
     135                 :          0 :         void    SetPositionMode()
     136                 :          0 :                         { bPosition = sal_True;}
     137                 :          0 :         void    SetLevel(sal_uInt16 nSet) {nActLevel = nSet;}
     138                 :            : 
     139                 :            : };
     140                 :            : 
     141                 :            : 
     142                 :            : #endif
     143                 :            : 
     144                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10