LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - optload.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 7 0.0 %
Date: 2014-11-03 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_UIBASE_INC_OPTLOAD_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_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             :     CheckBox*        m_pShowStandardizedPageCount;
      56             :     NumericField*    m_pStandardizedPageSizeNF;
      57             : 
      58             :     SwWrtShell*      m_pWrtShell;
      59             :     sal_uInt16       m_nLastTab;
      60             :     sal_Int32        m_nOldLinkMode;
      61             : 
      62             :     DECL_LINK(MetricHdl, void *);
      63             :     DECL_LINK(StandardizedPageCountCheckHdl, void *);
      64             : 
      65             : public:
      66             :     SwLoadOptPage(vcl::Window* pParent, const SfxItemSet& rSet);
      67             : 
      68             :     static SfxTabPage*  Create( vcl::Window* pParent,
      69             :                                 const SfxItemSet* rAttrSet);
      70             : 
      71             :     virtual bool        FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
      72             :     virtual void        Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
      73             : };
      74             : 
      75           0 : class SwCaptionOptDlg : public SfxSingleTabDialog
      76             : {
      77             : public:
      78             :     SwCaptionOptDlg(vcl::Window* pParent, const SfxItemSet& rSet);
      79             : };
      80             : 
      81           0 : class CaptionComboBox : public SwComboBox
      82             : {
      83             : protected:
      84             :     virtual void KeyInput( const KeyEvent& ) SAL_OVERRIDE;
      85             : 
      86             : public:
      87           0 :     CaptionComboBox(vcl::Window* pParent, WinBits nStyle)
      88           0 :         : SwComboBox(pParent, nStyle)
      89           0 :     {}
      90             : };
      91             : 
      92           0 : class SwCaptionPreview : public vcl::Window
      93             : {
      94             : private:
      95             :     OUString maText;
      96             :     Point    maDrawPos;
      97             : public:
      98             :     SwCaptionPreview( vcl::Window* pParent, WinBits nStyle );
      99             :     void Init();
     100             :     void SetPreviewText( const OUString& rText );
     101             :     virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE;
     102             :     virtual Size GetOptimalSize() const SAL_OVERRIDE;
     103             : };
     104             : 
     105             : class SwCaptionOptPage : public SfxTabPage
     106             : {
     107             : private:
     108             :     SvxCheckListBox*  m_pCheckLB;
     109             :     ListBox*          m_pLbCaptionOrder;
     110             :     SwCaptionPreview* m_pPreview;
     111             : 
     112             :     VclContainer*     m_pSettingsGroup;
     113             :     CaptionComboBox*  m_pCategoryBox;
     114             :     FixedText*        m_pFormatText;
     115             :     ListBox*          m_pFormatBox;
     116             :     //#i61007# order of captions
     117             :     FixedText*        m_pNumberingSeparatorFT;
     118             :     Edit*             m_pNumberingSeparatorED;
     119             :     FixedText*        m_pTextText;
     120             :     Edit*             m_pTextEdit;
     121             :     ListBox*          m_pPosBox;
     122             : 
     123             :     VclContainer*     m_pNumCapt;
     124             :     ListBox*          m_pLbLevel;
     125             :     Edit*             m_pEdDelim;
     126             : 
     127             :     VclContainer*     m_pCategory;
     128             :     ListBox*          m_pCharStyleLB;
     129             :     CheckBox*         m_pApplyBorderCB;
     130             : 
     131             :     OUString        m_sSWTable;
     132             :     OUString        m_sSWFrame;
     133             :     OUString        m_sSWGraphic;
     134             :     OUString        m_sOLE;
     135             : 
     136             :     OUString        m_sIllustration;
     137             :     OUString        m_sTable;
     138             :     OUString        m_sText;
     139             :     OUString        m_sDrawing;
     140             : 
     141             :     OUString        m_sBegin;
     142             :     OUString        m_sEnd;
     143             :     OUString        m_sAbove;
     144             :     OUString        m_sBelow;
     145             : 
     146             :     OUString        m_sNone;
     147             : 
     148             :     SwFldMgr        *pMgr;
     149             :     bool            bHTMLMode;
     150             : 
     151             :     DECL_LINK(SelectHdl, void *);
     152             :     DECL_LINK(ModifyHdl, void * = 0);
     153             :     DECL_LINK( OrderHdl, ListBox* );
     154             :     DECL_LINK(ShowEntryHdl, void *);
     155             :     DECL_LINK(SaveEntryHdl, void *);
     156             : 
     157             :     void                DelUserData();
     158             :     void                SetOptions( const sal_uLong nPos,
     159             :                                     const SwCapObjType eType,
     160             :                                     const SvGlobalName *pOleId = 0);
     161             :     void                SaveEntry( SvTreeListEntry* pEntry );
     162             :     void                DrawSample();
     163             : 
     164             : public:
     165             :                         SwCaptionOptPage( vcl::Window* pParent,
     166             :                                          const SfxItemSet& rSet );
     167             :                         virtual ~SwCaptionOptPage();
     168             : 
     169             :     static SfxTabPage*  Create( vcl::Window* pParent,
     170             :                                 const SfxItemSet* rAttrSet);
     171             : 
     172             :     virtual bool        FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
     173             :     virtual void        Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
     174             : };
     175             : 
     176             : #endif
     177             : 
     178             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10