Kaydet (Commit) 2b064016 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused defines from HRC files in dbaccess

Change-Id: Ib6ef44769318e133db5744260ff9103d310ff848
Reviewed-on: https://gerrit.libreoffice.org/35268Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst f2a873cd
......@@ -132,6 +132,8 @@ with a.stdout as txt:
if "sw/inc/poolfmt.hrc:" in line2: found_reason_to_exclude = True
# not sure about these, looks suspicious
if "sd/source/ui/app/strings.src:" in line2 and idName.endswith("_TOOLBOX"): found_reason_to_exclude = True
# used via a macro that hides them from search
if "dbaccess/" in line2 and idName.startswith("PROPERTY_ID_"): found_reason_to_exclude = True
if not found_reason_to_exclude:
sys.stdout.write(idName + '\n')
......
......@@ -47,7 +47,6 @@ $(eval $(call gb_SrsTarget_add_files,dbaccess/dbu,\
dbaccess/source/ui/relationdesign/relation.src \
dbaccess/source/ui/tabledesign/table.src \
dbaccess/source/ui/uno/copytablewizard.src \
dbaccess/source/ui/uno/dbinteraction.src \
))
$(eval $(call gb_SrsTarget_add_nonlocalizable_files,dbaccess/dbu,\
......
......@@ -48,7 +48,6 @@
#define STR_STATE_BACKUP_DBDOC ( RID_DBMM_STRING_START + 21 )
#define STR_STATE_MIGRATE ( RID_DBMM_STRING_START + 22 )
#define STR_STATE_SUMMARY ( RID_DBMM_STRING_START + 23 )
#define STR_TITLE_MACRO_MIGRATION ( RID_DBMM_STRING_START + 24 )
#define STR_INVALID_BACKUP_LOCATION ( RID_DBMM_STRING_START + 25 )
#endif // DBACCESS_DBMM_GLOBAL_HRC
......
......@@ -19,11 +19,6 @@
#include "dbmm_global.hrc"
String STR_TITLE_MACRO_MIGRATION
{
Text [ en-US ] = "Database Document Macro Migration" ;
};
String STR_STATE_CLOSE_SUB_DOCS
{
Text [ en-US ] = "Prepare";
......
......@@ -78,15 +78,6 @@ String RID_STR_REPORTS_CONTAINER
{
Text [ en-US ] = "Reports" ;
};
String STR_QUERY_DELETE_DATASOURCE
{
Text [ en-US ] = "Do you want to delete the data source '%1'?" ;
};
String STR_APP_TITLE
{
Text [ en-US ] = " - %PRODUCTNAME Base" ;
};
String RID_STR_REPORTS_HELP_TEXT_WIZARD
{
......@@ -158,11 +149,6 @@ String STR_PREVIEW
Text [ en-US ] = "Preview" ;
};
String STR_DISABLEPREVIEW
{
Text [ en-US ] = "Disable Preview" ;
};
String STR_QUERY_CLOSEDOCUMENTS
{
Text [ en-US ] = "The connection type has been altered.\nFor the changes to take effect, all forms, reports, queries and tables must be closed.\n\nDo you want to close all documents now?" ;
......@@ -244,11 +230,6 @@ String STR_TBL_LABEL
Text [ en-US ] = "~Table Name" ;
};
String STR_VW_LABEL
{
Text [ en-US ] = "~Name of table view" ;
};
String STR_QRY_LABEL
{
Text [ en-US ] = "~Query name" ;
......
......@@ -30,8 +30,6 @@
#define RID_STR_NEW_VIEW RID_STR_APP_START + 6
#define RID_STR_NEW_QUERY RID_STR_APP_START + 8
#define RID_STR_NEW_QUERY_AUTO RID_STR_APP_START + 9
#define STR_QUERY_DELETE_DATASOURCE RID_STR_APP_START + 10
#define STR_APP_TITLE RID_STR_APP_START + 11
#define RID_STR_NEW_QUERY_SQL RID_STR_APP_START + 12
#define RID_STR_REPORTS_CONTAINER RID_STR_APP_START + 13
#define RID_STR_FORMS_CONTAINER RID_STR_APP_START + 14
......@@ -44,7 +42,6 @@
#define STR_TASKS RID_STR_APP_START + 22
#define STR_DESCRIPTION RID_STR_APP_START + 23
#define STR_PREVIEW RID_STR_APP_START + 24
#define STR_DISABLEPREVIEW RID_STR_APP_START + 25
#define RID_STR_QUERIES_HELP_TEXT_WIZARD RID_STR_APP_START + 26
#define RID_STR_TABLES_HELP_TEXT_DESIGN RID_STR_APP_START + 27
#define RID_STR_TABLES_HELP_TEXT_WIZARD RID_STR_APP_START + 28
......
......@@ -30,16 +30,6 @@ String STR_NOREGISTEREDDRIVER
Text [ en-US ] = "A driver is not registered for the URL #connurl#.";
};
String STR_COULDNOTCONNECT
{
Text [ en-US ] = "No connection could be established for the URL #connurl#.";
};
String STR_COULDNOTCONNECT_PLEASECHECK
{
Text [ en-US ] = "Please check the current settings, for example user name and password.";
};
String STR_NOTABLEINFO
{
Text [ en-US ] = "Successfully connected, but information about database tables is not available.";
......
......@@ -30,8 +30,6 @@
#define STR_TABLE_PRIV_DROP RID_STR_CONTROL_START + 6
#define STR_TABLE_PRIV_SELECT RID_STR_CONTROL_START + 7
#define STR_ALL_TABLES_AND_VIEWS RID_STR_CONTROL_START + 8
#define STR_COULDNOTCONNECT RID_STR_CONTROL_START + 9
#define STR_COULDNOTCONNECT_PLEASECHECK RID_STR_CONTROL_START + 10
#define STR_NOTABLEINFO RID_STR_CONTROL_START + 11
#define STR_ALL_TABLES RID_STR_CONTROL_START + 12
#define STR_ALL_VIEWS RID_STR_CONTROL_START + 13
......
......@@ -59,20 +59,17 @@
#define STR_QRY_NATIVE RID_STR_QRY_START + 39
#define STR_QRY_TOO_MANY_TABLES RID_STR_QRY_START + 40
// empty
#define STR_QUERYDESIGN RID_STR_QRY_START + 42
#define STR_VIEWDESIGN RID_STR_QRY_START + 43
#define STR_JOIN_TYPE_HINT RID_STR_QRY_START + 44
#define STR_QUERY_SAVEMODIFIED RID_STR_QRY_START + 45
#define STR_ERROR_PARSING_STATEMENT RID_STR_QRY_START + 46
#define STR_INFO_OPENING_IN_SQL_VIEW RID_STR_QRY_START + 47
#define STR_STATEMENT_WITHOUT_RESULT_SET RID_STR_QRY_START + 48
#define STR_NO_DATASOURCE_OR_CONNECTION RID_STR_QRY_START + 49
// empty
#define STR_NO_ALTER_VIEW_SUPPORT RID_STR_QRY_START + 50
#define STR_QUERY_CROSS_JOIN RID_STR_QRY_START + 51
#define STR_QUERY_NATURAL_JOIN RID_STR_QRY_START + 52
// please adjust checking when inserting new strings
#if STR_QUERY_NATURAL_JOIN > RID_STR_QRY_END
#if STR_QUERY_CROSS_JOIN > RID_STR_QRY_END
#error resource id overflow in #file, #line
#endif
......
......@@ -139,18 +139,16 @@
#define STR_NAME_ALREADY_EXISTS RID_STR_GEN_START + 3
#define STR_PAGETITLE_GENERAL RID_STR_GEN_START + 4
#define STR_TITLE_CONFIRM_DELETION RID_STR_GEN_START + 5
#define STR_STAT_WARNING RID_STR_GEN_START + 6
#define STR_TABLEDESIGN_DATASOURCE_DELETED RID_STR_GEN_START + 7
#define STR_TABLEDESIGN_DBFIELDTYPES RID_STR_GEN_START + 8
#define STR_QRY_CONTINUE RID_STR_GEN_START + 9
#define STR_COLUMN_NAME RID_STR_GEN_START + 10
#define STR_ERROR_OCCURRED_WHILE_COPYING RID_STR_GEN_START + 11
#define STR_ERROR_OCCURRED_WHILE_COPYING RID_STR_GEN_START + 11
#define STR_MISSING_TABLES_XDROP RID_STR_GEN_START + 12
#define STR_QUERY_DELETE_TABLE RID_STR_GEN_START + 13
#define STR_BUTTON_TEXT_ALL RID_STR_GEN_START + 14
#define STR_COULDNOTCREATE_DRIVERMANAGER RID_STR_GEN_START + 15
#define STR_UNEXPECTED_ERROR RID_STR_GEN_START + 16
#define STR_REMEMBERPASSWORD_SESSION RID_STR_GEN_START + 17
#define STR_ENTER_CONNECTION_PASSWORD RID_STR_GEN_START + 18
#define STR_NOREGISTEREDDRIVER RID_STR_GEN_START + 19
#define STR_DATASOURCE_DELETED RID_STR_GEN_START + 20
......@@ -176,16 +174,15 @@
#define RID_STR_EXTENSION_NOT_PRESENT RID_STR_GEN_START + 40
#define STR_PAGETITLE_CONNECTION RID_STR_GEN_START + 41
#define STR_TBL_LABEL RID_STR_GEN_START + 42
#define STR_VW_LABEL RID_STR_GEN_START + 43
#define STR_QRY_LABEL RID_STR_GEN_START + 44
#define STR_TITLE_RENAME RID_STR_GEN_START + 45
#define STR_TITLE_PASTE_AS RID_STR_GEN_START + 46
#define STR_AUTOFIELDSEPARATORLIST RID_STR_GEN_START + 47
#define STR_AUTOTEXTSEPARATORLIST RID_STR_GEN_START + 48
#define STR_AUTOTEXT_FIELD_SEP_NONE RID_STR_GEN_START + 49
#define STR_AUTODELIMITER_MISSING RID_STR_GEN_START + 50
#define STR_AUTODELIMITER_MUST_DIFFER RID_STR_GEN_START + 51
#define STR_AUTONO_WILDCARDS RID_STR_GEN_START + 52
#define STR_AUTOFIELDSEPARATORLIST RID_STR_GEN_START + 47
#define STR_AUTOTEXTSEPARATORLIST RID_STR_GEN_START + 48
#define STR_AUTOTEXT_FIELD_SEP_NONE RID_STR_GEN_START + 49
#define STR_AUTODELIMITER_MISSING RID_STR_GEN_START + 50
#define STR_AUTODELIMITER_MUST_DIFFER RID_STR_GEN_START + 51
#define STR_AUTONO_WILDCARDS RID_STR_GEN_START + 52
#define STR_SPREADSHEET_HEADERTEXT RID_STR_GEN_START + 53
#define STR_SPREADSHEET_HELPTEXT RID_STR_GEN_START + 54
#define STR_SPREADSHEETPATH RID_STR_GEN_START + 55
......
......@@ -25,24 +25,16 @@
#define STR_TABLEDESIGN_UNDO_PRIMKEY RID_STR_TBL_START + 1
#define STR_VALUE_YES RID_STR_TBL_START + 2
#define STR_VALUE_NO RID_STR_TBL_START + 3
#define STR_VALUE_ASC RID_STR_TBL_START + 4
#define STR_VALUE_DESC RID_STR_TBL_START + 5
#define STR_VALUE_NONE RID_STR_TBL_START + 6
#define STR_TAB_FIELD_NAME RID_STR_TBL_START + 7
#define STR_TAB_FIELD_DATATYPE RID_STR_TBL_START + 8
#define STR_TAB_FIELD_LENGTH RID_STR_TBL_START + 9
#define STR_TAB_HELP_TEXT RID_STR_TBL_START + 10
#define STR_TAB_FIELD_NULLABLE RID_STR_TBL_START + 11
#define STR_FIELD_AUTOINCREMENT RID_STR_TBL_START + 12
#define STR_TAB_PROPERTIES RID_STR_TBL_START + 13
#define STR_TABPAGE_GENERAL RID_STR_TBL_START + 14
#define STR_TAB_TABLE_DESCRIPTION RID_STR_TBL_START + 15
#define STR_TAB_TABLE_PROPERTIES RID_STR_TBL_START + 16
#define STR_TABED_UNDO_TYPE_CHANGED RID_STR_TBL_START + 17
#define STR_TABED_UNDO_ROWDELETED RID_STR_TBL_START + 18
#define STR_TABED_UNDO_ROWINSERTED RID_STR_TBL_START + 19
#define STR_TABED_UNDO_NEWROWINSERTED RID_STR_TBL_START + 20
#define STR_TABED_UNDO_PRIMKEY RID_STR_TBL_START + 21
#define STR_HELP_AUTOINCREMENT RID_STR_TBL_START + 22
#define STR_HELP_FORMAT_CODE RID_STR_TBL_START + 23
#define STR_HELP_SCALE RID_STR_TBL_START + 24
......@@ -68,7 +60,6 @@
#define STR_HELP_FORMAT_BUTTON RID_STR_TBL_START + 44
#define STR_TABLEDESIGN_CONNECTION_MISSING RID_STR_TBL_START + 45
#define STR_TAB_FIELD_COLUMN_DATATYPE RID_STR_TBL_START + 46
#define STR_TABLEDESIGN_TITLE RID_STR_TBL_START + 47
#define STR_NO_TYPE_INFO_AVAILABLE RID_STR_TBL_START + 48
#define STR_CHANGE_COLUMN_NAME RID_STR_TBL_START + 49
#define STR_CHANGE_COLUMN_TYPE RID_STR_TBL_START + 50
......
......@@ -21,7 +21,6 @@
#include "dbu_resource.hrc"
#define STR_REMEMBERPASSWORD_PERSISTENT ( RID_STR_UNO_START + 0 )
#define STR_CTW_NO_VIEWS_SUPPORT ( RID_STR_UNO_START + 1 )
#define STR_CTW_NO_PRIMARY_KEY_SUPPORT ( RID_STR_UNO_START + 2 )
#define STR_CTW_INVALID_DATA_ACCESS_DESCRIPTOR ( RID_STR_UNO_START + 3 )
......
......@@ -32,39 +32,6 @@
// Ausrichtung
#define SBA_ATTR_ALIGN_HOR_JUSTIFY (SBA_WHICHID_START + 145) // SvxHorJustifyItem
// Spaltenbreite
#define SBA_DEF_FLTCOLWIDTH (SBA_WHICHID_START + 146) // SbaColRowSizeItem
// FieldType
#define SBA_DEF_FLTTYPE (SBA_WHICHID_START + 147) // DataFieldTypeItem
// Feldlnge
#define SBA_DEF_FLTLENGTH (SBA_WHICHID_START + 148) // SfxUInt32Item
// Eingabe erforderlich
#define SBA_DEF_FLTREQUIRED (SBA_WHICHID_START + 149) // SfxBoolItem
// Position in der Tabelle, Abfrage
#define SBA_DEF_FLTPOS (SBA_WHICHID_START + 150) // SfxUInt16Item
// Name der zugehoerigen Tabelle
#define SBA_DEF_FLTTABLE (SBA_WHICHID_START + 151) // SfxStringItem
// Spalte ausblenden
#define SBA_DEF_FLTHIDE (SBA_WHICHID_START + 152) // SfxBoolItem
// Ausrichtung
#define SBA_ATTR_ALIGN_HOR_JUSTIFY (SBA_WHICHID_START + 145) // SvxHorJustifyItem
// Spaltenbreite
#define SBA_DEF_FLTCOLWIDTH (SBA_WHICHID_START + 146) // SbaColRowSizeItem
// Feldtyp
#define SBA_DEF_FLTTYPE (SBA_WHICHID_START + 147) // DataFieldTypeItem
// Feldlnge
#define SBA_DEF_FLTLENGTH (SBA_WHICHID_START + 148) // SfxUInt32Item
// Eingabe erforderlich
#define SBA_DEF_FLTREQUIRED (SBA_WHICHID_START + 149) // SfxBoolItem
// Position in der Tabelle, Abfrage
#define SBA_DEF_FLTPOS (SBA_WHICHID_START + 150) // SfxUInt16Item
// Name der zugehoerigen Tabelle
#define SBA_DEF_FLTTABLE (SBA_WHICHID_START + 151) // SfxStringItem
// Spalte ausblenden
#define SBA_DEF_FLTHIDE (SBA_WHICHID_START + 152) // SfxBoolItem
#endif // DBACCESS_SBA_GRID_HRC
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -303,16 +303,6 @@ String STR_QRY_CHECK_CASESENSITIVE
Text [ en-US ] = "The column could not be found. Please note that the database is case-sensitive.";
};
String STR_QUERYDESIGN
{
Text [ en-US ] = " - %PRODUCTNAME Base: Query Design";
};
String STR_VIEWDESIGN
{
Text [ en-US ] = " - %PRODUCTNAME Base: View Design";
};
String STR_QUERY_SAVEMODIFIED
{
Text [ en-US ] = "$object$ has been changed.\nDo you want to save the changes?" ;
......@@ -348,9 +338,4 @@ String STR_STATEMENT_WITHOUT_RESULT_SET
Text [ en-US ] = "The query does not create a result set, and thus cannot be part of another query.";
};
String STR_NO_DATASOURCE_OR_CONNECTION
{
Text [ en-US ] = "Both the ActiveConnection and the DataSourceName parameter are missing or wrong - cannot initialize the query designer.";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -44,9 +44,4 @@ String STR_QUERY_CROSS_JOIN
Text [ en-US ] = "Contains the Cartesian product of ALL records from '%1' and from '%2'.";
};
String STR_QUERY_NATURAL_JOIN
{
Text [ en-US ] = "Contains only one column for each pair of equally-named columns from '%1' and from '%2'.";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -42,16 +42,6 @@ String STR_VALUE_NO
Text [ en-US ] = "No" ;
};
String STR_VALUE_ASC
{
Text [ en-US ] = "Ascending" ;
};
String STR_VALUE_DESC
{
Text [ en-US ] = "Descending" ;
};
String STR_VALUE_NONE
{
// Bemerkung : sollte auch in anderen Sprachen irgendwie zum Wort 'Wert' passen : Wert - keiner ....
......@@ -78,11 +68,6 @@ String STR_TAB_FIELD_COLUMN_DATATYPE
Text [ en-US ] = "Field Type" ;
};
String STR_TAB_FIELD_LENGTH
{
Text [ en-US ] = "Field length" ;
};
String STR_TAB_HELP_TEXT
{
Text [ en-US ] = "Description" ;
......@@ -93,11 +78,6 @@ String STR_COLUMN_DESCRIPTION
Text [ en-US ] = "Column Description" ;
};
String STR_TAB_FIELD_NULLABLE
{
Text [ en-US ] = "Input required" ;
};
String STR_FIELD_AUTOINCREMENT
{
Text [ en-US ] = "~AutoValue";
......@@ -108,21 +88,6 @@ String STR_TAB_PROPERTIES
Text [ en-US ] = "Field Properties" ;
};
String STR_TABPAGE_GENERAL
{
Text [ en-US ] = "General" ;
};
String STR_TAB_TABLE_DESCRIPTION
{
Text [ en-US ] = "Description:";
};
String STR_TAB_TABLE_PROPERTIES
{
Text [ en-US ] = "Table properties";
};
Menu RID_TABLEDESIGNROWPOPUPMENU
{
ItemList =
......@@ -196,11 +161,6 @@ String STR_TABED_UNDO_NEWROWINSERTED
Text [ en-US ] = "Insert new row" ;
};
String STR_TABED_UNDO_PRIMKEY
{
Text [ en-US ] = "Insert/remove primary key" ;
};
String STR_DEFAULT_VALUE
{
Text [ en-US ] = "~Default value" ;
......@@ -316,11 +276,6 @@ String STR_QRY_CONTINUE
Text [ en-US ] = "Continue anyway?" ;
};
String STR_STAT_WARNING
{
Text [ en-US ] = "Warning!" ;
};
String STR_TABLEDESIGN_CONNECTION_MISSING
{
Text [ en-US ] = "The table could not be saved due to problems connecting to the database.";
......@@ -346,11 +301,6 @@ String STR_TABLEDESIGN_NO_PRIM_KEY
Text [ en-US ] = "A unique index or primary key is required for data record identification in this database.\nYou can only enter data into this table when one of these two structural conditions has been met.\n\nShould a primary key be created now?" ;
};
String STR_TABLEDESIGN_TITLE
{
Text [ en-US ] = " - %PRODUCTNAME Base: Table Design";
};
String STR_TABLEDESIGN_ALTER_ERROR
{
Text [ en-US ] = "The column \"$column$\" could not be changed. Should the column instead be deleted and the new format appended?" ;
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "dbu_uno.hrc"
String STR_REMEMBERPASSWORD_SESSION
{
Text [ en-US ] = "~Remember password until end of session";
};
String STR_REMEMBERPASSWORD_PERSISTENT
{
Text [ en-US ] = "~Remember password";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -252,7 +252,7 @@ ${MYCMD} --files dbaccess/source/ui/relationdesign/relation.src
${MYCMD} --files dbaccess/source/ui/tabledesign/table.src
${MYCMD} --base dbaccess/source/ui/uno --files copytablewizard.src dbinteraction.src
${MYCMD} --base dbaccess/source/ui/uno --files copytablewizard.src
${MYCMD} --files desktop/source/app/desktop.src
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment