FormattedFieldBeautifier.cxx (9e0e4191) | FormattedFieldBeautifier.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 --- 170 unchanged lines hidden (view full) --- 179 if (nIndex < pPage->GetObjCount() ) 180 { 181 SdrObject *pObject = pPage->GetObj(nIndex); 182 OUnoObject* pUnoObj = dynamic_cast<OUnoObject*>(pObject); 183 if ( pUnoObj ) // this doesn't need to be done for shapes 184 { 185 // Rectangle aRect = pUnoObj->GetCurrentBoundRect(); 186 ::boost::shared_ptr<OSectionWindow> pSectionWindow = m_rReportController.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 --- 170 unchanged lines hidden (view full) --- 179 if (nIndex < pPage->GetObjCount() ) 180 { 181 SdrObject *pObject = pPage->GetObj(nIndex); 182 OUnoObject* pUnoObj = dynamic_cast<OUnoObject*>(pObject); 183 if ( pUnoObj ) // this doesn't need to be done for shapes 184 { 185 // Rectangle aRect = pUnoObj->GetCurrentBoundRect(); 186 ::boost::shared_ptr<OSectionWindow> pSectionWindow = m_rReportController.getSectionWindow(xSection); |
187 if (pSectionWindow != NULL) | 187 if( bool(pSectionWindow)) |
188 { 189 OReportSection& aOutputDevice = pSectionWindow->getReportSection(); // OutputDevice 190 OSectionView& aSdrView = aOutputDevice.getSectionView(); // SdrView 191 uno::Reference<awt::XControl> xControl = pUnoObj->GetUnoControl(aSdrView, aOutputDevice); 192 xVclWindowPeer = uno::Reference<awt::XVclWindowPeer>( xControl->getPeer(), uno::UNO_QUERY); 193 } 194 } 195 } 196 } 197 return xVclWindowPeer; 198 } 199} | 188 { 189 OReportSection& aOutputDevice = pSectionWindow->getReportSection(); // OutputDevice 190 OSectionView& aSdrView = aOutputDevice.getSectionView(); // SdrView 191 uno::Reference<awt::XControl> xControl = pUnoObj->GetUnoControl(aSdrView, aOutputDevice); 192 xVclWindowPeer = uno::Reference<awt::XVclWindowPeer>( xControl->getPeer(), uno::UNO_QUERY); 193 } 194 } 195 } 196 } 197 return xVclWindowPeer; 198 } 199} |