LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/inc - cption.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-12-27 Functions: 0 3 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 _CPTION_HXX
      20             : #define _CPTION_HXX
      21             : 
      22             : #include <svx/stddlg.hxx>
      23             : 
      24             : #include <vcl/fixed.hxx>
      25             : 
      26             : #include <vcl/lstbox.hxx>
      27             : 
      28             : #include <vcl/edit.hxx>
      29             : 
      30             : #include <vcl/group.hxx>
      31             : 
      32             : #include <vcl/button.hxx>
      33             : #include <actctrl.hxx>
      34             : 
      35             : 
      36             : #include <com/sun/star/container/XEnumerationAccess.hpp>
      37             : #include <com/sun/star/container/XHierarchicalNameAccess.hpp>
      38             : #include <com/sun/star/container/XNameAccess.hpp>
      39             : #include <com/sun/star/container/XContentEnumerationAccess.hpp>
      40             : #include <com/sun/star/container/XEnumeration.hpp>
      41             : #include <com/sun/star/container/XElementAccess.hpp>
      42             : #include <com/sun/star/container/XIndexAccess.hpp>
      43             : #include <com/sun/star/container/XNamed.hpp>
      44             : 
      45             : class SwFldMgr;
      46             : class SwView;
      47             : 
      48             : #include <wrtsh.hxx>
      49             : #include "optload.hxx"
      50             : #include "swlbox.hxx"
      51             : 
      52           0 : class CategoryBox : public ComboBox
      53             : {
      54             : public:
      55           0 :     CategoryBox( Window* pParent, WinBits nStyle = 0 )
      56           0 :         : ComboBox( pParent, nStyle )
      57           0 :     {}
      58             : 
      59             :     virtual long PreNotify( NotifyEvent& rNEvt );
      60             : };
      61             : 
      62             : 
      63             : class SwCaptionDialog : public SvxStandardDialog
      64             : {
      65             :     Edit*        m_pTextEdit;
      66             :     CategoryBox* m_pCategoryBox;
      67             :     FixedText*   m_pFormatText;
      68             :     ListBox*     m_pFormatBox;
      69             :     //#i61007# order of captions
      70             :     FixedText*   m_pNumberingSeparatorFT;
      71             :     Edit*        m_pNumberingSeparatorED;
      72             :     FixedText*   m_pSepText;
      73             :     Edit*        m_pSepEdit;
      74             :     FixedText*   m_pPosText;
      75             :     ListBox*     m_pPosBox;
      76             :     OKButton*    m_pOKButton;
      77             :     PushButton*  m_pAutoCaptionButton;
      78             :     PushButton*  m_pOptionButton;
      79             : 
      80             :     SwCaptionPreview* m_pPreview;
      81             : 
      82             :     OUString     m_sNone;
      83             : 
      84             :     SwView       &rView; // search per active, avoid ::com::sun::star::sdbcx::View
      85             :     SwFldMgr     *pMgr;      // pointer to save the include
      86             :     SelectionType eType;
      87             : 
      88             :     String       sCharacterStyle;
      89             :     String       sObjectName;
      90             :     bool         bCopyAttributes;
      91             :     bool        bOrderNumberingFirst; //#i61007# order of captions
      92             : 
      93             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >    xNameAccess;
      94             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed >         xNamed;
      95             : 
      96             :     DECL_LINK(SelectHdl, void *);
      97             :     DECL_LINK(ModifyHdl, void *);
      98             :     DECL_LINK(OptionHdl, Button *);
      99             :     DECL_LINK(CaptionHdl, void *);
     100             : 
     101             :     virtual void Apply();
     102             : 
     103             :     void    DrawSample();
     104             :     void    CheckButtonWidth();
     105             :     void    ApplyCaptionOrder(); //#i61007# order of captions
     106             : 
     107             :     static String our_aSepTextSave; // Save caption separator text
     108             : public:
     109             :      SwCaptionDialog( Window *pParent, SwView &rV );
     110             :     ~SwCaptionDialog();
     111             : };
     112             : 
     113             : #endif
     114             : 
     115             : 
     116             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10