About TDF-SSO for gerrit

2019-11-26 Thread Mert Tümer
Hello,

I am trying to link my gerrit account to TDF-SSO. I am currently using 
Launchpad auth. However, I can't link it to my TDF-SSO account. I get "403 
Forbidden" as the response.

Anyone knows about why this may happen or how to fix this?

Thank you.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

GSoC weekly report

2018-06-05 Thread Mert Tümer
Hello,
Sorry for the late update. I am asked to build libreoffice online for Android. 
So far i wrote a script for configure file to set up necessary options for 
cross compiling it to android which took quite a while. ndk clang etc. Now i am 
trying to build libreoffice onlines dependencies for android too. So far i 
built Poco now i am trying to build npm.

Kind regards,
Mert Tumer

Get Outlook for Android


From: LibreOffice  on behalf of 
libreoffice-requ...@lists.freedesktop.org 

Sent: Monday, June 4, 2018 3:00:03 PM
To: libreoffice@lists.freedesktop.org
Subject: LibreOffice Digest, Vol 94, Issue 4

Send LibreOffice mailing list submissions to
libreoffice@lists.freedesktop.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.freedesktop.org/mailman/listinfo/libreoffice
or, via email, send a message with subject or body 'help' to
libreoffice-requ...@lists.freedesktop.org

You can reach the person managing the list at
libreoffice-ow...@lists.freedesktop.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of LibreOffice digest..."


Today's Topics:

   1. Re: GSoC weekly update: Improvements in Notebookbar
  (Kshitij Pathania)
   2. Re: GSoC weekly update: Smarart Editing in Impress (Ekansh Jha)
   3. GSoC Weekly update for UI Test logger (Saurav Chirania)
   4. GSOC 100 paper cuts update (Nick Thanda)


--

Message: 1
Date: Sun, 3 Jun 2018 18:08:16 +0530
From: Kshitij Pathania 
To: libreoffice@lists.freedesktop.org
Subject: Re: GSoC weekly update: Improvements in Notebookbar
Message-ID:

Content-Type: text/plain; charset="utf-8"

Hi Everyone,

This is the update of my work this week;

1. This week my main task was to deal with theming bugs-
Solved some of the bugs related to that
https://gerrit.libreoffice.org/#/c/54301/  and
https://gerrit.libreoffice.org/#/c/55118/ (ongoing).

2. Some nitpicks are remaining which I will wrap up in the upcoming week,
with the next target of fixing the resizing issues.

Regards,
Kshitij Pathania








On Fri, May 25, 2018 at 1:11 PM, Kshitij Pathania  wrote:

> Hi Everyone,
>
> Following is the weekly update of my work:
>
> 1. Activated the notebookbar in draw  https://gerrit.libreoffice.
> org/#/c/54547/  .
>
> 2. Work in progress for label colors after theme change
> https://gerrit.libreoffice.org/#/c/54301/  .
>
> 3. Also aligned hamburger icon to the center https://gerrit.libreoffice.
> org/#/c/54111/ .
>
> 4. Also going through the code of resizing for notebookbar.
>
> Regards,
> Kshitij Pathania
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 


--

Message: 2
Date: Sun, 3 Jun 2018 19:15:17 +0530
From: Ekansh Jha 
To: libreoffice@lists.freedesktop.org
Subject: Re: GSoC weekly update: Smarart Editing in Impress
Message-ID:

Content-Type: text/plain; charset="utf-8"

Hello Community,

This mail is regarding status update about the work till now in the GSoC
period.
I have written a blog about the work I've done till now:
*https://medium.com/@ekanshjha/gsoc18-smartart-week-3-9638c1a1c1c6
*
and will be writing updates at https://medium.com/@ekanshjha.

Regards,
Ekansh Jha
-- next part --
An HTML attachment was scrubbed...
URL: 


--

Message: 3
Date: Sun, 3 Jun 2018 20:33:07 +0530
From: Saurav Chirania 
To: libreoffice@lists.freedesktop.org,
libreoffice...@lists.freedesktop.org
Subject: GSoC Weekly update for UI Test logger
Message-ID:

Content-Type: text/plain; charset="utf-8"

I am updating my progress on https://chiranias.blogspot.com/

This week's update for my work is at -
https://chiranias.blogspot.com/2018/06/gsoc-work-report-week-3.html

Regards,
Saurav
-- next part --
An HTML attachment was scrubbed...
URL: 


--

Message: 4
Date: Sun, 3 Jun 2018 21:46:59 +
From: Nick Thanda 
To: "libreoffice@lists.freedesktop.org"

Subject: GSOC 100 paper cuts update
Message-ID:



Content-Type: text/plain; charset="iso-8859-1"

Hi everyone,

I have been making progress on two bugs:

tdf#17013 -  Table of Illustration doesn't take 
figures
I've added a new table type "Table of Figures" and reverted the changes made on 
Illustration Index.

You can see progress of this bug here: 

[Libreoffice-commits] core.git: android/source

2018-05-31 Thread Mert Tümer
 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java |   12 
+-
 1 file changed, 11 insertions(+), 1 deletion(-)

New commits:
commit 9d2f37474b5420def2ad3c41074d3f20b86363f8
Author: Mert Tümer 
Date:   Thu May 24 17:28:08 2018 +0300

tdf#11 fix show hidden files/folders option on Android

Change-Id: Ic80ca7f8ebb93f78a58cc0ad778db90deb0c51ba
Signed-off-by: Mert Tümer 
Reviewed-on: https://gerrit.libreoffice.org/54771
Tested-by: Jenkins 
Reviewed-by: Thorsten Behrens 

diff --git 
a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java 
b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
index c2b939383d20..d7b0ab41c015 100644
--- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
+++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
@@ -435,8 +435,18 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 documentProvider = provider[0];
 homeDirectory = 
documentProvider.getRootDirectory(LibreOfficeUIActivity.this);
 currentDirectory = homeDirectory;
