summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-10 21:03:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-10 22:51:30 +0200
commitb80935d5c45f26876d9fa2718c7a6b9a469b12cf (patch)
tree62cfdbef6c98d92ed975d2dd4e89bb62d3cf80ca /sw/source
parentc7874d890d55e9736b065c8396d65438a57b55ad (diff)
various extensions to REDLINE_ sequence not reflected in related resources
i.e. commit e52f14efaa53b496599b51fb064a933183731fca Author: Adam Co <rattles2013@gmail.com> Date: Sun Dec 8 17:14:14 2013 +0200 Export redline 'paragraph formatting changes' back to DOCX const RedlineType_t REDLINE_FMTCOLL = 0x4;// Style has been altered (Autoformat!). + const RedlineType_t REDLINE_PARAGRAPH_FORMAT = 0x5;// Paragraph attributes have been changed commit d688069023959ab97d14eb1dbfd5bf6ad3c1b160 Author: Adam Co <rattles2013@gmail.com> Date: Mon Feb 3 17:44:22 2014 +0200 Add support for 'Table Row Redlines' in SW core const RedlineType_t REDLINE_PARAGRAPH_FORMAT = 0x5;// Paragraph attributes have been changed. + const RedlineType_t REDLINE_TABLE_ROW_INSERT = 0x6;// Table row has been inserted. + const RedlineType_t REDLINE_TABLE_ROW_DELETE = 0x7;// Table row has been deleted. commit 06a887ca92f35b4e44dfc638a9a444fc636bc9d0 Author: Adam Co <rattles2013@gmail.com> Date: Wed Feb 5 13:37:45 2014 +0200 Add support for 'Table Cell Redlines' in SW core const RedlineType_t REDLINE_TABLE_ROW_DELETE = 0x7;// Table row has been deleted. + const RedlineType_t REDLINE_TABLE_CELL_INSERT = 0x8;// Table cell has been inserted. + const RedlineType_t REDLINE_TABLE_CELL_DELETE = 0x9;// Table cell has been deleted. all extend the REDLINE_* ranges, and SwRedlineData::GetDescr just adds GetType() of a value in that range to the STR_UNDO_REDLINE_INSERT baseline which just maps the new values to arbitrary unrelated strings Change-Id: I44d5050ef012ac44346a7164b89a2773fb33d4dc Reviewed-on: https://gerrit.libreoffice.org/38642 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/undo/undo.src20
-rw-r--r--sw/source/uibase/docvw/docvw.hrc51
-rw-r--r--sw/source/uibase/docvw/docvw.src20
-rw-r--r--sw/source/uibase/docvw/edtwin2.cxx5
4 files changed, 73 insertions, 23 deletions
diff --git a/sw/source/core/undo/undo.src b/sw/source/core/undo/undo.src
index 34680f86bfb3..7c63b86af15f 100644
--- a/sw/source/core/undo/undo.src
+++ b/sw/source/core/undo/undo.src
@@ -482,6 +482,26 @@ String STR_UNDO_REDLINE_FMTCOLL
{
Text [ en-US ] = "Style changed";
};
+String STR_UNDO_REDLINE_PARAGRAPH_FORMAT
+{
+ Text [ en-US ] = "Paragraph formatting changed";
+};
+String STR_UNDO_REDLINE_TABLE_ROW_INSERT
+{
+ Text [ en-US ] = "Insert Row";
+};
+String STR_UNDO_REDLINE_TABLE_ROW_DELETE
+{
+ Text [ en-US ] = "Delete Row";
+};
+String STR_UNDO_REDLINE_TABLE_CELL_INSERT
+{
+ Text [ en-US ] = "Insert Cell";
+};
+String STR_UNDO_REDLINE_TABLE_CELL_DELETE
+{
+ Text [ en-US ] = "Delete Cell";
+};
String STR_N_REDLINES
{
Text [ en-US ] = "$1 changes";
diff --git a/sw/source/uibase/docvw/docvw.hrc b/sw/source/uibase/docvw/docvw.hrc
index 799efce72c69..f98e300356fa 100644
--- a/sw/source/uibase/docvw/docvw.hrc
+++ b/sw/source/uibase/docvw/docvw.hrc
@@ -27,29 +27,34 @@
#define STR_REDLINE_FORMAT (RC_DOCVW_BEGIN + 11)
#define STR_REDLINE_TABLE (RC_DOCVW_BEGIN + 12)
#define STR_REDLINE_FMTCOLL (RC_DOCVW_BEGIN + 13)
-#define STR_ENDNOTE (RC_DOCVW_BEGIN + 14)
-#define STR_FTNNOTE (RC_DOCVW_BEGIN + 15)
-
-#define STR_TABLE_COL_ADJUST (RC_DOCVW_BEGIN + 16)
-#define STR_TABLE_ROW_ADJUST (RC_DOCVW_BEGIN + 17)
-#define STR_TABLE_SELECT_ALL (RC_DOCVW_BEGIN + 18)
-#define STR_TABLE_SELECT_ROW (RC_DOCVW_BEGIN + 19)
-#define STR_TABLE_SELECT_COL (RC_DOCVW_BEGIN + 20)
-
-#define STR_SMARTTAG_CLICK (RC_DOCVW_BEGIN + 21)
-
-#define STR_HEADER_TITLE (RC_DOCVW_BEGIN + 22)
-#define STR_FOOTER_TITLE (RC_DOCVW_BEGIN + 23)
-#define STR_DELETE_HEADER (RC_DOCVW_BEGIN + 24)
-#define STR_FORMAT_HEADER (RC_DOCVW_BEGIN + 25)
-#define STR_DELETE_FOOTER (RC_DOCVW_BEGIN + 26)
-#define STR_FORMAT_FOOTER (RC_DOCVW_BEGIN + 27)
-#define STR_FIRST_HEADER_TITLE (RC_DOCVW_BEGIN + 28)
-#define STR_LEFT_HEADER_TITLE (RC_DOCVW_BEGIN + 29)
-#define STR_RIGHT_HEADER_TITLE (RC_DOCVW_BEGIN + 30)
-#define STR_FIRST_FOOTER_TITLE (RC_DOCVW_BEGIN + 31)
-#define STR_LEFT_FOOTER_TITLE (RC_DOCVW_BEGIN + 32)
-#define STR_RIGHT_FOOTER_TITLE (RC_DOCVW_BEGIN + 33)
+#define STR_REDLINE_PARAGRAPH_FORMAT (RC_DOCVW_BEGIN + 14)
+#define STR_REDLINE_TABLE_ROW_INSERT (RC_DOCVW_BEGIN + 15)
+#define STR_REDLINE_TABLE_ROW_DELETE (RC_DOCVW_BEGIN + 16)
+#define STR_REDLINE_TABLE_CELL_INSERT (RC_DOCVW_BEGIN + 17)
+#define STR_REDLINE_TABLE_CELL_DELETE (RC_DOCVW_BEGIN + 18)
+#define STR_ENDNOTE (RC_DOCVW_BEGIN + 19)
+#define STR_FTNNOTE (RC_DOCVW_BEGIN + 20)
+
+#define STR_TABLE_COL_ADJUST (RC_DOCVW_BEGIN + 21)
+#define STR_TABLE_ROW_ADJUST (RC_DOCVW_BEGIN + 22)
+#define STR_TABLE_SELECT_ALL (RC_DOCVW_BEGIN + 23)
+#define STR_TABLE_SELECT_ROW (RC_DOCVW_BEGIN + 24)
+#define STR_TABLE_SELECT_COL (RC_DOCVW_BEGIN + 25)
+
+#define STR_SMARTTAG_CLICK (RC_DOCVW_BEGIN + 26)
+
+#define STR_HEADER_TITLE (RC_DOCVW_BEGIN + 27)
+#define STR_FOOTER_TITLE (RC_DOCVW_BEGIN + 28)
+#define STR_DELETE_HEADER (RC_DOCVW_BEGIN + 29)
+#define STR_FORMAT_HEADER (RC_DOCVW_BEGIN + 30)
+#define STR_DELETE_FOOTER (RC_DOCVW_BEGIN + 31)
+#define STR_FORMAT_FOOTER (RC_DOCVW_BEGIN + 32)
+#define STR_FIRST_HEADER_TITLE (RC_DOCVW_BEGIN + 33)
+#define STR_LEFT_HEADER_TITLE (RC_DOCVW_BEGIN + 34)
+#define STR_RIGHT_HEADER_TITLE (RC_DOCVW_BEGIN + 35)
+#define STR_FIRST_FOOTER_TITLE (RC_DOCVW_BEGIN + 36)
+#define STR_LEFT_FOOTER_TITLE (RC_DOCVW_BEGIN + 37)
+#define STR_RIGHT_FOOTER_TITLE (RC_DOCVW_BEGIN + 38)
#define DOCVW_ACT_END STR_RIGHT_FOOTER_TITLE
diff --git a/sw/source/uibase/docvw/docvw.src b/sw/source/uibase/docvw/docvw.src
index 22e47e6a8709..75f8738ac6c3 100644
--- a/sw/source/uibase/docvw/docvw.src
+++ b/sw/source/uibase/docvw/docvw.src
@@ -41,6 +41,26 @@ String STR_REDLINE_FMTCOLL
{
Text [ en-US ] = "Applied Paragraph Styles";
};
+String STR_REDLINE_PARAGRAPH_FORMAT
+{
+ Text [ en-US ] = "Paragraph formatting changed";
+};
+String STR_REDLINE_TABLE_ROW_INSERT
+{
+ Text [ en-US ] = "Row Inserted";
+};
+String STR_REDLINE_TABLE_ROW_DELETE
+{
+ Text [ en-US ] = "Row Deleted";
+};
+String STR_REDLINE_TABLE_CELL_INSERT
+{
+ Text [ en-US ] = "Cell Inserted";
+};
+String STR_REDLINE_TABLE_CELL_DELETE
+{
+ Text [ en-US ] = "Cell Deleted";
+};
String STR_ENDNOTE
{
Text [ en-US ] = "Endnote: " ;
diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx
index 1a5e1dd0243b..04152ea8efce 100644
--- a/sw/source/uibase/docvw/edtwin2.cxx
+++ b/sw/source/uibase/docvw/edtwin2.cxx
@@ -75,6 +75,11 @@ static OUString lcl_GetRedlineHelp( const SwRangeRedline& rRedl, bool bBalloon )
case nsRedlineType_t::REDLINE_FORMAT: nResId = STR_REDLINE_FORMAT; break;
case nsRedlineType_t::REDLINE_TABLE: nResId = STR_REDLINE_TABLE; break;
case nsRedlineType_t::REDLINE_FMTCOLL: nResId = STR_REDLINE_FMTCOLL; break;
+ case nsRedlineType_t::REDLINE_PARAGRAPH_FORMAT: nResId = STR_REDLINE_PARAGRAPH_FORMAT; break;
+ case nsRedlineType_t::REDLINE_TABLE_ROW_INSERT: nResId = STR_REDLINE_TABLE_ROW_INSERT; break;
+ case nsRedlineType_t::REDLINE_TABLE_ROW_DELETE: nResId = STR_REDLINE_TABLE_ROW_DELETE; break;
+ case nsRedlineType_t::REDLINE_TABLE_CELL_INSERT: nResId = STR_REDLINE_TABLE_CELL_INSERT; break;
+ case nsRedlineType_t::REDLINE_TABLE_CELL_DELETE: nResId = STR_REDLINE_TABLE_CELL_DELETE; break;
}
OUStringBuffer sBuf;