LCOV - code coverage report
Current view: top level - chart2/source/controller/dialogs - tp_LegendPosition.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-08-25 Functions: 0 6 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 52 0.0 %

           Branch data     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                 :            : #include "tp_LegendPosition.hxx"
      21                 :            : #include "ResId.hxx"
      22                 :            : #include "TabPages.hrc"
      23                 :            : #include "res_LegendPosition.hxx"
      24                 :            : #include "chartview/ChartSfxItemIds.hxx"
      25                 :            : #include "NoWarningThisInCTOR.hxx"
      26                 :            : #include <svx/chrtitem.hxx>
      27                 :            : #include <editeng/eeitem.hxx>
      28                 :            : #include <editeng/frmdiritem.hxx>
      29                 :            : 
      30                 :            : //.............................................................................
      31                 :            : namespace chart
      32                 :            : {
      33                 :            : //.............................................................................
      34                 :            : 
      35                 :          0 : SchLegendPosTabPage::SchLegendPosTabPage(Window* pWindow,
      36                 :            :                                          const SfxItemSet& rInAttrs)
      37                 :            :     : SfxTabPage( pWindow, SchResId(TP_LEGEND_POS), rInAttrs )
      38                 :            :     , aGrpLegend( this, SchResId(GRP_LEGEND) )
      39         [ #  # ]:          0 :     , m_apLegendPositionResources( new LegendPositionResources(this) )
      40                 :            :     , m_aFlTextOrient( this, SchResId( FL_LEGEND_TEXTORIENT ) )
      41                 :            :     , m_aFtTextDirection( this, SchResId( FT_LEGEND_TEXTDIR ) )
      42 [ #  # ][ #  # ]:          0 :     , m_aLbTextDirection( this, SchResId( LB_LEGEND_TEXTDIR ), &m_aFlTextOrient, &m_aFtTextDirection )
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
      43                 :            : {
      44         [ #  # ]:          0 :     m_apLegendPositionResources->SetAccessibleRelationMemberOf(&aGrpLegend);
      45         [ #  # ]:          0 :     FreeResource();
      46                 :          0 : }
      47                 :            : 
      48 [ #  # ][ #  # ]:          0 : SchLegendPosTabPage::~SchLegendPosTabPage()
         [ #  # ][ #  # ]
                 [ #  # ]
      49                 :            : {
      50         [ #  # ]:          0 : }
      51                 :            : 
      52                 :          0 : SfxTabPage* SchLegendPosTabPage::Create(Window* pWindow,
      53                 :            :                                         const SfxItemSet& rOutAttrs)
      54                 :            : {
      55         [ #  # ]:          0 :     return new SchLegendPosTabPage(pWindow, rOutAttrs);
      56                 :            : }
      57                 :            : 
      58                 :          0 : sal_Bool SchLegendPosTabPage::FillItemSet(SfxItemSet& rOutAttrs)
      59                 :            : {
      60                 :          0 :     m_apLegendPositionResources->writeToItemSet(rOutAttrs);
      61                 :            : 
      62         [ #  # ]:          0 :     if( m_aLbTextDirection.GetSelectEntryCount() > 0 )
      63         [ #  # ]:          0 :         rOutAttrs.Put( SfxInt32Item( EE_PARA_WRITINGDIR, m_aLbTextDirection.GetSelectEntryValue() ) );
      64                 :            : 
      65                 :          0 :     return sal_True;
      66                 :            : }
      67                 :            : 
      68                 :          0 : void SchLegendPosTabPage::Reset(const SfxItemSet& rInAttrs)
      69                 :            : {
      70         [ #  # ]:          0 :     m_apLegendPositionResources->initFromItemSet(rInAttrs);
      71                 :            : 
      72                 :          0 :     const SfxPoolItem* pPoolItem = 0;
      73 [ #  # ][ #  # ]:          0 :     if( rInAttrs.GetItemState( EE_PARA_WRITINGDIR, sal_True, &pPoolItem ) == SFX_ITEM_SET )
      74         [ #  # ]:          0 :         m_aLbTextDirection.SelectEntryValue( SvxFrameDirection(((const SvxFrameDirectionItem*)pPoolItem)->GetValue()) );
      75                 :          0 : }
      76                 :            : 
      77                 :            : //.............................................................................
      78                 :            : } //namespace chart
      79                 :            : //.............................................................................
      80                 :            : 
      81                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10