diff options
3 files changed, 12 insertions, 0 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java b/android/Bootstrap/src/org/libreoffice/kit/Document.java index dcc315faca4c..a7d3f04938bb 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Document.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java @@ -49,6 +49,8 @@ public class Document { public static final int ALIGN_CENTER = 5; public static final int ALIGN_RIGHT= 6; public static final int ALIGN_JUSTIFY= 7; + public static final int NUMBERED_LIST= 8; + public static final int BULLET_LIST= 9; /** * Callback message types diff --git a/android/source/src/java/org/libreoffice/FormattingController.java b/android/source/src/java/org/libreoffice/FormattingController.java index fd2e007416cf..ea8b6fb54e85 100644 --- a/android/source/src/java/org/libreoffice/FormattingController.java +++ b/android/source/src/java/org/libreoffice/FormattingController.java @@ -105,6 +105,12 @@ import org.libreoffice.kit.Document; case Document.ALIGN_JUSTIFY: buttonId = R.id.button_align_justify; break; + case Document.BULLET_LIST: + buttonId = R.id.button_insertFormatListBullets; + break; + case Document.NUMBERED_LIST: + buttonId = R.id.button_insertFormatListNumbering; + break; default: Log.e(LOGTAG, "Uncaptured state change type: " + type); return; diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java b/android/source/src/java/org/libreoffice/InvalidationHandler.java index 4edef18c21d0..c4316c50a119 100644 --- a/android/source/src/java/org/libreoffice/InvalidationHandler.java +++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java @@ -113,6 +113,10 @@ public class InvalidationHandler implements Document.MessageCallback { mContext.getFormattingController().onToggleStateChanged(Document.ALIGN_RIGHT, pressed); } else if (parts[0].equals(".uno:JustifyPara")) { mContext.getFormattingController().onToggleStateChanged(Document.ALIGN_JUSTIFY, pressed); + } else if (parts[0].equals(".uno:DefaultBullet")) { + mContext.getFormattingController().onToggleStateChanged(Document.BULLET_LIST, pressed); + } else if (parts[0].equals(".uno:DefaultNumbering")) { + mContext.getFormattingController().onToggleStateChanged(Document.NUMBERED_LIST, pressed); } else { Log.d(LOGTAG, "LOK_CALLBACK_STATE_CHANGED type uncatched: " + payload); } |