editund2.hxx (4c5491ea) | editund2.hxx (69ffbee1) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 15 unchanged lines hidden (view full) --- 24#ifndef _EDITUND2_HXX 25#define _EDITUND2_HXX 26 27#include "editeng/editengdllapi.h" 28#include <svl/undo.hxx> 29 30class ImpEditEngine; 31 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 15 unchanged lines hidden (view full) --- 24#ifndef _EDITUND2_HXX 25#define _EDITUND2_HXX 26 27#include "editeng/editengdllapi.h" 28#include <svl/undo.hxx> 29 30class ImpEditEngine; 31 |
32class EDITENG_DLLPRIVATE EditUndoManager : public SfxUndoManager | 32class EDITENG_DLLPUBLIC EditUndoManager : public SfxUndoManager |
33{ | 33{ |
34private: |
|
34 using SfxUndoManager::Undo; 35 using SfxUndoManager::Redo; | 35 using SfxUndoManager::Undo; 36 using SfxUndoManager::Redo; |
37 friend class ImpEditEngine; |
|
36 | 38 |
37private: 38 ImpEditEngine* pImpEE; | 39 ImpEditEngine* mpImpEE; 40 void SetImpEditEngine(ImpEditEngine* pNew); 41 |
39public: | 42public: |
40 EditUndoManager( ImpEditEngine* pImpEE ); | 43 EditUndoManager(sal_uInt16 nMaxUndoActionCount = 20); |
41 42 virtual sal_Bool Undo(); 43 virtual sal_Bool Redo(); 44}; 45 46// ----------------------------------------------------------------------- 47// EditUndo 48// ------------------------------------------------------------------------ --- 24 unchanged lines hidden --- | 44 45 virtual sal_Bool Undo(); 46 virtual sal_Bool Redo(); 47}; 48 49// ----------------------------------------------------------------------- 50// EditUndo 51// ------------------------------------------------------------------------ --- 24 unchanged lines hidden --- |