TablePropertiesHandler.cxx (b4a4f18c) | TablePropertiesHandler.cxx (14ac695d) |
---|---|
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 --- 233 unchanged lines hidden (view full) --- 242 } 243 break; 244 case NS_ooxml::LN_CT_TblPrBase_tblInd: 245 { 246 writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); 247 if (pProperties.get()) 248 { 249 MeasureHandlerPtr pHandler(new MeasureHandler); | 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 --- 233 unchanged lines hidden (view full) --- 242 } 243 break; 244 case NS_ooxml::LN_CT_TblPrBase_tblInd: 245 { 246 writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); 247 if (pProperties.get()) 248 { 249 MeasureHandlerPtr pHandler(new MeasureHandler); |
250 pProperties->resolve(*pHandler); |
|
250 TablePropertyMapPtr pTblIndMap(new TablePropertyMap); 251 sal_uInt32 nTblInd = pHandler->getMeasureValue(); 252 pTblIndMap->setValue( TablePropertyMap::LEFT_MARGIN, nTblInd); 253 insertTableProps(pTblIndMap); 254 } 255 } 256 break; 257 default: bRet = false; 258 } 259 260#ifdef DEBUG_DOMAINMAPPER 261 dmapper_logger->endElement("TablePropertiesHandler.sprm"); 262#endif 263 264 return bRet; 265 } 266}} | 251 TablePropertyMapPtr pTblIndMap(new TablePropertyMap); 252 sal_uInt32 nTblInd = pHandler->getMeasureValue(); 253 pTblIndMap->setValue( TablePropertyMap::LEFT_MARGIN, nTblInd); 254 insertTableProps(pTblIndMap); 255 } 256 } 257 break; 258 default: bRet = false; 259 } 260 261#ifdef DEBUG_DOMAINMAPPER 262 dmapper_logger->endElement("TablePropertiesHandler.sprm"); 263#endif 264 265 return bRet; 266 } 267}} |