LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - optload.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 7 0.0 %
Date: 2014-04-11 Functions: 0 9 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_UI_INC_OPTLOAD_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_INC_OPTLOAD_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : 
      24             : #include <vcl/group.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/layout.hxx>
      27             : #include <vcl/lstbox.hxx>
      28             : #include <vcl/field.hxx>
      29             : #include <svx/strarray.hxx>
      30             : #include <sfx2/basedlgs.hxx>
      31             : #include <svx/checklbx.hxx>
      32             : #include <swlbox.hxx>
      33             : #include <caption.hxx>
      34             : 
      35             : class SwFldMgr;
      36             : class SvTreeListEntry;
      37             : class SwWrtShell;
      38             : 
      39           0 : class SwLoadOptPage : public SfxTabPage
      40             : {
      41             : private:
      42             :     RadioButton* m_pAlwaysRB;
      43             :     RadioButton* m_pRequestRB;
      44             :     RadioButton* m_pNeverRB;
      45             : 
      46             :     CheckBox*    m_pAutoUpdateFields;
      47             :     CheckBox*    m_pAutoUpdateCharts;
      48             : 
      49             :     ListBox*     m_pMetricLB;
      50             :     FixedText*   m_pTabFT;
      51             :     MetricField* m_pTabMF;
      52             :     CheckBox*    m_pUseSquaredPageMode;
      53             :     CheckBox*    m_pUseCharUnit;
      54             :     Edit*        m_pWordCountED;
      55             : 
      56             :     SwWrtShell*  m_pWrtShell;
      57             :     sal_uInt16   m_nLastTab;
      58             :     sal_Int32    m_nOldLinkMode;
      59             : 
      60             :     DECL_LINK(MetricHdl, void *);
      61             : 
      62             : public:
      63             :     SwLoadOptPage(Window* pParent, const SfxItemSet& rSet);
      64             : 
      65             :     static SfxTabPage*  Create( Window* pParent,
      66             :                                 const SfxItemSet& rAttrSet);
      67             : 
      68             :     virtual bool        FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
      69             :     virtual void        Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
      70             : };
      71             : 
      72           0 : class SwCaptionOptDlg : public SfxSingleTabDialog
      73             : {
      74             : public:
      75             :     SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet);
      76             : };
      77             : 
      78           0 : class CaptionComboBox : public SwComboBox
      79             : {
      80             : protected:
      81             :     virtual void KeyInput( const KeyEvent& ) SAL_OVERRIDE;
      82             : 
      83             : public:
      84           0 :     CaptionComboBox(Window* pParent, WinBits nStyle)
      85           0 :         : SwComboBox(pParent, nStyle)
      86           0 :     {}
      87             : };
      88             : 
      89           0 : class SwCaptionPreview : public Window
      90             : {
      91             : private:
      92             :     OUString maText;
      93             :     Point    maDrawPos;
      94             : public:
      95             :     SwCaptionPreview( Window* pParent, WinBits nStyle );
      96             :     void Init();
      97             :     void SetPreviewText( const OUString& rText );
      98             :     virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE;
      99             :     virtual Size GetOptimalSize() const SAL_OVERRIDE;
     100             : };
     101             : 
     102             : class SwCaptionOptPage : public SfxTabPage
     103             : {
     104             : private:
     105             :     SvxCheckListBox*  m_pCheckLB;
     106             :     ListBox*          m_pLbCaptionOrder;
     107             :     SwCaptionPreview* m_pPreview;
     108             : 
     109             :     VclContainer*     m_pSettingsGroup;
     110             :     CaptionComboBox*  m_pCategoryBox;
     111             :     FixedText*        m_pFormatText;
     112             :     ListBox*          m_pFormatBox;
     113             :     //#i61007# order of captions
     114             :     FixedText*        m_pNumberingSeparatorFT;
     115             :     Edit*             m_pNumberingSeparatorED;
     116             :     FixedText*        m_pTextText;
     117             :     Edit*             m_pTextEdit;
     118             :     ListBox*          m_pPosBox;
     119             : 
     120             :     VclContainer*     m_pNumCapt;
     121             :     ListBox*          m_pLbLevel;
     122             :     Edit*             m_pEdDelim;
     123             : 
     124             :     VclContainer*     m_pCategory;
     125             :     ListBox*          m_pCharStyleLB;
     126             :     CheckBox*         m_pApplyBorderCB;
     127             : 
     128             :     OUString        m_sSWTable;
     129             :     OUString        m_sSWFrame;
     130             :     OUString        m_sSWGraphic;
     131             :     OUString        m_sOLE;
     132             : 
     133             :     OUString        m_sIllustration;
     134             :     OUString        m_sTable;
     135             :     OUString        m_sText;
     136             :     OUString        m_sDrawing;
     137             : 
     138             :     OUString        m_sBegin;
     139             :     OUString        m_sEnd;
     140             :     OUString        m_sAbove;
     141             :     OUString        m_sBelow;
     142             : 
     143             :     OUString        m_sNone;
     144             : 
     145             :     SwFldMgr        *pMgr;
     146             :     bool            bHTMLMode;
     147             : 
     148             :     DECL_LINK(SelectHdl, void *);
     149             :     DECL_LINK(ModifyHdl, void * = 0);
     150             :     DECL_LINK( OrderHdl, ListBox* );
     151             :     DECL_LINK(ShowEntryHdl, void *);
     152             :     DECL_LINK(SaveEntryHdl, void *);
     153             : 
     154             :     void                DelUserData();
     155             :     void                SetOptions( const sal_uLong nPos,
     156             :                                     const SwCapObjType eType,
     157             :                                     const SvGlobalName *pOleId = 0);
     158             :     void                SaveEntry( SvTreeListEntry* pEntry );
     159             :     void                DrawSample();
     160             : 
     161             : public:
     162             :                         SwCaptionOptPage( Window* pParent,
     163             :                                          const SfxItemSet& rSet );
     164             :                         virtual ~SwCaptionOptPage();
     165             : 
     166             :     static SfxTabPage*  Create( Window* pParent,
     167             :                                 const SfxItemSet& rAttrSet);
     168             : 
     169             :     virtual bool        FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
     170             :     virtual void        Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
     171             : };
     172             : 
     173             : #endif
     174             : 
     175             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10