TableController.cxx (b63233d8) | TableController.cxx (a72d41dc) |
---|---|
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 --- 1426 unchanged lines hidden (view full) --- 1435 m_xTable = xProp; 1436 startTableListening(); 1437 1438 // check if we set the table editable 1439 Reference<XDatabaseMetaData> xMeta = getConnection()->getMetaData(); 1440 setEditable( xMeta.is() && !xMeta->isReadOnly() && (isAlterAllowed() || isDropAllowed() || isAddAllowed()) ); 1441 if(!isEditable()) 1442 { | 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 --- 1426 unchanged lines hidden (view full) --- 1435 m_xTable = xProp; 1436 startTableListening(); 1437 1438 // check if we set the table editable 1439 Reference<XDatabaseMetaData> xMeta = getConnection()->getMetaData(); 1440 setEditable( xMeta.is() && !xMeta->isReadOnly() && (isAlterAllowed() || isDropAllowed() || isAddAllowed()) ); 1441 if(!isEditable()) 1442 { |
1443 ::std::for_each(m_vRowList.begin(),m_vRowList.end(),boost::bind( &OTableRow::SetReadOnly, _1, boost::cref( sal_True ))); | 1443 static const sal_Bool aTrue = sal_True; 1444 ::std::for_each(m_vRowList.begin(),m_vRowList.end(),boost::bind( &OTableRow::SetReadOnly, _1, boost::cref( aTrue ))); |
1444 } 1445 m_bNew = sal_False; 1446 // be notified when the table is in disposing 1447 InvalidateAll(); 1448 } 1449 } 1450 } 1451 //updateTitle(); --- 153 unchanged lines hidden --- | 1445 } 1446 m_bNew = sal_False; 1447 // be notified when the table is in disposing 1448 InvalidateAll(); 1449 } 1450 } 1451 } 1452 //updateTitle(); --- 153 unchanged lines hidden --- |