LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - outline.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 5 0.0 %
Date: 2015-06-13 12:38:46 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             :     virtual void        dispose() SAL_OVERRIDE;
      75             : 
      76           0 :     SwNumRule*          GetNumRule() {return pNumRule;}
      77             :     sal_uInt16          GetLevel(const OUString &rFormatName) const;
      78           0 :     OUString*           GetCollNames() {return aCollNames;}
      79             : 
      80           0 :     static sal_uInt16   GetActNumLevel() {return nNumLevel;}
      81           0 :     static void         SetActNumLevel(sal_uInt16 nSet) {nNumLevel = nSet;}
      82             : };
      83             : 
      84             : class SwOutlineSettingsTabPage : public SfxTabPage
      85             : {
      86             :     VclPtr<ListBox>        m_pLevelLB;
      87             : 
      88             :     VclPtr<ListBox>        m_pCollBox;
      89             :     VclPtr<SwNumberingTypeListBox> m_pNumberBox;
      90             :     VclPtr<ListBox>        m_pCharFormatLB;
      91             :     VclPtr<FixedText>      m_pAllLevelFT;
      92             :     VclPtr<NumericField>   m_pAllLevelNF;
      93             :     VclPtr<Edit>           m_pPrefixED;
      94             :     VclPtr<Edit>           m_pSuffixED;
      95             :     VclPtr<NumericField>   m_pStartEdit;
      96             :     VclPtr<NumberingPreview> m_pPreviewWIN;
      97             : 
      98             :     OUString            aNoFormatName;
      99             :     OUString            aSaveCollNames[MAXLEVEL];
     100             :     SwWrtShell*         pSh;
     101             :     SwNumRule*          pNumRule;
     102             :     OUString*           pCollNames;
     103             :     sal_uInt16              nActLevel;
     104             : 
     105             :     DECL_LINK( LevelHdl, ListBox * );
     106             :     DECL_LINK( ToggleComplete, NumericField * );
     107             :     DECL_LINK( CollSelect, ListBox * );
     108             :     DECL_LINK(CollSelectGetFocus, void *);
     109             :     DECL_LINK( NumberSelect, SwNumberingTypeListBox * );
     110             :     DECL_LINK(DelimModify, void *);
     111             :     DECL_LINK( StartModified, NumericField * );
     112             :     DECL_LINK(CharFormatHdl, void *);
     113             : 
     114             :     void    Update();
     115             : 
     116           0 :     void    SetModified(){m_pPreviewWIN->Invalidate();}
     117             :     void    CheckForStartValue_Impl(sal_uInt16 nNumberingType);
     118             : 
     119             :     using SfxTabPage::ActivatePage;
     120             :     using SfxTabPage::DeactivatePage;
     121             : 
     122             : public:
     123             :     SwOutlineSettingsTabPage(vcl::Window* pParent, const SfxItemSet& rSet);
     124             :     virtual ~SwOutlineSettingsTabPage();
     125             :     virtual void dispose() SAL_OVERRIDE;
     126             : 
     127             :     void SetWrtShell(SwWrtShell* pShell);
     128             : 
     129             :     virtual void        ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
     130             :     virtual sfxpg       DeactivatePage(SfxItemSet *pSet) SAL_OVERRIDE;
     131             : 
     132             :     virtual bool        FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
     133             :     virtual void        Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
     134             :     static VclPtr<SfxTabPage>  Create( vcl::Window* pParent,
     135             :                                        const SfxItemSet* rAttrSet);
     136             : };
     137             : 
     138             : #endif
     139             : 
     140             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11