LCOV - code coverage report
Current view: top level - cui/source/inc - backgrnd.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 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_BACKGRND_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_BACKGRND_HXX
      21             : 
      22             : #include <vcl/group.hxx>
      23             : #include <svtools/stdctrl.hxx>
      24             : #include <vcl/graph.hxx>
      25             : #include <svx/SvxColorValueSet.hxx>
      26             : #include <svx/dlgctrl.hxx>
      27             : #include <editeng/brushitem.hxx>
      28             : 
      29             : class BackgroundPreviewImpl;
      30             : class SvxOpenGraphicDialog;
      31             : struct SvxBackgroundTable_Impl;
      32             : struct SvxBackgroundPara_Impl;
      33             : struct SvxBackgroundPage_Impl;
      34             : class SvxBrushItem;
      35             : 
      36             : /** class SvxBackgroundTabPage --------------------------------------------
      37             : 
      38             :     [Description]
      39             :     With this TabPage a Brush (e. g. for a frame's background color)
      40             :     can be set.
      41             :     [Items]
      42             :     <SvxBrushItem>:     <SID_ATTR_BRUSH>;
      43             : */
      44             : 
      45             : class SvxBackgroundTabPage : public SvxTabPage
      46             : {
      47             :     using TabPage::DeactivatePage;
      48             :     friend class VclPtr<SvxBackgroundTabPage>;
      49             :     static const sal_uInt16 pPageRanges[];
      50             : public:
      51             :     static VclPtr<SfxTabPage>  Create( vcl::Window* pParent, const SfxItemSet* rAttrSet );
      52             :     // returns the area of the which-values
      53           0 :     static const sal_uInt16* GetRanges() { return pPageRanges; }
      54             : 
      55             :     virtual bool        FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
      56             :     virtual void        Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
      57             :     virtual void        FillUserData() SAL_OVERRIDE;
      58             :     virtual void        PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) SAL_OVERRIDE;
      59             : 
      60             :     /// Shift-ListBox activation
      61             :     void                ShowSelector();
      62             :     /// for the Writer (cells/rows/tables)
      63             :     void                ShowTblControl();
      64             :     /// for the Writer (paragraph/characters)
      65             :     void                ShowParaControl(bool bCharOnly = false);
      66             : 
      67             :     void                EnableTransparency(bool bColor, bool bGraphic);
      68             :     virtual void        PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE;
      69             : protected:
      70             :     virtual sfxpg       DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
      71             : 
      72             : private:
      73             :     SvxBackgroundTabPage( vcl::Window* pParent, const SfxItemSet& rCoreSet );
      74             :     virtual ~SvxBackgroundTabPage();
      75             :     virtual void dispose() SAL_OVERRIDE;
      76             : 
      77             :     VclPtr<VclContainer>           m_pAsGrid;
      78             :     VclPtr<FixedText>              m_pSelectTxt;
      79             :     VclPtr<ListBox>                m_pLbSelect;
      80             :     VclPtr<FixedText>              m_pTblDesc;
      81             :     VclPtr<ListBox>                m_pTblLBox;
      82             :     VclPtr<ListBox>                m_pParaLBox;
      83             : 
      84             :     VclPtr<VclFrame>               m_pBackGroundColorFrame;
      85             :     VclPtr<SvxColorValueSet>       m_pBackgroundColorSet;
      86             :     VclPtr<BackgroundPreviewImpl>  m_pPreviewWin1;
      87             : 
      88             :     VclPtr<FixedText>              m_pColTransFT;///<color transparency
      89             :     VclPtr<MetricField>            m_pColTransMF;
      90             :     VclPtr<CheckBox>               m_pBtnPreview;
      91             : 
      92             :     // Background Bitmap ----------------------------------
      93             :     VclPtr<VclContainer>           m_pBitmapContainer;
      94             :     VclPtr<VclContainer>           m_pFileFrame;
      95             :     VclPtr<PushButton>             m_pBtnBrowse;
      96             :     VclPtr<CheckBox>               m_pBtnLink;
      97             :     VclPtr<FixedText>              m_pFtUnlinked;
      98             :     VclPtr<FixedText>              m_pFtFile;
      99             : 
     100             :     VclPtr<VclContainer>           m_pTypeFrame;
     101             :     VclPtr<RadioButton>            m_pBtnPosition;
     102             :     VclPtr<RadioButton>            m_pBtnArea;
     103             :     VclPtr<RadioButton>            m_pBtnTile;
     104             :     VclPtr<SvxRectCtl>             m_pWndPosition;
     105             : 
     106             :     VclPtr<VclContainer>           m_pGraphTransFrame;///<transparency of graphics
     107             :     VclPtr<MetricField>            m_pGraphTransMF;
     108             : 
     109             :     VclPtr<BackgroundPreviewImpl>  m_pPreviewWin2;
     110             : 
     111             :     // DDListBox for Writer -------------------------------
     112             : 
     113             :     Color       aBgdColor;
     114             :     sal_uInt16      nHtmlMode;
     115             :     bool        bAllowShowSelector  : 1;
     116             :     bool        bIsGraphicValid     : 1;
     117             :     bool        bLinkOnly           : 1;
     118             :     bool        bColTransparency    : 1;
     119             :     bool        bGraphTransparency  : 1;
     120             :     Graphic     aBgdGraphic;
     121             :     OUString    aBgdGraphicPath;
     122             :     OUString    aBgdGraphicFilter;
     123             : 
     124             :     SvxBackgroundPage_Impl* pPageImpl;
     125             :     SvxOpenGraphicDialog* pImportDlg;
     126             : 
     127             :     SvxBackgroundTable_Impl*    pTableBck_Impl;///< Items for Sw-Table must be corrected
     128             :     SvxBackgroundPara_Impl* pParaBck_Impl;///< also for the paragraph style
     129             : 
     130             :     void                FillColorValueSets_Impl();
     131             :     void                ShowColorUI_Impl();
     132             :     void                HideColorUI_Impl();
     133             :     void                ShowBitmapUI_Impl();
     134             :     void                HideBitmapUI_Impl();
     135             :     bool                LoadLinkedGraphic_Impl();
     136             :     void                RaiseLoadError_Impl();
     137             :     void                SetGraphicPosition_Impl( SvxGraphicPosition ePos );
     138             :     SvxGraphicPosition  GetGraphicPosition_Impl();
     139             :     void                FillControls_Impl(const SvxBrushItem& rBgdAttr,
     140             :                                             const OUString& rUserData);
     141             :     bool                FillItemSetWithWallpaperItem( SfxItemSet& rCoreSet, sal_uInt16 nSlot);
     142             :     void                ResetFromWallpaperItem( const SfxItemSet& rSet );
     143             : 
     144             :     DECL_LINK_TYPED( LoadIdleHdl_Impl, Idle*, void );
     145             :     DECL_LINK(SelectHdl_Impl, void *);
     146             :     DECL_LINK(BrowseHdl_Impl, void *);
     147             :     DECL_LINK( RadioClickHdl_Impl, RadioButton* );
     148             :     DECL_LINK( FileClickHdl_Impl, CheckBox* );
     149             :     DECL_LINK(BackgroundColorHdl_Impl, void *);
     150             :     DECL_LINK( TblDestinationHdl_Impl, ListBox* );
     151             :     DECL_LINK( ParaDestinationHdl_Impl, ListBox* );
     152             : };
     153             : 
     154             : #endif // INCLUDED_CUI_SOURCE_INC_BACKGRND_HXX
     155             : 
     156             : 
     157             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11