LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/inc - futext.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 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 SD_FU_TEXT_HXX
      21             : #define SD_FU_TEXT_HXX
      22             : 
      23             : #include <editeng/editdata.hxx>
      24             : #include "fuconstr.hxx"
      25             : #include <svx/svdotext.hxx>
      26             : 
      27             : struct StyleRequestData;
      28             : class SdrTextObj;
      29             : class FontList;
      30             : class OutlinerView;
      31             : 
      32             : namespace sd {
      33             : 
      34             : /*************************************************************************
      35             : |*
      36             : |* Basisklasse fuer Textfunktionen
      37             : |*
      38             : \************************************************************************/
      39             : 
      40           0 : class FuText
      41             :     : public FuConstruct
      42             : {
      43             : public:
      44             :     TYPEINFO();
      45             : 
      46             :     static FunctionReference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
      47             :     virtual void DoExecute( SfxRequest& rReq );
      48             : 
      49             :     virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
      50             :     virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
      51             :     virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
      52             :     virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
      53             :     virtual sal_Bool Command(const CommandEvent& rCEvt);
      54             :     virtual sal_Bool RequestHelp(const HelpEvent& rHEvt);
      55             :     virtual void ReceiveRequest(SfxRequest& rReq);
      56             :     virtual void DoubleClick(const MouseEvent& rMEvt);
      57             : 
      58             :     virtual void Activate();           // Function aktivieren
      59             :     virtual void Deactivate();         // Function deaktivieren
      60             : 
      61             :     void    SetInEditMode(const MouseEvent& rMEvt, sal_Bool bQuickDrag);
      62             :     sal_Bool    DeleteDefaultText();
      63           0 :     SdrTextObj* GetTextObj() { return static_cast< SdrTextObj* >( mxTextObj.get() ); }
      64             : 
      65             :     virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle);
      66             : 
      67             :     /** is called when the currenct function should be aborted. <p>
      68             :         This is used when a function gets a KEY_ESCAPE but can also
      69             :         be called directly.
      70             : 
      71             :         @returns true if a active function was aborted
      72             :     */
      73             :     virtual bool cancel();
      74             : 
      75             :     static void ChangeFontSize( bool, OutlinerView*, const FontList*, ::sd::View* );
      76             : 
      77             : protected:
      78             :     FuText (ViewShell* pViewSh,
      79             :         ::sd::Window* pWin,
      80             :         ::sd::View* pView,
      81             :         SdDrawDocument* pDoc,
      82             :         SfxRequest& rReq);
      83             : 
      84             :     virtual void disposing();
      85             : 
      86             :     SdrObjectWeakRef    mxTextObj;
      87             :     Link                aOldLink;
      88             :     sal_Bool                bFirstObjCreated;
      89             :     bool                bJustEndedEdit;
      90             : 
      91             :     SfxRequest&         rRequest;
      92             : 
      93             : private:
      94             :     void ImpSetAttributesForNewTextObject(SdrTextObj* pTxtObj);
      95             :     void ImpSetAttributesFitToSize(SdrTextObj* pTxtObj);
      96             :     void ImpSetAttributesFitToSizeVertical(SdrTextObj* pTxtObj);
      97             :     void ImpSetAttributesFitCommon(SdrTextObj* pTxtObj);
      98             : };
      99             : 
     100             : } // end of namespace sd
     101             : 
     102             : #endif
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10