binding.cxx (24acc546) | binding.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 --- 660 unchanged lines hidden (view full) --- 669 mbInCalculate = true; 670 maCalculate.evaluate( rContext ); 671 pModel->setSimpleContent( rContext.mxContextNode, 672 maCalculate.getString() ); 673 mbInCalculate = false; 674 } 675 } 676 | 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 --- 660 unchanged lines hidden (view full) --- 669 mbInCalculate = true; 670 maCalculate.evaluate( rContext ); 671 pModel->setSimpleContent( rContext.mxContextNode, 672 maCalculate.getString() ); 673 mbInCalculate = false; 674 } 675 } 676 |
677 // now evaluate remaining MIPs in the apropriate context | 677 // now evaluate remaining MIPs in the appropriate context |
678 maReadonly.evaluate( rContext ); 679 maRelevant.evaluate( rContext ); 680 maRequired.evaluate( rContext ); 681 maConstraint.evaluate( rContext ); 682 // type is static; does not need updating 683 684 // evaluate the locally defined MIPs, and push them to the model 685 pModel->addMIP( this, rContext.mxContextNode, getLocalMIP() ); --- 583 unchanged lines hidden (view full) --- 1269{ 1270 OUString sType(xEvent->getType()); 1271 //OUString sEventMIPChanged(RTL_CONSTASCII_USTRINGPARAM("xforms-generic")); 1272 //if(sType.equals(sEventMIPChanged)) { 1273 if(!sType.compareToAscii("xforms-generic")) { 1274 1275 // the modification of the 'mnDeferModifyNotifications'-member 1276 // is necessary to prevent infinite notication looping. | 678 maReadonly.evaluate( rContext ); 679 maRelevant.evaluate( rContext ); 680 maRequired.evaluate( rContext ); 681 maConstraint.evaluate( rContext ); 682 // type is static; does not need updating 683 684 // evaluate the locally defined MIPs, and push them to the model 685 pModel->addMIP( this, rContext.mxContextNode, getLocalMIP() ); --- 583 unchanged lines hidden (view full) --- 1269{ 1270 OUString sType(xEvent->getType()); 1271 //OUString sEventMIPChanged(RTL_CONSTASCII_USTRINGPARAM("xforms-generic")); 1272 //if(sType.equals(sEventMIPChanged)) { 1273 if(!sType.compareToAscii("xforms-generic")) { 1274 1275 // the modification of the 'mnDeferModifyNotifications'-member 1276 // is necessary to prevent infinite notication looping. |
1277 // This can happend in case the binding which caused | 1277 // This can happened in case the binding which caused |
1278 // the notification chain is listening to those events 1279 // as well... 1280 bool bPreserveValueModified = mbValueModified; 1281 mnDeferModifyNotifications++; 1282 valueModified(); 1283 --mnDeferModifyNotifications; 1284 mbValueModified = bPreserveValueModified; 1285 return; --- 120 unchanged lines hidden --- | 1278 // the notification chain is listening to those events 1279 // as well... 1280 bool bPreserveValueModified = mbValueModified; 1281 mnDeferModifyNotifications++; 1282 valueModified(); 1283 --mnDeferModifyNotifications; 1284 mbValueModified = bPreserveValueModified; 1285 return; --- 120 unchanged lines hidden --- |