LCOV - code coverage report
Current view: top level - include/svl - ownlist.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 15 0.0 %
Date: 2014-04-14 Functions: 0 11 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             : #ifndef INCLUDED_SVL_OWNLIST_HXX
      21             : #define INCLUDED_SVL_OWNLIST_HXX
      22             : 
      23             : #include <svl/svldllapi.h>
      24             : #include <com/sun/star/uno/Sequence.hxx>
      25             : #include <vector>
      26             : 
      27             : namespace com { namespace sun { namespace star {
      28             :     namespace beans {
      29             :         struct PropertyValue;
      30             :     }
      31             : }}}
      32             : 
      33             : 
      34           0 : class SvCommand
      35             : /*  [Beschreibung]
      36             : 
      37             :     Enth"alt einen String, welcher das Kommando angibt und eine weiteren
      38             :     String, der das Argument des Kommandos bildet. W"urde solch ein
      39             :     Kommando "uber die Kommandozeile angegeben werden, s"ahe es wie folgt
      40             :     aus: Kommando = Argument.
      41             : */
      42             : {
      43             :     OUString aCommand;
      44             :     OUString aArgument;
      45             : public:
      46             :                     SvCommand() {}
      47           0 :     SvCommand( const OUString & rCommand, const OUString & rArg )
      48           0 :                     {
      49           0 :                         aCommand = rCommand;
      50           0 :                         aArgument = rArg;
      51           0 :                     }
      52           0 :     const OUString & GetCommand() const { return aCommand; }
      53           0 :     const OUString & GetArgument() const { return aArgument; }
      54             : };
      55             : 
      56             : typedef ::std::vector< SvCommand > SvCommandList_impl;
      57             : 
      58             : 
      59           0 : class SVL_DLLPUBLIC SvCommandList
      60             : /*  [Beschreibung]
      61             : 
      62             :     Die Liste enth"alt Objekte vom Typ SvCommand. Wird ein Objekt
      63             :     eingef"ugt, dann wird es kopiert und das neue Objekt wird
      64             :     in die Liste gestellt.
      65             : */
      66             : {
      67             : private:
      68             :     SvCommandList_impl  aCommandList;
      69             : 
      70             : public:
      71             :     SvCommand&      Append( const OUString & rCommand, const OUString & rArg );
      72             :     bool        AppendCommands( const OUString & rCmd, sal_Int32 * pEaten );
      73             : 
      74             :     bool FillFromSequence( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& );
      75             :     void FillSequence( com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& );
      76             : 
      77           0 :     size_t          size() const { return aCommandList.size(); }
      78             : 
      79           0 :     SvCommand       operator[]( size_t i) {
      80           0 :                         return aCommandList[ i ];
      81             :                     }
      82             : 
      83           0 :     void            clear() {
      84           0 :                         aCommandList.clear();
      85           0 :                     }
      86             : };
      87             : 
      88             : #endif // INCLUDED_SVL_OWNLIST_HXX
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10