LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - outline.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 5 0.0 %
Date: 2014-11-03 Functions: 0 5 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_SW_SOURCE_UIBASE_INC_OUTLINE_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_INC_OUTLINE_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : 
      24             : #include <vcl/menu.hxx>
      25             : 
      26             : #include <vcl/button.hxx>
      27             : #include <svtools/stdctrl.hxx>
      28             : 
      29             : #include <vcl/fixed.hxx>
      30             : 
      31             : #include <vcl/lstbox.hxx>
      32             : 
      33             : #include <vcl/edit.hxx>
      34             : 
      35             : #include <vcl/field.hxx>
      36             : 
      37             : #include "swtypes.hxx"
      38             : #include <numprevw.hxx>
      39             : #include <numberingtypelistbox.hxx>
      40             : #include <rtl/ustring.hxx>
      41             : 
      42             : class SwWrtShell;
      43             : class SwNumRule;
      44             : class SwChapterNumRules;
      45             : 
      46             : class SwOutlineTabDialog : public SfxTabDialog
      47             : {
      48             :     static     sal_uInt16    nNumLevel;
      49             : 
      50             :     sal_uInt16 m_nNumPosId;
      51             :     sal_uInt16 m_nOutlineId;
      52             : 
      53             :     OUString            aCollNames[MAXLEVEL];
      54             : 
      55             :     SwWrtShell&         rWrtSh;
      56             :     SwNumRule*          pNumRule;
      57             :     SwChapterNumRules*  pChapterNumRules;
      58             : 
      59             :     bool                bModified : 1;
      60             : 
      61             :     protected:
      62             :     DECL_LINK(CancelHdl, void *);
      63             :     DECL_LINK( FormHdl, Button * );
      64             :     DECL_LINK( MenuSelectHdl, Menu * );
      65             : 
      66             :         virtual void    PageCreated(sal_uInt16 nPageId, SfxTabPage& rPage) SAL_OVERRIDE;
      67             :         virtual short   Ok() SAL_OVERRIDE;
      68             : 
      69             :     public:
      70             :         SwOutlineTabDialog(vcl::Window* pParent,
      71             :                     const SfxItemSet* pSwItemSet,
      72             :                     SwWrtShell &);
      73             :         virtual ~SwOutlineTabDialog();
      74             : 
      75           0 :     SwNumRule*          GetNumRule() {return pNumRule;}
      76             :     sal_uInt16              GetLevel(const OUString &rFmtName) const;
      77           0 :     OUString*           GetCollNames() {return aCollNames;}
      78             : 
      79           0 :     static sal_uInt16       GetActNumLevel() {return nNumLevel;}
      80           0 :     static void         SetActNumLevel(sal_uInt16 nSet) {nNumLevel = nSet;}
      81             : };
      82             : 
      83             : class SwOutlineSettingsTabPage : public SfxTabPage
      84             : {
      85             :     ListBox*        m_pLevelLB;
      86             : 
      87             :     ListBox*        m_pCollBox;
      88             :     SwNumberingTypeListBox* m_pNumberBox;
      89             :     ListBox*        m_pCharFmtLB;
      90             :     FixedText*      m_pAllLevelFT;
      91             :     NumericField*   m_pAllLevelNF;
      92             :     Edit*           m_pPrefixED;
      93             :     Edit*           m_pSuffixED;
      94             :     NumericField*   m_pStartEdit;
      95             :     NumberingPreview* m_pPreviewWIN;
      96             : 
      97             :     OUString            aNoFmtName;
      98             :     OUString            aSaveCollNames[MAXLEVEL];
      99             :     SwWrtShell*         pSh;
     100             :     SwNumRule*          pNumRule;
     101             :     OUString*           pCollNames;
     102             :     sal_uInt16              nActLevel;
     103             : 
     104             :     DECL_LINK( LevelHdl, ListBox * );
     105             :     DECL_LINK( ToggleComplete, NumericField * );
     106             :     DECL_LINK( CollSelect, ListBox * );
     107             :     DECL_LINK(CollSelectGetFocus, void *);
     108             :     DECL_LINK( NumberSelect, SwNumberingTypeListBox * );
     109             :     DECL_LINK(DelimModify, void *);
     110             :     DECL_LINK( StartModified, NumericField * );
     111             :     DECL_LINK(CharFmtHdl, void *);
     112             : 
     113             :     void    Update();
     114             : 
     115           0 :     void    SetModified(){m_pPreviewWIN->Invalidate();}
     116             :     void    CheckForStartValue_Impl(sal_uInt16 nNumberingType);
     117             : 
     118             :     using SfxTabPage::ActivatePage;
     119             :     using SfxTabPage::DeactivatePage;
     120             : 
     121             : public:
     122             :     SwOutlineSettingsTabPage(vcl::Window* pParent, const SfxItemSet& rSet);
     123             :     virtual ~SwOutlineSettingsTabPage();
     124             : 
     125             :     void SetWrtShell(SwWrtShell* pShell);
     126             : 
     127             :     virtual void        ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
     128             :     virtual int         DeactivatePage(SfxItemSet *pSet) SAL_OVERRIDE;
     129             : 
     130             :     virtual bool        FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
     131             :     virtual void        Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
     132             :     static SfxTabPage*  Create( vcl::Window* pParent,
     133             :                                 const SfxItemSet* rAttrSet);
     134             : };
     135             : 
     136             : #endif
     137             : 
     138             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10