diff --git a/dbaccess/qa/complex/dbaccess/ApplicationController.java b/dbaccess/qa/complex/dbaccess/ApplicationController.java index 2a66d5e096b8..674115e8cf6c 100644 --- a/dbaccess/qa/complex/dbaccess/ApplicationController.java +++ b/dbaccess/qa/complex/dbaccess/ApplicationController.java @@ -40,7 +40,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; -// ------------------------------------------ + /** complex test case for Base's application UI */ @@ -56,13 +56,13 @@ public class ApplicationController extends TestCase super(); } - // -------------------------------------------------------------------------------------------------------- + public String getTestObjectName() { return getClass().getName(); } - // -------------------------------------------------------------------------------------------------------- + private void impl_closeDocument() { if (m_database != null) @@ -74,7 +74,7 @@ public class ApplicationController extends TestCase } } - // -------------------------------------------------------------------------------------------------------- + private void impl_switchToDocument(String _documentURL) throws java.lang.Exception { // close previous database document @@ -101,7 +101,7 @@ public class ApplicationController extends TestCase docModel.getCurrentController()); } - // -------------------------------------------------------------------------------------------------------- + @Before @Override public void before() throws java.lang.Exception @@ -110,7 +110,7 @@ public class ApplicationController extends TestCase impl_switchToDocument(null); } - // -------------------------------------------------------------------------------------------------------- + @After @Override public void after() throws java.lang.Exception @@ -118,7 +118,7 @@ public class ApplicationController extends TestCase impl_closeDocument(); super.after(); } - // -------------------------------------------------------------------------------------------------------- + @Test public void checkSaveAs() throws Exception, IOException, java.lang.Exception diff --git a/dbaccess/qa/complex/dbaccess/Beamer.java b/dbaccess/qa/complex/dbaccess/Beamer.java index 97c4c6b4f45b..effc4cc555a5 100644 --- a/dbaccess/qa/complex/dbaccess/Beamer.java +++ b/dbaccess/qa/complex/dbaccess/Beamer.java @@ -47,7 +47,7 @@ import org.junit.Before; import org.junit.Test; // import org.openoffice.test.OfficeConnection; import static org.junit.Assert.*; -// ------------------------------------------ + /** complex test case for Base's application UI @@ -62,7 +62,7 @@ public class Beamer extends TestCase super(); } - // -------------------------------------------------------------------------------------------------------- + @Before @Override public void before() throws Exception, java.lang.Exception @@ -75,14 +75,14 @@ public class Beamer extends TestCase docModel = UnoRuntime.queryInterface(XModel.class, loadedComponent); } - // -------------------------------------------------------------------------------------------------------- + @After @Override public void after() { } - // -------------------------------------------------------------------------------------------------------- + @Test public void testBeamer() throws Exception, IOException, java.lang.Exception { diff --git a/dbaccess/qa/complex/dbaccess/CRMBasedTestCase.java b/dbaccess/qa/complex/dbaccess/CRMBasedTestCase.java index ea91937cbda0..81ffdbebf514 100644 --- a/dbaccess/qa/complex/dbaccess/CRMBasedTestCase.java +++ b/dbaccess/qa/complex/dbaccess/CRMBasedTestCase.java @@ -26,13 +26,13 @@ import java.util.logging.Logger; import org.junit.After; import org.junit.Before; import static org.junit.Assert.*; -// ------------------------------------------ + public abstract class CRMBasedTestCase extends TestCase { protected CRMDatabase m_database; - // -------------------------------------------------------------------------------------------------------- + protected void createTestCase() { try @@ -46,7 +46,7 @@ public abstract class CRMBasedTestCase extends TestCase } } - // -------------------------------------------------------------------------------------------------------- + @Before @Override public void before() @@ -54,7 +54,7 @@ public abstract class CRMBasedTestCase extends TestCase createTestCase(); } - // -------------------------------------------------------------------------------------------------------- + @After @Override public void after() @@ -72,7 +72,7 @@ public abstract class CRMBasedTestCase extends TestCase } } - // -------------------------------------------------------------------------------------------------------- + /** creates a SingleSelectQueryComposer for our connection */ protected final XSingleSelectQueryComposer createQueryComposer() throws com.sun.star.uno.Exception diff --git a/dbaccess/qa/complex/dbaccess/CopyTableWizard.java b/dbaccess/qa/complex/dbaccess/CopyTableWizard.java index 68fba3ddb793..419d6782d19e 100644 --- a/dbaccess/qa/complex/dbaccess/CopyTableWizard.java +++ b/dbaccess/qa/complex/dbaccess/CopyTableWizard.java @@ -42,7 +42,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; -// ------------------------------------------ + /** complex test case for Base's application UI */ @@ -58,7 +58,7 @@ public class CopyTableWizard extends CRMBasedTestCase super(); } - // -------------------------------------------------------------------------------------------------------- + @After @Override @@ -88,7 +88,7 @@ public class CopyTableWizard extends CRMBasedTestCase } } - // -------------------------------------------------------------------------------------------------------- + class CopyThread implements Runnable { @@ -217,5 +217,5 @@ public class CopyTableWizard extends CRMBasedTestCase { } } - // -------------------------------------------------------------------------------------------------------- + } diff --git a/dbaccess/qa/complex/dbaccess/DataSource.java b/dbaccess/qa/complex/dbaccess/DataSource.java index 7233c8838445..8adff3a23ed4 100644 --- a/dbaccess/qa/complex/dbaccess/DataSource.java +++ b/dbaccess/qa/complex/dbaccess/DataSource.java @@ -27,7 +27,7 @@ import connectivity.tools.HsqlDatabase; // ---------- junit imports ----------------- import org.junit.Test; import static org.junit.Assert.*; -// ------------------------------------------ + public class DataSource extends TestCase @@ -36,7 +36,7 @@ public class DataSource extends TestCase HsqlDatabase m_database; connectivity.tools.DataSource m_dataSource; - // -------------------------------------------------------------------------------------------------------- + private void createTestCase() { try @@ -58,7 +58,7 @@ public class DataSource extends TestCase } } - // -------------------------------------------------------------------------------------------------------- + @Test public void testRegistrationName() { diff --git a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java index 7f1ab1309811..6102084f48a3 100644 --- a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java +++ b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java @@ -82,7 +82,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; -// ------------------------------------------ + public class DatabaseDocument extends TestCase implements com.sun.star.document.XDocumentEventListener { @@ -98,7 +98,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. private static short STATE_ON_LOAD_RECEIVED = 3; private short m_loadDocState = STATE_NOT_STARTED; - // ======================================================================================================== + /** a helper class which can be used by the Basic scripts in our test documents * to notify us of events in this document */ @@ -132,13 +132,13 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } }; - // ======================================================================================================== + private static String getCallbackComponentServiceName() { return "org.openoffice.complex.dbaccess.EventCallback"; } - // ======================================================================================================== + /** a factory for a CallbackComponent */ private class CallbackComponentFactory implements XSingleComponentFactory, XServiceInfo, XComponent @@ -200,7 +200,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } }; - // ======================================================================================================== + private class MacroExecutionApprove implements XInteractionHandler { @@ -244,8 +244,8 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } }; - // ======================================================================================================== - // -------------------------------------------------------------------------------------------------------- + + @Before public void before() throws java.lang.Exception { @@ -273,7 +273,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } } - // -------------------------------------------------------------------------------------------------------- + @After public void after() throws java.lang.Exception { @@ -298,7 +298,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. super.after(); } - // -------------------------------------------------------------------------------------------------------- + private static class UnoMethodDescriptor { @@ -312,7 +312,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } } - // -------------------------------------------------------------------------------------------------------- + private void impl_checkDocumentInitState(Object _document, boolean _isInitialized) { // things you cannot do with an uninitialized document: @@ -335,7 +335,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } } - // -------------------------------------------------------------------------------------------------------- + private XModel impl_createDocument() throws Exception { final XModel databaseDoc = UnoRuntime.queryInterface(XModel.class, getMSF().createInstance("com.sun.star.sdb.OfficeDatabaseDocument")); @@ -346,14 +346,14 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. return databaseDoc; } - // -------------------------------------------------------------------------------------------------------- + private void impl_closeDocument(XModel _databaseDoc) throws CloseVetoException, IOException, Exception { final XCloseable closeDoc = UnoRuntime.queryInterface(XCloseable.class, _databaseDoc); closeDoc.close(true); } - // -------------------------------------------------------------------------------------------------------- + private XModel impl_createEmptyEmbeddedHSQLDocument() throws Exception, IOException { final XModel databaseDoc = UnoRuntime.queryInterface(XModel.class, getMSF().createInstance("com.sun.star.sdb.OfficeDatabaseDocument")); @@ -388,7 +388,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. return databaseDoc; } - // -------------------------------------------------------------------------------------------------------- + @Test public void testLoadable() throws Exception, IOException { @@ -397,12 +397,12 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. // there's three methods how you can initialize a database document: - // .................................................................... + // 1. XStorable::storeAsURL // (this is for compatibility reasons, to not break existing code) // this test is already made in impl_createEmptyEmbeddedHSQLDocument - // .................................................................... + // 2. XLoadable::load databaseDoc = UnoRuntime.queryInterface(XModel.class, getMSF().createInstance("com.sun.star.sdb.OfficeDatabaseDocument")); documentURL = copyToTempFile(documentURL); @@ -423,7 +423,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. assureException( databaseDoc, XLoadable.class, "load", new Object[] { new PropertyValue[0] }, DoubleInitializationException.class ); - // .................................................................... + // 3. XLoadable::initNew impl_closeDocument(databaseDoc); databaseDoc = impl_createDocument(); @@ -439,7 +439,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. DoubleInitializationException.class ); } - // -------------------------------------------------------------------------------------------------------- + private PropertyValue[] impl_getMarkerLoadArgs() { return new PropertyValue[] @@ -449,7 +449,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. }; } - // -------------------------------------------------------------------------------------------------------- + private boolean impl_hasMarker( final PropertyValue[] _args ) { for ( int i=0; i<_args.length; ++i ) @@ -462,7 +462,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. return false; } - // -------------------------------------------------------------------------------------------------------- + private PropertyValue[] impl_getDefaultLoadArgs() { return new PropertyValue[] @@ -471,7 +471,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. }; } - // -------------------------------------------------------------------------------------------------------- + private PropertyValue[] impl_getMacroExecLoadArgs() { return new PropertyValue[] @@ -482,7 +482,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. }; } - // -------------------------------------------------------------------------------------------------------- + private int impl_setMacroSecurityLevel(int _level) throws Exception { final XMultiServiceFactory configProvider = theDefaultProvider.get( @@ -503,14 +503,14 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. return oldValue; } - // -------------------------------------------------------------------------------------------------------- + private XModel impl_loadDocument( final String _documentURL, final PropertyValue[] _loadArgs ) throws Exception { final XComponentLoader loader = UnoRuntime.queryInterface(XComponentLoader.class, getMSF().createInstance("com.sun.star.frame.Desktop")); return UnoRuntime.queryInterface(XModel.class, loader.loadComponentFromURL(_documentURL, _BLANK, 0, _loadArgs)); } - // -------------------------------------------------------------------------------------------------------- + private void impl_storeDocument( final XModel _document ) throws Exception, IOException { // store the document @@ -520,7 +520,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } - // -------------------------------------------------------------------------------------------------------- + private XModel impl_createDocWithMacro( final String _libName, final String _moduleName, final String _code ) throws Exception, IOException { // create an empty document @@ -535,7 +535,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. return databaseDoc; } - // -------------------------------------------------------------------------------------------------------- + /** tests various aspects of database document "revenants" * * Well, I do not really have a good term for this ... The point is, database documents are in real @@ -604,7 +604,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. impl_closeDocument( databaseDoc ); } - // -------------------------------------------------------------------------------------------------------- + @Test public void testDocumentEvents() throws Exception, IOException { @@ -673,7 +673,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. impl_closeDocument(databaseDoc); } - // -------------------------------------------------------------------------------------------------------- + @Test public void testGlobalEvents() throws Exception, IOException { @@ -817,7 +817,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. impl_closeDocument(otherDoc); } - // -------------------------------------------------------------------------------------------------------- + private URL impl_getURL(String _completeURL) throws Exception { final URL[] url = @@ -830,7 +830,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. return url[0]; } - // -------------------------------------------------------------------------------------------------------- + private void impl_raise(XModel _document) { final XFrame frame = _document.getCurrentController().getFrame(); @@ -838,7 +838,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. topWindow.toFront(); } - // -------------------------------------------------------------------------------------------------------- + private void impl_startObservingEvents(String _context) { System.out.println(" " + _context + " {"); @@ -852,7 +852,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } } - // -------------------------------------------------------------------------------------------------------- + private void impl_stopObservingEvents(ArrayList _actualEvents, String[] _expectedEvents, String _context) { try @@ -898,13 +898,13 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. } } - // -------------------------------------------------------------------------------------------------------- + int impl_waitForEvent(ArrayList _eventQueue, String _expectedEvent, int _maxMilliseconds) { return impl_waitForEvent(_eventQueue, _expectedEvent, _maxMilliseconds, 0); } - // -------------------------------------------------------------------------------------------------------- + int impl_waitForEvent(ArrayList _eventQueue, String _expectedEvent, int _maxMilliseconds, int _firstQueueElementToCheck) { synchronized (_eventQueue) @@ -938,7 +938,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. return -1; } - // -------------------------------------------------------------------------------------------------------- + void onDocumentEvent(DocumentEvent _Event) { if ("OnTitleChanged".equals(_Event.EventName)) @@ -967,7 +967,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. System.out.println(" document event: " + _Event.EventName); } - // -------------------------------------------------------------------------------------------------------- + public void documentEventOccured(DocumentEvent _Event) { if ("OnTitleChanged".equals(_Event.EventName)) @@ -985,7 +985,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document. System.out.println(" global event: " + _Event.EventName); } - // -------------------------------------------------------------------------------------------------------- + public void disposing(EventObject _Event) { // not interested in diff --git a/dbaccess/qa/complex/dbaccess/Parser.java b/dbaccess/qa/complex/dbaccess/Parser.java index 0562c9021dcd..2c72173548dd 100644 --- a/dbaccess/qa/complex/dbaccess/Parser.java +++ b/dbaccess/qa/complex/dbaccess/Parser.java @@ -30,11 +30,11 @@ import com.sun.star.uno.UnoRuntime; // ---------- junit imports ----------------- import org.junit.Test; import static org.junit.Assert.*; -// ------------------------------------------ + public class Parser extends CRMBasedTestCase { - // -------------------------------------------------------------------------------------------------------- + @Override protected void createTestCase() { @@ -50,7 +50,7 @@ public class Parser extends CRMBasedTestCase } } - // -------------------------------------------------------------------------------------------------------- + @Test public void checkWhere() throws Exception { @@ -88,7 +88,7 @@ public class Parser extends CRMBasedTestCase composer.setQuery( SELECT + queries[i]); } } - // -------------------------------------------------------------------------------------------------------- + /** verifies that aliases for inner queries work as expected */ @Test @@ -133,7 +133,7 @@ public class Parser extends CRMBasedTestCase "test is bogus!", caughtExpected ); } - // -------------------------------------------------------------------------------------------------------- + private void impl_checkParameters( final String _statement, final String[] _expectedParameterNames, final int[] _expectedParameterTypes,final String _context ) throws Exception { final XSingleSelectQueryComposer composer = createQueryComposer(); @@ -157,7 +157,7 @@ public class Parser extends CRMBasedTestCase } } - // -------------------------------------------------------------------------------------------------------- + /** verifies that the parser properly recognizes the types of parameters */ @Test diff --git a/dbaccess/qa/complex/dbaccess/PropertyBag.java b/dbaccess/qa/complex/dbaccess/PropertyBag.java index 608cd1d9916d..ea1c570b86b2 100644 --- a/dbaccess/qa/complex/dbaccess/PropertyBag.java +++ b/dbaccess/qa/complex/dbaccess/PropertyBag.java @@ -34,7 +34,7 @@ import com.sun.star.lang.XMultiServiceFactory; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; -// ------------------------------------------ + public class PropertyBag extends TestCase { @@ -152,7 +152,7 @@ public class PropertyBag extends TestCase System.out.println( "checking PropertySetAccess via sequences" ); createStandardBag( false ); - // --------------------------------- + // XPropertyAccess.setPropertyValues final PropertyValue expectedValues[] = { @@ -175,7 +175,7 @@ public class PropertyBag extends TestCase } } - // --------------------------------- + // XPropertyAccess.getPropertyValues final PropertyValue currentValues[] = m_access.getPropertyValues(); for ( int i=0; i namespace dbaccess { - //************************************************************ + // ODataColumn - //************************************************************ + class ODataColumn : public OResultColumn, public ::com::sun::star::sdb::XColumn, public ::com::sun::star::sdb::XColumnUpdate diff --git a/dbaccess/source/core/api/resultcolumn.hxx b/dbaccess/source/core/api/resultcolumn.hxx index 7e8fb611a7d8..daeb097b7968 100644 --- a/dbaccess/source/core/api/resultcolumn.hxx +++ b/dbaccess/source/core/api/resultcolumn.hxx @@ -25,9 +25,9 @@ #include namespace dbaccess { - //************************************************************ + // OResultColumn - //************************************************************ + class OResultColumn : public OColumn, public ::comphelper::OPropertyArrayUsageHelper < OResultColumn > { diff --git a/dbaccess/source/core/api/resultset.hxx b/dbaccess/source/core/api/resultset.hxx index 221874bf648d..266536d94e5f 100644 --- a/dbaccess/source/core/api/resultset.hxx +++ b/dbaccess/source/core/api/resultset.hxx @@ -58,9 +58,9 @@ namespace dbaccess typedef ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> ONoWeakStatement; - //************************************************************ + // OResultSet - //************************************************************ + class OResultSet : public comphelper::OBaseMutex, public OResultSetBase, public ::cppu::OPropertySetHelper, diff --git a/dbaccess/source/core/api/statement.cxx b/dbaccess/source/core/api/statement.cxx index 8bc2ea2b8bb2..efba5c1861cb 100644 --- a/dbaccess/source/core/api/statement.cxx +++ b/dbaccess/source/core/api/statement.cxx @@ -430,9 +430,9 @@ Reference< XResultSet > SAL_CALL OStatementBase::getGeneratedValues( ) throw (S return Reference< XResultSet >(); } -//************************************************************ + // OStatement -//************************************************************ + OStatement::OStatement( const Reference< XConnection >& _xConn, const Reference< XInterface > & _xStatement ) :OStatementBase( _xConn, _xStatement ) ,m_bAttemptedComposerCreation( false ) diff --git a/dbaccess/source/core/inc/callablestatement.hxx b/dbaccess/source/core/inc/callablestatement.hxx index 2b892beef564..27891c1b5abb 100644 --- a/dbaccess/source/core/inc/callablestatement.hxx +++ b/dbaccess/source/core/inc/callablestatement.hxx @@ -25,9 +25,9 @@ namespace dbaccess { - //************************************************************ + // OCallableStatement - //************************************************************ + class OCallableStatement : public OPreparedStatement, public ::com::sun::star::sdbc::XRow, public ::com::sun::star::sdbc::XOutParameters diff --git a/dbaccess/source/core/inc/column.hxx b/dbaccess/source/core/inc/column.hxx index 916402051188..baeccd8106f9 100644 --- a/dbaccess/source/core/inc/column.hxx +++ b/dbaccess/source/core/inc/column.hxx @@ -55,9 +55,9 @@ namespace dbaccess { - //************************************************************ + // OColumn - //************************************************************ + typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::lang::XServiceInfo, ::com::sun::star::container::XNamed > OColumnBase; diff --git a/dbaccess/source/core/inc/dbamiscres.hrc b/dbaccess/source/core/inc/dbamiscres.hrc index 4a0566e83759..49d28aff27d8 100644 --- a/dbaccess/source/core/inc/dbamiscres.hrc +++ b/dbaccess/source/core/inc/dbamiscres.hrc @@ -20,7 +20,7 @@ #ifndef _DBA_MISCRES_HRC_ #define _DBA_MISCRES_HRC_ -//======================================================================== + // string ids (relative to other resources, that's why not unique) #define STR_MYSQL_ODBC 1 #define STR_MYSQL_JDBC 2 diff --git a/dbaccess/source/core/inc/preparedstatement.hxx b/dbaccess/source/core/inc/preparedstatement.hxx index ea233a9fa445..ecffe7586b24 100644 --- a/dbaccess/source/core/inc/preparedstatement.hxx +++ b/dbaccess/source/core/inc/preparedstatement.hxx @@ -29,9 +29,9 @@ namespace dbaccess { - //************************************************************ + // OPreparedStatement - //************************************************************ + class OPreparedStatement : public OStatementBase, public ::com::sun::star::sdbc::XPreparedStatement, public ::com::sun::star::sdbc::XParameters, diff --git a/dbaccess/source/core/inc/statement.hxx b/dbaccess/source/core/inc/statement.hxx index 75f989f67b67..c664d01ee26c 100644 --- a/dbaccess/source/core/inc/statement.hxx +++ b/dbaccess/source/core/inc/statement.hxx @@ -37,9 +37,9 @@ #include -//************************************************************ + // OStatementBase -//************************************************************ + class OStatementBase : public comphelper::OBaseMutex, public OSubComponent, public ::cppu::OPropertySetHelper, @@ -129,9 +129,9 @@ protected: using ::cppu::OPropertySetHelper::getFastPropertyValue; }; -//************************************************************ + // OStatement -//************************************************************ + typedef ::cppu::ImplHelper3 < ::com::sun::star::sdbc::XStatement , ::com::sun::star::lang::XServiceInfo , ::com::sun::star::sdbc::XBatchExecution diff --git a/dbaccess/source/core/resource/strings.src b/dbaccess/source/core/resource/strings.src index a2099c1a1d81..4fb36ef4a869 100644 --- a/dbaccess/source/core/resource/strings.src +++ b/dbaccess/source/core/resource/strings.src @@ -300,7 +300,7 @@ String RID_STR_UPDATE_FAILED Text [ en-US ] = "Current row could not be updated."; }; -//------------------------------------------------------------------------- + String RID_STR_NO_INSERT_PRIVILEGE { diff --git a/dbaccess/source/ext/macromigration/dbmm_global.hrc b/dbaccess/source/ext/macromigration/dbmm_global.hrc index 87db7788f445..7b1516c7ad06 100644 --- a/dbaccess/source/ext/macromigration/dbmm_global.hrc +++ b/dbaccess/source/ext/macromigration/dbmm_global.hrc @@ -22,37 +22,37 @@ #include -//===================================================================== + //= bases -//===================================================================== + #define RID_DBMM_DIALOG_START RID_DBACCESS_START + 0 #define RID_DBMM_TAPPAGE_START RID_DBACCESS_START + 0 #define RID_DBMM_STRING_START RID_DBACCESS_START + 0 -//===================================================================== + //= dialogs -//===================================================================== + #define DLG_MACRO_MIGRATION RID_DBMM_DIALOG_START + 0 -//===================================================================== + //= error boxes -//===================================================================== + #define ERR_INVALID_BACKUP_LOCATION RID_DBMM_DIALOG_START + 0 -//===================================================================== + //= tab pages -//===================================================================== + #define TP_PREPARE ( RID_DBMM_TAPPAGE_START + 0 ) #define TP_SAVE_DBDOC_AS ( RID_DBMM_TAPPAGE_START + 1 ) #define TP_MIGRATE ( RID_DBMM_TAPPAGE_START + 2 ) #define TP_SUMMARY ( RID_DBMM_TAPPAGE_START + 3 ) -//===================================================================== + //= strings -//===================================================================== + #define STR_FORM ( RID_DBMM_STRING_START + 0 ) #define STR_REPORT ( RID_DBMM_STRING_START + 1 ) diff --git a/dbaccess/source/ext/macromigration/macromigration.src b/dbaccess/source/ext/macromigration/macromigration.src index c081d9d97a54..314f089cb28c 100644 --- a/dbaccess/source/ext/macromigration/macromigration.src +++ b/dbaccess/source/ext/macromigration/macromigration.src @@ -20,7 +20,7 @@ #include "dbmm_global.hrc" #include "macromigration.hrc" -// ----------------------------------------------------------------------------- + ModalDialog DLG_MACRO_MIGRATION { HelpID = "dbaccess:ModalDialog:DLG_MACRO_MIGRATION"; @@ -52,9 +52,9 @@ ModalDialog DLG_MACRO_MIGRATION }; }; -//======================================================================== + //= PreparationPage -//======================================================================== + TabPage TP_PREPARE { @@ -103,9 +103,9 @@ TabPage TP_PREPARE }; }; -//======================================================================== + //= SaveDBDocPage -//======================================================================== + TabPage TP_SAVE_DBDOC_AS { @@ -180,9 +180,9 @@ TabPage TP_SAVE_DBDOC_AS }; }; -//======================================================================== + //= ProgressPage -//======================================================================== + TabPage TP_MIGRATE { @@ -294,9 +294,9 @@ TabPage TP_MIGRATE }; }; -//======================================================================== + //= ResultPage -//======================================================================== + TabPage TP_SUMMARY { diff --git a/dbaccess/source/filter/xml/xmlservices.cxx b/dbaccess/source/filter/xml/xmlservices.cxx index 2ed308b0526f..35b6294190e6 100644 --- a/dbaccess/source/filter/xml/xmlservices.cxx +++ b/dbaccess/source/filter/xml/xmlservices.cxx @@ -26,8 +26,8 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::registry; -//*************************************************************************************** -// + + // registry functions extern "C" void SAL_CALL createRegistryInfo_ODBFilter(); extern "C" void SAL_CALL createRegistryInfo_ODBFilterExport(); @@ -37,7 +37,7 @@ extern "C" void SAL_CALL createRegistryInfo_DBContentLoader2(); extern "C" void SAL_CALL createRegistryInfo_DBTypeDetection(); extern "C" void SAL_CALL writeDBLoaderInfo2(void* pRegistryKey); -//*************************************************************************************** + extern "C" void SAL_CALL createRegistryInfo_dbaxml() { static sal_Bool bInit = sal_False; diff --git a/dbaccess/source/inc/dbastrings.hrc b/dbaccess/source/inc/dbastrings.hrc index d05448422664..ea05a55da266 100644 --- a/dbaccess/source/inc/dbastrings.hrc +++ b/dbaccess/source/inc/dbastrings.hrc @@ -26,14 +26,14 @@ #undef STRINGCONSTANTS_INCLUDED_INDIRECT #include "stringconstants.inc" - //============================================================ + //= SQLSTATE - //============================================================ + #define SQLSTATE_GENERAL "01000" - //============================================================ + //= Properties - //============================================================ + #define PROPERTY_APPLYFORMDESIGNMODE "ApplyFormDesignMode" #define PROPERTY_IS_FORM "IsForm" #define PROPERTY_PERSISTENT_PATH "PersistentPath" diff --git a/dbaccess/source/inc/dbustrings.hrc b/dbaccess/source/inc/dbustrings.hrc index 3f152e4c56f3..3bb0adf9e6ec 100644 --- a/dbaccess/source/inc/dbustrings.hrc +++ b/dbaccess/source/inc/dbustrings.hrc @@ -26,9 +26,9 @@ #undef STRINGCONSTANTS_INCLUDED_INDIRECT #include "stringconstants.inc" - //============================================================ + //= URLs - //============================================================ + #define URL_COMPONENT_QUERYDESIGN ".component:DB/QueryDesign" #define URL_COMPONENT_VIEWDESIGN ".component:DB/ViewDesign" #define URL_COMPONENT_TABLEDESIGN ".component:DB/TableDesign" @@ -38,23 +38,23 @@ #define URL_COMPONENT_APPLICATION ".component:DB/Application" #define URL_COMPONENT_REPORTDESIGN ".component:DB/ReportDesign" - //============================================================ + //= service names - //============================================================ + #define SERVICE_SDB_DIRECTSQLDIALOG "org.openoffice.comp.dbu.DirectSqlDialog" - //============================================================ + //= other DBU relevant strings - //============================================================ + #define FRAME_NAME_QUERY_PREVIEW "QueryPreview" #define SERVICE_CONTROLDEFAULT "com.sun.star.comp.dbu.OColumnControl" #define PROPERTY_QUERYDESIGNVIEW "QueryDesignView" #define PROPERTY_GRAPHICAL_DESIGN "GraphicalDesign" #define PROPERTY_HELP_URL "HelpURL" - //============================================================ + //= other DBU properties - //============================================================ + #define PROPERTY_TRISTATE "TriState" #define PROPERTY_ENABLEOUTERJOIN "EnableOuterJoinEscape" #define PROPERTY_TABSTOP "TabStop" diff --git a/dbaccess/source/inc/stringconstants.hrc b/dbaccess/source/inc/stringconstants.hrc index 5cbba1389f3d..1106a0e72697 100644 --- a/dbaccess/source/inc/stringconstants.hrc +++ b/dbaccess/source/inc/stringconstants.hrc @@ -24,9 +24,9 @@ #error "don't include this file directly! use dbastrings.hrc or dbustrings.hrc instead!" #endif -//============================================================ + //= property ids -//============================================================ + #define PROPERTY_ID_TITLE 1 #define PROPERTY_ID_URL 2 #define PROPERTY_ID_INFO 4 diff --git a/dbaccess/source/inc/stringconstants.inc b/dbaccess/source/inc/stringconstants.inc index 3148c7750fdf..49b515722ad5 100644 --- a/dbaccess/source/inc/stringconstants.inc +++ b/dbaccess/source/inc/stringconstants.inc @@ -18,9 +18,9 @@ // be included itself -//============================================================ + //= property names -//============================================================ + #define PROPERTY_URL "URL" #define PROPERTY_INFO "Info" #define PROPERTY_SETTINGS "Settings" @@ -175,9 +175,9 @@ #define PROPERTY_SINGLESELECTQUERYCOMPOSER "SingleSelectQueryComposer" #define PROPERTY_CHANGE_NOTIFICATION_ENABLED "PropertyChangeNotificationEnabled" -//============================================================ + //= service names -//============================================================ + #define SERVICE_SDBC_RESULTSET "com.sun.star.sdbc.ResultSet" #define SERVICE_SDBC_ROWSET "com.sun.star.sdbc.RowSet" #define SERVICE_SDBC_STATEMENT "com.sun.star.sdbc.Statement" diff --git a/dbaccess/source/sdbtools/connection/objectnames.cxx b/dbaccess/source/sdbtools/connection/objectnames.cxx index 10766ef46777..0f5425870248 100644 --- a/dbaccess/source/sdbtools/connection/objectnames.cxx +++ b/dbaccess/source/sdbtools/connection/objectnames.cxx @@ -172,9 +172,9 @@ namespace sdbtools { if ( ( _rName.indexOf( (sal_Unicode)34 ) >= 0 ) // " || ( _rName.indexOf( (sal_Unicode)39 ) >= 0 ) // ' - || ( _rName.indexOf( (sal_Unicode)96 ) >= 0 ) // - || ( _rName.indexOf( (sal_Unicode)145 ) >= 0 ) // - || ( _rName.indexOf( (sal_Unicode)146 ) >= 0 ) // + || ( _rName.indexOf( (sal_Unicode)96 ) >= 0 ) + || ( _rName.indexOf( (sal_Unicode)145 ) >= 0 ) + || ( _rName.indexOf( (sal_Unicode)146 ) >= 0 ) || ( _rName.indexOf( (sal_Unicode)180 ) >= 0 ) // removed unparsable chars ) return ErrorCondition::DB_QUERY_NAME_WITH_QUOTES; diff --git a/dbaccess/source/sdbtools/inc/sdbt_resource.hrc b/dbaccess/source/sdbtools/inc/sdbt_resource.hrc index 185c5f65b818..a28176765276 100644 --- a/dbaccess/source/sdbtools/inc/sdbt_resource.hrc +++ b/dbaccess/source/sdbtools/inc/sdbt_resource.hrc @@ -22,10 +22,10 @@ #include -//------------------------------------------------------------------------------ + #define RID_SDBT_STRINGS_START RID_DBACCESS_START -//------------------------------------------------------------------------------ + //- String-IDs #define STR_QUERY_AND_TABLE_DISTINCT_NAMES RID_SDBT_STRINGS_START + 0 #define STR_BASENAME_TABLE RID_SDBT_STRINGS_START + 1 diff --git a/dbaccess/source/ui/dlg/AutoControls.src b/dbaccess/source/ui/dlg/AutoControls.src index 265b64a862a5..dc2b1c7eada5 100644 --- a/dbaccess/source/ui/dlg/AutoControls.src +++ b/dbaccess/source/ui/dlg/AutoControls.src @@ -90,6 +90,6 @@ String STR_ADD_TABLE_OR_QUERY }; -// ------------------------------------------------------------------------------------------------- + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/dbaccess/source/ui/dlg/AutoControls_tmpl.hrc b/dbaccess/source/ui/dlg/AutoControls_tmpl.hrc index 47b1d1e6fac7..4452d32276d3 100644 --- a/dbaccess/source/ui/dlg/AutoControls_tmpl.hrc +++ b/dbaccess/source/ui/dlg/AutoControls_tmpl.hrc @@ -105,7 +105,7 @@ WordBreak = TRUE; \ }; -// ------------------------------------------------------------------------------------------------- + #define AUTO_BROWSECONTROLGROUP( AUTO_X, AUTO_Y, AUTOPAGE_X, AUTO_HID, AUTO_HID2) \ @@ -143,7 +143,7 @@ Text[ en-US ] = "Create New"; \ }; -// -------------------------------------------------------------------------------------------------- + #define AUTO_NAMECONTROLGROUP(AUTO_Y, AUTO_HID) \ @@ -163,7 +163,7 @@ Border = TRUE ; \ }; -// -------------------------------------------------------------------------------------------------- + #define AUTO_HOSTCONTROLGROUP(AUTO_Y, AUTO_HID) \ @@ -183,7 +183,7 @@ Border = TRUE ; \ }; -// -------------------------------------------------------------------------------------------------- + #define AUTO_BASEDNCONTROLGROUP(AUTO_Y, AUTO_HID) \ @@ -203,7 +203,7 @@ Border = TRUE ; \ }; \ -// -------------------------------------------------------------------------------------------------- + // MBA: the HID set in the FixText can't make any sense; in case this macro was called from within the // AUTOHELP_JDBCCONTROLGROUP, the FixText would have got the same HID as an EditField from the @@ -233,7 +233,7 @@ Text[ en-US ] = "" ; \ }; -//------------------------------------------------------------------------- + #define AUTO_CHARSET( AUTO_Y, AUTOPAGE_X ) \ FixedLine FL_DATACONVERT \ @@ -259,7 +259,7 @@ CurPos = 0 ; \ }; \ -// -------------------------------------------------------------------------------------------------- + #define AUTO_SEPARATORCONTROLGROUP(AUTO_Y,AUTOPAGE_X) \ \ FixedText FT_AUTOEXTENSIONHEADER \ @@ -432,14 +432,14 @@ }; -// -------------------------------------------------------------------------------------------------- + #define AUTO_HELP_BROWSECONTROLGROUP(AUTO_LINECOUNT, AUTO_HID, AUTO_HID2) \ AUTO_WIZARDHELPTEXT(AUTO_LINECOUNT) \ AUTO_BROWSECONTROLGROUP(START_X, INIT_Y + AUTO_LINECOUNT * FIXEDTEXT_HEIGHT + 2, WIZARD_PAGE_X, AUTO_HID, AUTO_HID2) -// -------------------------------------------------------------------------------------------------- + #define AUTO_JDBCDRIVERCLASSGROUP(AUTO_Y, AUTO_HID, AUTO_HID2) \ \ @@ -469,7 +469,7 @@ Text[ en-US ] = "Test class" ; \ }; -// -------------------------------------------------------------------------------------------------- + #define AUTO_SOCKETCONTROLGROUP(AUTO_Y) \ FixedText FT_SOCKET \ @@ -497,7 +497,7 @@ AUTO_JDBCDRIVERCLASSGROUP(146, AUTO_HID4, AUTO_HID5) -// -------------------------------------------------------------------------------------------------- + #endif diff --git a/dbaccess/source/ui/dlg/ConnectionPage.hrc b/dbaccess/source/ui/dlg/ConnectionPage.hrc index a976f7ef6e8e..3837328413fb 100644 --- a/dbaccess/source/ui/dlg/ConnectionPage.hrc +++ b/dbaccess/source/ui/dlg/ConnectionPage.hrc @@ -20,7 +20,7 @@ #ifndef DBAUI_CONNECTIONPAGE_HRC #define DBAUI_CONNECTIONPAGE_HRC -//======================================================================== + // control ids #define FT_USERNAME 1 diff --git a/dbaccess/source/ui/dlg/ConnectionPage.src b/dbaccess/source/ui/dlg/ConnectionPage.src index 34a14b82efa9..72a6d8825e96 100644 --- a/dbaccess/source/ui/dlg/ConnectionPage.src +++ b/dbaccess/source/ui/dlg/ConnectionPage.src @@ -22,7 +22,7 @@ #include "ConnectionPage.hrc" #include "AutoControls.hrc" -//......................................................................... + TabPage PAGE_CONNECTION { HelpID = "dbaccess:TabPage:PAGE_CONNECTION"; diff --git a/dbaccess/source/ui/dlg/dbadmin.hrc b/dbaccess/source/ui/dlg/dbadmin.hrc index c0aaf6028401..df3270053c74 100644 --- a/dbaccess/source/ui/dlg/dbadmin.hrc +++ b/dbaccess/source/ui/dlg/dbadmin.hrc @@ -20,7 +20,7 @@ #ifndef _DBAUI_DBADMIN_HRC_ #define _DBAUI_DBADMIN_HRC_ -//======================================================================== + // control ids // FREE diff --git a/dbaccess/source/ui/dlg/dbadmin.src b/dbaccess/source/ui/dlg/dbadmin.src index b4de71beec83..5f18d1ff2134 100644 --- a/dbaccess/source/ui/dlg/dbadmin.src +++ b/dbaccess/source/ui/dlg/dbadmin.src @@ -24,7 +24,7 @@ #include "browserids.hxx" #include "admincontrols.hrc" -//------------------------------------------------------------------------- + #define AUTO_USECATALOG(AUTO_Y) \ CheckBox CB_USECATALOG \ @@ -36,7 +36,7 @@ Text[ en-US ] = "Use catalog for file-based databases"; \ }; -//------------------------------------------------------------------------- + #define AUTO_FIXEDLINE_CONNSETTINGS(AUTO_Y) \ FixedLine FL_SEPARATOR1 \ @@ -76,7 +76,7 @@ Pos = MAP_APPFONT ( EDIT_X , AUTO_Y +UNRELATED_CONTROLS + FIXEDTEXT_HEIGHT ) ; \ Size = MAP_APPFONT ( 97 , EDIT_HEIGHT ) ; \ }; -//------------------------------------------------------------------------- + ModalDialog DLG_DATABASE_TYPE_CHANGE { @@ -93,7 +93,7 @@ ModalDialog DLG_DATABASE_TYPE_CHANGE Text [ en-US ] = "Database properties" ; }; -//......................................................................... + TabPage PAGE_DBASE { @@ -140,7 +140,7 @@ TabPage PAGE_DBASE }; }; -//......................................................................... + TabPage PAGE_ADO { @@ -152,7 +152,7 @@ TabPage PAGE_ADO AUTO_CHARSET(UNRELATED_CONTROLS,PAGE_X) }; -//......................................................................... + TabPage PAGE_ODBC { @@ -188,7 +188,7 @@ TabPage PAGE_ODBC AUTO_USECATALOG( 3*UNRELATED_CONTROLS + 4*FIXEDTEXT_HEIGHT + 2*RELATED_CONTROLS ) }; -//......................................................................... + TabPage PAGE_MYSQL_ODBC { @@ -324,7 +324,7 @@ TabPage PAGE_ORACLE_JDBC AUTO_CHARSET( 5*UNRELATED_CONTROLS + RELATED_CONTROLS + 4*FIXEDTEXT_HEIGHT+ EDIT_HEIGHT, PAGE_X ) }; -//......................................................................... + TabPage PAGE_LDAP { @@ -399,7 +399,7 @@ TabPage PAGE_LDAP }; -//......................................................................... + TabPage PAGE_TEXT { @@ -412,7 +412,7 @@ TabPage PAGE_TEXT AUTO_SEPARATORCONTROLGROUP(UNRELATED_CONTROLS, PAGE_X) }; -//......................................................................... + TabPage PAGE_USERDRIVER { SVLook = TRUE ; diff --git a/dbaccess/source/ui/dlg/dbadmin2.src b/dbaccess/source/ui/dlg/dbadmin2.src index 625c2b4dda66..cc8ba251508f 100644 --- a/dbaccess/source/ui/dlg/dbadmin2.src +++ b/dbaccess/source/ui/dlg/dbadmin2.src @@ -24,7 +24,7 @@ #include "toolbox.hrc" #include "AutoControls.hrc" -//......................................................................... + String STR_ENTER_CONNECTION_PASSWORD { diff --git a/dbaccess/source/ui/dlg/dbadminsetup.src b/dbaccess/source/ui/dlg/dbadminsetup.src index b5de1bbff45b..f4617a872287 100644 --- a/dbaccess/source/ui/dlg/dbadminsetup.src +++ b/dbaccess/source/ui/dlg/dbadminsetup.src @@ -28,7 +28,7 @@ #define EDIT_X 101 -// ----------------------------------------------------------------------------- + ModalDialog DLG_DATABASE_WIZARD { OutputSize = TRUE ; diff --git a/dbaccess/source/ui/dlg/sqlmessage.src b/dbaccess/source/ui/dlg/sqlmessage.src index 0991505c2ec0..ba0b9ece4426 100644 --- a/dbaccess/source/ui/dlg/sqlmessage.src +++ b/dbaccess/source/ui/dlg/sqlmessage.src @@ -21,7 +21,7 @@ #include "dbu_dlg.hrc" #include "sqlmessage.hrc" -//------------------------------------------------------------------------- + Image BMP_EXCEPTION_ERROR { ImageBitmap = Bitmap { File = "exerror.png"; }; diff --git a/dbaccess/source/ui/imagelists/dbimagelists.src b/dbaccess/source/ui/imagelists/dbimagelists.src index 35fa9387505d..3269c4bc99f3 100644 --- a/dbaccess/source/ui/imagelists/dbimagelists.src +++ b/dbaccess/source/ui/imagelists/dbimagelists.src @@ -22,7 +22,7 @@ #define MASKCOLOR MaskColor = Color { Red = 0xFFFF; Green = 0x0000; Blue = 0xFFFF; } -//------------------------------------------------------------------------- + #define IL_TOOL_2 \ \ IdList = {\ @@ -75,10 +75,10 @@ Image IMG_TABLEFOLDER_TREE_L MASKCOLOR; }; -//======================================================================== + //= database object icons -//------------------------------------------------------------------------ + // the whole database Image DATABASE_TREE_ICON @@ -87,7 +87,7 @@ Image DATABASE_TREE_ICON MaskColor = Color { Red = 0xff00 ; Green = 0x0000 ; Blue = 0xff00 ; }; }; -//------------------------------------------------------------------------ + // tables and table folders Image TABLE_TREE_ICON @@ -102,7 +102,7 @@ Image TABLEFOLDER_TREE_ICON MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; }; -//------------------------------------------------------------------------ + // views Image VIEW_TREE_ICON @@ -111,7 +111,7 @@ Image VIEW_TREE_ICON MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; }; -//------------------------------------------------------------------------ + // queries and query folders Image QUERY_TREE_ICON @@ -126,7 +126,7 @@ Image QUERYFOLDER_TREE_ICON MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; }; -//------------------------------------------------------------------------ + // forms and form folders Image FORM_TREE_ICON @@ -141,7 +141,7 @@ Image FORMFOLDER_TREE_ICON MASKCOLOR; }; -//------------------------------------------------------------------------ + // reports and report folders Image REPORT_TREE_ICON diff --git a/dbaccess/source/ui/inc/TableController.hxx b/dbaccess/source/ui/inc/TableController.hxx index b77aa4ad909e..89754ddd048c 100644 --- a/dbaccess/source/ui/inc/TableController.hxx +++ b/dbaccess/source/ui/inc/TableController.hxx @@ -130,7 +130,7 @@ namespace dbaui static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&); - // + virtual void Load(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxIn); virtual void Save(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOut); diff --git a/dbaccess/source/ui/inc/dbu_resource.hrc b/dbaccess/source/ui/inc/dbu_resource.hrc index e9be206cafb5..37be9ab23c22 100644 --- a/dbaccess/source/ui/inc/dbu_resource.hrc +++ b/dbaccess/source/ui/inc/dbu_resource.hrc @@ -73,7 +73,7 @@ #error Resource-Id Ueberlauf in #file, #line #endif -//======================================================================== + // dialog ids #define DLG_SQLEXCEPTIONCHAIN RID_DIALOG_START + 3 @@ -93,7 +93,7 @@ #define DLG_DATABASE_TYPE_CHANGE RID_DIALOG_START + 28 #define DLG_DATABASE_WIZARD RID_DIALOG_START + 29 #define DLG_TEXT_CONNECTION_SETTINGS RID_DIALOG_START + 31 -//======================================================================== + // tab pages // FREE @@ -136,14 +136,14 @@ #define PAGE_DBWIZARD_USERDEFINED RID_PAGE_START + 56 #define PAGE_DBWIZARD_MYSQL_NATIVE RID_PAGE_START + 57 -//======================================================================== + // error boxes #define ERR_QRY_CRITERIA_ON_ASTERISK RID_ERRORBOX_START + 2 #define ERR_QRY_ORDERBY_ON_ASTERISK RID_ERRORBOX_START + 3 #define ERR_NEED_INDEX_FIELDS RID_ERRORBOX_START + 8 -//======================================================================== + // query boxes #define QUERY_BRW_DELETE_ROWS RID_QUERYBOX_START + 0 @@ -161,7 +161,7 @@ #define QUERY_USERADMIN_DELETE_USER RID_QUERYBOX_START + 12 #define TABLE_DESIGN_ALL_ROWS_DELETED RID_QUERYBOX_START + 13 -//======================================================================== + // images #define TABLE_TREE_ICON RID_IMAGE_START + 0 @@ -189,13 +189,13 @@ #define FORMFOLDER_TREE_ICON RID_IMAGE_START + 55 -//======================================================================== + // image lists #define IMG_JOINS RID_IMAGELIST_START + 0 #define IMG_INDEX_DLG_SC RID_IMAGELIST_START + 1 #define IMG_INDEX_DLG_LC RID_IMAGELIST_START + 3 -//======================================================================== + // menus #define RID_SBA_GRID_COLCTXMENU RID_MENU_START + 2 @@ -214,13 +214,13 @@ -//======================================================================== + // controls #define RID_DB_TAB_EDITOR RID_CONTROL_START + 0 #define RID_MYSQL_NATIVE_SETTINGS RID_CONTROL_START + 1 -//======================================================================== + // strings #define STR_TBL_TITLE RID_STR_GEN_START #define STR_ERROR_DURING_CREATION RID_STR_GEN_START + 1 @@ -270,13 +270,13 @@ #define STR_TITLE_RENAME RID_STR_GEN_START + 45 #define STR_TITLE_PASTE_AS RID_STR_GEN_START + 46 -//======================================================================== + // untyped resources #define RSC_CHARSETS RID_UNTYPED_START + 2 #define RSC_QUERY_OBJECT_TYPE RID_UNTYPED_START + 4 -//======================================================================== + // various #define PB_FORMAT RID_MISC_START + 0 diff --git a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx index 30747964f870..3f05c8993de2 100644 --- a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx +++ b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx @@ -32,7 +32,7 @@ namespace dbaui class ORowUpdateHelper : public IUpdateHelper { ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowUpdate > m_xRowUpdate; - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetUpdate > m_xResultSetUpdate; // + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetUpdate > m_xResultSetUpdate; public: ORowUpdateHelper(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet>& _xRowSet) :m_xRowUpdate(_xRowSet,::com::sun::star::uno::UNO_QUERY) diff --git a/dbaccess/source/ui/misc/WizardPages.src b/dbaccess/source/ui/misc/WizardPages.src index 91e9f82c0442..e74aec208aa5 100644 --- a/dbaccess/source/ui/misc/WizardPages.src +++ b/dbaccess/source/ui/misc/WizardPages.src @@ -98,9 +98,9 @@ ModalDialog WIZ_RTFCOPYTABLE }; -//================================================================== + // TAB_WIZ_COLUMN_SELECT - //================================================================== + TabPage TAB_WIZ_COLUMN_SELECT { SVLook = TRUE ; @@ -225,9 +225,9 @@ TabPage TAB_WIZ_COLUMN_SELECT }; }; -//================================================================== + // TAB_WIZ_TYPE_SELECT - //================================================================== + TabPage TAB_WIZ_TYPE_SELECT { SVLook = TRUE ; @@ -312,9 +312,9 @@ Menu RID_SBA_RTF_PKEYPOPUP }; }; -//================================================================== + // TAB_WIZ_NAME_MATCHING - //================================================================== + TabPage TAB_WIZ_NAME_MATCHING { HelpID = "dbaccess:TabPage:TAB_WIZ_NAME_MATCHING"; diff --git a/dbaccess/source/ui/misc/uiservices.cxx b/dbaccess/source/ui/misc/uiservices.cxx index 78c1018aac71..2a95483dcecb 100644 --- a/dbaccess/source/ui/misc/uiservices.cxx +++ b/dbaccess/source/ui/misc/uiservices.cxx @@ -26,8 +26,8 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::registry; -//*************************************************************************************** -// + + // registry functions extern "C" void SAL_CALL createRegistryInfo_OTableFilterDialog(); extern "C" void SAL_CALL createRegistryInfo_ODataSourcePropertyDialog(); @@ -55,7 +55,7 @@ extern "C" void SAL_CALL createRegistryInfo_CopyTableWizard(); extern "C" void SAL_CALL createRegistryInfo_OTextConnectionSettingsDialog(); extern "C" void SAL_CALL createRegistryInfo_LimitBoxController(); -//*************************************************************************************** + extern "C" void SAL_CALL createRegistryInfo_DBU() { static sal_Bool bInit = sal_False;