1.1 --- a/epoc32/include/medobsrv.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/medobsrv.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,59 @@
1.4 -medobsrv.h
1.5 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#ifndef __MEDOBSRV_H__
1.21 +#define __MEDOBSRV_H__
1.22 +
1.23 +#include <e32def.h>
1.24 +
1.25 +
1.26 +
1.27 +class MEditObserver
1.28 +/**
1.29 +Specifies the mixin protocol for a rich text edit observer.
1.30 +
1.31 +This class is implemented by controls which use a rich text (CRichText) object,
1.32 +when it is possible for the text object to be changed from outside of the
1.33 +control without the control's knowledge.
1.34 +
1.35 +An edit observer is a callback to the control from the CRichText object which
1.36 +it has been set up to observe. The edit observer is set up using CRichText::SetEditObserver().
1.37 +@publishedAll
1.38 +@released
1.39 +*/
1.40 + {
1.41 +public:
1.42 + // Observer function called by CRichText to signal changes to the text
1.43 + // buffer within it. A pointer to this function must be passed in to
1.44 + // a CRichText instance by <rich text instance>.SetEditObserver(<ptr>).
1.45 + // aStart is the start position of the edit and aExtent is the number
1.46 + // of characters added or, if negative, deleted after this position.
1.47 +
1.48 +
1.49 + /** Observer function called by the CRichText object when the object is edited
1.50 + to give notification of changes to its text buffer. In this way, the control
1.51 + knows how the text object has changed and can reformat and redraw the text
1.52 + object appropriately.
1.53 +
1.54 + A pointer to the observer object must have been passed in to a CRichText instance
1.55 + using CRichText::SetEditObserver().
1.56 +
1.57 + @param aStart The start position of the edit.
1.58 + @param aExtent The number of characters added or, if negative, deleted after
1.59 + this position. */
1.60 + virtual void EditObserver(TInt aStart, TInt aExtent) = 0;
1.61 + };
1.62 +
1.63 +#endif