changedb.cxx (efeef26f) | changedb.cxx (29b78537) |
---|---|
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 --- 313 unchanged lines hidden (view full) --- 322 if (aAvailDBTLB.GetParent(pEntry)) 323 bEnable = sal_True; 324 aOKBT.Enable( bEnable ); 325 } 326 return 0; 327} 328 329/*-------------------------------------------------------------------- | 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 --- 313 unchanged lines hidden (view full) --- 322 if (aAvailDBTLB.GetParent(pEntry)) 323 bEnable = sal_True; 324 aOKBT.Enable( bEnable ); 325 } 326 return 0; 327} 328 329/*-------------------------------------------------------------------- |
330 Beschreibung: Datenbankname fuer Anzeige wandeln | 330 Description: transform databasename for screen |
331 --------------------------------------------------------------------*/ 332 333void SwChangeDBDlg::ShowDBName(const SwDBData& rDBData) 334{ | 331 --------------------------------------------------------------------*/ 332 333void SwChangeDBDlg::ShowDBName(const SwDBData& rDBData) 334{ |
335 String sTmp(rDBData.sDataSource); | |
336 String sName; | 335 String sName; |
337 sTmp += '.'; | 336 String sTmp(rDBData.sDataSource); 337 if (!rDBData.sDataSource.isEmpty() && !rDBData.sCommand.isEmpty()) { 338 sTmp += '.'; 339 } |
338 sTmp += (String)rDBData.sCommand; 339 340 for (sal_uInt16 i = 0; i < sTmp.Len(); i++) 341 { 342 sName += sTmp.GetChar(i); 343 if (sTmp.GetChar(i) == '~') 344 sName += '~'; 345 } --- 14 unchanged lines hidden --- | 340 sTmp += (String)rDBData.sCommand; 341 342 for (sal_uInt16 i = 0; i < sTmp.Len(); i++) 343 { 344 sName += sTmp.GetChar(i); 345 if (sTmp.GetChar(i) == '~') 346 sName += '~'; 347 } --- 14 unchanged lines hidden --- |