LCOV - code coverage report
Current view: top level - include/svx - fontworkgallery.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 2 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             : 
      20             : 
      21             : #ifndef INCLUDED_SVX_FONTWORKGALLERY_HXX
      22             : #define INCLUDED_SVX_FONTWORKGALLERY_HXX
      23             : 
      24             : #include <svx/svxdllapi.h>
      25             : 
      26             : #include <vcl/fixed.hxx>
      27             : #include <vcl/button.hxx>
      28             : #include <vcl/dialog.hxx>
      29             : #include <vcl/field.hxx>
      30             : 
      31             : #include <svtools/valueset.hxx>
      32             : 
      33             : #include <sfx2/tbxctrl.hxx>
      34             : 
      35             : #include <vector>
      36             : 
      37             : class FmFormModel;
      38             : class SdrView;
      39             : namespace vcl { class Window; }
      40             : class SdrTextObj;
      41             : class SdrObject;
      42             : class SdrModel;
      43             : 
      44             : class SfxBindings;
      45             : 
      46             : 
      47             : 
      48             : namespace svx
      49             : {
      50             : 
      51             : class SVX_DLLPUBLIC FontWorkShapeTypeControl : public SfxToolBoxControl
      52             : {
      53             : public:
      54             :     SFX_DECL_TOOLBOX_CONTROL();
      55             :     FontWorkShapeTypeControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      56             :     virtual ~FontWorkShapeTypeControl();
      57             : 
      58             :     virtual void                Select(sal_uInt16 nSelectModifier) SAL_OVERRIDE;
      59             :     virtual SfxPopupWindowType  GetPopupWindowType() const SAL_OVERRIDE;
      60             :     virtual SfxPopupWindow*     CreatePopupWindow() SAL_OVERRIDE;
      61             : };
      62             : 
      63             : 
      64             : 
      65           0 : class FontworkCharacterSpacingDialog : public ModalDialog
      66             : {
      67             :     MetricField* m_pMtrScale;
      68             : 
      69             : public:
      70             :     FontworkCharacterSpacingDialog( vcl::Window* pParent, sal_Int32 nScale );
      71             : 
      72             :     sal_Int32 getScale() const;
      73             : };
      74             : 
      75             : 
      76             : class SVX_DLLPUBLIC FontWorkGalleryDialog : public ModalDialog
      77             : {
      78             :     ValueSet*           mpCtlFavorites;
      79             :     OKButton*           mpOKButton;
      80             : 
      81             :     sal_uInt16          mnThemeId;
      82             : 
      83             :     SdrView*            mpSdrView;
      84             :     FmFormModel*        mpModel;
      85             : 
      86             :     DECL_LINK( DoubleClickFavoriteHdl, void * );
      87             :     DECL_LINK( ClickOKHdl, void * );
      88             :     DECL_LINK( ClickTextDirectionHdl, ImageButton * );
      89             : 
      90             :     SdrObject**         mppSdrObject;
      91             :     SdrModel*           mpDestModel;
      92             : 
      93             :     void            initFavorites(sal_uInt16 nThemeId);
      94             :     void            insertSelectedFontwork();
      95             :     void            fillFavorites(sal_uInt16 nThemeId);
      96             : 
      97             :     std::vector< BitmapEx> maFavoritesHorizontal;
      98             : 
      99             : public:
     100             :     FontWorkGalleryDialog( SdrView* pView, vcl::Window* pParent, sal_uInt16 nSID );
     101             :     virtual ~FontWorkGalleryDialog();
     102             : 
     103             :     // SJ: if the SdrObject** is set, the SdrObject is not inserted into the page when executing the dialog
     104             :     void SetSdrObjectRef( SdrObject**, SdrModel* pModel );
     105             : };
     106             : 
     107             : }
     108             : 
     109             : #endif
     110             : 
     111             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10