FixedTextColor.cxx (9e0e4191) FixedTextColor.cxx (b862c97c)
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

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

245 sal_uLong nIndex = pPage->getIndexOf(_xFixedText.get());
246 if (nIndex < pPage->GetObjCount() )
247 {
248 SdrObject *pObject = pPage->GetObj(nIndex);
249 OUnoObject* pUnoObj = dynamic_cast<OUnoObject*>(pObject);
250 if ( pUnoObj ) // this doesn't need to be done for shapes
251 {
252 ::boost::shared_ptr<OSectionWindow> pSectionWindow = pController->getSectionWindow(xSection);
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

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

245 sal_uLong nIndex = pPage->getIndexOf(_xFixedText.get());
246 if (nIndex < pPage->GetObjCount() )
247 {
248 SdrObject *pObject = pPage->GetObj(nIndex);
249 OUnoObject* pUnoObj = dynamic_cast<OUnoObject*>(pObject);
250 if ( pUnoObj ) // this doesn't need to be done for shapes
251 {
252 ::boost::shared_ptr<OSectionWindow> pSectionWindow = pController->getSectionWindow(xSection);
253 if (pSectionWindow != NULL)
253 if( bool(pSectionWindow) )
254 {
255 OReportSection& aOutputDevice = pSectionWindow->getReportSection(); // OutputDevice
256 OSectionView& aSdrView = aOutputDevice.getSectionView(); // SdrView
257 xControl = pUnoObj->GetUnoControl(aSdrView, aOutputDevice);
258 }
259 }
260 }
261 }

--- 18 unchanged lines hidden ---
254 {
255 OReportSection& aOutputDevice = pSectionWindow->getReportSection(); // OutputDevice
256 OSectionView& aSdrView = aOutputDevice.getSectionView(); // SdrView
257 xControl = pUnoObj->GetUnoControl(aSdrView, aOutputDevice);
258 }
259 }
260 }
261 }

--- 18 unchanged lines hidden ---