Commit 3da701ab authored by Morten Welinder's avatar Morten Welinder

Translation: mark gobject property strings with P_(...)

That way we don't ask translators to deal with them.  We aren't going to
show them, so there is no point in confusing translators and giving them
extra work.
parent 9a531746
2013-05-13 Morten Welinder <terra@gnome.org>
* src/*.c: Mark gobject property strings as P_(...).
2013-05-08 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/commands.c (cmd_merge_data_redo): unref merge_contents
......
......@@ -14,6 +14,7 @@ Morten:
* Add MPSEUDOINVERSE function.
* Add ctrl-shift-z as extra accelerator for redo. [#699579]
* Fix conditional format problem. [#699647]
* Remove gobject property strings from translation corpus.
--------------------------------------------------------------------------
Gnumeric 1.12.2
......
......@@ -29,7 +29,7 @@
#include <gnumeric-conf.h>
#include <goffice/goffice.h>
#include <gsf/gsf-impl-utils.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include <gtk/gtk.h>
#define GNM_APP(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GNM_APP_TYPE, GnmApp))
......@@ -1323,8 +1323,9 @@ gnm_app_class_init (GObjectClass *gobject_klass)
gobject_klass->finalize = gnumeric_application_finalize;
gobject_klass->get_property = gnumeric_application_get_property;
g_object_class_install_property (gobject_klass, APPLICATION_PROP_FILE_HISTORY_LIST,
g_param_spec_pointer ("file-history-list", _("File History List"),
_("A list of filenames that have been read recently"),
g_param_spec_pointer ("file-history-list",
P_("File History List"),
P_("A list of filenames that have been read recently"),
GSF_PARAM_STATIC | G_PARAM_READABLE));
signals[WORKBOOK_ADDED] = g_signal_new ("workbook_added",
......
......@@ -32,7 +32,7 @@
#include <expr-name.h>
#include <gsf/gsf-impl-utils.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include <string.h>
struct _GnmDataCacheSource {
......@@ -157,16 +157,20 @@ gnm_data_cache_source_class_init (GnmDataCacheSourceClass *klass)
gobject_class->finalize = gnm_data_cache_source_finalize;
g_object_class_install_property (gobject_class, PROP_SHEET,
g_param_spec_object ("src-sheet", "sheet",
"The source sheet.",
g_param_spec_object ("src-sheet",
P_("Sheet"),
P_("The source sheet"),
GNM_SHEET_TYPE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_RANGE,
g_param_spec_boxed ("src-range", "range",
"Optional named expression to generate a source range.",
g_param_spec_boxed ("src-range",
P_("Range"),
P_("Optional named expression to generate a source range"),
gnm_range_get_type (), GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_NAME,
g_param_spec_string ("src-name", "src-name",
"Optional named expression to generate a source range.", NULL,
g_param_spec_string ("src-name",
P_("source-name"),
P_("Optional named expression to generate a source range"),
NULL,
GSF_PARAM_STATIC | G_PARAM_READWRITE));
parent_klass = g_type_class_peek_parent (klass);
......
......@@ -18,6 +18,7 @@
#include "application.h"
#include "libgnumeric.h"
#include "dialogs.h"
#include "gnm-i18n.h"
#include <gsf/gsf-impl-utils.h>
#include <gtk/gtk.h>
......@@ -376,13 +377,15 @@ icg_class_init (GObjectClass *gobj_klass)
gobj_klass->set_property = icg_set_property;
g_object_class_install_property (gobj_klass, PROP_SHOW_SPLASH,
g_param_spec_boolean ("show-splash", "show-splash",
"Show a splash screen if loading takes more than a moment.",
g_param_spec_boolean ("show-splash",
P_("Show splash"),
P_("Show a splash screen if loading takes more than a moment"),
TRUE,
GSF_PARAM_STATIC | G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
g_object_class_install_property (gobj_klass, PROP_SHOW_WARNINGS,
g_param_spec_boolean ("show-warnings", "show-warnings",
"Show warning and password dialogs.",
g_param_spec_boolean ("show-warnings",
P_("Show warnings"),
P_("Show warning and password dialogs"),
TRUE,
GSF_PARAM_STATIC | G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
......
......@@ -8,7 +8,7 @@
*/
#include <gnumeric-config.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include "gnumeric.h"
#include "item-bar.h"
#include "gnm-pane-impl.h"
......@@ -1163,15 +1163,17 @@ gnm_item_bar_class_init (GObjectClass *gobject_klass)
gobject_klass->dispose = item_bar_dispose;
gobject_klass->set_property = item_bar_set_property;
g_object_class_install_property (gobject_klass, GNM_ITEM_BAR_PROP_PANE,
g_param_spec_object ("pane", "pane",
"The pane containing the associated grid",
GNM_PANE_TYPE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_object ("pane",
P_("Pane"),
P_("The pane containing the associated grid"),
GNM_PANE_TYPE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_klass, GNM_ITEM_BAR_PROP_IS_COL_HEADER,
g_param_spec_boolean ("IsColHeader", "IsColHeader",
"Is the item-bar a header for columns or rows",
FALSE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_boolean ("IsColHeader",
P_("IsColHeader"),
P_("Is the item-bar a header for columns or rows"),
FALSE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
item_klass->realize = item_bar_realize;
item_klass->unrealize = item_bar_unrealize;
......
......@@ -8,7 +8,7 @@
*/
#include <gnumeric-config.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include "gnumeric.h"
#include "item-cursor.h"
#include "gnm-pane-impl.h"
......@@ -1452,23 +1452,27 @@ gnm_item_cursor_class_init (GObjectClass *gobject_klass)
gobject_klass->set_property = item_cursor_set_property;
gobject_klass->dispose = item_cursor_dispose;
g_object_class_install_property (gobject_klass, ITEM_CURSOR_PROP_SHEET_CONTROL_GUI,
g_param_spec_object ("SheetControlGUI", "SheetControlGUI",
"the sheet control gui controlling the item",
SHEET_CONTROL_GUI_TYPE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_object ("SheetControlGUI",
P_("SheetControlGUI"),
P_("The sheet control gui controlling the item"),
SHEET_CONTROL_GUI_TYPE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_klass, ITEM_CURSOR_PROP_STYLE,
g_param_spec_int ("style", "Style",
"What type of cursor",
0, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_int ("style",
P_("Style"),
P_("What type of cursor"),
0, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_klass, ITEM_CURSOR_PROP_BUTTON,
g_param_spec_int ("button", "Button",
"what button initiated the drag",
0, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_int ("button",
P_("Button"),
P_("What button initiated the drag"),
0, G_MAXINT, 0,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_klass, ITEM_CURSOR_PROP_COLOR,
g_param_spec_uint ("color", "Color",
"Name of the cursor's color",
g_param_spec_uint ("color",
P_("Color"),
P_("Name of the cursor's color"),
0, 0xffffffff,
GO_COLOR_BLACK,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
......
......@@ -12,7 +12,7 @@
* ranges are highlighted on the spreadsheet).
*/
#include <gnumeric-config.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include "gnumeric.h"
#include "item-edit.h"
#include "gnm-pane-impl.h"
......@@ -728,14 +728,15 @@ gnm_item_edit_class_init (GObjectClass *gobject_class)
gobject_class->set_property = item_edit_set_property;
g_object_class_install_property (gobject_class, ARG_SHEET_CONTROL_GUI,
g_param_spec_object ("SheetControlGUI", "SheetControlGUI",
"the sheet control gui controlling the item",
SHEET_CONTROL_GUI_TYPE,
/* resist the urge to use G_PARAM_CONSTRUCT_ONLY
* We are going through goc_item_new, which
* calls g_object_new assigns the parent pointer before
* setting the construction parameters */
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_object ("SheetControlGUI",
P_("SheetControlGUI"),
P_("The sheet control gui controlling the item"),
SHEET_CONTROL_GUI_TYPE,
/* resist the urge to use G_PARAM_CONSTRUCT_ONLY
* We are going through goc_item_new, which
* calls g_object_new assigns the parent pointer before
* setting the construction parameters */
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
/* GocItem method overrides */
item_class->realize = item_edit_realize;
......
......@@ -1244,14 +1244,16 @@ gnm_item_grid_class_init (GObjectClass *gobject_klass)
gobject_klass->finalize = item_grid_finalize;
gobject_klass->set_property = item_grid_set_property;
g_object_class_install_property (gobject_klass, GNM_ITEM_GRID_PROP_SHEET_CONTROL_GUI,
g_param_spec_object ("SheetControlGUI", "SheetControlGUI",
"the sheet control gui controlling the item",
SHEET_CONTROL_GUI_TYPE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_object ("SheetControlGUI",
P_("SheetControlGUI"),
P_("The sheet control gui controlling the item"),
SHEET_CONTROL_GUI_TYPE,
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_klass, GNM_ITEM_GRID_PROP_BOUND,
g_param_spec_pointer ("bound", "Bound",
"The display bounds",
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
g_param_spec_pointer ("bound",
P_("Bound"),
P_("The display bounds"),
GSF_PARAM_STATIC | G_PARAM_WRITABLE));
item_klass->realize = item_grid_realize;
item_klass->unrealize = item_grid_unrealize;
......
......@@ -5,7 +5,7 @@
*/
#include <gnumeric-config.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include "gnumeric.h"
#include "search.h"
......@@ -705,8 +705,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_IS_NUMBER,
g_param_spec_boolean ("is-number",
_("Is Number"),
_("Search for Specific Number Regardless of Formatting?"),
P_("Is Number"),
P_("Search for Specific Number Regardless of Formatting?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -714,8 +714,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SEARCH_STRINGS,
g_param_spec_boolean ("search-strings",
_("Search Strings"),
_("Should strings be searched?"),
P_("Search Strings"),
P_("Should strings be searched?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -723,8 +723,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SEARCH_OTHER_VALUES,
g_param_spec_boolean ("search-other-values",
_("Search Other Values"),
_("Should non-strings be searched?"),
P_("Search Other Values"),
P_("Should non-strings be searched?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -732,8 +732,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SEARCH_EXPRESSIONS,
g_param_spec_boolean ("search-expressions",
_("Search Expressions"),
_("Should expressions be searched?"),
P_("Search Expressions"),
P_("Should expressions be searched?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -741,8 +741,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SEARCH_EXPRESSION_RESULTS,
g_param_spec_boolean ("search-expression-results",
_("Search Expression Results"),
_("Should the results of expressions be searched?"),
P_("Search Expression Results"),
P_("Should the results of expressions be searched?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -750,8 +750,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SEARCH_COMMENTS,
g_param_spec_boolean ("search-comments",
_("Search Comments"),
_("Should cell comments be searched?"),
P_("Search Comments"),
P_("Should cell comments be searched?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -759,8 +759,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SEARCH_SCRIPTS,
g_param_spec_boolean ("search-scripts",
_("Search Scripts"),
_("Should scrips (workbook, and worksheet) be searched?"),
P_("Search Scripts"),
P_("Should scrips (workbook, and worksheet) be searched?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -768,8 +768,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_INVERT,
g_param_spec_boolean ("invert",
_("Invert"),
_("Collect non-matching items"),
P_("Invert"),
P_("Collect non-matching items"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -777,8 +777,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_BY_ROW,
g_param_spec_boolean ("by-row",
_("By Row"),
_("Is the search order by row?"),
P_("By Row"),
P_("Is the search order by row?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -786,8 +786,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_QUERY,
g_param_spec_boolean ("query",
_("Query"),
_("Should we query for each replacement?"),
P_("Query"),
P_("Should we query for each replacement?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -795,8 +795,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_REPLACE_KEEP_STRINGS,
g_param_spec_boolean ("replace-keep-strings",
_("Keep Strings"),
_("Should replacement keep strings as strings?"),
P_("Keep Strings"),
P_("Should replacement keep strings as strings?"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -804,8 +804,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SHEET,
g_param_spec_object ("sheet",
_("Sheet"),
_("The sheet in which to search."),
P_("Sheet"),
P_("The sheet in which to search."),
GNM_SHEET_TYPE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -813,8 +813,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_SCOPE,
g_param_spec_enum ("scope",
_("Scope"),
_("Where to search."),
P_("Scope"),
P_("Where to search."),
GNM_SEARCH_REPLACE_SCOPE_TYPE,
GNM_SRS_SHEET,
GSF_PARAM_STATIC |
......@@ -823,8 +823,8 @@ gnm_search_replace_class_init (GObjectClass *gobject_class)
(gobject_class,
PROP_RANGE_TEXT,
g_param_spec_string ("range-text",
_("Range as Text"),
_("The range in which to search."),
P_("Range as Text"),
P_("The range in which to search."),
NULL,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......
......@@ -7,7 +7,7 @@
* Jody Goldberg (jody@gnome.org)
*/
#include <gnumeric-config.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include "gnumeric.h"
#include "sheet-object-image.h"
#include "sheet.h"
......@@ -620,13 +620,15 @@ gnm_soi_class_init (GObjectClass *object_class)
/* The property strings don't need translation */
g_object_class_install_property (object_class, PROP_IMAGE_TYPE,
g_param_spec_string ("image-type", "Image type",
"Type of image",
g_param_spec_string ("image-type",
P_("Image type"),
P_("Type of image"),
NULL,
GSF_PARAM_STATIC | G_PARAM_READABLE));
g_object_class_install_property (object_class, PROP_IMAGE_DATA,
g_param_spec_pointer ("image-data", "Image data",
"Image data",
g_param_spec_pointer ("image-data",
P_("Image data"),
P_("Image data"),
GSF_PARAM_STATIC | G_PARAM_READABLE));
g_object_class_install_property (object_class, PROP_PIXBUF,
g_param_spec_object ("pixbuf", "Pixbuf",
......
......@@ -68,7 +68,7 @@
#include "gutils.h"
#include <goffice/goffice.h>
#include <glib/gi18n-lib.h>
#include "gnm-i18n.h"
#include <gsf/gsf-impl-utils.h>
#include <stdlib.h>
#include <string.h>
......@@ -858,8 +858,9 @@ gnm_sheet_class_init (GObjectClass *gobject_class)
gobject_class->constructed = gnm_sheet_constructed;
g_object_class_install_property (gobject_class, PROP_SHEET_TYPE,
g_param_spec_enum ("sheet-type", _("Sheet Type"),
_("Which type of sheet this is."),
g_param_spec_enum ("sheet-type",
P_("Sheet Type"),
P_("Which type of sheet this is."),
GNM_SHEET_TYPE_TYPE,
GNM_SHEET_DATA,
GSF_PARAM_STATIC |
......@@ -867,34 +868,38 @@ gnm_sheet_class_init (GObjectClass *gobject_class)
G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (gobject_class, PROP_WORKBOOK,
g_param_spec_object ("workbook",
_("Parent workbook"),
_("The workbook in which this sheet lives"),
P_("Parent workbook"),
P_("The workbook in which this sheet lives"),
WORKBOOK_TYPE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (gobject_class, PROP_NAME,
g_param_spec_string ("name", _("Name"),
_("The name of the sheet."),
g_param_spec_string ("name",
P_("Name"),
P_("The name of the sheet."),
NULL,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_RTL,
g_param_spec_boolean ("text-is-rtl", _("text-is-rtl"),
_("Text goes from right to left."),
g_param_spec_boolean ("text-is-rtl",
P_("text-is-rtl"),
P_("Text goes from right to left."),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_VISIBILITY,
g_param_spec_enum ("visibility", _("Visibility"),
_("How visible the sheet is."),
g_param_spec_enum ("visibility",
P_("Visibility"),
P_("How visible the sheet is."),
GNM_SHEET_VISIBILITY_TYPE,
GNM_SHEET_VISIBILITY_VISIBLE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_DISPLAY_FORMULAS,
g_param_spec_boolean ("display-formulas", _("Display Formul\303\246"),
_("Control whether formul\303\246 are shown instead of values."),
g_param_spec_boolean ("display-formulas",
P_("Display Formul\303\246"),
P_("Control whether formul\303\246 are shown instead of values."),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
......@@ -911,149 +916,175 @@ gnm_sheet_class_init (GObjectClass *gobject_class)
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_DISPLAY_COLUMN_HEADER,
g_param_spec_boolean ("display-column-header", _("Display Column Headers"),
_("Control whether column headers are shown."),
g_param_spec_boolean ("display-column-header",
P_("Display Column Headers"),
P_("Control whether column headers are shown."),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_DISPLAY_ROW_HEADER,
g_param_spec_boolean ("display-row-header", _("Display Row Headers"),
_("Control whether row headers are shown."),
g_param_spec_boolean ("display-row-header",
P_("Display Row Headers"),
P_("Control whether row headers are shown."),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_DISPLAY_OUTLINES,
g_param_spec_boolean ("display-outlines", _("Display Outlines"),
_("Control whether outlines are shown."),
g_param_spec_boolean ("display-outlines",
P_("Display Outlines"),
P_("Control whether outlines are shown."),
TRUE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_DISPLAY_OUTLINES_BELOW,
g_param_spec_boolean ("display-outlines-below", _("Display Outlines Below"),
_("Control whether outline symbols are shown below."),
g_param_spec_boolean ("display-outlines-below",
P_("Display Outlines Below"),
P_("Control whether outline symbols are shown below."),
TRUE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_DISPLAY_OUTLINES_RIGHT,
g_param_spec_boolean ("display-outlines-right", _("Display Outlines Right"),
_("Control whether outline symbols are shown to the right."),
g_param_spec_boolean ("display-outlines-right",
P_("Display Outlines Right"),
P_("Control whether outline symbols are shown to the right."),
TRUE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED,
g_param_spec_boolean ("protected", _("Protected"),
_("Sheet is protected."),
g_param_spec_boolean ("protected",
P_("Protected"),
P_("Sheet is protected."),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_EDIT_OBJECTS,
g_param_spec_boolean ("protected-allow-edit-objects", _("Protected Allow Edit objects"),
_("Allow objects to be edited while a sheet is protected"),
g_param_spec_boolean ("protected-allow-edit-objects",
P_("Protected Allow Edit objects"),
P_("Allow objects to be edited while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_EDIT_SCENARIOS,
g_param_spec_boolean ("protected-allow-edit-scenarios", _("Protected allow edit scenarios"),
_("Allow scenarios to be edited while a sheet is protected"),
g_param_spec_boolean ("protected-allow-edit-scenarios",
P_("Protected allow edit scenarios"),
P_("Allow scenarios to be edited while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_CELL_FORMATTING,
g_param_spec_boolean ("protected-allow-cell-formatting", _("Protected allow cell formatting"),
_("Allow cell format changes while a sheet is protected"),
g_param_spec_boolean ("protected-allow-cell-formatting",
P_("Protected allow cell formatting"),
P_("Allow cell format changes while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_COLUMN_FORMATTING,
g_param_spec_boolean ("protected-allow-column-formatting", _("Protected allow column formatting"),
_("Allow column formatting while a sheet is protected"),
g_param_spec_boolean ("protected-allow-column-formatting",
P_("Protected allow column formatting"),
P_("Allow column formatting while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_ROW_FORMATTING,
g_param_spec_boolean ("protected-allow-row-formatting", _("Protected allow row formatting"),
_("Allow row formatting while a sheet is protected"),
g_param_spec_boolean ("protected-allow-row-formatting",
P_("Protected allow row formatting"),
P_("Allow row formatting while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_INSERT_COLUMNS,
g_param_spec_boolean ("protected-allow-insert-columns", _("Protected allow insert columns"),
_("Allow columns to be inserted while a sheet is protected"),
g_param_spec_boolean ("protected-allow-insert-columns",
P_("Protected allow insert columns"),
P_("Allow columns to be inserted while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_INSERT_ROWS,
g_param_spec_boolean ("protected-allow-insert-rows", _("Protected allow insert rows"),
_("Allow rows to be inserted while a sheet is protected"),
g_param_spec_boolean ("protected-allow-insert-rows",
P_("Protected allow insert rows"),
P_("Allow rows to be inserted while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_INSERT_HYPERLINKS,
g_param_spec_boolean ("protected-allow-insert-hyperlinks", _("Protected allow insert hyperlinks"),
_("Allow hyperlinks to be inserted while a sheet is protected"),
g_param_spec_boolean ("protected-allow-insert-hyperlinks",
P_("Protected allow insert hyperlinks"),
P_("Allow hyperlinks to be inserted while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_DELETE_COLUMNS,
g_param_spec_boolean ("protected-allow-delete-columns", _("Protected allow delete columns"),
_("Allow columns to be deleted while a sheet is protected"),
g_param_spec_boolean ("protected-allow-delete-columns",
P_("Protected allow delete columns"),
P_("Allow columns to be deleted while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_DELETE_ROWS,
g_param_spec_boolean ("protected-allow-delete-rows", _("Protected allow delete rows"),
_("Allow rows to be deleted while a sheet is protected"),
g_param_spec_boolean ("protected-allow-delete-rows",
P_("Protected allow delete rows"),
P_("Allow rows to be deleted while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_SELECT_LOCKED_CELLS,
g_param_spec_boolean ("protected-allow-select-locked-cells", _("Protected allow select locked cells"),
_("Allow the user to select locked cells while a sheet is protected"),
g_param_spec_boolean ("protected-allow-select-locked-cells",
P_("Protected allow select locked cells"),
P_("Allow the user to select locked cells while a sheet is protected"),
TRUE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_SORT_RANGES,
g_param_spec_boolean ("protected-allow-sort-ranges", _("Protected allow sort ranges"),
_("Allow ranges to be sorted while a sheet is protected"),
g_param_spec_boolean ("protected-allow-sort-ranges",
P_("Protected allow sort ranges"),
P_("Allow ranges to be sorted while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_EDIT_AUTO_FILTERS,
g_param_spec_boolean ("protected-allow-edit-auto-filters", _("Protected allow edit auto filters"),
_("Allow auto filters to be edited while a sheet is protected"),
g_param_spec_boolean ("protected-allow-edit-auto-filters",
P_("Protected allow edit auto filters"),
P_("Allow auto filters to be edited while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_EDIT_PIVOTTABLE,
g_param_spec_boolean ("protected-allow-edit-pivottable", _("Protected allow edit pivottable"),
_("Allow pivottable to be edited while a sheet is protected"),
g_param_spec_boolean ("protected-allow-edit-pivottable",
P_("Protected allow edit pivottable"),
P_("Allow pivottable to be edited while a sheet is protected"),
FALSE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_PROTECTED_ALLOW_SELECT_UNLOCKED_CELLS,
g_param_spec_boolean ("protected-allow-select-unlocked-cells", _("Protected allow select unlocked cells"),
_("Allow the user to select unlocked cells while a sheet is protected"),
g_param_spec_boolean ("protected-allow-select-unlocked-cells",
P_("Protected allow select unlocked cells"),
P_("Allow the user to select unlocked cells while a sheet is protected"),
TRUE, GSF_PARAM_STATIC | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_CONVENTIONS,
g_param_spec_pointer ("conventions", _("Display convention for expressions (default Gnumeric A1)"),
_("How to format displayed expressions, (A1 vs R1C1, function names, ...)"),
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_param_spec_pointer ("conventions",
P_("Display convention for expressions (default Gnumeric A1)"),
P_("How to format displayed expressions, (A1 vs R1C1, function names, ...)"),
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_USE_R1C1, /* convenience wrapper to CONVENTIONS */
g_param_spec_boolean ("use-r1c1", _("Display convention for expressions as XLS_R1C1 vs default"),
_("How to format displayed expressions, (a convenience api)"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_param_spec_boolean ("use-r1c1",
P_("Display convention for expressions as XLS_R1C1 vs default"),
P_("How to format displayed expressions, (a convenience api)"),
FALSE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_TAB_FOREGROUND,
g_param_spec_boxed ("tab-foreground", _("Tab Foreground"),
_("The foreground color of the tab."),
GNM_STYLE_COLOR_TYPE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_param_spec_boxed ("tab-foreground",
P_("Tab Foreground"),
P_("The foreground color of the tab."),
GNM_STYLE_COLOR_TYPE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_TAB_BACKGROUND,
g_param_spec_boxed ("tab-background", _("Tab Background"),
_("The background color of the tab."),
GNM_STYLE_COLOR_TYPE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
g_param_spec_boxed ("tab-background",
P_("Tab Background"),
P_("The background color of the tab."),
GNM_STYLE_COLOR_TYPE,
GSF_PARAM_STATIC |
G_PARAM_READWRITE));
/* What is this doing in sheet? */
g_object_class_install_property (gobject_class, PROP_ZOOM_FACTOR,
g_param_spec_double ("zoom-factor", _("Zoom Factor"),
_("The level of zoom used for this sheet."),
0.1, 5.0,
1.0,
GSF_PARAM_STATIC |
G_PARAM_CONSTRUCT |
G_PARAM_READWRITE));
g_param_spec_double ("zoom-factor",
P_("Zoom Factor"),
P_("The level of zoom used for this sheet."),
0.1, 5.0,
1.0,
GSF_PARAM_STATIC |
G_PARAM_CONSTRUCT |
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_COLUMNS,
g_param_spec_int ("columns",
C_("sheetsize", "Columns"),
_("Columns number in the sheet"),
0, GNM_MAX_COLS, GNM_DEFAULT_COLS,
GSF_PARAM_STATIC | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
P_("Columns"),
P_("Columns number in the sheet"),
0, GNM_MAX_COLS, GNM_DEFAULT_COLS,
GSF_PARAM_STATIC | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (gobject_class, PROP_ROWS,
g_param_spec_int ("rows",
C_("sheetsize", "Rows"),
_("Rows number in the sheet"),
0, GNM_MAX_ROWS, GNM_DEFAULT_ROWS,
GSF_PARAM_STATIC | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
P_("Rows"),
P_("Rows number in the sheet"),