aboutsummaryrefslogtreecommitdiff
path: root/source/es/desktop
AgeCommit message (Expand)Author
2015-10-17Update translations for master and force-fix errors using pocheckRobinson Tryon
2015-09-03update translations for masterChristian Lohmaier
2015-04-19update translations for 5.0.0 Alpha1Christian Lohmaier
2014-11-20update translations for 4.4.0 beta1Christian Lohmaier
2014-10-17update translations for 4.4.0.0alpha1Christian Lohmaier
2014-05-21update translations for 4.3.0 beta1libreoffice-4-3-branch-pointChristian Lohmaier
2014-04-20update translations for 4.3.0 alpha1Christian Lohmaier
2013-12-09update translations for 4.2.0 Beta2Christian Lohmaier
2013-11-21sync with po-templates for 4.2libreoffice-4-2-branch-pointChristian Lohmaier
2013-06-27update translations for LibreOffice 4.1 rc1Andras Timar
2013-06-05update translations for LibreOffice 4.1 beta2Andras Timar
2013-05-25initial import of 4.1 translationsAndras Timar
2013-05-07update translations for LibreOffice 4.0.3 rc1Andras Timar
2013-04-11update translations for LibreOffice 4.0.2 rc2Andras Timar
2013-04-11update translations for LibreOffice 4.0.2 rc1Andras Timar
2013-02-24update translations for LibreOffice 4.0.1 rc2Andras Timar
2013-02-17update translations for LibreOffice 4.0.1 rc1Andras Timar
2013-01-28update translations for LibreOffice 4.0 rc3Andras Timar
2013-01-28update translations for LibreOffice 4.0 rc2Andras Timar
2013-01-06 update translations for LibreOffice 4.0 rc1Andras Timar
2012-12-16update translations for LibreOffice 4.0 beta2Andras Timar
2012-12-03update translations for LibreOffice 4.0 beta1Andras Timar
2012-11-20initial import of LibreOffice 4.0 translationsAndras Timar
2012-10-16move translations structure one directory upNorbert Thiebaud
-4-0-3'>libreoffice-4-0-3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorPtyl Dragon <ptyl@cloudon.com>2013-10-19 12:51:02 +0200
committerTor Lillqvist <tml@collabora.com>2013-10-19 10:05:27 +0000
commit1034a2eb97a291846ff0d9b67677946ecab7df87 (patch)
tree64af851cee90f9f1068fb95593f4f5172a03bffe /ios
parent07d7be1ac8be39c9a4333c7166600180b8dd2475 (diff)
added save to ios app and removed keyboard on open
Change-Id: Ibfa9373cc82d7e2022190e158f94eb323a57f241 Reviewed-on: https://gerrit.libreoffice.org/6351 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'ios')
-rw-r--r--ios/shared/ios_sharedlo/cxx/mlo_uno.h1
-rw-r--r--ios/shared/ios_sharedlo/cxx/mlo_uno.mm25
-rw-r--r--ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.h2
-rw-r--r--ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.m19
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.m3
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/toolbar/MLOToolbarViewController.m11
6 files changed, 53 insertions, 8 deletions
diff --git a/ios/shared/ios_sharedlo/cxx/mlo_uno.h b/ios/shared/ios_sharedlo/cxx/mlo_uno.h
index d9ec63bcc3ff..df531905c312 100644
--- a/ios/shared/ios_sharedlo/cxx/mlo_uno.h
+++ b/ios/shared/ios_sharedlo/cxx/mlo_uno.h
@@ -23,6 +23,7 @@ extern "C" {
void mlo_get_selection(NSMutableString * mutableString);
void mlo_fetch_view_data(NSMutableString * mutableString);
void mlo_select_all(void);
+ void mlo_save(void);
#ifdef __cplusplus
}
diff --git a/ios/shared/ios_sharedlo/cxx/mlo_uno.mm b/ios/shared/ios_sharedlo/cxx/mlo_uno.mm
index ff92821f0fff..20c079bb8c83 100644
--- a/ios/shared/ios_sharedlo/cxx/mlo_uno.mm
+++ b/ios/shared/ios_sharedlo/cxx/mlo_uno.mm
@@ -26,6 +26,7 @@
#include "com/sun/star/frame/XDispatchHelper.hpp"
#include <com/sun/star/frame/DispatchHelper.hpp>
#include "com/sun/star/frame/XComponentLoader.hpp"
+#include "com/sun/star/frame/XStorable.hpp"
#include "com/sun/star/awt/XScrollBar.hpp"
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/frame/Desktop.hpp>
@@ -83,6 +84,7 @@ Reference<XSearchable> openedXSearchable;
Reference<XSelectionSupplier> openedXSelectionSupplier;
Reference<XFrame> openedXFrame;
Reference<XDispatchProvider> openedXDispatchProvider;
+Reference<XStorable> openedXStorable;
Reference<XIndexAccess> currentFindAll;
rtl::OUString lastSearch;
@@ -229,6 +231,15 @@ Reference<XDispatchHelper> getXDispatchHelper(){
return helper;
}
+Reference<XStorable> getXStorable(){
+ if(!openedXStorable.get()){
+ Reference<XStorable> stroable(getXModel(),UNO_QUERY);
+ openedXStorable.set(stroable);
+ LOG_EVAL(openedXStorable, @"XDispatchProvider");
+ }
+ return openedXStorable;
+}
+
NSString * createFileUri(NSString * file){
if(file==nil){
NSString * app_root_escaped = [[[NSBundle mainBundle] bundlePath] stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
@@ -477,4 +488,18 @@ mlo_select_all(void){
OUString("_self"),
0,
Sequence<PropertyValue >());
+}
+
+extern "C"
+void
+mlo_save(void){
+ if(mlo_is_document_open()){
+ Reference<XStorable> storable =getXStorable();
+ if(storable->isReadonly()){
+ NSLog(@"Cannot save changes. File is read only");
+ }else{
+ storable->store();
+ NSLog(@"saved changes");
+ }
+ }
} \ No newline at end of file
diff --git a/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.h b/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.h
index c30fda01b142..6649ce00045b 100644
--- a/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.h
+++ b/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.h
@@ -15,4 +15,6 @@
-(void)addToMainViewController;
-(void)show;
-(void)hide;
+-(void)showLibreOffice;
+-(void)hideLibreOffice;
@end
diff --git a/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.m b/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.m
index f7d483fe1b09..fde1d8263c37 100644
--- a/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.m
+++ b/ios/shared/ios_sharedlo/objective_c/gestures/MLOKeyboardManager.m