diff options
author | Atef hares <atefhares1@gmail.com> | 2017-03-12 06:13:24 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-03-16 19:57:40 +0000 |
commit | 135a9e6ac94f7bf83d1a57a4fb4eab1f66c6d71d (patch) | |
tree | 522f71e2ed13902b606094aeef2eef50fbac0f94 /android/source/src/java/org | |
parent | 5bb0cc118396c27a880ecab76c3ab383d6c8c0ff (diff) |
tdf#106369, New feature, Inserting numbering/bullets format lists
Editing toolbar_bottom to include two more options:
1- Inserting numbering format lists
2- Inserting bullets format lists
Change-Id: I35f9238c45ab253ea75c693f7a76601408e36f9a
Reviewed-on: https://gerrit.libreoffice.org/35106
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'android/source/src/java/org')
-rw-r--r-- | android/source/src/java/org/libreoffice/FormattingController.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/android/source/src/java/org/libreoffice/FormattingController.java b/android/source/src/java/org/libreoffice/FormattingController.java index 5d76c0844caf..fd2e007416cf 100644 --- a/android/source/src/java/org/libreoffice/FormattingController.java +++ b/android/source/src/java/org/libreoffice/FormattingController.java @@ -14,6 +14,10 @@ import org.libreoffice.kit.Document; FormattingController(LibreOfficeMainActivity context) { mContext = context; + mContext.findViewById(R.id.button_insertFormatListBullets).setOnClickListener(this); + + mContext.findViewById(R.id.button_insertFormatListNumbering).setOnClickListener(this); + mContext.findViewById(R.id.button_bold).setOnClickListener(this); mContext.findViewById(R.id.button_italic).setOnClickListener(this); mContext.findViewById(R.id.button_strikethrough).setOnClickListener(this); @@ -36,6 +40,15 @@ import org.libreoffice.kit.Document; } switch(button.getId()) { + + case R.id.button_insertFormatListBullets: + LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:DefaultBullet")); + break; + + case R.id.button_insertFormatListNumbering: + LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:DefaultNumbering")); + break; + case R.id.button_bold: LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Bold")); break; |