-filePaths = currentDirectory.listFiles(FileUtilities
+List paths = 
currentDirectory.listFiles(FileUtilities
 .getFileFilter(filterMode));
+filePaths = new ArrayList();
+for(IFile file: paths) {
+if(showHiddenFiles){
+filePaths.add(file);
+} else {
+if(!file.getName().startsWith(".")){
+filePaths.add(file);
+}
+}
+}
 }
 catch (final RuntimeException e) {
 final Activity activity = LibreOfficeUIActivity.this;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/source

2018-05-31 Thread Mert Tümer
 android/source/res/drawable/ic_grid_off_black_24dp.xml|9 
 android/source/res/drawable/ic_grid_on_black_24dp.xml |9 
 android/source/res/layout/number_picker.xml   |  130 
+++
 android/source/res/layout/toolbar_bottom.xml  |   20 +
 android/source/res/values/strings.xml |   16 
 android/source/src/java/org/libreoffice/FormattingController.java |  164 
++
 6 files changed, 348 insertions(+)

New commits:
commit ea62d02cedd7b6c90ebcb0ce73e30dc6ddd342c8
Author: Mert Tümer 
Date:   Fri May 25 15:15:29 2018 +0300

[Pardus] tdf#106371 ability to insert/delete tables Android Viewer

This patch is sponsored by ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer 

Change-Id: I2d160b53ad432be96deb6f13c0d91a6053744dc8
Reviewed-on: https://gerrit.libreoffice.org/54803
Tested-by: Jenkins 
Reviewed-by: Thorsten Behrens 

diff --git a/android/source/res/drawable/ic_grid_off_black_24dp.xml 
b/android/source/res/drawable/ic_grid_off_black_24dp.xml
new file mode 100644
index ..7cf3c950cc4b
--- /dev/null
+++ b/android/source/res/drawable/ic_grid_off_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/drawable/ic_grid_on_black_24dp.xml 
b/android/source/res/drawable/ic_grid_on_black_24dp.xml
new file mode 100644
index ..b2ff9e5be07b
--- /dev/null
+++ b/android/source/res/drawable/ic_grid_on_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/layout/number_picker.xml 
b/android/source/res/layout/number_picker.xml
new file mode 100644
index ..51463926c70f
--- /dev/null
+++ b/android/source/res/layout/number_picker.xml
@@ -0,0 +1,130 @@
+
+http://schemas.android.com/apk/res/android;
+xmlns:app="http://schemas.android.com/apk/res-auto;
+android:layout_width="match_parent"
+android:layout_height="match_parent"
+android:padding="15dp"
+android:id="@+id/numberpickerLayout">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/source/res/layout/toolbar_bottom.xml 
b/android/source/res/layout/toolbar_bottom.xml
index d944b2713f2a..d1476a57fa57 100644
--- a/android/source/res/layout/toolbar_bottom.xml
+++ b/android/source/res/layout/toolbar_bottom.xml
@@ -366,6 +366,26 @@
 android:paddingBottom="12dp"
 android:paddingTop="12dp"
 
app:srcCompat="@drawable/ic_folder_black_24dp" />
+
+
+
+
 
 
 
diff --git a/android/source/res/values/strings.xml 
b/android/source/res/values/strings.xml
index 2a4ca0ab4e21..cbbce88d158c 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -179,5 +179,21 @@
 Cut
 Back
 Text copied to the clipboard
+Insert table
+Select insert options:
+Select delete options:
+
+
+Insert Rows Before
+Insert Rows After
+Insert Columns Before
+Insert Columns After
+Insert Table
+
+
+Delete Rows
+Delete Columns
+Delete Table
+
 
 
diff --git a/android/source/src/java/org/libreoffice/FormattingController.java 
b/android/source/src/java/org/libreoffice/FormattingController.java
index 0ba72cf50875..0f49a57de997 100644
--- a/android/source/src/java/org/libreoffice/FormattingController.java
+++ b/android/source/src/java/org/libreoffice/FormattingController.java
@@ -14,8 +14,10 @@ import android.provider.MediaStore;
 import android.support.design.widget.Snackbar;
 import android.support.v4.content.FileProvider;
 import android.util.Log;
+import android.view.LayoutInflater;
 import android.view.View;
 import android.widget.ImageButton;
+import android.widget.TextView;
 
 import org.json.JSONException;
 import org.json.JSONObject;
@@ -61,6 +63,9 @@ class FormattingController implements View.OnClickListener {
 
mContext.findViewById(R.id.button_insert_rect).setOnClickListener(this);
 
mContext.findViewById(R.id.button_insert_picture).setOnClickListener(this);
 
+
mContext.findViewById(R.id.button_insert_table).setOnClickListener(this);
+
mContext.findViewById(R.id.button_delete_tab

[Libreoffice-commits] core.git: android/source

2018-05-31 Thread Mert Tümer
 android/source/res/layout/activity_document_browser.xml
|1 
 
android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
   |4 
 
android/source/src/java/org/libreoffice/storage/external/OTGDocumentsProvider.java
 |2 
 
android/source/src/java/org/libreoffice/storage/local/LocalDocumentsDirectoryProvider.java
 |2 
 
android/source/src/java/org/libreoffice/storage/local/LocalDocumentsProvider.java
  |5 
 android/source/src/java/org/libreoffice/storage/owncloud/OwnCloudProvider.java 
|5 
 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java  
|   53 +++---
 7 files changed, 55 insertions(+), 17 deletions(-)

New commits:
commit 22ef830aa01bfe1e74d649d3ad01ece29a72c44d
Author: Mert Tümer 
Date:   Sat Apr 14 12:00:59 2018 +0300

Added Storage permission handling on the Android Viewer

This patch prevents document browsing and creating
a new document from happening when write external
storage permission is denied by the user.
Signed-off-by: Mert Tümer 

Change-Id: Idf39a291a15a9dac023f4318329baed1baa90e14
Reviewed-on: https://gerrit.libreoffice.org/52868
Tested-by: Jenkins 
Reviewed-by: Thorsten Behrens 

diff --git a/android/source/res/layout/activity_document_browser.xml 
b/android/source/res/layout/activity_document_browser.xml
index 1f26195c2025..63f72346c0c6 100644
--- a/android/source/res/layout/activity_document_browser.xml
+++ b/android/source/res/layout/activity_document_browser.xml
@@ -125,6 +125,7 @@
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:clickable="true"
+android:visibility="invisible"
 app:backgroundTint="@color/background_normal"
 app:fabSize="normal"
 app:layout_constraintBottom_toBottomOf="parent"
diff --git 
a/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
 
b/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
index f21dc258474a..e45929374bbd 100644
--- 
a/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
+++ 
b/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
@@ -1,8 +1,10 @@
 package org.libreoffice.storage.external;
 
+import android.Manifest;
 import android.content.Context;
 import android.content.SharedPreferences;
 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
+import android.content.pm.PackageManager;
 import android.net.Uri;
 import android.os.Build;
 import android.os.Environment;
@@ -160,7 +162,7 @@ public class ExtsdDocumentsProvider implements 
IExternalDocumentProvider,
 // getExternalStorageState().equals(Environment.MEDIA_MOUNTED) && 
isExternalStorageRemovable()
 // but they refer to the primary external storage anyway, so what 
currently is covered by the
 // "LocalDocumentsProvider"
-return rootPathURI!=null;
+return rootPathURI!=null && ContextCompat.checkSelfPermission(context, 
Manifest.permission.WRITE_EXTERNAL_STORAGE) == 
PackageManager.PERMISSION_GRANTED;
 }
 
 @Override
diff --git 
a/android/source/src/java/org/libreoffice/storage/external/OTGDocumentsProvider.java
 
b/android/source/src/java/org/libreoffice/storage/external/OTGDocumentsProvider.java
index 138ec9479755..4341bc3541e6 100644
--- 
a/android/source/src/java/org/libreoffice/storage/external/OTGDocumentsProvider.java
+++ 
b/android/source/src/java/org/libreoffice/storage/external/OTGDocumentsProvider.java
@@ -85,6 +85,6 @@ public class OTGDocumentsProvider implements 
IExternalDocumentProvider,
 @Override
 public boolean checkProviderAvailability(Context context) {
 // check if system supports USB Host
-return 
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST);
+return rootPathURI.length()>0 && 
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST);
 }
 }
diff --git 
a/android/source/src/java/org/libreoffice/storage/local/LocalDocumentsDirectoryProvider.java
 
