LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sw/source/ui/inc - optload.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2013-07-09 Functions: 0 7 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 _OPTLOAD_HXX
      20             : #define _OPTLOAD_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : 
      24             : #include <vcl/group.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/lstbox.hxx>
      27             : #include <vcl/field.hxx>
      28             : #include <svx/strarray.hxx>
      29             : #include <sfx2/basedlgs.hxx>
      30             : #include <svx/checklbx.hxx>
      31             : #include <swlbox.hxx>
      32             : #include <caption.hxx>
      33             : 
      34             : class SwFldMgr;
      35             : class SvTreeListEntry;
      36             : class SwWrtShell;
      37             : 
      38           0 : class SwLoadOptPage : public SfxTabPage
      39             : {
      40             : private:
      41             :     RadioButton* m_pAlwaysRB;
      42             :     RadioButton* m_pRequestRB;
      43             :     RadioButton* m_pNeverRB;
      44             : 
      45             :     CheckBox*    m_pAutoUpdateFields;
      46             :     CheckBox*    m_pAutoUpdateCharts;
      47             : 
      48             :     ListBox*     m_pMetricLB;
      49             :     FixedText*   m_pTabFT;
      50             :     MetricField* m_pTabMF;
      51             :     CheckBox*    m_pUseSquaredPageMode;
      52             :     CheckBox*    m_pUseCharUnit;
      53             :     Edit*        m_pWordCountED;
      54             : 
      55             :     SwWrtShell*  m_pWrtShell;
      56             :     sal_uInt16   m_nLastTab;
      57             :     sal_Int32    m_nOldLinkMode;
      58             : 
      59             :     DECL_LINK(MetricHdl, void *);
      60             : 
      61             : public:
      62             :     SwLoadOptPage(Window* pParent, const SfxItemSet& rSet);
      63             : 
      64             :     static SfxTabPage*  Create( Window* pParent,
      65             :                                 const SfxItemSet& rAttrSet);
      66             : 
      67             :     virtual sal_Bool    FillItemSet( SfxItemSet& rSet );
      68             :     virtual void        Reset( const SfxItemSet& rSet );
      69             : };
      70             : 
      71             : class SwCaptionOptDlg : public SfxNoLayoutSingleTabDialog
      72             : {
      73             : public:
      74             :      SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet);
      75             :     ~SwCaptionOptDlg();
      76             : };
      77             : 
      78           0 : class CaptionComboBox : public SwComboBox
      79             : {
      80             : protected:
      81             :     virtual void KeyInput( const KeyEvent& );
      82             : 
      83             : public:
      84           0 :     CaptionComboBox( Window* pParent, const ResId& rResId)
      85           0 :         : SwComboBox(pParent, rResId)
      86           0 :     {}
      87             : };
      88             : 
      89           0 : class SwCaptionPreview : public Window
      90             : {
      91             : private:
      92             :     String maText;
      93             :     Point maDrawPos;
      94             : public:
      95             :     SwCaptionPreview( Window* pParent );
      96             :     SwCaptionPreview( Window* pParent, const ResId& rResId );
      97             :     void Init();
      98             :     void SetPreviewText( const String& rText );
      99             :     virtual void Paint( const Rectangle& rRect );
     100             : };
     101             : 
     102             : class SwCaptionOptPage : public SfxTabPage
     103             : {
     104             : private:
     105             :     FixedText       aCheckFT;
     106             :     SvxCheckListBox aCheckLB;
     107             : 
     108             :     FixedText       aFtCaptionOrder;
     109             :     ListBox         aLbCaptionOrder;
     110             : 
     111             :     SwCaptionPreview    aPreview;
     112             : 
     113             :     FixedLine       aSettingsGroupFL;
     114             :     FixedText       aCategoryText;
     115             :     CaptionComboBox aCategoryBox;
     116             :     FixedText       aFormatText;
     117             :     ListBox         aFormatBox;
     118             :     //#i61007# order of captions
     119             :     FixedText       aNumberingSeparatorFT;
     120             :     Edit            aNumberingSeparatorED;
     121             :     FixedText       aTextText;
     122             :     Edit            aTextEdit;
     123             :     FixedText       aPosText;
     124             :     ListBox         aPosBox;
     125             : 
     126             :     FixedLine       aNumCaptFL;
     127             :     FixedText       aFtLevel;
     128             :     ListBox         aLbLevel;
     129             :     FixedText       aFtDelim;
     130             :     Edit            aEdDelim;
     131             : 
     132             :     FixedLine       aCategoryFL;
     133             :     FixedText       aCharStyleFT;
     134             :     ListBox         aCharStyleLB;
     135             :     CheckBox        aApplyBorderCB;
     136             : 
     137             :     String          sSWTable;
     138             :     String          sSWFrame;
     139             :     String          sSWGraphic;
     140             :     String          sOLE;
     141             : 
     142             :     String          sIllustration;
     143             :     String          sTable;
     144             :     String          sText;
     145             :     String          sDrawing;
     146             : 
     147             :     String          sBegin;
     148             :     String          sEnd;
     149             :     String          sAbove;
     150             :     String          sBelow;
     151             : 
     152             :     String          sNone;
     153             : 
     154             :     SwFldMgr        *pMgr;
     155             :     bool            bHTMLMode;
     156             : 
     157             :     DECL_LINK(SelectHdl, void *);
     158             :     DECL_LINK(ModifyHdl, void * = 0);
     159             :     DECL_LINK( OrderHdl, ListBox* );
     160             :     DECL_LINK(ShowEntryHdl, void *);
     161             :     DECL_LINK(SaveEntryHdl, void *);
     162             : 
     163             :     void                DelUserData();
     164             :     void                SetOptions( const sal_uInt16 nPos,
     165             :                                     const SwCapObjType eType,
     166             :                                     const SvGlobalName *pOleId = 0);
     167             :     void                SaveEntry( SvTreeListEntry* pEntry );
     168             :     void                DrawSample();
     169             : 
     170             : public:
     171             :                         SwCaptionOptPage( Window* pParent,
     172             :                                          const SfxItemSet& rSet );
     173             :                         ~SwCaptionOptPage();
     174             : 
     175             :     static SfxTabPage*  Create( Window* pParent,
     176             :                                 const SfxItemSet& rAttrSet);
     177             : 
     178             :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     179             :     virtual void        Reset( const SfxItemSet& rSet );
     180             : };
     181             : 
     182             : #endif
     183             : 
     184             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10