dlgedobj.cxx (31598a22) | dlgedobj.cxx (0848378b) |
---|---|
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 --- 504 unchanged lines hidden (view full) --- 513 ::rtl::OUString aNewName; 514 evt.NewValue >>= aNewName; 515 516 if ( !aNewName.equals(aOldName) ) 517 { 518 Reference< container::XNameAccess > xNameAcc((GetDlgEdForm()->GetUnoControlModel()), UNO_QUERY); 519 if ( xNameAcc.is() && xNameAcc->hasByName(aOldName) ) 520 { | 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 --- 504 unchanged lines hidden (view full) --- 513 ::rtl::OUString aNewName; 514 evt.NewValue >>= aNewName; 515 516 if ( !aNewName.equals(aOldName) ) 517 { 518 Reference< container::XNameAccess > xNameAcc((GetDlgEdForm()->GetUnoControlModel()), UNO_QUERY); 519 if ( xNameAcc.is() && xNameAcc->hasByName(aOldName) ) 520 { |
521 if ( !xNameAcc->hasByName(aNewName) && aNewName.getLength() != 0 ) | 521 if ( !xNameAcc->hasByName(aNewName) && !aNewName.isEmpty() ) |
522 { 523 // remove the control by the old name and insert the control by the new name in the container 524 Reference< container::XNameContainer > xCont(xNameAcc, UNO_QUERY ); 525 if ( xCont.is() ) 526 { 527 Reference< awt::XControlModel > xCtrl(GetUnoControlModel(), UNO_QUERY); 528 Any aAny; 529 aAny <<= xCtrl; --- 1363 unchanged lines hidden --- | 522 { 523 // remove the control by the old name and insert the control by the new name in the container 524 Reference< container::XNameContainer > xCont(xNameAcc, UNO_QUERY ); 525 if ( xCont.is() ) 526 { 527 Reference< awt::XControlModel > xCtrl(GetUnoControlModel(), UNO_QUERY); 528 Any aAny; 529 aAny <<= xCtrl; --- 1363 unchanged lines hidden --- |