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>
This commit is contained in:
parent
5bb0cc1183
commit
135a9e6ac9
Binary file not shown.
After Width: | Height: | Size: 356 B |
Binary file not shown.
After Width: | Height: | Size: 324 B |
4
android/source/res/drawable/ic_format_bullets.xml
Normal file
4
android/source/res/drawable/ic_format_bullets.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_format_list_bulleted_black_24dp"
|
||||
android:tint="@color/toolbar_forgeround"/>
|
4
android/source/res/drawable/ic_format_numbering.xml
Normal file
4
android/source/res/drawable/ic_format_numbering.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_format_list_numbered_black_24dp"
|
||||
android:tint="@color/toolbar_forgeround"/>
|
@ -65,6 +65,27 @@
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingTop="12dp"
|
||||
android:src="@drawable/ic_format_strikethrough"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/button_insertFormatListNumbering"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.25"
|
||||
android:background="@drawable/image_button_background"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingTop="12dp"
|
||||
android:src="@drawable/ic_format_numbering"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/button_insertFormatListBullets"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.25"
|
||||
android:background="@drawable/image_button_background"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingTop="12dp"
|
||||
android:src="@drawable/ic_format_bullets"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user