b/android/source/src/java/org/libreoffice/storage/local/LocalDocumentsDirectoryProvider.java
index d8e6e1870044..c2e03dfc7bdd 100644
--- 
a/android/source/src/java/org/libreoffice/storage/local/LocalDocumentsDirectoryProvider.java
+++ 
b/android/source/src/java/org/libreoffice/storage/local/LocalDocumentsDirectoryProvider.java
@@ -71,6 +71,6 @@ public class LocalDocumentsDirectoryProvider extends 
LocalDocumentsProvider {
 @Override
 public boolean checkProviderAvailability(Context context) {
 File documentsDirectory = getDocumentsDir();
-return documentsDirectory.exists() || 
ContextCompat.checkSelfPermission(c

[Libreoffice-commits] core.git: android/source

2018-04-18 Thread Mert Tümer
 android/source/src/java/org/libreoffice/ui/FileUtilities.java |7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit fc5d185bdb0f27bc6014d47338740f741ac05d21
Author: Mert Tümer <merttum...@gmail.com>
Date:   Fri Apr 6 13:58:02 2018 +0300

tdf#96795: Use locale-sensitive sorting in Android viewer

Change-Id: I98edec9f57f1bf0576e16a1ba3c0e023d6d0b6ed
Signed-off-by: Mert Tümer <merttum...@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/52494
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/src/java/org/libreoffice/ui/FileUtilities.java 
b/android/source/src/java/org/libreoffice/ui/FileUtilities.java
index 422b1e9971cd..44a9ac0b4c2c 100644
--- a/android/source/src/java/org/libreoffice/ui/FileUtilities.java
+++ b/android/source/src/java/org/libreoffice/ui/FileUtilities.java
@@ -13,6 +13,7 @@ import org.libreoffice.storage.IFile;
 import java.io.File;
 import java.io.FileFilter;
 import java.io.FilenameFilter;
+import java.text.Collator;
 import java.util.Map;
 import java.util.Collections;
 import java.util.List;
@@ -204,18 +205,20 @@ public class FileUtilities {
 static void sortFiles(List files, int sortMode) {
 if (files == null)
 return;
+// Compare filenames in the default locale
+final Collator mCollator = Collator.getInstance();
 switch (sortMode) {
 case SORT_AZ:
 Collections.sort(files , new Comparator() {
 public int compare(IFile lhs, IFile rhs) {
-return lhs.getName().compareTo(rhs.getName());
+return mCollator.compare(lhs.getName(), rhs.getName());
 }
 });
 break;
 case SORT_ZA:
 Collections.sort(files , new Comparator() {
 public int compare(IFile lhs, IFile rhs) {
-return rhs.getName().compareTo(lhs.getName());
+return mCollator.compare(rhs.getName(), lhs.getName());
 }
 });
 break;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/source

2018-04-13 Thread Mert Tümer
 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 923b2acc1f6bad5ef344a4c6d7e2bac23c37d416
Author: Mert Tümer <merttum...@gmail.com>
Date:   Thu Apr 5 15:18:46 2018 +0300

tdf#116820 The viewer does't show recent files

Change-Id: I8a4d4f2cb78a1fa772936e263e1aa3975e8f89ff
Signed-off-by: Mert Tümer <merttum...@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/52458
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git 
a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java 
b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
index f8d08aae171f..938112c99149 100644
--- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
+++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
@@ -444,6 +444,8 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 public void run() {
 Toast.makeText(activity, e.getMessage(),
 Toast.LENGTH_SHORT).show();
+// switch back to the default provider.
+
switchToDocumentProvider(documentProviderFactory.getDefaultProvider());
 }
 });
 startActivity(new Intent(activity, 
DocumentProviderSettingsActivity.class));
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/source

2018-04-13 Thread Mert Tümer
 android/source/src/java/org/libreoffice/InvalidationHandler.java |   10 
++
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 68ee5d5997197be3b087ed9f550da4dac6e21bef
Author: Mert Tümer <merttum...@gmail.com>
Date:   Fri Apr 6 13:32:25 2018 +0300

tdf#116842 fix crashing when adding slides or spreadsheets

Change-Id: I957133e468fe43edd0ed1d76cdd180f20d6a86ac
Signed-off-by: Mert Tümer <merttum...@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/52493
Tested-by: Thorsten Behrens <thorsten.behr...@cib.de>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java 
b/android/source/src/java/org/libreoffice/InvalidationHandler.java
index b33f678de90f..92e81febeb7c 100644
--- a/android/source/src/java/org/libreoffice/InvalidationHandler.java
+++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java
@@ -251,10 +251,12 @@ public class InvalidationHandler implements 
Document.MessageCallback, Office.Mes
 }
 
 private void pageSizeChanged(String payload){
-String[] bounds = payload.split(",");
-int pageWidth = Integer.parseInt(bounds[0]);
-int pageHeight = Integer.parseInt(bounds[1].trim());
-LOKitShell.sendEvent(new LOEvent(LOEvent.PAGE_SIZE_CHANGED, pageWidth, 
pageHeight));
+if(mContext.getTileProvider().isTextDocument()){
+String[] bounds = payload.split(",");
+int pageWidth = Integer.parseInt(bounds[0]);
+int pageHeight = Integer.parseInt(bounds[1].trim());
+LOKitShell.sendEvent(new LOEvent(LOEvent.PAGE_SIZE_CHANGED, 
pageWidth, pageHeight));
+}
 }
 
 private void stateChanged(String payload) {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/Bootstrap android/source desktop/source

2018-03-27 Thread Mert Tümer
 android/Bootstrap/src/org/libreoffice/kit/Document.java  |2 
 android/source/src/java/org/libreoffice/InvalidationHandler.java |   17 +++
 android/source/src/java/org/libreoffice/LOEvent.java |   11 ++
 android/source/src/java/org/libreoffice/LOKitThread.java |6 +
 android/source/src/java/org/libreoffice/LOKitTileProvider.java   |   12 ++
 android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java |   45 
+++---
 android/source/src/java/org/libreoffice/TileProvider.java|8 +
 desktop/source/lib/lokandroid.cxx|5 -
 8 files changed, 72 insertions(+), 34 deletions(-)

New commits:
commit fc88892e9964554d4440637e11a7325c4200fedf
Author: Mert Tümer <merttum...@gmail.com>
Date:   Sun Mar 18 17:49:19 2018 +0300

.uno:Save callback for the Android Viewer

Change-Id: Ic2e16985e52869092faa2a31a59a85cb77b8e28c
Signed-off-by: Mert Tümer <merttum...@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/51506
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java 
b/android/Bootstrap/src/org/libreoffice/kit/Document.java
index f0c5e7a6f99a..855bdd2c5a2e 100644
--- a/android/Bootstrap/src/org/libreoffice/kit/Document.java
+++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java
@@ -213,7 +213,7 @@ public class Document {
  * @param command - the command, like ".uno:Bold"
  * @param arguments
  */
-public native void postUnoCommand(String command, String arguments);
+public native void postUnoCommand(String command, String arguments, 
boolean notifyWhenFinished);
 
 /**
  * Change text selection.
diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java 
b/android/source/src/java/org/libreoffice/InvalidationHandler.java
index eb22f6c8f3d3..b33f678de90f 100644
--- a/android/source/src/java/org/libreoffice/InvalidationHandler.java
+++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java
@@ -62,6 +62,9 @@ public class InvalidationHandler implements 
Document.MessageCallback, Office.Mes
 case Document.CALLBACK_INVALIDATE_TILES:
 invalidateTiles(payload);
 break;
+case Document.CALLBACK_UNO_COMMAND_RESULT:
+unoCommandResult(payload);
+break;
 case Document.CALLBACK_INVALIDATE_VISIBLE_CURSOR:
 invalidateCursor(payload);
 break;
@@ -116,10 +119,24 @@ public class InvalidationHandler implements 
Document.MessageCallback, Office.Mes
 case Document.CALLBACK_DOCUMENT_SIZE_CHANGED:
 pageSizeChanged(payload);
 default:
+
 Log.d(LOGTAG, "LOK_CALLBACK uncaught: " + messageID + " : " + 
payload);
 }
 }
 
+private void unoCommandResult(String payload) {
+try {
+JSONObject payloadObject = new JSONObject(payload);
+if (payloadObject.getString("commandName").equals(".uno:Save")) {
+if (payloadObject.getString("success").equals("true")) {
+mContext.saveFilesToCloud();
+}
+}
+}catch(JSONException e){
+e.printStackTrace();
+}
+}
+
 private void cellFormula(final String payload) {
 LOKitShell.getMainHandler().post(new Runnable() {
 @Override
diff --git a/android/source/src/java/org/libreoffice/LOEvent.java 
b/android/source/src/java/org/libreoffice/LOEvent.java
index 979d8ba29ed7..7e15dea2b988 100644
--- a/android/source/src/java/org/libreoffice/LOEvent.java
+++ b/android/source/src/java/org/libreoffice/LOEvent.java
@@ -41,6 +41,8 @@ public class LOEvent implements Comparable {
 public static final int UPDATE_CALC_HEADERS = 20;
 public static final int REFRESH = 21;
 public static final int PAGE_SIZE_CHANGED = 22;
+public static final int UNO_COMMAND_NOTIFY = 23;
+
 
 public final int mType;
 public int mPriority = 0;
@@ -60,6 +62,7 @@ public class LOEvent implements Comparable {
 public String mValue;
 public int mPageWidth;
 public int mPageHeight;
+public boolean mNotify;
 
 public LOEvent(int type) {
 mType = type;
@@ -78,6 +81,14 @@ public class LOEvent implements Comparable {
 mValue = null;
 }
 
+public LOEvent(int type, String someString, boolean notify) {
+mType = type;
+mTypeString = "String";
+mString = someString;
+mValue = null;
+mNotify = notify;
+}
+
 public LOEvent(int type, String key, String value) {
 mType = type;
 mTypeString = "key / value";
diff --git a/android/source/src/java/org/libreoffice/LO

[Libreoffice-commits] core.git: android/source

2018-03-27 Thread Mert Tümer
 android/source/src/java/org/libreoffice/LOKitTileProvider.java |   18 
--
 1 file changed, 16 insertions(+), 2 deletions(-)

New commits:
commit 174229e4797b27eb795c6f2451ab1349c2c29ad8
Author: Mert Tümer <merttum...@gmail.com>
Date:   Tue Mar 20 23:15:28 2018 +0300

tdf#116152 fix unsupported url exception on Android Viewer

Change-Id: I39233369e754919aeb0dc46856a3746f33e89e9b
Signed-off-by: Mert Tümer <merttum...@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/51675
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java 
b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
index 4a8720cb9d01..addbc16a9cf7 100644
--- a/android/source/src/java/org/libreoffice/LOKitTileProvider.java
+++ b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
@@ -23,6 +23,9 @@ import org.mozilla.gecko.gfx.BufferedCairoImage;
 import org.mozilla.gecko.gfx.CairoImage;
 import org.mozilla.gecko.gfx.IntSize;
 
+import java.io.File;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
 import java.nio.ByteBuffer;
 
 /**
@@ -67,7 +70,16 @@ class LOKitTileProvider implements TileProvider {
 mInputFile = input;
 
 Log.i(LOGTAG, "> Loading file '" + input + "'");
-mDocument = mOffice.documentLoad(input);
+File fileToBeEncoded = new File(input);
+String encodedFileName = "";
+try {
+encodedFileName = 
URLEncoder.encode(fileToBeEncoded.getName(),"UTF-8");
+} catch (UnsupportedEncodingException e) {
+e.printStackTrace();
+}
+mDocument = mOffice.documentLoad(
+(new 
File(fileToBeEncoded.getParent(),encodedFileName)).getPath()
+);
 
 if (mDocument == null && !mContext.isPasswordProtected()) {
 Log.i(LOGTAG, "> mOffice.documentLoad() returned null, trying 
to restart 'Office' and loading again");
@@ -80,7 +92,9 @@ class LOKitTileProvider implements TileProvider {
 mOffice.setMessageCallback(messageCallback);
 
mOffice.setOptionalFeatures(Document.LOK_FEATURE_DOCUMENT_PASSWORD);
 Log.i(LOGTAG, "> setup Lokit callback and optional features 
(password support)");
-mDocument = mOffice.documentLoad(input);
+mDocument = mOffice.documentLoad(
+(new 
File(fileToBeEncoded.getParent(),encodedFileName)).getPath()
+);
 }
 
 Log.i(LOGTAG, "> mDocument = " + mDocument);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Ynt: Ynt: GSoC'18 Application

2018-03-27 Thread Mert Tümer
Hello,

I added time-line and a format which I hope its more suitable now 

https://docs.google.com/document/d/1xJw499BI9P4iZlN2hQI7LikO8qhN0_6r2Q3-917uA7I/edit?usp=sharing

Thank you,

Gönderen: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
Gönderildi: 26 Mart 2018 Pazartesi 17:32
Kime: Mert Tümer
Bilgi: libreoffice@lists.freedesktop.org; vmik...@collabora.co.uk
Konu: Re: Ynt: GSoC'18 Application


Hi Mert,

On 26. 03. 2018 22:08, Mert Tümer wrote:
Hello,

I updated my proposal.

https://docs.google.com/document/d/1xJw499BI9P4iZlN2hQI7LikO8qhN0_6r2Q3-917uA7I/edit?usp=sharing

Looks much better. Can you also add a time-line? And maybe some format so it 
doesn't look like an email, but like a document.

Thank you.

Regards,
Tomaž Vajngerl
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Ynt: GSoC'18 Application

2018-03-26 Thread Mert Tümer
Hello,

I updated my proposal.

https://docs.google.com/document/d/1xJw499BI9P4iZlN2hQI7LikO8qhN0_6r2Q3-917uA7I/edit?usp=sharing


Thank you.

Gönderen: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
Gönderildi: 25 Mart 2018 Pazar 06:44
Kime: Mert Tümer
Bilgi: libreoffice@lists.freedesktop.org; vmik...@collabora.co.uk
Konu: Re: GSoC'18 Application


Hi,

On 15. 03. 2018 03:06, Mert Tümer wrote:
Hello,

My name is Mert, I am a university student and i want to be in GSoC'18 with 
LibreOffice. I have been working on the Android Viewer for 2 years and i have 
submitted bunch of patches since I started working on it until today. I 
mentioned my candidacy before and i was asked to submit a c++ code too, which i 
did. Again today i felt that I need to mention it again because students' 
application period started.
Please consider my application.
Thank you!
Sorry for the late reply.

I looked at your proposal today and it is a little vague. Can you please write 
a plan and a timeline what bugs you want to solve and in what way or what you 
want to work on (could be your own ideas or bugs/features you find they are 
lacking) in the time of GSoC. As you finalized your proposal I suggest you 
write it in a different document and send the link here as I think you can't 
modify that anymore.
PS: link to my contributions: https://gerrit.libreoffice.org/#/q/mert
Regards,
Mert Tümer
Regards,
Tomaž Vajngerl
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: android/Bootstrap android/source desktop/source

2018-03-14 Thread Mert Tümer
 android/Bootstrap/src/org/libreoffice/kit/Document.java  |   15 ++
 android/source/res/drawable/ic_content_copy_black_24dp.xml   |9 +
 android/source/res/drawable/ic_content_cut_black_24dp.xml|9 +
 android/source/res/drawable/ic_content_paste_black_24dp.xml  |9 +
 android/source/res/menu/main.xml |   29 
 android/source/res/values/strings.xml|7 +
 android/source/src/java/org/libreoffice/InvalidationHandler.java |3 
 android/source/src/java/org/libreoffice/LOKitTileProvider.java   |   21 +++
 android/source/src/java/org/libreoffice/TileProvider.java|   13 +
 android/source/src/java/org/libreoffice/ToolbarController.java   |   70 
++
 desktop/source/lib/lokandroid.cxx|   17 ++
 11 files changed, 202 insertions(+)

New commits:
commit e5bc7fa4e83b33fc3eee343e560a4f8cb91eacd6
Author: Mert Tümer <merttum...@gmail.com>
Date:   Wed Mar 14 19:19:56 2018 +0300

tdf#96796 - Added clipboard actions for the Android Viewer

Change-Id: I52e134532ab70e765b6ccd929f189be84f9c9a90
Signed-off-by: Mert Tümer <merttum...@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/51286
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java 
b/android/Bootstrap/src/org/libreoffice/kit/Document.java
index 6a1f402970ea..f0c5e7a6f99a 100644
--- a/android/Bootstrap/src/org/libreoffice/kit/Document.java
+++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java
@@ -232,6 +232,21 @@ public class Document {
 public native void setGraphicSelection(int type, int x, int y);
 
 /**
+ * Get selected text
+ * @param mimeType
+ * @return
+ */
+public native String getTextSelection(String mimeType);
+
+/**
+ * paste
+ * @param mimeType
+ * @param data
+ * @return
+ */
+public native boolean paste(String mimeType, String data);
+
+/**
  * Reset current (any kind of) selection.
  */
 public native void resetSelection();
diff --git a/android/source/res/drawable/ic_content_copy_black_24dp.xml 
b/android/source/res/drawable/ic_content_copy_black_24dp.xml
new file mode 100644
index ..8a894a3bcd73
--- /dev/null
+++ b/android/source/res/drawable/ic_content_copy_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/drawable/ic_content_cut_black_24dp.xml 
b/android/source/res/drawable/ic_content_cut_black_24dp.xml
new file mode 100644
index ..1c0f96a37b42
--- /dev/null
+++ b/android/source/res/drawable/ic_content_cut_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/drawable/ic_content_paste_black_24dp.xml 
b/android/source/res/drawable/ic_content_paste_black_24dp.xml
new file mode 100644
index ..a902d9a856a0
--- /dev/null
+++ b/android/source/res/drawable/ic_content_paste_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/menu/main.xml b/android/source/res/menu/main.xml
index 229c20aed68c..7fba5f46e380 100644
--- a/android/source/res/menu/main.xml
+++ b/android/source/res/menu/main.xml
@@ -47,6 +47,35 @@
 android:enabled="false" />
 
 
+
+
+
+
+
+
+
+
+
+
+
 
 Don\'t Compress
 Do you want to compress the 
photo?
 
+
+Copy
+Paste
+Cut
+Back
+Text copied to the clipboard
+
 
diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java 
b/android/source/src/java/org/libreoffice/InvalidationHandler.java
index e411770976c9..eb22f6c8f3d3 100644
--- a/android/source/src/java/org/libreoffice/InvalidationHandler.java
+++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java
@@ -452,6 +452,7 @@ public class InvalidationHandler implements 
Document.MessageCallback, Office.Mes
 if (mContext.isSpreadsheet()) {
 mDocumentOverlay.showHeaderSelection(null);
 }
+mContext.getToolbarController().showHideClipboardCutAndCopy(false);
 } else {
 List rectangles = convertPayloadToRectangles(payload);
 if (mState != O

GSoC'18 Application

2018-03-14 Thread Mert Tümer
Hello,

My name is Mert, I am a university student and i want to be in GSoC'18 with 
LibreOffice. I have been working on the Android Viewer for 2 years and i have 
submitted bunch of patches since I started working on it until today. I 
mentioned my candidacy before and i was asked to submit a c++ code too, which i 
did. Again today i felt that I need to mention it again because students' 
application period started.
Please consider my application.
Thank you!

PS: link to my contributions: https://gerrit.libreoffice.org/#/q/mert
Regards,
Mert Tümer
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: android/source

2018-03-13 Thread Mert Tümer
 android/source/src/java/org/libreoffice/InvalidationHandler.java |9 
+
 android/source/src/java/org/libreoffice/LOEvent.java |9 
+
 android/source/src/java/org/libreoffice/LOKitThread.java |8 

 android/source/src/java/org/libreoffice/LOKitTileProvider.java   |6 ++
 android/source/src/java/org/libreoffice/TileProvider.java|6 ++
 5 files changed, 38 insertions(+)

New commits:
commit 7105ad16e7e7bfde4193dc174568ebb8a293cc87
Author: Mert Tümer <merttum...@gmail.com>
Date:   Mon Jan 8 12:07:44 2018 +0300

[Pardus] tdf#107026 render the new page without reopen the document

This patch is sponsored by ULAKBIM/Pardus project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: I91c902bfd1acc5cc70ad30f16e0719e7a325702b
Reviewed-on: https://gerrit.libreoffice.org/47636
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java 
b/android/source/src/java/org/libreoffice/InvalidationHandler.java
index 6c582550ff81..eb22f6c8f3d3 100644
--- a/android/source/src/java/org/libreoffice/InvalidationHandler.java
+++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java
@@ -113,6 +113,8 @@ public class InvalidationHandler implements 
Document.MessageCallback, Office.Mes
 case Document.CALLBACK_DOCUMENT_PASSWORD:
 documentPassword();
 break;
+case Document.CALLBACK_DOCUMENT_SIZE_CHANGED:
+pageSizeChanged(payload);
 default:
 Log.d(LOGTAG, "LOK_CALLBACK uncaught: " + messageID + " : " + 
payload);
 }
@@ -231,6 +233,13 @@ public class InvalidationHandler implements 
Document.MessageCallback, Office.Mes
 LOKitShell.moveViewportTo(mContext, new PointF(newLeft, newTop), 
newZoom);
 }
 
+private void pageSizeChanged(String payload){
+String[] bounds = payload.split(",");
+int pageWidth = Integer.parseInt(bounds[0]);
+int pageHeight = Integer.parseInt(bounds[1].trim());
+LOKitShell.sendEvent(new LOEvent(LOEvent.PAGE_SIZE_CHANGED, pageWidth, 
pageHeight));
+}
+
 private void stateChanged(String payload) {
 String[] parts = payload.split("=");
 if (parts.length < 2) {
diff --git a/android/source/src/java/org/libreoffice/LOEvent.java 
b/android/source/src/java/org/libreoffice/LOEvent.java
index 4d081e61c0f2..979d8ba29ed7 100644
--- a/android/source/src/java/org/libreoffice/LOEvent.java
+++ b/android/source/src/java/org/libreoffice/LOEvent.java
@@ -40,6 +40,7 @@ public class LOEvent implements Comparable {
 public static final int UPDATE_ZOOM_CONSTRAINTS = 19;
 public static final int UPDATE_CALC_HEADERS = 20;
 public static final int REFRESH = 21;
+public static final int PAGE_SIZE_CHANGED = 22;
 
 public final int mType;
 public int mPriority = 0;
@@ -57,6 +58,8 @@ public class LOEvent implements Comparable {
 public RectF mInvalidationRect;
 public SelectionHandle.HandleType mHandleType;
 public String mValue;
+public int mPageWidth;
+public int mPageHeight;
 
 public LOEvent(int type) {
 mType = type;
@@ -139,6 +142,12 @@ public class LOEvent implements Comparable {
 mDocumentCoordinate = documentCoordinate;
 }
 
+public LOEvent(int type, int pageWidth, int pageHeight){
+mType = type;
+mPageWidth = pageWidth;
+mPageHeight = pageHeight;
+}
+
 public String getTypeString() {
 if (mTypeString == null) {
 return "Event type: " + mType;
diff --git a/android/source/src/java/org/libreoffice/LOKitThread.java 
b/android/source/src/java/org/libreoffice/LOKitThread.java
index c4146fcb6b29..63f49dc6253f 100644
--- a/android/source/src/java/org/libreoffice/LOKitThread.java
+++ b/android/source/src/java/org/libreoffice/LOKitThread.java
@@ -175,6 +175,11 @@ class LOKitThread extends Thread {
 
mContext.getDocumentOverlay().setPartPageRectangles(partPageRectangles);
 }
 
+private void updatePageSize(int pageWidth, int pageHeight){
+mTileProvider.setDocumentSize(pageWidth, pageHeight);
+redraw();
+}
+
 private void updateZoomConstraints() {
 if (mTileProvider == null) return;
 mLayerClient = mContext.getLayerClient();
@@ -364,6 +369,9 @@ class LOKitThread extends Thread {
 case LOEvent.REFRESH:
 refresh();
 break;
+case LOEvent.PAGE_SIZE_CHANGED:
+updatePageSize(event.mPageWidth, event.mPageHeight);
+break;
 }
 }
 
diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java 
b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
index 24

[Libreoffice-commits] core.git: android/Bootstrap android/source desktop/source

2018-03-13 Thread Mert Tümer
 android/Bootstrap/src/org/libreoffice/kit/Document.java  |   15 ++
 android/source/res/drawable/ic_content_copy_black_24dp.xml   |9 +
 android/source/res/drawable/ic_content_cut_black_24dp.xml|9 +
 android/source/res/drawable/ic_content_paste_black_24dp.xml  |9 +
 android/source/res/menu/main.xml |   29 
 android/source/res/values/strings.xml|7 +
 android/source/src/java/org/libreoffice/InvalidationHandler.java |3 
 android/source/src/java/org/libreoffice/LOKitTileProvider.java   |   21 +++
 android/source/src/java/org/libreoffice/TileProvider.java|   13 +
 android/source/src/java/org/libreoffice/ToolbarController.java   |   70 
++
 desktop/source/lib/lokandroid.cxx|   17 ++
 11 files changed, 202 insertions(+)

New commits:
commit 31e939c9f4b29fb2b2e63eb096450cf3da35d67f
Author: Mert Tümer <merttum...@gmail.com>
Date:   Mon Mar 5 02:39:36 2018 +0300

tdf#96796 - Added clipboard actions for the Android Viewer

Change-Id: I2779ef9a9f68dcf08c3072ffe83b9f2450b7257e
Signed-off-by: Mert Tümer <merttum...@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/50757
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java 
b/android/Bootstrap/src/org/libreoffice/kit/Document.java
index 6a1f402970ea..f0c5e7a6f99a 100644
--- a/android/Bootstrap/src/org/libreoffice/kit/Document.java
+++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java
@@ -232,6 +232,21 @@ public class Document {
 public native void setGraphicSelection(int type, int x, int y);
 
 /**
+ * Get selected text
+ * @param mimeType
+ * @return
+ */
+public native String getTextSelection(String mimeType);
+
+/**
+ * paste
+ * @param mimeType
+ * @param data
+ * @return
+ */
+public native boolean paste(String mimeType, String data);
+
+/**
  * Reset current (any kind of) selection.
  */
 public native void resetSelection();
diff --git a/android/source/res/drawable/ic_content_copy_black_24dp.xml 
b/android/source/res/drawable/ic_content_copy_black_24dp.xml
new file mode 100644
index ..8a894a3bcd73
--- /dev/null
+++ b/android/source/res/drawable/ic_content_copy_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/drawable/ic_content_cut_black_24dp.xml 
b/android/source/res/drawable/ic_content_cut_black_24dp.xml
new file mode 100644
index ..1c0f96a37b42
--- /dev/null
+++ b/android/source/res/drawable/ic_content_cut_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/drawable/ic_content_paste_black_24dp.xml 
b/android/source/res/drawable/ic_content_paste_black_24dp.xml
new file mode 100644
index ..a902d9a856a0
--- /dev/null
+++ b/android/source/res/drawable/ic_content_paste_black_24dp.xml
@@ -0,0 +1,9 @@
+http://schemas.android.com/apk/res/android;
+android:width="24dp"
+android:height="24dp"
+android:viewportWidth="24.0"
+android:viewportHeight="24.0">
+
+
diff --git a/android/source/res/menu/main.xml b/android/source/res/menu/main.xml
index 229c20aed68c..7fba5f46e380 100644
--- a/android/source/res/menu/main.xml
+++ b/android/source/res/menu/main.xml
@@ -47,6 +47,35 @@
 android:enabled="false" />
 
 
+
+
+
+
+
+
+
+
+
+
+
 
 Don\'t Compress
 Do you want to compress the 
photo?
 
+
+Copy
+Paste
+Cut
+Back
+Text copied to the clipboard
+
 
diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java 
b/android/source/src/java/org/libreoffice/InvalidationHandler.java
index 5dcb572af6c4..6c582550ff81 100644
--- a/android/source/src/java/org/libreoffice/InvalidationHandler.java
+++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java
@@ -443,6 +443,7 @@ public class InvalidationHandler implements 
Document.MessageCallback, Office.Mes
 if (mContext.isSpreadsheet()) {
 mDocumentOverlay.showHeaderSelection(null);
 }
+mContext.getToolbarController().showHideClipboardCutAndCopy(false);
 } else {
 List rectangles = convertPayloadToRectangles(payload);
 if (mState != O

[Libreoffice-commits] core.git: android/source

2018-02-25 Thread Mert Tümer
 android/source/res/menu/main.xml |5 ++
 android/source/res/values/strings.xml|1 
 android/source/src/java/org/libreoffice/LOKitTileProvider.java   |   25 
+-
 android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java |2 
 android/source/src/java/org/libreoffice/ToolbarController.java   |5 +-
 5 files changed, 35 insertions(+), 3 deletions(-)

New commits:
commit ddd49295d19f76c63ea61dc64af08a797dbafa9b
Author: Mert Tümer <merttum...@gmail.com>
Date:   Tue Feb 6 18:30:13 2018 +0300

[Pardus] tdf#112481 Ability to add worksheets on Calc

This patch is sponsored by ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: Id67e3c400971b47738fe2f628955534f34839493
Reviewed-on: https://gerrit.libreoffice.org/49294
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/res/menu/main.xml b/android/source/res/menu/main.xml
index 432c374b3997..229c20aed68c 100644
--- a/android/source/res/menu/main.xml
+++ b/android/source/res/menu/main.xml
@@ -40,6 +40,11 @@
 android:title="@string/action_add_slide"
 android:orderInCategory="100"
 android:enabled="false" />
+
+
 
 
 
diff --git a/android/source/res/values/strings.xml 
b/android/source/res/values/strings.xml
index c55b5a61f53b..2e885fee5e1a 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -155,6 +155,7 @@
 OK
 Enter Extra Length in 
100th/mm
 Hint: Double tap on 
a header sets optimal width/height.
+Add Worksheet
 
 
 OK
diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java 
b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
index bdf00ff77e2d..be16d8d1ebbe 100644
--- a/android/source/src/java/org/libreoffice/LOKitTileProvider.java
+++ b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
@@ -13,6 +13,8 @@ import android.graphics.PointF;
 import android.util.Log;
 import android.view.KeyEvent;
 
+import org.json.JSONException;
+import org.json.JSONObject;
 import org.libreoffice.kit.DirectBufferAllocator;
 import org.libreoffice.kit.Document;
 import org.libreoffice.kit.LibreOfficeKit;
@@ -116,6 +118,9 @@ class LOKitTileProvider implements TileProvider {
 
mContext.getToolbarController().disableMenuItem(R.id.action_presentation, 
false);
 
mContext.getToolbarController().disableMenuItem(R.id.action_add_slide, false);
 }
+if (mDocument.getDocumentType() == Document.DOCTYPE_SPREADSHEET) {
+
mContext.getToolbarController().disableMenuItem(R.id.action_add_worksheet, 
false);
+}
 
 // Writer documents always have one part, so hide the navigation 
drawer.
 if (mDocument.getDocumentType() != Document.DOCTYPE_TEXT) {
@@ -163,7 +168,25 @@ class LOKitTileProvider implements TileProvider {
 
 public void addPart(){
 int parts = mDocument.getParts();
-LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, 
".uno:InsertPage"));
+if(mDocument.getDocumentType() == Document.DOCTYPE_SPREADSHEET){
+try{
+JSONObject jsonObject = new JSONObject();
+JSONObject values = new JSONObject();
+JSONObject values2 = new JSONObject();
+values.put("type", "long");
+values.put("value", 0); //add to the last
+values2.put("type", "string");
+values2.put("value", "");
+jsonObject.put("Name", values2);
+jsonObject.put("Index", values);
+LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, 
".uno:Insert", jsonObject.toString()));
+}catch (JSONException e) {
+e.printStackTrace();
+}
+} else if (mDocument.getDocumentType() == 
Document.DOCTYPE_PRESENTATION){
+LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, 
".uno:InsertPage"));
+}
+
 String partName = mDocument.getPartName(parts);
 if (partName.isEmpty()) {
 partName = getGenericPartName(parts);
diff --git 
a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java 
b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
index 655bb13f42d7..3d9e13f343ad 100644
--- a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
+++ b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
@@ -691,7 +691,7 @@ public class LibreOfficeMainActivity extends 
AppCompatActivity implements Settin
 aboutDialogFragment.show(getSupportFragmentManager(), 
"

This year's GSoC

2018-02-21 Thread Mert Tümer
I would like to apply for this year's GSoC with Libreoffice for the android 
viewer.


My contributions to the android viewer so far :

https://gerrit.libreoffice.org/#/q/mert


Regards,

Mert Tumer
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: android/source

2018-02-17 Thread Mert Tümer
 android/source/src/java/org/libreoffice/LOKitTileProvider.java   |1 +
 android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java |4 
++--
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 77ec366385b31fbbf8b78961fccaa9d0561661de
Author: Mert Tümer <merttum...@gmail.com>
Date:   Fri Jan 12 15:12:16 2018 +0300

[Pardus] tdf#108446 - Shape is not changed after save

This patch is sponsored by ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: I7ee137b2332f799e4301cc3507df4a7b86af74b9
Reviewed-on: https://gerrit.libreoffice.org/47806
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java 
b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
index e7b80782f0b8..bdf00ff77e2d 100644
--- a/android/source/src/java/org/libreoffice/LOKitTileProvider.java
+++ b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
@@ -593,6 +593,7 @@ class LOKitTileProvider implements TileProvider {
 private void setGraphicSelection(int type, PointF documentCoordinate) {
 int x = (int) pixelToTwip(documentCoordinate.x, mDPI);
 int y = (int) pixelToTwip(documentCoordinate.y, mDPI);
+LibreOfficeMainActivity.setDocumentChanged(true);
 mDocument.setGraphicSelection(type, x, y);
 }
 
diff --git 
a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java 
b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
index a7a13c45c9a4..655bb13f42d7 100644
--- a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
+++ b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
@@ -116,7 +116,7 @@ public class LibreOfficeMainActivity extends 
AppCompatActivity implements Settin
 private boolean isKeyboardOpen = false;
 private boolean isFormattingToolbarOpen = false;
 private boolean isSearchToolbarOpen = false;
-private boolean isDocumentChanged = false;
+private static boolean isDocumentChanged = false;
 public boolean isNewDocument = false;
 @Override
 public void onCreate(Bundle savedInstanceState) {
@@ -773,7 +773,7 @@ public class LibreOfficeMainActivity extends 
AppCompatActivity implements Settin
 return mIsSpreadsheet;
 }
 
-public void setDocumentChanged (boolean changed) {
+public static void setDocumentChanged (boolean changed) {
 isDocumentChanged = changed;
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/source

2018-01-29 Thread Mert Tümer
 android/source/res/layout/activity_main.xml  |3 
 android/source/res/layout/toolbar_bottom.xml |   28 ++
 android/source/res/layout/toolbar_color_picker.xml   |1 
 android/source/src/java/org/libreoffice/FontController.java  |  138 
+-
 android/source/src/java/org/libreoffice/InvalidationHandler.java |2 
 android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java |6 
 6 files changed, 166 insertions(+), 12 deletions(-)

New commits:
commit 3deac9691011711a3b9e50d19499c588af074d7f
Author: Mert Tümer <merttum...@gmail.com>
Date:   Sun Jan 21 19:10:10 2018 +0300

[Pardus] tdf#106326 ability to change font background color

This patch is sponsored by ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: I4dfbb9e35214e4d4a9aa6dca1ce3d5d2604218a9
Reviewed-on: https://gerrit.libreoffice.org/48270
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/res/layout/activity_main.xml 
b/android/source/res/layout/activity_main.xml
index 9f53b4f5d3dd..c2528023d0f8 100644
--- a/android/source/res/layout/activity_main.xml
+++ b/android/source/res/layout/activity_main.xml
@@ -110,7 +110,8 @@
 
 
 
-
+
+
 
 
 
 
+
+
+
+
+
 
 
 
diff --git a/android/source/res/layout/toolbar_color_picker.xml 
b/android/source/res/layout/toolbar_color_picker.xml
index e34b6c6a5d72..9393259123be 100644
--- a/android/source/res/layout/toolbar_color_picker.xml
+++ b/android/source/res/layout/toolbar_color_picker.xml
@@ -3,7 +3,6 @@
 http://schemas.android.com/apk/res/android;
 xmlns:app="http://schemas.android.com/apk/res-auto;
 xmlns:tools="http://schemas.android.com/tools;
-android:id="@+id/toolbar_color_picker"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:layout_alignParentBottom="true"
diff --git a/android/source/src/java/org/libreoffice/FontController.java 
b/android/source/src/java/org/libreoffice/FontController.java
index db87302cbd4a..04fc6ccaa234 100644
--- a/android/source/src/java/org/libreoffice/FontController.java
+++ b/android/source/src/java/org/libreoffice/FontController.java
@@ -28,7 +28,7 @@ public class FontController implements 
AdapterView.OnItemSelectedListener {
 
 private boolean mFontNameSpinnerSet = false;
 private boolean mFontSizeSpinnerSet = false;
-private Activity mActivity;
+private LibreOfficeMainActivity mActivity;
 private List mFontList = null;
 private List mFontSizes = new ArrayList();
 private Map<String, List> mAllFontSizes = null;
@@ -36,12 +36,14 @@ public class FontController implements 
AdapterView.OnItemSelectedListener {
 private String mCurrentFontSelected = null;
 private String mCurrentFontSizeSelected = null;
 
-public FontController(Activity activity) {
+public FontController(LibreOfficeMainActivity activity) {
 mActivity = activity;
 }
 private BottomSheetBehavior colorPickerBehavior;
+private BottomSheetBehavior backColorPickerBehavior;
 private BottomSheetBehavior toolBarBottomBehavior;
 private ColorPickerAdapter colorPickerAdapter;
+private ColorPickerAdapter backColorPickerAdapter;
 
 ColorPaletteListener colorPaletteListener = new ColorPaletteListener() {
 @Override
@@ -52,8 +54,22 @@ public class FontController implements 
AdapterView.OnItemSelectedListener {
 @Override
 public void updateColorPickerPosition(int color) {
 if (null == colorPickerAdapter) return;
-colorPickerAdapter.findSelectedTextColor(color);
-changeFontColorBoxColor(color);
+colorPickerAdapter.findSelectedTextColor(color + 0xFF00);
+changeFontColorBoxColor(color + 0xFF00);
+}
+};
+
+ColorPaletteListener backColorPaletteListener = new ColorPaletteListener() 
{
+@Override
+public void applyColor(int color) {
+sendFontBackColorChange(color);
+}
+
+@Override
+public void updateColorPickerPosition(int color) {
+backColorPickerAdapter.findSelectedTextColor(color + 0xFF00);
+changeFontBackColorBoxColor(color + 0xFF00);
+
 }
 };
 
@@ -67,11 +83,27 @@ public class FontController implements 
AdapterView.OnItemSelectedListener {
 fontColorPickerButton.setBackgroundColor(Color.BLACK);
 }else{
 fontColorPickerButton.setBackgroundColor(c

[Libreoffice-commits] core.git: android/source

2018-01-29 Thread Mert Tümer
 android/source/res/menu/main.xml |5 +++
 android/source/res/values/strings.xml|1 
 android/source/src/java/org/libreoffice/LOKitTileProvider.java   |   14 
++
 android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java |6 

 android/source/src/java/org/libreoffice/ToolbarController.java   |3 ++
 5 files changed, 29 insertions(+)

New commits:
commit 976b48e9ee03e7bd36e0f99a8752aa06a337
Author: Mert Tümer <merttum...@gmail.com>
Date:   Wed Jan 24 15:22:22 2018 +0300

[Pardus] tdf#112482 ability to add slides to impress

This patch is sponsored by ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: I3c8b55d032604b30117573ac447776a1a0e5205f
Reviewed-on: https://gerrit.libreoffice.org/48500
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/res/menu/main.xml b/android/source/res/menu/main.xml
index 9a4384af6fd5..432c374b3997 100644
--- a/android/source/res/menu/main.xml
+++ b/android/source/res/menu/main.xml
@@ -35,6 +35,11 @@
 
+
+
 
 
 
diff --git a/android/source/res/values/strings.xml 
b/android/source/res/values/strings.xml
index 5d7eca869a39..052389847f7c 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -136,6 +136,7 @@
 
 
 Slide show
+Add Slide
 Your Android device 
doesn\'t support in-app svg slideshow. We copied the slideshow link to 
clipboard. Please press home button, open a modern web browser, paste in the 
address bar, and go.
 OK
 Back
diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java 
b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
index a68f65221795..e7b80782f0b8 100644
--- a/android/source/src/java/org/libreoffice/LOKitTileProvider.java
+++ b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
@@ -114,6 +114,7 @@ class LOKitTileProvider implements TileProvider {
 
 if (mDocument.getDocumentType() == Document.DOCTYPE_PRESENTATION) {
 
mContext.getToolbarController().disableMenuItem(R.id.action_presentation, 
false);
+
mContext.getToolbarController().disableMenuItem(R.id.action_add_slide, false);
 }
 
 // Writer documents always have one part, so hide the navigation 
drawer.
@@ -160,6 +161,19 @@ class LOKitTileProvider implements TileProvider {
 });
 }
 
+public void addPart(){
+int parts = mDocument.getParts();
+LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, 
".uno:InsertPage"));
+String partName = mDocument.getPartName(parts);
+if (partName.isEmpty()) {
+partName = getGenericPartName(parts);
+}
+mDocument.setPart(parts);
+resetDocumentSize();
+final DocumentPartView partView = new DocumentPartView(parts, 
partName);
+mContext.getDocumentPartView().add(partView);
+}
+
 @Override
 public void saveDocumentAs(String filePath, String format) {
 final String newFilePath = "file://" + filePath;
diff --git 
a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java 
b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
index 0b3f8b8e0e06..91722fa98d35 100644
--- a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
+++ b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
@@ -685,6 +685,12 @@ public class LibreOfficeMainActivity extends 
AppCompatActivity implements Settin
 aboutDialogFragment.show(getSupportFragmentManager(), 
"AboutDialogFragment");
 }
 
+public void addSlide(){
+mTileProvider.addPart();
+mDocumentPartViewListAdapter.notifyDataSetChanged();
+setDocumentChanged(true);
+}
+
 public void showSettings() {
 startActivity(new Intent(getApplicationContext(), 
SettingsActivity.class));
 }
diff --git a/android/source/src/java/org/libreoffice/ToolbarController.java 
b/android/source/src/java/org/libreoffice/ToolbarController.java
index 9ef994d271a9..b8faae379f83 100644
--- a/android/source/src/java/org/libreoffice/ToolbarController.java
+++ b/android/source/src/java/org/libreoffice/ToolbarController.java
@@ -135,6 +135,9 @@ public class ToolbarController implements 
Toolbar.OnMenuItemClickListener {
 case R.id.action_presentation:
 mContext.preparePresentation();
 return true;
+case R.id.action_add_slide:
+mContext.addSlide();
+return true;
 }
 return false;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/source

2018-01-15 Thread Mert Tümer
 android/source/res/values/strings.xml |2 +
 android/source/res/xml/libreoffice_preferences.xml|5 ++
 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java |   17 
+-
 3 files changed, 23 insertions(+), 1 deletion(-)

New commits:
commit 2733ca6c0aed6468c26fd7a80b0b50e32fd608c4
Author: Mert Tümer <merttum...@gmail.com>
Date:   Mon Jan 8 13:15:21 2018 +0300

tdf#103083 option to show/hide hidden files/folders on Android

The patch was sent for the ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: Iadbb688a1a976279b23d246001818ac1c21b3d47
Reviewed-on: https://gerrit.libreoffice.org/47637
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/res/values/strings.xml 
b/android/source/res/values/strings.xml
index 1fb23a528c06..9b6ff7abff9c 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -49,6 +49,8 @@
 General
 Experimental Mode
 Enable the experimental 
editing mode. Use at your own risk.
+Hidden Files/Folders
+Enable to show hidden 
files/folders
 
 About
 Parts
diff --git a/android/source/res/xml/libreoffice_preferences.xml 
b/android/source/res/xml/libreoffice_preferences.xml
index 347709b7d017..17236434daa2 100644
--- a/android/source/res/xml/libreoffice_preferences.xml
+++ b/android/source/res/xml/libreoffice_preferences.xml
@@ -20,6 +20,11 @@
 android:title="File explorer layout"
 android:key="EXPLORER_VIEW_TYPE"
 android:summary="View files as a grid or in a list." />
+
 
  paths = 
currentDirectory.listFiles(FileUtilities
 .getFileFilter(filterMode));
+filePaths = new ArrayList();
+for(IFile file: paths) {
+if(showHiddenFiles){
+filePaths.add(file);
+} else {
+if(!file.getName().startsWith(".")){
+filePaths.add(file);
+}
+}
+}
 }
 catch (final RuntimeException e) {
 final Activity activity = LibreOfficeUIActivity.this;
@@ -813,6 +825,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 SharedPreferences defaultPrefs = 
PreferenceManager.getDefaultSharedPreferences(getBaseContext());
 viewMode = 
Integer.valueOf(defaultPrefs.getString(EXPLORER_VIEW_TYPE_KEY, ""+ GRID_VIEW));
 filterMode = Integer.valueOf(defaultPrefs.getString(FILTER_MODE_KEY , 
"-1"));
+showHiddenFiles = 
Boolean.valueOf(defaultPrefs.getBoolean(ENABLE_SHOW_HIDDEN_FILES_KEY, false));
 
 Intent i = this.getIntent();
 if (i.hasExtra(CURRENT_DIRECTORY_KEY)) {
@@ -850,6 +863,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 outState.putInt(FILTER_MODE_KEY, filterMode);
 outState.putInt(EXPLORER_VIEW_TYPE_KEY , viewMode);
 outState.putInt(DOC_PROVIDER_KEY, documentProvider.getId());
+outState.putBoolean(ENABLE_SHOW_HIDDEN_FILES_KEY , showHiddenFiles);
 
 Log.d(LOGTAG, currentDirectory.toString() + 
Integer.toString(filterMode) + Integer.toString(viewMode));
 //prefs.edit().putInt(EXPLORER_VIEW_TYPE, viewType).commit();
@@ -876,6 +890,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 }
 filterMode = savedInstanceState.getInt(FILTER_MODE_KEY, 
FileUtilities.ALL);
 viewMode = savedInstanceState.getInt(EXPLORER_VIEW_TYPE_KEY, 
GRID_VIEW);
+showHiddenFiles = 
savedInstanceState.getBoolean(ENABLE_SHOW_HIDDEN_FILES_KEY, false);
 //openDirectory(currentDirectory);
 Log.d(LOGTAG, "onRestoreInstanceState");
 Log.d(LOGTAG, currentDirectory.toString() + 
Integer.toString(filterMode) + Integer.toString(viewMode));
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/source

2018-01-15 Thread Mert Tümer
 android/source/res/layout/activity_document_browser.xml   |9 
+
 android/source/res/values/strings.xml |1 +
 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java |5 
-
 3 files changed, 14 insertions(+), 1 deletion(-)

New commits:
commit 55ecc98376dbeffc366820e718fd906b8935a17b
Author: Mert Tümer <merttum...@gmail.com>
Date:   Mon Jan 8 12:52:01 2018 +0300

tdf#89639 added path text for the document browser

The patch was sent for the ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: I14ce3bb7c11f4cc2fe9194a99b433764209b1528
Reviewed-on: https://gerrit.libreoffice.org/47635
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/res/layout/activity_document_browser.xml 
b/android/source/res/layout/activity_document_browser.xml
index fab1b095035e..9f62f5f22a3e 100644
--- a/android/source/res/layout/activity_document_browser.xml
+++ b/android/source/res/layout/activity_document_browser.xml
@@ -86,6 +86,15 @@
 android:padding="16dp"
 android:textStyle="bold" />
 
+
+
 
 
 Go
 Choose Directory
 Invalid directory path
+Current Directory:
 
 
 Save the document before 
closing?
diff --git 
a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java 
b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
index 786b949bb504..530644667aa9 100644
--- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
+++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
@@ -464,12 +464,15 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 findViewById(R.id.header_browser).setVisibility((View.VISIBLE));
 findViewById(R.id.header_recents).setVisibility((View.VISIBLE));
 actionBar.setTitle(R.string.app_name);
+findViewById(R.id.text_directory_path).setVisibility(View.GONE);
 } else {
 recentRecyclerView.setVisibility(View.GONE);
 findViewById(R.id.header_browser).setVisibility((View.GONE));
 findViewById(R.id.header_recents).setVisibility((View.GONE));
 actionBar.setTitle(dir.getName());
-
+findViewById(R.id.text_directory_path).setVisibility(View.VISIBLE);
+
((TextView)findViewById(R.id.text_directory_path)).setText(getString(R.string.current_dir)
 +
+" " + dir.getUri().getPath());
 }
 
 new AsyncTask<IFile, Void, Void>() {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: android/source

2018-01-13 Thread Mert Tümer
 android/source/res/menu/main.xml |   12 
+-
 android/source/src/java/org/libreoffice/InvalidationHandler.java |9 +--
 2 files changed, 14 insertions(+), 7 deletions(-)

New commits:
commit 5f4c120dd4dcc96329a4b0bcd72d76fb37b42fed
Author: Mert Tümer <merttum...@gmail.com>
Date:   Mon Jan 8 11:42:16 2018 +0300

tdf#96790 search function in non experimental mode

The patch was sent for the ULAKBIM/Pardus project.
Signed-off-by: Mert Tümer <merttum...@gmail.com>

Change-Id: I4e2ecc25eee6535b7d8a89800aaa8135cf517889
Reviewed-on: https://gerrit.libreoffice.org/47568
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/android/source/res/menu/main.xml b/android/source/res/menu/main.xml
index 0b34d8b5ffac..9a4384af6fd5 100644
--- a/android/source/res/menu/main.xml
+++ b/android/source/res/menu/main.xml
@@ -31,17 +31,19 @@
 android:orderInCategory="100"
 app:showAsAction="always"/>
 
-
 
 
 
 
+
+
+
 https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


BUILD FAIL WITH LIBREOFFICE ANDROID

2017-11-28 Thread Mert Tümer
Hello,

I am getting this error while building libreoffice with the android viewer:


[build MAK] CustomTarget/android/source/done
make[2]: Warning: File '/home/mert/libreoffice/config_build.mk' has 
modification time 5720 s in the future
creating liboSettings.gradle
Linking obj/local/armeabi-v7a/liblo-native-code.so
/home/mert/libreoffice/workdir/UnpackedTarball/icu/source/lib/libicuuc.a(udata.ao):udata.cpp:function
 openCommonData(char const*, int, UErrorCode*): error: undefined reference to 
'icudt60_dat'
/home/mert/libreoffice/workdir/UnpackedTarball/icu/source/lib/libicuuc.a(udata.ao):udata.cpp:function
 openCommonData(char const*, int, UErrorCode*): error: undefined reference to 
'icudt60_dat'
clang++: error: linker command failed with exit code 1 (use -v to see 
invocation)
../Bootstrap/Makefile.shared:61: recipe for target 
'obj/local/armeabi-v7a/liblo-native-code.so' failed
make[2]: *** [obj/local/armeabi-v7a/liblo-native-code.so] Error 1
/home/mert/libreoffice/android/CustomTarget_lo_android.mk:17: recipe for target 
'/home/mert/libreoffice/workdir/CustomTarget/android/source/done' failed
make[1]: *** [/home/mert/libreoffice/workdir/CustomTarget/android/source/done] 
Error 2
Makefile:268: recipe for target 'build' failed
make: *** [build] Error 2

Why am i getting this and is there anything i can do to fix this?


Regards,

Mert
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Content is not visible on Android Viewer

2017-11-15 Thread Mert Tümer
Hello,

Is there anyone working on this bug: 
https://bugs.documentfoundation.org/show_bug.cgi?id=111871

or does anyone know what caused this? It seems to be a major bug. I was 
contributing to the Android Viewer but due to this i can't really work on 
anything.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


FW: Re: Exporting documents as PDF in Android Viewer

2016-12-08 Thread Mert Tümer


Sent from my Sony Xperia™ smartphone

 Original Message 
Subject: Re: Exporting documents as PDF in Android Viewer
Sent: Dec 8, 2016 12:01
From: Michael Meeks <michael.me...@collabora.com>
To: Mert Tümer <merttu...@outlook.com>
Cc:

Hi Mert,

Can I CC: the libreoffice@lists.freedesktop.org list here on this one ?
it's prolly best to get wider and quicker input, perhaps you can fwd
this one there as you reply ? =)

On 08/12/16 08:22, Mert Tümer wrote:
> I'm trying to add "export as pdf feature" to the Android Viewer. Based
> on your comment
> in https://bugs.documentfoundation.org/show_bug.cgi?id=89860#c4,
> however, i couldn't do that. I couldn't find any pdf conversions bits in
> lokandroid.cxx file. There is just one function that i think it can do
> the job which is

Ah - right =) so that file lokandroid.cxx is a (somewhat out of date)
Java wrapper of the LibreOfficeKit API which you can see in C form here:

include/LibreOfficeKit/LibreOfficeKit.h

> extern "C" SAL_JNI_EXPORT void JNICALL
> Java_org_libreoffice_kit_Document_postUnoCommand
> (JNIEnv* pEnv, jobject aObject, jstring command, jstring arguments).

Yep - so this is not the right method =)

> I know that you don't work with Android side

Hey ;-) I've hacked on and around the Android code a fair bit getting
that going ;-)

> but is there anyone you can address me to in order to solve this problem?

The developers list is the best place; this is a very sensible
question, and I'm excited to have you interested in working on Android -
currently almost no-one is, so there is a big opportunity there =) There
is a lot that can be done to accelerate things on Android - particularly
eg. combined tile rendering, and there are lots of hooks we've added for
'Online' that can be mirrored nicely on Android these days - so it
should be easy to improve the editing UI a lot.

Anyhow ... I think you prolly want to:

extern "C" SAL_JNI_EXPORT jint JNICALL
Java_org_libreoffice_kit_Office_saveAs
(JNIEnv* pEnv, jobject aObject, jstring sUrl, jstring sFormat,
jstring sOptions)

And pass in a file-name with a ".pdf" extension which should give you a
temporary file with a PDF in it =)

That will call to:

desktop/source/init.cxx:

static int doc_saveAs(LibreOfficeKitDocument* pThis, const char* sUrl,
const char* pFormat, const char* pFilterOptions)

Which you can read to see how it works =) Of course, in terms of a UI
to set paper size and orientation and so on - I think you'll want to use
the new UNO commands exposed for 'online' to add some options for that.

Hope that helps !

Michael.

--
michael.me...@collabora.com <><, Pseudo Engineer, itinerant idiot
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Possibly broken master branch with Android Viwer

2016-07-28 Thread Mert Tümer
Hi,


I am working on Android Viewer for a while. I know that most of you are not 
Android Viewer developer but my problem is about build process. I think current 
master branch is broken. When i try to build libreoffice with 
"with-distro=LibreOfficeAndorid" i am getting error like this;


in openclwrapper.cxx


#include  is not found.


after that i tried to do make clew and it gave me this error:

/home/mert/libreoffice/external/clew/Library_clew.mk:10: *** Library clew must 
be registered in Repository.mk or RepositoryExternal.mk.  Stop.


and also i got the same error when i tried to do make opencl.


It seems there is something wrong with the mk files. Can anyone help me?


Thank you.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Mert Tumer license statement

2016-05-01 Thread Mert Tümer
   All of my past & future contributions to LibreOffice may be
   licensed under the MPLv2/LGPLv3+ dual license.
  ___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


license statement

2016-01-10 Thread Mert Tümer
   All of my past & future contributions to LibreOffice may be
   licensed under the MPLv2/LGPLv3+ dual license.   
  ___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice