AccessibleOutlineEditSource.cxx (4d7c9de0) AccessibleOutlineEditSource.cxx (3ea0c3d5)
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

--- 34 unchanged lines hidden (view full) ---

43 : mrView( rView ),
44 mrWindow( rViewWindow ),
45 mpOutliner( &rOutliner ),
46 mpOutlinerView( &rOutlView ),
47 mTextForwarder( rOutliner, 0 ),
48 mViewForwarder( rOutlView )
49 {
50 // register as listener - need to broadcast state change messages
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

--- 34 unchanged lines hidden (view full) ---

43 : mrView( rView ),
44 mrWindow( rViewWindow ),
45 mpOutliner( &rOutliner ),
46 mpOutlinerView( &rOutlView ),
47 mTextForwarder( rOutliner, 0 ),
48 mViewForwarder( rOutlView )
49 {
50 // register as listener - need to broadcast state change messages
51 // Moved to ::GetTextForwarder()
52 //rOutliner.SetNotifyHdl( LINK(this, AccessibleOutlineEditSource, NotifyHdl) );
53 StartListening(rOutliner);
54 }
55
56 AccessibleOutlineEditSource::~AccessibleOutlineEditSource()
57 {
58 if( mpOutliner )
59 mpOutliner->SetNotifyHdl( Link() );
60 Broadcast( TextHint( SFX_HINT_DYING ) );
61 }
62
63 SvxEditSource* AccessibleOutlineEditSource::Clone() const
64 {
51 StartListening(rOutliner);
52 }
53
54 AccessibleOutlineEditSource::~AccessibleOutlineEditSource()
55 {
56 if( mpOutliner )
57 mpOutliner->SetNotifyHdl( Link() );
58 Broadcast( TextHint( SFX_HINT_DYING ) );
59 }
60
61 SvxEditSource* AccessibleOutlineEditSource::Clone() const
62 {
65 /*return NULL;*/
66 return new AccessibleOutlineEditSource(*mpOutliner, mrView, *mpOutlinerView, mrWindow);
67 }
68
69 SvxTextForwarder* AccessibleOutlineEditSource::GetTextForwarder()
70 {
71 // TODO: maybe suboptimal
72 if( IsValid() )
73 {

--- 155 unchanged lines hidden ---
63 return new AccessibleOutlineEditSource(*mpOutliner, mrView, *mpOutlinerView, mrWindow);
64 }
65
66 SvxTextForwarder* AccessibleOutlineEditSource::GetTextForwarder()
67 {
68 // TODO: maybe suboptimal
69 if( IsValid() )
70 {

--- 155 unchanged lines hidden ---