summaryrefslogtreecommitdiff
path: root/sw/qa/complex/writer
diff options
context:
space:
mode:
authorRobinson Tryon <qubit@runcibility.com>2015-11-25 06:03:10 -0500
committerRobinson Tryon <qubit@runcibility.com>2015-11-25 06:07:38 -0500
commit49c2b9808df8a6b197dec666dfc0cda6321a4306 (patch)
tree045ef4b9b8dfdb06bfbe18cdf773d59f57d5552d /sw/qa/complex/writer
parent5470a365f25e5052b4dd74f76aa2196f0d70934b (diff)
bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-point
This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
Diffstat (limited to 'sw/qa/complex/writer')
-rw-r--r--sw/qa/complex/writer/CheckBookmarks.java36
-rw-r--r--sw/qa/complex/writer/testdocuments/TESTXMLID.odtbin10879 -> 10881 bytes
2 files changed, 18 insertions, 18 deletions
diff --git a/sw/qa/complex/writer/CheckBookmarks.java b/sw/qa/complex/writer/CheckBookmarks.java
index 9acb16aadbc6..a73af1a60cc5 100644
--- a/sw/qa/complex/writer/CheckBookmarks.java
+++ b/sw/qa/complex/writer/CheckBookmarks.java
@@ -153,35 +153,35 @@ public class CheckBookmarks {
xText.createTextCursor(),
"P" + nPara + "word" + nBookmark,
"P" + nPara + "word" + nBookmark);
- XTextCursor xWordCrsr = xText.createTextCursor();
- xWordCrsr.setString(" ");
+ XTextCursor xWordCursor = xText.createTextCursor();
+ xWordCursor.setString(" ");
}
- XTextCursor xParaCrsr = xText.createTextCursor();
- XTextRange xParaCrsrAsRange = UnoRuntime.queryInterface(
+ XTextCursor xParaCursor = xText.createTextCursor();
+ XTextRange xParaCursorAsRange = UnoRuntime.queryInterface(
XTextRange.class,
- xParaCrsr);
- xText.insertControlCharacter(xParaCrsrAsRange, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false);
+ xParaCursor);
+ xText.insertControlCharacter(xParaCursorAsRange, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false);
}
}
private void insertRandomParts(long seed)
{
java.util.Random rnd = new java.util.Random(seed);
- XTextCursor xCrsr = m_xDoc.getText().createTextCursor();
+ XTextCursor xCursor = m_xDoc.getText().createTextCursor();
for(int i=0; i<600; i++) {
- xCrsr.goRight((short)rnd.nextInt(100), false);
- xCrsr.setString(Long.toString(rnd.nextLong()));
+ xCursor.goRight((short)rnd.nextInt(100), false);
+ xCursor.setString(Long.toString(rnd.nextLong()));
}
}
private void deleteRandomParts(long seed)
{
java.util.Random rnd = new java.util.Random(seed);
- XTextCursor xCrsr = m_xDoc.getText().createTextCursor();
+ XTextCursor xCursor = m_xDoc.getText().createTextCursor();
for(int i=0; i<600; i++) {
- xCrsr.goRight((short)rnd.nextInt(100), false);
- xCrsr.goRight((short)rnd.nextInt(20), true);
- xCrsr.setString("");
+ xCursor.goRight((short)rnd.nextInt(100), false);
+ xCursor.goRight((short)rnd.nextInt(20), true);
+ xCursor.setString("");
}
}
@@ -189,13 +189,13 @@ public class CheckBookmarks {
{
XText xText = m_xDoc.getText();
java.util.Random rnd = new java.util.Random(seed);
- XTextCursor xCrsr = m_xDoc.getText().createTextCursor();
+ XTextCursor xCursor = m_xDoc.getText().createTextCursor();
for(int i=0; i<30; i++) {
- xCrsr.goRight((short)rnd.nextInt(300), false);
- XTextRange xCrsrAsRange = UnoRuntime.queryInterface(
+ xCursor.goRight((short)rnd.nextInt(300), false);
+ XTextRange xCursorAsRange = UnoRuntime.queryInterface(
XTextRange.class,
- xCrsr);
- xText.insertControlCharacter(xCrsrAsRange, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false);
+ xCursor);
+ xText.insertControlCharacter(xCursorAsRange, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false);
}
}
diff --git a/sw/qa/complex/writer/testdocuments/TESTXMLID.odt b/sw/qa/complex/writer/testdocuments/TESTXMLID.odt
index 063d392a489f..ba7ceabc2d89 100644
--- a/sw/qa/complex/writer/testdocuments/TESTXMLID.odt
+++ b/sw/qa/complex/writer/testdocuments/TESTXMLID.odt
Binary files differ