richtextcontrol.cxx (24acc546) richtextcontrol.cxx (07a3d7f1)
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

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

238 }
239
240 // create the peer
241 Reference< XControlModel > xModel( getModel() );
242 ORichTextPeer* pPeer = ORichTextPeer::Create( xModel, pParentWin, getWinBits( xModel ) );
243 DBG_ASSERT( pPeer, "ORichTextControl::createPeer: invalid peer returned!" );
244 if ( pPeer )
245 {
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

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

238 }
239
240 // create the peer
241 Reference< XControlModel > xModel( getModel() );
242 ORichTextPeer* pPeer = ORichTextPeer::Create( xModel, pParentWin, getWinBits( xModel ) );
243 DBG_ASSERT( pPeer, "ORichTextControl::createPeer: invalid peer returned!" );
244 if ( pPeer )
245 {
246 // by definition, the returned component is aquired once
246 // by definition, the returned component is acquired once
247 pPeer->release();
248
249 // announce the peer to the base class
250 setPeer( pPeer );
251
252 // initialize ourself (and thus the peer) with the model properties
253 updateFromModel();
254

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

339 // the EditEngine of the model
340 RichTextEngine* pEngine = ORichTextModel::getEditEngine( _rxModel );
341 OSL_ENSURE( pEngine, "ORichTextPeer::Create: could not obtaine the edit engine from the model!" );
342 if ( !pEngine )
343 return NULL;
344
345 // the peer itself
346 ORichTextPeer* pPeer = new ORichTextPeer;
247 pPeer->release();
248
249 // announce the peer to the base class
250 setPeer( pPeer );
251
252 // initialize ourself (and thus the peer) with the model properties
253 updateFromModel();
254

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

339 // the EditEngine of the model
340 RichTextEngine* pEngine = ORichTextModel::getEditEngine( _rxModel );
341 OSL_ENSURE( pEngine, "ORichTextPeer::Create: could not obtaine the edit engine from the model!" );
342 if ( !pEngine )
343 return NULL;
344
345 // the peer itself
346 ORichTextPeer* pPeer = new ORichTextPeer;
347 pPeer->acquire(); // by definition, the returned object is aquired once
347 pPeer->acquire(); // by definition, the returned object is acquired once
348
349 // the VCL control for the peer
350 RichTextControl* pRichTextControl = new RichTextControl( pEngine, _pParentWindow, _nStyle, NULL, pPeer );
351
352 // some knittings
353 pRichTextControl->SetComponentInterface( pPeer );
354
355 // outta here

--- 407 unchanged lines hidden ---
348
349 // the VCL control for the peer
350 RichTextControl* pRichTextControl = new RichTextControl( pEngine, _pParentWindow, _nStyle, NULL, pPeer );
351
352 // some knittings
353 pRichTextControl->SetComponentInterface( pPeer );
354
355 // outta here

--- 407 unchanged lines hidden ---