LCOV - code coverage report
Current view: top level - include/svx - selectioncontroller.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 3 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_SVX_SELECTIONCONTROLLER_HXX
      21             : #define INCLUDED_SVX_SELECTIONCONTROLLER_HXX
      22             : 
      23             : #include <svx/svxdllapi.h>
      24             : 
      25             : #include <boost/shared_ptr.hpp>
      26             : 
      27             : #include <cppuhelper/weak.hxx>
      28             : 
      29             : class KeyEvent;
      30             : class MouseEvent;
      31             : class Window;
      32             : class SfxItemSet;
      33             : class SfxRequest;
      34             : class SfxStyleSheet;
      35             : class SdrPage;
      36             : class SdrModel;
      37             : 
      38             : namespace sdr
      39             : {
      40             : 
      41           0 : class SVX_DLLPUBLIC SelectionController: public cppu::OWeakObject
      42             : {
      43             : public:
      44             :     virtual bool onKeyInput(const KeyEvent& rKEvt, Window* pWin);
      45             :     virtual bool onMouseButtonDown(const MouseEvent& rMEvt, Window* pWin);
      46             :     virtual bool onMouseButtonUp(const MouseEvent& rMEvt, Window* pWin);
      47             :     virtual bool onMouseMove(const MouseEvent& rMEvt, Window* pWin);
      48             : 
      49             :     virtual void onSelectionHasChanged();
      50             : 
      51             :     virtual void GetState( SfxItemSet& rSet );
      52             :     virtual void Execute( SfxRequest& rReq );
      53             : 
      54             :     virtual bool DeleteMarked();
      55             : 
      56             :     virtual bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr) const;
      57             :     virtual bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll);
      58             : 
      59             :     virtual bool GetStyleSheet( SfxStyleSheet* &rpStyleSheet ) const;
      60             :     virtual bool SetStyleSheet( SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr );
      61             : 
      62             :     virtual bool GetMarkedObjModel( SdrPage* pNewPage );
      63             :     virtual bool PasteObjModel( const SdrModel& rModel );
      64             : 
      65             :     /** returns a format paint brush set from the current selection */
      66             :     virtual bool TakeFormatPaintBrush( boost::shared_ptr< SfxItemSet >& rFormatSet  );
      67             : 
      68             :     /** applies a format paint brush set from the current selection.
      69             :         if bNoCharacterFormats is true, no character attributes are changed.
      70             :         if bNoParagraphFormats is true, no paragraph attributes are changed.
      71             :     */
      72             :     virtual bool ApplyFormatPaintBrush( SfxItemSet& rFormatSet, bool bNoCharacterFormats, bool bNoParagraphFormats );
      73             : };
      74             : 
      75             : }
      76             : 
      77             : #endif // INCLUDED_SVX_SELECTIONCONTROLLER_HXX
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10