foptmgr.cxx (57b4fa3c) foptmgr.cxx (22407013)
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

--- 160 unchanged lines hidden (view full) ---

169
170 /*
171 * Ueberpruefen, ob es sich bei dem uebergebenen
172 * Bereich um einen Datenbankbereich handelt:
173 */
174
175 theDbArea = theAreaStr;
176
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

--- 160 unchanged lines hidden (view full) ---

169
170 /*
171 * Ueberpruefen, ob es sich bei dem uebergebenen
172 * Bereich um einen Datenbankbereich handelt:
173 */
174
175 theDbArea = theAreaStr;
176
177 if ( pDBColl )
178 {
179 ScAddress& rStart = theCurArea.aStart;
180 ScAddress& rEnd = theCurArea.aEnd;
181 ScDBData* pDBData = pDBColl->GetDBAtArea( rStart.Tab(),
182 rStart.Col(), rStart.Row(),
183 rEnd.Col(), rEnd.Row() );
184 if ( pDBData )
185 {
186 rBtnHeader.Check( pDBData->HasHeader() );
187 pDBData->GetName( theDbName );
177 if ( pDBColl )
178 {
179 ScAddress& rStart = theCurArea.aStart;
180 ScAddress& rEnd = theCurArea.aEnd;
181 ScDBData* pDBData = pDBColl->GetDBAtArea(
182 rStart.Tab(), rStart.Col(), rStart.Row(), rEnd.Col(), rEnd.Row() );
183 if ( pDBData )
184 {
185 rBtnHeader.Check( pDBData->HasHeader() );
186 pDBData->GetName( theDbName );
188
187
189 if ( !pDBData->IsBuildin() )
190 {
191 rBtnHeader.Disable();
192 }
193 }
194 }
188 if ( !pDBData->IsInternalUnnamed()
189 && !pDBData->IsInternalForAutoFilter() )
190 {
191 rBtnHeader.Disable();
192 }
193 }
194 }
195
196 theDbArea.AppendAscii(RTL_CONSTASCII_STRINGPARAM(" ("));
197 theDbArea += theDbName;
198 theDbArea += ')';
199 rFtDbArea.SetText( theDbArea );
200
201 //------------------------------------------------------
202 // Kopierposition:

--- 131 unchanged lines hidden ---
195
196 theDbArea.AppendAscii(RTL_CONSTASCII_STRINGPARAM(" ("));
197 theDbArea += theDbName;
198 theDbArea += ')';
199 rFtDbArea.SetText( theDbArea );
200
201 //------------------------------------------------------
202 // Kopierposition:

--- 131 unchanged lines hidden ---