LCOV - code coverage report
Current view: top level - cui/source/inc - srchxtra.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 4 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_CUI_SOURCE_INC_SRCHXTRA_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
      21             : 
      22             : #include <vcl/field.hxx>
      23             : #include <svtools/ctrltool.hxx>
      24             : #include <sfx2/tabdlg.hxx>
      25             : 
      26             : #include <svx/checklbx.hxx>
      27             : #include <svx/srchdlg.hxx>
      28             : 
      29             : class SvxSearchFormatDialog : public SfxTabDialog
      30             : {
      31             : public:
      32             :     SvxSearchFormatDialog( vcl::Window* pParent, const SfxItemSet& rSet );
      33             :     virtual ~SvxSearchFormatDialog();
      34             :     virtual void dispose() SAL_OVERRIDE;
      35             : 
      36             : protected:
      37             :     virtual void    PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) SAL_OVERRIDE;
      38             : 
      39             : private:
      40             :     FontList*  m_pFontList;
      41             :     sal_uInt16 m_nNamePageId;
      42             :     sal_uInt16 m_nParaStdPageId;
      43             :     sal_uInt16 m_nParaAlignPageId;
      44             :     sal_uInt16 m_nBackPageId;
      45             : };
      46             : 
      47             : // class SvxSearchFormatDialog -------------------------------------------
      48             : 
      49             : class SvxSearchAttributeDialog : public ModalDialog
      50             : {
      51             : public:
      52             :     SvxSearchAttributeDialog( vcl::Window* pParent, SearchAttrItemList& rLst,
      53             :                               const sal_uInt16* pWhRanges );
      54             :     virtual ~SvxSearchAttributeDialog();
      55             :     virtual void dispose() SAL_OVERRIDE;
      56             : 
      57             : private:
      58             :     VclPtr<SvxCheckListBox>    m_pAttrLB;
      59             :     VclPtr<OKButton>           m_pOKBtn;
      60             : 
      61             :     SearchAttrItemList& rList;
      62             : 
      63             :     DECL_LINK(OKHdl, void *);
      64             : };
      65             : 
      66             : // class SvxSearchSimilarityDialog ---------------------------------------
      67             : 
      68             : class SvxSearchSimilarityDialog : public ModalDialog
      69             : {
      70             : private:
      71             :     VclPtr<NumericField>        m_pOtherFld;
      72             :     VclPtr<NumericField>        m_pLongerFld;
      73             :     VclPtr<NumericField>        m_pShorterFld;
      74             :     VclPtr<CheckBox>            m_pRelaxBox;
      75             : 
      76             : public:
      77             :     SvxSearchSimilarityDialog(  vcl::Window* pParent,
      78             :                                 bool bRelax,
      79             :                                 sal_uInt16 nOther,
      80             :                                 sal_uInt16 nShorter,
      81             :                                 sal_uInt16 nLonger );
      82             :     virtual ~SvxSearchSimilarityDialog();
      83             :     virtual void dispose() SAL_OVERRIDE;
      84             : 
      85           0 :     sal_uInt16  GetOther()      { return (sal_uInt16)m_pOtherFld->GetValue(); }
      86           0 :     sal_uInt16  GetShorter()    { return (sal_uInt16)m_pShorterFld->GetValue(); }
      87           0 :     sal_uInt16  GetLonger()     { return (sal_uInt16)m_pLongerFld->GetValue(); }
      88           0 :     bool    IsRelaxed()     { return m_pRelaxBox->IsChecked(); }
      89             : };
      90             : 
      91             : 
      92             : #endif
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11