LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - cption.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 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 INCLUDED_SW_SOURCE_UIBASE_INC_CPTION_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_INC_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             : #include <com/sun/star/container/XEnumerationAccess.hpp>
      36             : #include <com/sun/star/container/XHierarchicalNameAccess.hpp>
      37             : #include <com/sun/star/container/XNameAccess.hpp>
      38             : #include <com/sun/star/container/XContentEnumerationAccess.hpp>
      39             : #include <com/sun/star/container/XEnumeration.hpp>
      40             : #include <com/sun/star/container/XElementAccess.hpp>
      41             : #include <com/sun/star/container/XIndexAccess.hpp>
      42             : #include <com/sun/star/container/XNamed.hpp>
      43             : 
      44             : class SwFieldMgr;
      45             : class SwView;
      46             : 
      47             : #include <wrtsh.hxx>
      48             : #include "optload.hxx"
      49             : #include "swlbox.hxx"
      50             : 
      51           0 : class TextFilterAutoConvert : public TextFilter
      52             : {
      53             : private:
      54             :     OUString m_sLastGoodText;
      55             :     OUString m_sNone;
      56             : public:
      57           0 :     TextFilterAutoConvert(const OUString &rNone)
      58           0 :         : m_sNone(rNone)
      59             :     {
      60           0 :     }
      61             :     virtual OUString filter(const OUString &rText) SAL_OVERRIDE;
      62             : };
      63             : 
      64             : class SwCaptionDialog : public SvxStandardDialog
      65             : {
      66             :     VclPtr<Edit>        m_pTextEdit;
      67             :     VclPtr<ComboBox>    m_pCategoryBox;
      68             :     OUString     m_sNone;
      69             :     TextFilterAutoConvert m_aTextFilter;
      70             :     VclPtr<FixedText>   m_pFormatText;
      71             :     VclPtr<ListBox>     m_pFormatBox;
      72             :     //#i61007# order of captions
      73             :     VclPtr<FixedText>   m_pNumberingSeparatorFT;
      74             :     VclPtr<Edit>        m_pNumberingSeparatorED;
      75             :     VclPtr<FixedText>   m_pSepText;
      76             :     VclPtr<Edit>        m_pSepEdit;
      77             :     VclPtr<FixedText>   m_pPosText;
      78             :     VclPtr<ListBox>     m_pPosBox;
      79             :     VclPtr<OKButton>    m_pOKButton;
      80             :     VclPtr<PushButton>  m_pAutoCaptionButton;
      81             :     VclPtr<PushButton>  m_pOptionButton;
      82             : 
      83             :     VclPtr<SwCaptionPreview> m_pPreview;
      84             : 
      85             :     SwView       &rView; // search per active, avoid View
      86             :     SwFieldMgr     *pMgr;      // pointer to save the include
      87             :     SelectionType eType;
      88             : 
      89             :     OUString     sCharacterStyle;
      90             :     OUString     sObjectName;
      91             :     bool         bCopyAttributes;
      92             :     bool        bOrderNumberingFirst; //#i61007# order of captions
      93             : 
      94             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >    xNameAccess;
      95             :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed >         xNamed;
      96             : 
      97             :     DECL_LINK(SelectHdl, void *);
      98             :     DECL_LINK(ModifyHdl, void *);
      99             :     DECL_LINK(OptionHdl, Button *);
     100             :     DECL_LINK(CaptionHdl, void *);
     101             : 
     102             :     virtual void Apply() SAL_OVERRIDE;
     103             : 
     104             :     void    DrawSample();
     105             :     void    CheckButtonWidth();
     106             :     void    ApplyCaptionOrder(); //#i61007# order of captions
     107             : 
     108             :     static OUString our_aSepTextSave; // Save caption separator text
     109             : public:
     110             :      SwCaptionDialog( vcl::Window *pParent, SwView &rV );
     111             :     virtual ~SwCaptionDialog();
     112             :     virtual void dispose() SAL_OVERRIDE;
     113             : };
     114             : 
     115             : #endif
     116             : 
     117             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11