diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-30 18:54:36 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-30 18:54:36 -0600 |
commit | bab7eebba127d603a9f8011fed290627e2a64423 (patch) | |
tree | 78559d307f528c9cde8f5fe6adaf5c3f3314b77d /android | |
parent | 3d869cda8db03820dea8c4ba463eb155d05e933b (diff) |
moved impress remote clients to a separate repository
Change-Id: I654e3af31a6915f08ff808b351d304da773ad267
see: git://gerrit.libreoffice.org/impress_remote
Diffstat (limited to 'android')
191 files changed, 3 insertions, 9175 deletions
diff --git a/android/CustomTarget_lo4android.mk b/android/CustomTarget_lo4android.mk index 9b615ffa6459..f7c0f8627b69 100644 --- a/android/CustomTarget_lo4android.mk +++ b/android/CustomTarget_lo4android.mk @@ -13,14 +13,13 @@ lo4android_DIR := $(call gb_CustomTarget_get_workdir,android/experimental/LibreO $(call gb_CustomTarget_get_target,android/lo4android) : \ $(lo4android_DIR)/done -# We know that CustomTarget_sdremote.mk is included first, so -# sdremote_DIR is defined. We want that to be built completely first, +# We want that to be built completely first, # so that we can serialize Ant access to Bootstrap, which is used both -# by DocumentLoader and sdremote. We don't want one Ant to be cleaning +# by DocumentLoader. We don't want one Ant to be cleaning # out Bootstrap while another is building stuff that depends on it. # Yeah, this sucks -$(lo4android_DIR)/done : $(sdremote_DIR)/done $(call gb_Postprocess_get_target,AllModulesButInstsetNative) +$(lo4android_DIR)/done : $(call gb_Postprocess_get_target,AllModulesButInstsetNative) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,2) cd $(SRCDIR)/android/experimental/LibreOffice4Android && $(MAKE) all # Copy to $(BUILDDIR)/instsetoo_native as that is where the tinderbox build script diff --git a/android/CustomTarget_sdremote.mk b/android/CustomTarget_sdremote.mk deleted file mode 100644 index 0287eeb4b033..000000000000 --- a/android/CustomTarget_sdremote.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -$(eval $(call gb_CustomTarget_CustomTarget,android/sdremote)) - -sdremote_DIR := $(call gb_CustomTarget_get_workdir,android/sdremote) - -$(call gb_CustomTarget_get_target,android/sdremote) : $(sdremote_DIR)/done - -$(sdremote_DIR)/done: - $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MAK,2) - cd $(SRCDIR)/android/sdremote && $(MAKE) all - -$(call gb_CustomTarget_get_clean_target,android/sdremote) : - $(call gb_Output_announce,$(subst $(WORKDIR)/Clean/,,$@),$(false),MAK,2) - cd $(SRCDIR)/android/sdremote && $(MAKE) clean - -# vim: set noet sw=4 ts=4: diff --git a/android/Module_android.mk b/android/Module_android.mk index da984827160b..336f118a2c16 100644 --- a/android/Module_android.mk +++ b/android/Module_android.mk @@ -8,19 +8,11 @@ $(eval $(call gb_Module_Module,android)) -ifeq ($(ENABLE_SDREMOTE_ANDROID),TRUE) - -$(eval $(call gb_Module_add_targets,android,\ - CustomTarget_sdremote \ -)) - -endif ifeq ($(OS),ANDROID) $(eval $(call gb_Module_add_targets,android,\ CustomTarget_lo4android \ - CustomTarget_android_desktop \ )) endif diff --git a/android/sdremote/.gitignore b/android/sdremote/.gitignore deleted file mode 100644 index 211e4ffa9972..000000000000 --- a/android/sdremote/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/translations* -/ant.properties diff --git a/android/sdremote/.project b/android/sdremote/.project deleted file mode 100644 index 1a4d0d228fc4..000000000000 --- a/android/sdremote/.project +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>SDRemote</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>com.android.ide.eclipse.adt.ApkBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>com.android.ide.eclipse.adt.AndroidNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/android/sdremote/.settings/org.eclipse.jdt.core.prefs b/android/sdremote/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8000cd6ca614..000000000000 --- a/android/sdremote/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/android/sdremote/AndroidManifest.xml b/android/sdremote/AndroidManifest.xml deleted file mode 100644 index 91e12792be98..000000000000 --- a/android/sdremote/AndroidManifest.xml +++ /dev/null @@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="org.libreoffice.impressremote" - android:versionCode="9" - android:versionName="2.0.0" - android:installLocation="auto"> - - <uses-permission - android:name="android.permission.INTERNET"/> - <uses-permission - android:name="android.permission.BLUETOOTH"/> - <uses-permission - android:name="android.permission.BLUETOOTH_ADMIN"/> - - <uses-feature - android:name="android.hardware.bluetooth" - android:required="false"/> - - <uses-sdk - android:minSdkVersion="9" - android:targetSdkVersion="17"/> - - <application - android:allowBackup="true" - android:label="@string/application_name" - android:icon="@drawable/ic_launcher" - android:logo="@drawable/ic_logo" - android:theme="@style/Theme.ImpressRemote"> - - <activity - android:name=".activity.ComputersActivity" - android:theme="@style/Theme.ImpressRemote.Computers"> - - <intent-filter> - <action android:name="android.intent.action.MAIN"/> - <category android:name="android.intent.category.LAUNCHER"/> - </intent-filter> - - </activity> - - <activity - android:name=".activity.ComputerCreationActivity" - android:label="@string/title_creation" - android:theme="@style/Theme.ImpressRemote.ComputerCreation"> - </activity> - - <activity - android:name=".activity.ComputerConnectionActivity" - android:label="@string/title_connection"> - </activity> - - <activity - android:name=".activity.SlideShowActivity" - android:label="@string/title_slide_show"> - </activity> - - <activity - android:name=".activity.SettingsActivity" - android:label="@string/title_settings"> - </activity> - - <activity - android:name=".activity.RequirementsActivity" - android:label="@string/title_requirements"> - - <intent-filter> - <action android:name="android.intent.action.VIEW"/> - <data android:scheme="org.libreoffice.impressremote"/> - <category android:name="android.intent.category.DEFAULT"/> - </intent-filter> - - </activity> - - <activity - android:name=".activity.LicensesActivity" - android:label="@string/title_licenses"> - </activity> - - <service - android:name=".communication.CommunicationService"> - </service> - - </application> - -</manifest> diff --git a/android/sdremote/Makefile b/android/sdremote/Makefile deleted file mode 100644 index 84a7b80051e0..000000000000 --- a/android/sdremote/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -ifeq ($(WORKDIR),) -include ../../config_host.mk -endif - -all: ant.properties - $(ANT) debug - -clean: ant.properties - $(ANT) -quiet -keep-going clean - -# library references must be relative, let python do the magic. -ant.properties: $(WORKDIR)/appcompat/build.xml - python -c "import os.path; print 'android.library.reference.1='+ os.path.relpath('$(<D)', '$(CURDIR)')" > $@ || rm $@ - -# sdk-manager installs it without an build.xml, to not mess with files outside of the -# build-tree, copy to workdir -$(WORKDIR)/appcompat/build.xml: - -rm -r $(WORKDIR)/appcompat - cp -a $(ANDROID_SDK_HOME)/extras/android/support/v7/appcompat $(WORKDIR)/appcompat - $(ANDROID_SDK_HOME)/tools/android update project -p $(WORKDIR)/appcompat - -install: all - $(ANDROID_SDK_HOME)/platform-tools/adb install -r ./bin/ImpressRemote-debug.apk - -# vim: set noet sw=4 ts=4: diff --git a/android/sdremote/build.xml b/android/sdremote/build.xml deleted file mode 100644 index 30dd5bafd529..000000000000 --- a/android/sdremote/build.xml +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project name="ImpressRemote" default="help"> - - <!-- The local.properties file is created and updated by the 'android' tool. - It contains the path to the SDK. It should *NOT* be checked into - Version Control Systems. --> - <property file="local.properties" /> - - <!-- The ant.properties file can be created by you. It is only edited by the - 'android' tool to add properties to it. - This is the place to change some Ant specific build properties. - Here are some properties you may want to change/update: - - source.dir - The name of the source directory. Default is 'src'. - out.dir - The name of the output directory. Default is 'bin'. - - For other overridable properties, look at the beginning of the rules - files in the SDK, at tools/ant/build.xml - - Properties related to the SDK location or the project target should - be updated using the 'android' tool with the 'update' action. - - This file is an integral part of the build system for your - application and should be checked into Version Control Systems. - - --> - <property file="ant.properties" /> - - <!-- if sdk.dir was not set from one of the property file, then - get it from the ANDROID_SDK_HOME env var. - This must be done before we load project.properties since - the proguard config can use sdk.dir --> - <property environment="env" /> - <condition property="sdk.dir" value="${env.ANDROID_SDK_HOME}"> - <isset property="env.ANDROID_SDK_HOME" /> - </condition> - - <!-- The project.properties file is created and updated by the 'android' - tool, as well as ADT. - - This contains project specific properties such as project target, and library - dependencies. Lower level build properties are stored in ant.properties - (or in .classpath for Eclipse projects). - - This file is an integral part of the build system for your - application and should be checked into Version Control Systems. --> - <loadproperties srcFile="project.properties" /> - - <!-- quick check on sdk.dir --> - <fail - message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_SDK_HOME environment variable." - unless="sdk.dir" - /> - - <!-- - Import per project custom build rules if present at the root of the project. - This is the place to put custom intermediary targets such as: - -pre-build - -pre-compile - -post-compile (This is typically used for code obfuscation. - Compiled code location: ${out.classes.absolute.dir} - If this is not done in place, override ${out.dex.input.absolute.dir}) - -post-package - -post-build - -pre-clean - --> - <import file="custom_rules.xml" optional="true" /> - - <!-- Import the actual build file. - - To customize existing targets, there are two options: - - Customize only one target: - - copy/paste the target into this file, *before* the - <import> task. - - customize it to your needs. - - Customize the whole content of build.xml - - copy/paste the content of the rules files (minus the top node) - into this file, replacing the <import> task. - - customize to your needs. - - *********************** - ****** IMPORTANT ****** - *********************** - In all cases you must update the value of version-tag below to read 'custom' instead of an integer, - in order to avoid having your file be overridden by tools such as "android update project" - --> - <!-- version-tag: 1 --> - <import file="${sdk.dir}/tools/ant/build.xml" /> - -</project> diff --git a/android/sdremote/proguard-project.txt b/android/sdremote/proguard-project.txt deleted file mode 100644 index f2fe1559a217..000000000000 --- a/android/sdremote/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/android/sdremote/project.properties b/android/sdremote/project.properties deleted file mode 100644 index ba270dacf133..000000000000 --- a/android/sdremote/project.properties +++ /dev/null @@ -1,17 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-14 -# this will only work if you set sdk.dir to a relative path -# and when using ant, you also need to create build.xml -android.library.reference.1=${sdk.dir}/extras/android/support/v7/appcompat diff --git a/android/sdremote/res/drawable-hdpi/bg_action_bar.9.png b/android/sdremote/res/drawable-hdpi/bg_action_bar.9.png Binary files differdeleted file mode 100755 index 18d2ea9910e1..000000000000 --- a/android/sdremote/res/drawable-hdpi/bg_action_bar.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected.9.png b/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected.9.png Binary files differdeleted file mode 100755 index dff623860a4c..000000000000 --- a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected_focused.9.png b/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected_focused.9.png Binary files differdeleted file mode 100755 index 060205674383..000000000000 --- a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected_focused.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected_pressed.9.png b/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected_pressed.9.png Binary files differdeleted file mode 100755 index 933ff55f0e0d..000000000000 --- a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_selected_pressed.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected.9.png b/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected.9.png Binary files differdeleted file mode 100755 index 93dc5dc91275..000000000000 --- a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected_focused.9.png b/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected_focused.9.png Binary files differdeleted file mode 100755 index 57c5f1821143..000000000000 --- a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected_focused.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected_pressed.9.png b/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected_pressed.9.png Binary files differdeleted file mode 100755 index f44171cceea2..000000000000 --- a/android/sdremote/res/drawable-hdpi/bg_action_bar_tab_unselected_pressed.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_add_computer.png b/android/sdremote/res/drawable-hdpi/ic_action_add_computer.png Binary files differdeleted file mode 100755 index ad8ada6bdfa0..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_add_computer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_bluetooth_searching.png b/android/sdremote/res/drawable-hdpi/ic_action_bluetooth_searching.png Binary files differdeleted file mode 100644 index 0203ea4462c8..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_bluetooth_searching.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_cancel.png b/android/sdremote/res/drawable-hdpi/ic_action_cancel.png Binary files differdeleted file mode 100755 index 094eea589246..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_cancel.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_grid.png b/android/sdremote/res/drawable-hdpi/ic_action_grid.png Binary files differdeleted file mode 100755 index 6b58c2dab097..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_grid.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_pager.png b/android/sdremote/res/drawable-hdpi/ic_action_pager.png Binary files differdeleted file mode 100755 index 3f93d3327150..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_pager.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_reconnect.png b/android/sdremote/res/drawable-hdpi/ic_action_reconnect.png Binary files differdeleted file mode 100755 index bb9d855f7769..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_reconnect.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_resume.png b/android/sdremote/res/drawable-hdpi/ic_action_resume.png Binary files differdeleted file mode 100755 index df8a2ca28e1e..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_resume.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_save.png b/android/sdremote/res/drawable-hdpi/ic_action_save.png Binary files differdeleted file mode 100755 index 53cf6877eb72..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_save.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_action_timer.png b/android/sdremote/res/drawable-hdpi/ic_action_timer.png Binary files differdeleted file mode 100755 index 314ec9319a07..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_action_timer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_launcher.png b/android/sdremote/res/drawable-hdpi/ic_launcher.png Binary files differdeleted file mode 100644 index 9ebe31822c6c..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_launcher.png +++ /dev/null diff --git a/android/sdremote/res/drawable-hdpi/ic_logo.png b/android/sdremote/res/drawable-hdpi/ic_logo.png Binary files differdeleted file mode 100644 index 9bef30e87b34..000000000000 --- a/android/sdremote/res/drawable-hdpi/ic_logo.png +++ /dev/null diff --git a/android/sdremote/res/drawable-ldpi/ic_launcher.png b/android/sdremote/res/drawable-ldpi/ic_launcher.png Binary files differdeleted file mode 100644 index 9657a3ca6669..000000000000 --- a/android/sdremote/res/drawable-ldpi/ic_launcher.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/bg_action_bar.9.png b/android/sdremote/res/drawable-mdpi/bg_action_bar.9.png Binary files differdeleted file mode 100755 index 1a6576437d2e..000000000000 --- a/android/sdremote/res/drawable-mdpi/bg_action_bar.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected.9.png b/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected.9.png Binary files differdeleted file mode 100755 index c04af6c8d21c..000000000000 --- a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected_focused.9.png b/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected_focused.9.png Binary files differdeleted file mode 100755 index 60a3e8cc42b2..000000000000 --- a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected_focused.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected_pressed.9.png b/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected_pressed.9.png Binary files differdeleted file mode 100755 index 64dda62d5955..000000000000 --- a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_selected_pressed.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected.9.png b/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected.9.png Binary files differdeleted file mode 100755 index 1a998b047dc5..000000000000 --- a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected_focused.9.png b/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected_focused.9.png Binary files differdeleted file mode 100755 index 0fa12dbfe024..000000000000 --- a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected_focused.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected_pressed.9.png b/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected_pressed.9.png Binary files differdeleted file mode 100755 index 2c13a555047e..000000000000 --- a/android/sdremote/res/drawable-mdpi/bg_action_bar_tab_unselected_pressed.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_add_computer.png b/android/sdremote/res/drawable-mdpi/ic_action_add_computer.png Binary files differdeleted file mode 100755 index 4d5d484b3997..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_add_computer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_bluetooth_searching.png b/android/sdremote/res/drawable-mdpi/ic_action_bluetooth_searching.png Binary files differdeleted file mode 100644 index 22dccb1938b6..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_bluetooth_searching.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_cancel.png b/android/sdremote/res/drawable-mdpi/ic_action_cancel.png Binary files differdeleted file mode 100755 index 3336760d5f3e..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_cancel.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_grid.png b/android/sdremote/res/drawable-mdpi/ic_action_grid.png Binary files differdeleted file mode 100755 index 5b87a5fbf103..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_grid.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_pager.png b/android/sdremote/res/drawable-mdpi/ic_action_pager.png Binary files differdeleted file mode 100755 index 9b542d201f95..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_pager.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_reconnect.png b/android/sdremote/res/drawable-mdpi/ic_action_reconnect.png Binary files differdeleted file mode 100755 index bd611e8e24d2..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_reconnect.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_resume.png b/android/sdremote/res/drawable-mdpi/ic_action_resume.png Binary files differdeleted file mode 100755 index 6a40cd5f7bff..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_resume.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_save.png b/android/sdremote/res/drawable-mdpi/ic_action_save.png Binary files differdeleted file mode 100755 index 35cda8e11213..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_save.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_action_timer.png b/android/sdremote/res/drawable-mdpi/ic_action_timer.png Binary files differdeleted file mode 100755 index a09df2b99c58..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_action_timer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_launcher.png b/android/sdremote/res/drawable-mdpi/ic_launcher.png Binary files differdeleted file mode 100644 index 2620d77b6215..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_launcher.png +++ /dev/null diff --git a/android/sdremote/res/drawable-mdpi/ic_logo.png b/android/sdremote/res/drawable-mdpi/ic_logo.png Binary files differdeleted file mode 100644 index abf3401484f3..000000000000 --- a/android/sdremote/res/drawable-mdpi/ic_logo.png +++ /dev/null diff --git a/android/sdremote/res/drawable-nodpi/bg_slide_unknown.png b/android/sdremote/res/drawable-nodpi/bg_slide_unknown.png Binary files differdeleted file mode 100644 index 62d55e7dd5f1..000000000000 --- a/android/sdremote/res/drawable-nodpi/bg_slide_unknown.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/bg_action_bar.9.png b/android/sdremote/res/drawable-xhdpi/bg_action_bar.9.png Binary files differdeleted file mode 100755 index 9c08f1224081..000000000000 --- a/android/sdremote/res/drawable-xhdpi/bg_action_bar.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected.9.png b/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected.9.png Binary files differdeleted file mode 100755 index d2d06a40c940..000000000000 --- a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected_focused.9.png b/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected_focused.9.png Binary files differdeleted file mode 100755 index 286e9738d9cb..000000000000 --- a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected_focused.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected_pressed.9.png b/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected_pressed.9.png Binary files differdeleted file mode 100755 index c97c3011c735..000000000000 --- a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_selected_pressed.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected.9.png b/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected.9.png Binary files differdeleted file mode 100755 index 08e5ed1e35fd..000000000000 --- a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected_focused.9.png b/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected_focused.9.png Binary files differdeleted file mode 100755 index 3c87dd9c016e..000000000000 --- a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected_focused.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected_pressed.9.png b/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected_pressed.9.png Binary files differdeleted file mode 100755 index fd190dbe2117..000000000000 --- a/android/sdremote/res/drawable-xhdpi/bg_action_bar_tab_unselected_pressed.9.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_add_computer.png b/android/sdremote/res/drawable-xhdpi/ic_action_add_computer.png Binary files differdeleted file mode 100755 index 23b9a1c18577..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_add_computer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_bluetooth_searching.png b/android/sdremote/res/drawable-xhdpi/ic_action_bluetooth_searching.png Binary files differdeleted file mode 100644 index 97252d4e793d..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_bluetooth_searching.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_cancel.png b/android/sdremote/res/drawable-xhdpi/ic_action_cancel.png Binary files differdeleted file mode 100755 index f391760ef134..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_cancel.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_grid.png b/android/sdremote/res/drawable-xhdpi/ic_action_grid.png Binary files differdeleted file mode 100755 index 4b4355c4d788..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_grid.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_pager.png b/android/sdremote/res/drawable-xhdpi/ic_action_pager.png Binary files differdeleted file mode 100755 index 6d2bfb689430..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_pager.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_reconnect.png b/android/sdremote/res/drawable-xhdpi/ic_action_reconnect.png Binary files differdeleted file mode 100755 index a7fdc0dfcb1d..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_reconnect.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_resume.png b/android/sdremote/res/drawable-xhdpi/ic_action_resume.png Binary files differdeleted file mode 100755 index 51124993df10..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_resume.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_save.png b/android/sdremote/res/drawable-xhdpi/ic_action_save.png Binary files differdeleted file mode 100755 index b52dc37012a3..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_save.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_action_timer.png b/android/sdremote/res/drawable-xhdpi/ic_action_timer.png Binary files differdeleted file mode 100755 index c8771db97158..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_action_timer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_launcher.png b/android/sdremote/res/drawable-xhdpi/ic_launcher.png Binary files differdeleted file mode 100644 index 3109fa07f711..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_launcher.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xhdpi/ic_logo.png b/android/sdremote/res/drawable-xhdpi/ic_logo.png Binary files differdeleted file mode 100644 index cc1f02f41432..000000000000 --- a/android/sdremote/res/drawable-xhdpi/ic_logo.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_add_computer.png b/android/sdremote/res/drawable-xxhdpi/ic_action_add_computer.png Binary files differdeleted file mode 100644 index c42c2bfb58ae..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_add_computer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_bluetooth_searching.png b/android/sdremote/res/drawable-xxhdpi/ic_action_bluetooth_searching.png Binary files differdeleted file mode 100644 index 8e827e96b715..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_bluetooth_searching.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_cancel.png b/android/sdremote/res/drawable-xxhdpi/ic_action_cancel.png Binary files differdeleted file mode 100644 index 5dc214356fa9..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_cancel.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_grid.png b/android/sdremote/res/drawable-xxhdpi/ic_action_grid.png Binary files differdeleted file mode 100644 index bba7a0aecaee..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_grid.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_pager.png b/android/sdremote/res/drawable-xxhdpi/ic_action_pager.png Binary files differdeleted file mode 100644 index 810e37791022..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_pager.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_reconnect.png b/android/sdremote/res/drawable-xxhdpi/ic_action_reconnect.png Binary files differdeleted file mode 100644 index f5ed228f5589..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_reconnect.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_resume.png b/android/sdremote/res/drawable-xxhdpi/ic_action_resume.png Binary files differdeleted file mode 100644 index 7f7ca2e02845..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_resume.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_save.png b/android/sdremote/res/drawable-xxhdpi/ic_action_save.png Binary files differdeleted file mode 100644 index 68c41deccb55..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_save.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_action_timer.png b/android/sdremote/res/drawable-xxhdpi/ic_action_timer.png Binary files differdeleted file mode 100644 index a06752cd5c5f..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_action_timer.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_launcher.png b/android/sdremote/res/drawable-xxhdpi/ic_launcher.png Binary files differdeleted file mode 100644 index 5e05e324cdba..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_launcher.png +++ /dev/null diff --git a/android/sdremote/res/drawable-xxhdpi/ic_logo.png b/android/sdremote/res/drawable-xxhdpi/ic_logo.png Binary files differdeleted file mode 100644 index fd225ff8b16b..000000000000 --- a/android/sdremote/res/drawable-xxhdpi/ic_logo.png +++ /dev/null diff --git a/android/sdremote/res/drawable/bg_action_bar_tab.xml b/android/sdremote/res/drawable/bg_action_bar_tab.xml deleted file mode 100644 index 2b497583e9f8..000000000000 --- a/android/sdremote/res/drawable/bg_action_bar_tab.xml +++ /dev/null @@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<selector xmlns:android="http://schemas.android.com/apk/res/android"> - - <!-- Non focused states --> - - <item - android:state_focused="false" - android:state_selected="false" - android:state_pressed="false" - android:drawable="@android:color/transparent"/> - - <item - android:state_focused="false" - android:state_selected="true" - android:state_pressed="false" - android:drawable="@drawable/bg_action_bar_tab_selected"/> - - <!-- Focused states --> - - <item - android:state_focused="true" - android:state_selected="false" - android:state_pressed="false" - android:drawable="@drawable/bg_action_bar_tab_unselected_focused"/> - - <item - android:state_focused="true" - android:state_selected="true" - android:state_pressed="false" - android:drawable="@drawable/bg_action_bar_tab_selected_focused"/> - - <!-- Pressed --> - - <!-- Non focused states --> - <item - android:state_focused="false" - android:state_selected="false" - android:state_pressed="true" - android:drawable="@drawable/bg_action_bar_tab_unselected_pressed"/> - - <item - android:state_focused="false" - android:state_selected="true" - android:state_pressed="true" - android:drawable="@drawable/bg_action_bar_tab_selected_pressed"/> - - <!-- Focused states --> - - <item - android:state_focused="true" - android:state_selected="false" - android:state_pressed="true" - android:drawable="@drawable/bg_action_bar_tab_unselected_pressed"/> - - <item - android:state_focused="true" - android:state_selected="true" - android:state_pressed="true" - android:drawable="@drawable/bg_action_bar_tab_selected_pressed"/> - -</selector>
\ No newline at end of file diff --git a/android/sdremote/res/drawable/bg_grid_slide.xml b/android/sdremote/res/drawable/bg_grid_slide.xml deleted file mode 100644 index b18ce9749e98..000000000000 --- a/android/sdremote/res/drawable/bg_grid_slide.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<shape xmlns:android="http://schemas.android.com/apk/res/android"> - - <solid - android:color="@android:color/transparent" /> - - <stroke - android:width="1dp" - android:color="@color/stroke_grid_slide"/> - - <padding - android:left="1dp" - android:top="1dp" - android:right="1dp" - android:bottom="1dp"/> - -</shape>
\ No newline at end of file diff --git a/android/sdremote/res/drawable/libreoffice_logo.png b/android/sdremote/res/drawable/libreoffice_logo.png Binary files differdeleted file mode 100644 index 7ad11473e0b8..000000000000 --- a/android/sdremote/res/drawable/libreoffice_logo.png +++ /dev/null diff --git a/android/sdremote/res/drawable/underline_header.xml b/android/sdremote/res/drawable/underline_header.xml deleted file mode 100644 index e19bc2223fa4..000000000000 --- a/android/sdremote/res/drawable/underline_header.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<shape xmlns:android="http://schemas.android.com/apk/res/android" - android:shape="rectangle"> - - <size - android:width="100000dp" - android:height="1dp"/> - - <solid - android:color="@color/background_header"/> - -</shape>
\ No newline at end of file diff --git a/android/sdremote/res/layout-land/fragment_empty_slide.xml b/android/sdremote/res/layout-land/fragment_empty_slide.xml deleted file mode 100644 index 1f491525960a..000000000000 --- a/android/sdremote/res/layout-land/fragment_empty_slide.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<ImageView xmlns:android="http://schemas.android.com/apk/res/android" - android:src="@color/background_slide_empty" - android:contentDescription="@string/description_empty_slide" - android:layout_gravity="center" - android:padding="@dimen/padding_empty_slide_layout" - android:layout_width="match_parent" - android:layout_height="match_parent"/>
\ No newline at end of file diff --git a/android/sdremote/res/layout-land/fragment_slides_pager.xml b/android/sdremote/res/layout-land/fragment_slides_pager.xml deleted file mode 100644 index e3e3c9bc9351..000000000000 --- a/android/sdremote/res/layout-land/fragment_slides_pager.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" - android:gravity="center" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <android.support.v4.view.ViewPager - android:id="@+id/pager_slides" - android:layout_weight="2" - android:padding="@dimen/padding_slide" - android:layout_width="0dp" - android:layout_height="match_parent"/> - - <LinearLayout - android:id="@+id/layout_notes" - android:orientation="vertical" - android:paddingRight="@dimen/padding_slide_notes" - android:layout_weight="1" - android:layout_width="0dp" - android:layout_height="match_parent"> - - <TextView - style="@style/SectionHeader" - android:text="@string/header_notes" - android:paddingTop="@dimen/padding_header" - android:textSize="@dimen/text_size_notes"/> - - <ScrollView - android:id="@+id/scroll_notes" - android:paddingTop="@dimen/padding_slide_notes" - android:paddingLeft="@dimen/padding_slide_notes" - android:layout_width="wrap_content" - android:layout_height="wrap_content"> - - <TextSwitcher - android:id="@+id/text_switcher_notes" - android:inAnimation="@android:anim/fade_in" - android:outAnimation="@android:anim/fade_out" - android:measureAllChildren="false" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="@dimen/text_size_notes"/> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="@dimen/text_size_notes"/> - - </TextSwitcher> - - </ScrollView> - - </LinearLayout> - -</LinearLayout> diff --git a/android/sdremote/res/layout-v11/action_bar_computer_creation.xml b/android/sdremote/res/layout-v11/action_bar_computer_creation.xml deleted file mode 100644 index 90b73fae1036..000000000000 --- a/android/sdremote/res/layout-v11/action_bar_computer_creation.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" - android:divider="?android:attr/dividerVertical" - android:showDividers="middle" - android:dividerPadding="@dimen/padding_horizontal_action_bar_divider" - android:baselineAligned="false" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <FrameLayout - android:id="@+id/button_cancel" - style="?android:actionButtonStyle" - android:layout_weight="1" - android:layout_width="0dp" - android:layout_height="match_parent"> - - <TextView - style="?android:actionBarTabTextStyle" - android:text="@string/button_cancel" - android:drawableLeft="@drawable/ic_action_cancel" - android:drawablePadding="@dimen/padding_action_bar_button_drawable" - android:paddingRight="@dimen/padding_horizontal_action_bar_button" - android:gravity="center_vertical" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - </FrameLayout> - - <FrameLayout - android:id="@+id/button_save" - style="?android:actionButtonStyle" - android:layout_weight="1" - android:layout_width="0dp" - android:layout_height="match_parent"> - - <TextView - style="?android:actionBarTabTextStyle" - android:text="@string/button_save" - android:drawableLeft="@drawable/ic_action_save" - android:drawablePadding="@dimen/padding_action_bar_button_drawable" - android:paddingRight="@dimen/padding_horizontal_action_bar_button" - android:gravity="center_vertical" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - </FrameLayout> - -</LinearLayout>
\ No newline at end of file diff --git a/android/sdremote/res/layout-xlarge-land/fragment_slides_pager.xml b/android/sdremote/res/layout-xlarge-land/fragment_slides_pager.xml deleted file mode 100644 index ffd97c4232ae..000000000000 --- a/android/sdremote/res/layout-xlarge-land/fragment_slides_pager.xml +++ /dev/null @@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center" - android:orientation="horizontal" > - - <android.support.v4.view.ViewPager - android:id="@+id/pager_slides" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="1" /> - - <LinearLayout - android:id="@+id/layout_notes" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="1" - android:orientation="vertical" - android:paddingLeft="@dimen/padding_slides_pager" - android:paddingRight="@dimen/padding_slides_pager" > - - <TextView - style="@style/SectionHeader" - android:paddingTop="@dimen/padding_header" - android:text="@string/header_notes" - android:textSize="@dimen/text_size_notes"/> - - <ScrollView - android:id="@+id/scroll_notes" - android:layout_width="wrap_content" - android:layout_height="wrap_content" > - - <TextSwitcher - android:id="@+id/text_switcher_notes" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:inAnimation="@android:anim/fade_in" - android:measureAllChildren="false" - android:outAnimation="@android:anim/fade_out" - android:paddingLeft="@dimen/padding_slide_notes" - android:paddingRight="@dimen/padding_slide_notes" - android:paddingTop="@dimen/padding_slide_notes" > - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="@dimen/text_size_notes"/> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="@dimen/text_size_notes"/> - </TextSwitcher> - </ScrollView> - </LinearLayout> - -</LinearLayout>
\ No newline at end of file diff --git a/android/sdremote/res/layout/action_bar_computer_creation.xml b/android/sdremote/res/layout/action_bar_computer_creation.xml deleted file mode 100644 index a88089c12f08..000000000000 --- a/android/sdremote/res/layout/action_bar_computer_creation.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <FrameLayout - android:id="@+id/button_cancel" - style="@style/Widget.AppCompat.ActionButton" - android:layout_weight="1" - android:layout_width="0dp" - android:layout_height="match_parent"> - - <TextView - style="@style/Widget.AppCompat.ActionBar.TabText" - android:text="@string/button_cancel" - android:drawableLeft="@drawable/ic_action_cancel" - android:drawablePadding="@dimen/padding_action_bar_button_drawable" - android:paddingRight="@dimen/padding_horizontal_action_bar_button" - android:gravity="center_vertical" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - </FrameLayout> - - <View - android:layout_width="@dimen/width_action_bar_divider" - android:layout_height="match_parent" - android:layout_marginTop="@dimen/margin_vertical_action_bar_divider" - android:layout_marginBottom="@dimen/margin_vertical_action_bar_divider" - android:background="@color/background_action_bar_divider"/> - - <FrameLayout - android:id="@+id/button_save" - style="@style/Widget.AppCompat.ActionButton" - android:layout_weight="1" - android:layout_width="0dp" - android:layout_height="match_parent"> - - <TextView - style="@style/Widget.AppCompat.ActionBar.TabText" - android:text="@string/button_save" - android:drawableLeft="@drawable/ic_action_save" - android:drawablePadding="@dimen/padding_action_bar_button_drawable" - android:paddingRight="@dimen/padding_horizontal_action_bar_button" - android:gravity="center_vertical" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - </FrameLayout> - -</LinearLayout>
\ No newline at end of file diff --git a/android/sdremote/res/layout/activity_computer_creation.xml b/android/sdremote/res/layout/activity_computer_creation.xml deleted file mode 100644 index 28ce196b7227..000000000000 --- a/android/sdremote/res/layout/activity_computer_creation.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <LinearLayout - android:orientation="vertical" - android:padding="@dimen/padding_creation_layout" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <EditText - android:id="@+id/edit_ip_address" - android:singleLine="true" - android:inputType="phone" - android:hint="@string/hint_ip_address" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> - - <EditText - android:id="@+id/edit_name" - android:singleLine="true" - android:inputType="text|textCapSentences" - android:hint="@string/hint_name" - android:paddingTop="@dimen/padding_vertical_edit" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> - - </LinearLayout> - -</ScrollView>
\ No newline at end of file diff --git a/android/sdremote/res/layout/activity_computers.xml b/android/sdremote/res/layout/activity_computers.xml deleted file mode 100644 index 134520899095..000000000000 --- a/android/sdremote/res/layout/activity_computers.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<android.support.v4.view.ViewPager - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/pager_computers" - android:layout_width="match_parent" - android:layout_height="match_parent"/>
\ No newline at end of file diff --git a/android/sdremote/res/layout/activity_licenses.xml b/android/sdremote/res/layout/activity_licenses.xml deleted file mode 100644 index a69118b49b73..000000000000 --- a/android/sdremote/res/layout/activity_licenses.xml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/layout_license" - android:layout_width="match_parent" - android:layout_height="fill_parent" - android:layout_marginTop="0dp" - android:gravity="center_horizontal|top" - android:orientation="vertical" > - - <ImageView - android:id="@+id/imageView1" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:adjustViewBounds="true" - android:maxWidth="350dp" - android:padding="16dp" - android:src="@drawable/libreoffice_logo" /> - - <TextView - android:id="@+id/textView1" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/application_name" - android:textAppearance="@style/SectionHeader" - android:textSize="22sp" /> - - <TextView - android:id="@+id/version" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:padding="8dp" - android:text="Version: %s (Build ID: %s)" /> - - <TextView - android:id="@+id/copyright" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_horizontal" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:text="Copyright © 2012-2014 LibreOffice contributors\nThis App is provided under the\nMozilla Public License, v. 2.0" /> - -</LinearLayout>
\ No newline at end of file diff --git a/android/sdremote/res/layout/activity_requirements.xml b/android/sdremote/res/layout/activity_requirements.xml deleted file mode 100644 index 2cf839d130cf..000000000000 --- a/android/sdremote/res/layout/activity_requirements.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <LinearLayout - android:orientation="vertical" - android:padding="@dimen/padding_help" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - style="@style/SectionHeader" - android:text="@string/title_generic"/> - - <TextView - style="@style/SectionItem" - android:text="@string/requirements_libreoffice_version"/> - - <TextView - style="@style/SectionItem" - android:text="@string/requirements_libreoffice_general_enabled"/> - - <TextView - style="@style/SectionHeader" - android:text="@string/title_wifi"/> - - <TextView - style="@style/SectionItem" - android:text="@string/requirements_network_connection"/> - - <TextView - style="@style/SectionItem" - android:text="@string/requirements_libreoffice_experimental_enabled"/> - - <TextView - style="@style/SectionItem" - android:text="@string/requirements_network_ports"/> - - <TextView - style="@style/SectionHeader" - android:text="@string/title_bluetooth"/> - - <TextView - style="@style/SectionItem" - android:text="@string/requirements_bluetooth_connection"/> - - </LinearLayout> - -</ScrollView>
\ No newline at end of file diff --git a/android/sdremote/res/layout/fragment_computer_connection.xml b/android/sdremote/res/layout/fragment_computer_connection.xml deleted file mode 100644 index 0953e448635e..000000000000 --- a/android/sdremote/res/layout/fragment_computer_connection.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<ViewAnimator xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/view_animator" - android:inAnimation="@android:anim/fade_in" - android:outAnimation="@android:anim/fade_out" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <ProgressBar - android:id="@+id/progress_bar" - style="?android:progressBarStyle" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - <LinearLayout - android:id="@+id/layout_pin_validation" - android:orientation="vertical" - android:paddingLeft="@dimen/padding_horizontal_connection_layout" - android:paddingRight="@dimen/padding_horizontal_connection_layout" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="wrap_content"> - - <TextView - android:text="@string/message_impress_pin_validation" - android:gravity="center_horizontal" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - - <TextView - android:id="@+id/text_pin" - android:textSize="@dimen/text_size_pin" - android:gravity="center_horizontal" - android:paddingTop="@dimen/padding_vertical_pin" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - - </LinearLayout> - - <LinearLayout - android:id="@+id/layout_error_message" - android:orientation="vertical" - android:paddingLeft="@dimen/padding_horizontal_connection_layout" - android:paddingRight="@dimen/padding_horizontal_connection_layout" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="wrap_content"> - - <TextView - android:id="@+id/text_error_title" - android:text="@string/message_connection_failed_title" - android:textStyle="bold" - android:textSize="@dimen/text_size_error_title" - android:gravity="center_horizontal" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - - <TextView - android:id="@+id/text_primary_error_message" - android:text="@string/message_impress_remote_enabling" - android:gravity="center_horizontal" - android:paddingTop="@dimen/padding_vertical_error_message" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - - <TextView - android:id="@+id/text_secondary_error_message" - android:gravity="center_horizontal" - android:paddingTop="@dimen/padding_vertical_error_message" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - - </LinearLayout> - -</ViewAnimator>
\ No newline at end of file diff --git a/android/sdremote/res/layout/fragment_computers_list.xml b/android/sdremote/res/layout/fragment_computers_list.xml deleted file mode 100644 index edc781978dfc..000000000000 --- a/android/sdremote/res/layout/fragment_computers_list.xml +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<ViewAnimator xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/view_animator" - android:inAnimation="@android:anim/fade_in" - android:outAnimation="@android:anim/fade_out" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <LinearLayout - android:animateLayoutChanges="true" - android:id="@+id/layout_progress" - android:orientation="vertical" - android:gravity="center" - android:paddingLeft="@dimen/padding_horizontal_progress_layout" - android:paddingRight="@dimen/padding_horizontal_progress_layout" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <ProgressBar - android:id="@+id/progress_bar" - style="?android:progressBarStyle" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - <TextView - android:id="@+id/text_progress_message" - android:text="@string/message_search_wifi" - android:gravity="center_horizontal" - android:visibility="invisible" - android:paddingTop="@dimen/padding_vertical_progress_message" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> - - <TextView - android:id="@+id/text_learn_more" - android:text="@string/message_learn_more" - android:layout_gravity="center_horizontal" - android:visibility="invisible" - android:paddingTop="@dimen/padding_vertical_learn_more" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - </LinearLayout> - - <ListView - android:id="@android:id/list" - android:scrollbarStyle="outsideOverlay" - android:paddingLeft="@dimen/padding_horizontal_list" - android:paddingRight="@dimen/padding_horizontal_list" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - -</ViewAnimator> diff --git a/android/sdremote/res/layout/fragment_empty_slide.xml b/android/sdremote/res/layout/fragment_empty_slide.xml deleted file mode 100644 index 6ec99bcc4ab3..000000000000 --- a/android/sdremote/res/layout/fragment_empty_slide.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" - android:gravity="center" - android:padding="@dimen/padding_empty_slide_layout" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <ImageView - android:src="@color/background_slide_empty" - android:contentDescription="@string/description_empty_slide" - android:layout_weight="4" - android:layout_width="match_parent" - android:layout_height="0dp"/> - - - <View - android:layout_weight="3" - android:layout_width="match_parent" - android:layout_height="0dp"/> - -</LinearLayout> - diff --git a/android/sdremote/res/layout/fragment_slides_grid.xml b/android/sdremote/res/layout/fragment_slides_grid.xml deleted file mode 100644 index 6077577ae949..000000000000 --- a/android/sdremote/res/layout/fragment_slides_grid.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<GridView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/grid_slides" - android:columnWidth="@dimen/width_slides_grid_column" - android:horizontalSpacing="@dimen/spacing_slides_grid" - android:verticalSpacing="@dimen/spacing_slides_grid" - android:numColumns="auto_fit" - android:stretchMode="columnWidth" - android:scrollbarStyle="outsideOverlay" - android:gravity="center" - android:padding="@dimen/padding_slides_grid" - android:clipToPadding="false" - android:layout_width="match_parent" - android:layout_height="match_parent"/>
\ No newline at end of file diff --git a/android/sdremote/res/layout/fragment_slides_pager.xml b/android/sdremote/res/layout/fragment_slides_pager.xml deleted file mode 100644 index 8ecb8c98abb6..000000000000 --- a/android/sdremote/res/layout/fragment_slides_pager.xml +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" - android:gravity="center" - android:paddingTop="@dimen/padding_slides_pager" - android:paddingBottom="@dimen/padding_slides_pager" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <android.support.v4.view.ViewPager - android:id="@+id/pager_slides" - android:layout_weight="4" - android:layout_width="match_parent" - android:layout_height="0dp"/> - - <LinearLayout - android:id="@+id/layout_notes" - android:orientation="vertical" - android:paddingLeft="@dimen/padding_slides_pager" - android:paddingRight="@dimen/padding_slides_pager" - android:layout_weight="3" - android:layout_width="match_parent" - android:layout_height="0dp"> - - <TextView - style="@style/SectionHeader" - android:text="@string/header_notes" - android:paddingTop="@dimen/padding_header" - android:textSize="@dimen/text_size_notes"/> - - <ScrollView - android:id="@+id/scroll_notes" - android:layout_width="wrap_content" - android:layout_height="wrap_content"> - - <TextSwitcher - android:id="@+id/text_switcher_notes" - android:inAnimation="@android:anim/fade_in" - android:outAnimation="@android:anim/fade_out" - android:measureAllChildren="false" - android:paddingTop="@dimen/padding_slide_notes" - android:paddingLeft="@dimen/padding_slide_notes" - android:paddingRight="@dimen/padding_slide_notes" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="@dimen/text_size_notes"/> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="@dimen/text_size_notes"/> - - </TextSwitcher> - - </ScrollView> - - </LinearLayout> - -</LinearLayout> diff --git a/android/sdremote/res/layout/list_item.xml b/android/sdremote/res/layout/list_item.xml deleted file mode 100644 index 496bc5036880..000000000000 --- a/android/sdremote/res/layout/list_item.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:singleLine="true" - android:textSize="@dimen/text_size_list_item" - android:gravity="center_vertical" - android:padding="@dimen/padding_horizontal_list_item" - android:layout_width="fill_parent" - android:layout_height="?android:attr/listPreferredItemHeight" />
\ No newline at end of file diff --git a/android/sdremote/res/layout/progress.xml b/android/sdremote/res/layout/progress.xml deleted file mode 100644 index f768ec4bc623..000000000000 --- a/android/sdremote/res/layout/progress.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<ProgressBar xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" > -</ProgressBar> diff --git a/android/sdremote/res/layout/view_grid_slide.xml b/android/sdremote/res/layout/view_grid_slide.xml deleted file mode 100644 index bab316c39b76..000000000000 --- a/android/sdremote/res/layout/view_grid_slide.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:padding="@dimen/padding_slide" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <ImageView - android:id="@+id/image_slide_preview" - android:adjustViewBounds="true" - android:background="@drawable/bg_grid_slide" - android:contentDescription="@string/description_grid_slide" - android:layout_alignParentTop="true" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - - <TextView - android:id="@+id/text_slide_index" - android:background="@color/background_slide_index" - android:textColor="@android:color/white" - android:singleLine="true" - android:layout_alignParentBottom="true" - android:layout_width="wrap_content" - android:minEms="2" - android:gravity="center_horizontal" - android:layout_height="wrap_content"/> - -</RelativeLayout>
\ No newline at end of file diff --git a/android/sdremote/res/layout/view_pager_slide.xml b/android/sdremote/res/layout/view_pager_slide.xml deleted file mode 100644 index 0992381b072d..000000000000 --- a/android/sdremote/res/layout/view_pager_slide.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<ImageView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/image_slide_preview" - android:scaleType="fitCenter" - android:contentDescription="@string/description_pager_slide" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/>
\ No newline at end of file diff --git a/android/sdremote/res/menu/menu_action_bar_computer_connection.xml b/android/sdremote/res/menu/menu_action_bar_computer_connection.xml deleted file mode 100644 index 3eb36f5d704b..000000000000 --- a/android/sdremote/res/menu/menu_action_bar_computer_connection.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<menu xmlns:compat="http://schemas.android.com/apk/res-auto" - xmlns:android="http://schemas.android.com/apk/res/android"> - - <item - android:id="@+id/menu_reconnect" - android:title="@string/menu_reconnect" - android:icon="@drawable/ic_action_reconnect" - compat:showAsAction="always"/> - -</menu>
\ No newline at end of file diff --git a/android/sdremote/res/menu/menu_action_bar_computers.xml b/android/sdremote/res/menu/menu_action_bar_computers.xml deleted file mode 100644 index 27ddf8ae1a69..000000000000 --- a/android/sdremote/res/menu/menu_action_bar_computers.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<menu xmlns:compat="http://schemas.android.com/apk/res-auto" - xmlns:android="http://schemas.android.com/apk/res/android"> - - <item - android:id="@+id/menu_add_computer" - android:title="@string/menu_add_computer" - android:icon="@drawable/ic_action_add_computer" - compat:showAsAction="always"/> - <item - android:id="@+id/menu_start_discovery" - android:title="@string/menu_start_discovery" - android:icon="@drawable/ic_action_bluetooth_searching" - compat:showAsAction="always"/> - - <item - android:id="@+id/menu_settings" - android:title="@string/menu_settings" - compat:showAsAction="never"/> - - <item - android:id="@+id/menu_requirements" - android:title="@string/menu_requirements" - compat:showAsAction="never"/> - - <item - android:id="@+id/menu_licenses" - android:title="@string/menu_licenses" - compat:showAsAction="never"/> - -</menu>
\ No newline at end of file diff --git a/android/sdremote/res/menu/menu_action_bar_slide_show.xml b/android/sdremote/res/menu/menu_action_bar_slide_show.xml deleted file mode 100644 index 5a049fad0e2b..000000000000 --- a/android/sdremote/res/menu/menu_action_bar_slide_show.xml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<menu xmlns:compat="http://schemas.android.com/apk/res-auto" - xmlns:android="http://schemas.android.com/apk/res/android"> - - <item - android:id="@+id/menu_slides_pager" - android:title="@string/menu_slides_pager" - android:icon="@drawable/ic_action_pager" - compat:showAsAction="always"/> - - <item - android:id="@+id/menu_slides_grid" - android:title="@string/menu_slides_grid" - android:icon="@drawable/ic_action_grid" - compat:showAsAction="always"/> - - <item - android:id="@+id/menu_timer" - android:title="@string/menu_timer" - android:icon="@drawable/ic_action_timer" - compat:showAsAction="ifRoom"/> - - <item - android:id="@+id/menu_resume_slide_show" - android:title="@string/menu_resume_slide_show" - android:icon="@drawable/ic_action_resume" - compat:showAsAction="always"/> - - <item - android:id="@+id/menu_pause_slide_show" - android:title="@string/menu_pause_slide_show" - compat:showAsAction="never"/> - - <item - android:id="@+id/menu_stop_slide_show" - android:title="@string/menu_stop_slide_show" - compat:showAsAction="never"/> - -</menu>
\ No newline at end of file diff --git a/android/sdremote/res/menu/menu_context_computers.xml b/android/sdremote/res/menu/menu_context_computers.xml deleted file mode 100644 index 71135676f5e0..000000000000 --- a/android/sdremote/res/menu/menu_context_computers.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<menu xmlns:android="http://schemas.android.com/apk/res/android"> - - <item - android:id="@+id/menu_remove_computer" - android:title="@string/menu_remove_computer"/> - -</menu>
\ No newline at end of file diff --git a/android/sdremote/res/values-ar/strings.xml b/android/sdremote/res/values-ar/strings.xml deleted file mode 100644 index 7428ef27a82d..000000000000 --- a/android/sdremote/res/values-ar/strings.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">إمبريس عن بُعد</string> - <string name="title_computers">الحواسيب</string> - <string name="title_settings">إعدادات</string> - <string name="title_requirements">المتطلبات</string> - <string name="title_connection">الاتصال</string> - <string name="title_timer">المؤقت</string> - <string name="menu_settings">إعدادات</string> - <string name="menu_requirements">المتطلبات</string> - <string name="menu_reconnect">أعد الاتصال</string> - <string name="menu_add_computer">أضف حاسوب</string> - <string name="menu_remove_computer">أزل</string> - <string name="menu_timer">المؤقت</string> - <string name="menu_stop_slide_show">أوقف عرض الشرائح</string> - <string name="menu_pause_slide_show">ألبث عرض الشرائح</string> - <string name="menu_resume_slide_show">استكمل عرض الشرائح</string> - <string name="button_cancel">ألغِ</string> - <string name="button_save">احفظ</string> - <string name="button_start">ابدأ</string> - <string name="button_remove">أزل</string> - <string name="message_impress_pin_validation">اذهب إلى \"عرض الشرائح ← إمبريس عن بُعد\" في ليبر أوفيس إمبريس وأدخِل الشِفرة.</string> - <string name="message_connection_failed_title">فشل الاتصال</string> - <string name="message_impress_remote_enabling">تأكد أن التحكّم عن بعد بإمبريس يعمل. اذهب إلى أدوات ← خيارات ← LibreOffice إمبريس ← عام\" في ليبر أوفيس إمبريس.</string> - <string name="message_impress_wifi_enabling">عليك تمكين ميزة المزايا التجريبية في \"أدوات ← خيارات ← LibreOffice ← متقدّم\" أيضًا.</string> - <string name="message_ip_address_validation">اطبع عنوان IP صالح.</string> - <string name="message_time_is_up">حان الوقت!</string> - <string name="message_search_wifi">تأكد أن ليبر أوفيس يعمل على حاسوب بنفس الشبكة اللاسلكية.</string> - <string name="message_search_bluetooth">تأكد أن ليبر أوفيس يعمل على حاسوب البلووتوث ممكّن فيه.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">تعلّم أكثر</a> - </string> - <string name="message_paused">أُلبث</string> - <string name="message_notes_empty">لا شيء هنا.</string> - <string name="hint_ip_address">عنوان IP</string> - <string name="hint_name">الاسم (اختياري)</string> - <string name="header_notes">الملاحظات</string> - <string name="mask_slide_show_progress">الشريحة %1$d من %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="zero">لا دقائق متبقية</item> - <item quantity="one">تبقّت دقيقة واحدة</item> - <item quantity="two">تبقّت دقيقتان</item> - <item quantity="few">تبقّت %d دقائق</item> - <item quantity="many">تبقّت %d دقيقة</item> - <item quantity="other">تبقّت %d دقيقة</item> - </plurals> - <string name="description_pager_slide">معاينة الشريحة</string> - <string name="description_grid_slide">معاينة الشريحة</string> - <string name="description_empty_slide">شريحة فارغة</string> - <string name="preferences_volume_keys_actions_title">إجراءات مفاتيح الصوت</string> - <string name="preferences_volume_keys_actions_summary">بدّل الشرائح وفعّل الحركات باستخدام مفاتيح الصوت</string> - <string name="preferences_keep_screen_on_title">أبقِ الشاشة تعمل</string> - <string name="preferences_keep_screen_on_summary">امنع الهاتف من النوم أثناء التقديم</string> - <string name="preferences_quiet_mode_title">الوضع الهادئ</string> - <string name="preferences_quiet_mode_summary">اضبط على وضع الاهتزاز أثناء التقديم</string> - <string name="requirements_libreoffice_version">ليبر أوفيس 4.0.3 أو أكثر يعمل على حاسوبك.</string> - <string name="requirements_libreoffice_general_enabled">إمبريس عن بُعد ممكّن في \"أدوات ← خيارات ← LibreOffice إمبريس ← عام\" في ليبر أوفيس إمبريس.</string> - <string name="requirements_libreoffice_experimental_enabled">المزايا التجريبية ممكّنة في \"أدوات ← خيارات ← LibreOffice ← متقدّم\" في ليبر أوفيس إمبريس.</string> - <string name="requirements_network_connection">جهاز أندرويد والحاسوب متّصلان بنفس الشبكة.</string> - <string name="requirements_network_ports">إن كان لديك جدار ناري، تأكد أن المنفذين 1598 و 1599 مفتوحين.</string> - <string name="requirements_bluetooth_connection">حاسوب وبلووتوث ممكّن عليه.</string> -</resources> diff --git a/android/sdremote/res/values-bg/strings.xml b/android/sdremote/res/values-bg/strings.xml deleted file mode 100644 index bdef24ad0ed8..000000000000 --- a/android/sdremote/res/values-bg/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Remote</string> - <string name="title_computers">Компютри</string> - <string name="title_generic">Общи</string> - <string name="title_licenses">Свободни лицензи</string> - <string name="title_settings">Настройки</string> - <string name="title_requirements">Изисквания</string> - <string name="title_connection">Връзка</string> - <string name="title_creation">Създаване</string> - <string name="title_slide_show">Прожекция</string> - <string name="title_timer">Таймер</string> - <string name="menu_licenses">Свободни лицензи</string> - <string name="menu_settings">Настройки</string> - <string name="menu_requirements">Изисквания</string> - <string name="menu_reconnect">Възстановяване на връзката</string> - <string name="menu_add_computer">Добавяне на компютър</string> - <string name="menu_remove_computer">Премахване</string> - <string name="menu_slides_grid">Кадри в решетка</string> - <string name="menu_slides_pager">Кадри по страници</string> - <string name="menu_timer">Таймер</string> - <string name="menu_stop_slide_show">Край на прожекция</string> - <string name="menu_pause_slide_show">Пауза на прожекция</string> - <string name="menu_resume_slide_show">Продължаване</string> - <string name="button_cancel">Отмяна</string> - <string name="button_save">Запазване</string> - <string name="button_start">Начало</string> - <string name="button_remove">Премахване</string> - <string name="message_impress_pin_validation">В LibreOffice Impress изберете „Прожекция → Impress Remote“ и въведете кода.</string> - <string name="message_connection_failed_title">Неуспешно свързване</string> - <string name="message_impress_remote_enabling">Уверете се, че дистанционното управление е разрешено в „Инструменти → Настройки → LibreOffice Impress → Общи“ в LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Освен това трябва да е разрешена експерименталната функционалност в „Инструменти → Настройки → LibreOffice → Разширени“.</string> - <string name="message_impress_pairing_check">Ако срещате проблеми с връзката чрез Bluetooth, вижте указанията за настолната ви операционна система.</string> - <string name="message_ip_address_validation">Въведете валиден IP адрес.</string> - <string name="message_time_is_up">Времето изтече!</string> - <string name="message_search_wifi">Уверете се, че LibreOffice се изпълнява в компютър от същата WiFi мрежа.</string> - <string name="message_search_bluetooth">Уверете се, че LibreOffice се изпълнява в компютър с включен Bluetooth.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Научете още</a> - </string> - <string name="message_paused">Пауза</string> - <string name="message_notes_empty">Празно.</string> - <string name="hint_ip_address">IP адрес</string> - <string name="hint_name">Име (незадължително)</string> - <string name="header_notes">Бележки</string> - <string name="mask_slide_show_progress">Кадър %1$d от %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Остава една минута</item> - <item quantity="other">Остават %d минути</item> - </plurals> - <string name="description_pager_slide">Преглед на кадрите</string> - <string name="description_grid_slide">Преглед на кадрите</string> - <string name="description_empty_slide">Празен кадър</string> - <string name="preferences_volume_keys_actions_title">Действие на клавишите за звука</string> - <string name="preferences_volume_keys_actions_summary">Смяна на кадрите и анимация чрез клавишите за звука</string> - <string name="preferences_keep_screen_on_title">Постоянно включен екран</string> - <string name="preferences_keep_screen_on_summary">Забранено заспиване на телефона при прожекция</string> - <string name="preferences_quiet_mode_title">Тих режим</string> - <string name="preferences_quiet_mode_summary">Режим „вибрация“ по време на прожекция</string> - <string name="requirements_libreoffice_version">В компютъра се изпълнява LibreOffice 4.0.3 или по-нов.</string> - <string name="requirements_libreoffice_general_enabled">В „Инструменти → Настройка → LibreOffice Impress → Общи“ в LibreOffice Impress е разрешено Impress Remote.</string> - <string name="requirements_libreoffice_experimental_enabled">В „Инструменти → Настройка → LibreOffice → Разширени“ е разрешена експерименталната функционалност.</string> - <string name="requirements_network_connection">Устройството с Android и компютърът са свързани в една мрежа.</string> - <string name="requirements_network_ports">Ако е включена защитна стена, портовете 1598 и 1599 трябва да са отворени.</string> - <string name="requirements_bluetooth_connection">Компютър с включен Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-ca/strings.xml b/android/sdremote/res/values-ca/strings.xml deleted file mode 100644 index 8f6a082a53b5..000000000000 --- a/android/sdremote/res/values-ca/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Control remot de l\'Impress</string> - <string name="title_computers">Ordinadors</string> - <string name="title_generic">Genèric</string> - <string name="title_licenses">Llicències de codi obert</string> - <string name="title_settings">Configuració</string> - <string name="title_requirements">Requeriments</string> - <string name="title_connection">Connexió</string> - <string name="title_creation">Creació</string> - <string name="title_slide_show">Presentació</string> - <string name="title_timer">Temporitzador</string> - <string name="menu_licenses">Llicències de codi obert</string> - <string name="menu_settings">Configuració</string> - <string name="menu_requirements">Requirements</string> - <string name="menu_reconnect">Torna a connectar</string> - <string name="menu_add_computer">Afegeix un ordinador</string> - <string name="menu_remove_computer">Suprimeix</string> - <string name="menu_slides_grid">Graella de diapositives</string> - <string name="menu_slides_pager">Paginador de diapositives</string> - <string name="menu_timer">Temporitzador</string> - <string name="menu_stop_slide_show">Atura la presentació de diapositives</string> - <string name="menu_pause_slide_show">Pausa la presentació de diapositives</string> - <string name="menu_resume_slide_show">Reprèn la presentació de diapositives</string> - <string name="button_cancel">Cancel·la</string> - <string name="button_save">Desa</string> - <string name="button_start">Inicia</string> - <string name="button_remove">Suprimeix</string> - <string name="message_impress_pin_validation">Aneu a «Presentació de diapositives → Control remot de l\'Impress» al LibreOffice Impress i introduïu el codi.</string> - <string name="message_connection_failed_title">La connexió ha fallat</string> - <string name="message_impress_remote_enabling">Assegureu-vos que heu habilitat el control remot. Aneu a «Eines → Opcions → LibreOffice Impress → General» al LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">"També heu d\'habilitar les funcionalitats experimentals a «Eines s → Opcions → LibreOffice → Avançat»."</string> - <string name="message_impress_pairing_check">Si teniu problemes de connexió Bluetooth, comproveu les instruccions relatives al sistema operatiu d\'escriptori.</string> - <string name="message_ip_address_validation">Introduïu una adreça IP vàlida.</string> - <string name="message_time_is_up">S\'ha acabat el temps!</string> - <string name="message_search_wifi">Assegureu-vos que el LibreOffice s\'està executant en un equip de la mateixa xarxa WiFi.</string> - <string name="message_search_bluetooth">Assegureu-vos que el LibreOffice s\'està executant en un equip amb el Bluetooth habilitat.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Més informació</a> - </string> - <string name="message_paused">Pausa</string> - <string name="message_notes_empty">No hi ha res aquí.</string> - <string name="hint_ip_address">Adreça IP</string> - <string name="hint_name">Nom (opcional)</string> - <string name="header_notes">Notes</string> - <string name="mask_slide_show_progress">Diapositiva %1$d de %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Queda un minut</item> - <item quantity="other">Queden %d minuts</item> - </plurals> - <string name="description_pager_slide">Previsualització de la diapositiva</string> - <string name="description_grid_slide">Previsualització de la diapositiva</string> - <string name="description_empty_slide">Diapositiva buida</string> - <string name="preferences_volume_keys_actions_title">Accions de les tecles de volum</string> - <string name="preferences_volume_keys_actions_summary">Les tecles de volum permeten desplaçar-se per les diapositives i activar les animacions</string> - <string name="preferences_keep_screen_on_title">Mantén la pantalla activa</string> - <string name="preferences_keep_screen_on_summary">Evita que s\'apagui la pantalla del dispositiu durant la presentació</string> - <string name="preferences_quiet_mode_title">Mode silenciós</string> - <string name="preferences_quiet_mode_summary">Configura el mode de timbre de vibració durant la presentació</string> - <string name="requirements_libreoffice_version">LibreOffice versió 4.0.3 o superior executant-se en un ordinador.</string> - <string name="requirements_libreoffice_general_enabled">Control remot de l\'Impress habilitat a «Eines→ Opcions → LibreOffice Impress → General» al LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Funcionalitats experimentals habilitades a «Eines → Opcions → LibreOffice → Avançat» al LibreOffice Impress.</string> - <string name="requirements_network_connection">El dispositiu Android i un ordinador connectats a la mateixa xarxa.</string> - <string name="requirements_network_ports">Si teniu un tallafocs, assegureu-vos de tenir oberts els ports 1598 i 1599.</string> - <string name="requirements_bluetooth_connection">Un ordinador amb el Bluetooth activat.</string> -</resources> diff --git a/android/sdremote/res/values-cs/strings.xml b/android/sdremote/res/values-cs/strings.xml deleted file mode 100644 index af1a1277605a..000000000000 --- a/android/sdremote/res/values-cs/strings.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Dálkové ovládání prezentace</string> - <string name="title_computers">Počítače</string> - <string name="title_generic">Obecné</string> - <string name="title_licenses">Licence open source</string> - <string name="title_settings">Nastavení</string> - <string name="title_requirements">Požadavky</string> - <string name="title_connection">Spojení</string> - <string name="title_creation">Vytvoření</string> - <string name="title_slide_show">Prezentace</string> - <string name="title_timer">Časovač</string> - <string name="menu_licenses">Licence open source</string> - <string name="menu_settings">Nastavení</string> - <string name="menu_requirements">Požadavky</string> - <string name="menu_reconnect">Znovu připojit</string> - <string name="menu_add_computer">Přidat počítač</string> - <string name="menu_remove_computer">Odstranit</string> - <string name="menu_slides_grid">Mřížka snímků</string> - <string name="menu_slides_pager">Snímek na stránku</string> - <string name="menu_timer">Časovač</string> - <string name="menu_stop_slide_show">Zastavit prezentaci</string> - <string name="menu_pause_slide_show">Pozastavit prezentaci</string> - <string name="menu_resume_slide_show">Pokračovat v prezentaci</string> - <string name="button_cancel">Zrušit</string> - <string name="button_save">Uložit</string> - <string name="button_start">Spustit</string> - <string name="button_remove">Odstranit</string> - <string name="message_impress_pin_validation">V programu LibreOffice Impress přejděte na „Prezentace → Dálkové ovládání prezentace“ a zadejte kód.</string> - <string name="message_connection_failed_title">Připojení se nepodařilo navázat</string> - <string name="message_impress_remote_enabling">Ujistěte se, že je dálkové ovládání povoleno. V programu LibreOffice Impress přejděte na „Nástroje → Možnosti → LibreOffice Impress → Obecné“.</string> - <string name="message_impress_wifi_enabling">Měli byste také povolit experimentální vlastnosti v „Nástroje → Možnosti → LibreOffice → Pokročilé“.</string> - <string name="message_impress_pairing_check">Máte-li problémy s připojením pomocí Bluetooth, vyzkoušejte návody pro příslušný operační systém.</string> - <string name="message_ip_address_validation">Zadejte platnou IP adresu.</string> - <string name="message_time_is_up">Čas vypršel!</string> - <string name="message_search_wifi">Ujistěte se, že je LibreOffice spuštěn na počítači připojeném ke stejné síti WiFi.</string> - <string name="message_search_bluetooth">Ujistěte se, že je povolen Bluetooth na počítači, kde je LibreOffice spuštěn.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Zjistěte více</a> - </string> - <string name="message_paused">Pozastaveno</string> - <string name="message_notes_empty">Nic se zde nenachází.</string> - <string name="hint_ip_address">IP adresa</string> - <string name="hint_name">Název (nepovinný)</string> - <string name="header_notes">Poznámky</string> - <string name="mask_slide_show_progress">Snímek %1$d z %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Zbývá jedna minuta</item> - <item quantity="few">Zbývají %d minuty</item> - <item quantity="other">Zbývá %d minut</item> - </plurals> - <string name="description_pager_slide">Náhled snímku</string> - <string name="description_grid_slide">Náhled snímku</string> - <string name="description_empty_slide">Prázdný snímek</string> - <string name="preferences_volume_keys_actions_title">Akce pro klávesy hlasitosti</string> - <string name="preferences_volume_keys_actions_summary">Přepínat snímky a aktivovat animace pomocí kláves pro ovládání hlasitosti</string> - <string name="preferences_keep_screen_on_title">Ponechat zapnutou obrazovku</string> - <string name="preferences_keep_screen_on_summary">Zabránit telefonu přejít během prezentace do úsporného režimu</string> - <string name="preferences_quiet_mode_title">Tichý režim</string> - <string name="preferences_quiet_mode_summary">Nastavit během prezentace vibrační vyzvánění</string> - <string name="requirements_libreoffice_version">Na počítači spuštěný LibreOffice verze 4.0.3 nebo novější.</string> - <string name="requirements_libreoffice_general_enabled">V LibreOffice Impressu povolené Dálkové ovládání prezentace v „Nástroje → Možnosti → LibreOffice Impress → Obecné“.</string> - <string name="requirements_libreoffice_experimental_enabled">V LibreOffice Impressu povolené experimentální vlastnosti v „Nástroje → Možnosti → LibreOffice → Pokročilé“.</string> - <string name="requirements_network_connection">Ke stejné síti připojené zařízení s Androidem a počítač.</string> - <string name="requirements_network_ports">Pokud používáte firewall, ujistěte se, že jsou porty 1598 a 1599 otevřené.</string> - <string name="requirements_bluetooth_connection">Počítač s povoleným Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-da/strings.xml b/android/sdremote/res/values-da/strings.xml deleted file mode 100644 index 001cbfeccd86..000000000000 --- a/android/sdremote/res/values-da/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Fjernkontrol</string> - <string name="title_computers">Computere</string> - <string name="title_generic">Generisk</string> - <string name="title_licenses">Open source-licenser</string> - <string name="title_settings">Indstillinger</string> - <string name="title_requirements">Systemkrav</string> - <string name="title_connection">Forbindelse</string> - <string name="title_creation">Oprettelse</string> - <string name="title_slide_show">Præsentation</string> - <string name="title_timer">Timer</string> - <string name="menu_licenses">Open source-licenser</string> - <string name="menu_settings">Indstillinger</string> - <string name="menu_requirements">Systemkrav</string> - <string name="menu_reconnect">Genforbind</string> - <string name="menu_add_computer">Tilføj computer</string> - <string name="menu_remove_computer">Fjern</string> - <string name="menu_slides_grid">Diasgitter</string> - <string name="menu_slides_pager">Diassøger</string> - <string name="menu_timer">Timer</string> - <string name="menu_stop_slide_show">Stop præsentation</string> - <string name="menu_pause_slide_show">Præsentation på pause</string> - <string name="menu_resume_slide_show">Genoptag præsentation</string> - <string name="button_cancel">Afbryd</string> - <string name="button_save">Gem</string> - <string name="button_start">Start</string> - <string name="button_remove">Fjern</string> - <string name="message_impress_pin_validation">Gå til “Præsentation → Impress Fjernkontrol” i LibreOffice Impress og indtast koden.</string> - <string name="message_connection_failed_title">Forbindelsen fejlede</string> - <string name="message_impress_remote_enabling">Kontroller at du har aktiveret fjernkontrol. Gå til “Funktioner → Indstillinger → LibreOffice Impress → Generelt” i LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Du skal aktivere eksperimentelle funktioner i “Funktioner → Indstillinger → LibreOffice → Avanceret”.</string> - <string name="message_impress_pairing_check">Hvis du har problemer med Bluetooth parring bør du kigge i instruktionerne for dit skrivebordsmiljø.</string> - <string name="message_ip_address_validation">Indtast en gyldig IP-adresse</string> - <string name="message_time_is_up">Tiden er udløbet</string> - <string name="message_search_wifi">Du skal sikre dig, at LibreOffice kører på en computer, som benytter samme Wifi netværk.</string> - <string name="message_search_bluetooth">Du skal sikre dig at LibreOffice kører på en computer med Bluetooth aktiveret.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Læs mere</a> - </string> - <string name="message_paused">Sat på pause</string> - <string name="message_notes_empty">Intet her.</string> - <string name="hint_ip_address">IP-adresse</string> - <string name="hint_name">Navn (valgfrit)</string> - <string name="header_notes">Noter</string> - <string name="mask_slide_show_progress">Dias %1$d af %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Et minut tilbage</item> - <item quantity="other">%d minutter tilbage</item> - </plurals> - <string name="description_pager_slide">Forhåndsvisning af dias</string> - <string name="description_grid_slide">Forhåndsvisning af dias</string> - <string name="description_empty_slide">Tomt dias</string> - <string name="preferences_volume_keys_actions_title">Volumenknap funktioner</string> - <string name="preferences_volume_keys_actions_summary">Skift dias og aktiver bevægelser vha. volumenknapper</string> - <string name="preferences_keep_screen_on_title">Bevar skærmen tændt</string> - <string name="preferences_keep_screen_on_summary">Undgå at telefonen går i dvale under præsentationen</string> - <string name="preferences_quiet_mode_title">Lydløs tilstand</string> - <string name="preferences_quiet_mode_summary">Aktiver telefonens vibrator under præsentationen</string> - <string name="requirements_libreoffice_version">LibreOffice 4.0.3 eller højere på en computer.</string> - <string name="requirements_libreoffice_general_enabled">Impress Fjernkontrol aktiveret under \"Funktioner → Indstillinger → LibreOffice Impress → Generelt\" i LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Eksperimentelle funktioner er aktiveret under \"Funktioner → Indstillinger → LibreOffice → Avanceret\" i LibreOffice.</string> - <string name="requirements_network_connection">Android-enheden og en computer forbundet til det samme trådløse netværk.</string> - <string name="requirements_network_ports">Hvis netværket har en firewall skal portene 1598 og 1599 være åbne.</string> - <string name="requirements_bluetooth_connection">En computer med Bluetooth aktiveret.</string> -</resources> diff --git a/android/sdremote/res/values-de/strings.xml b/android/sdremote/res/values-de/strings.xml deleted file mode 100644 index c58c19d22eb0..000000000000 --- a/android/sdremote/res/values-de/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress-Fernsteuerung</string> - <string name="title_computers">Rechner</string> - <string name="title_generic">Allgemein</string> - <string name="title_licenses">Open-Source Lizenzen</string> - <string name="title_settings">Einstellungen</string> - <string name="title_requirements">Systemanforderungen</string> - <string name="title_connection">Verbindung</string> - <string name="title_creation">Erstellung</string> - <string name="title_slide_show">Präsentation</string> - <string name="title_timer">Stoppuhr</string> - <string name="menu_licenses">Open-Source Lizenz</string> - <string name="menu_settings">Einstellungen</string> - <string name="menu_requirements">Systemvoraussetzungen</string> - <string name="menu_reconnect">Erneut verbinden</string> - <string name="menu_add_computer">Rechner hinzufügen</string> - <string name="menu_remove_computer">Entfernen</string> - <string name="menu_slides_grid">Folienraster</string> - <string name="menu_slides_pager">Folienstapel</string> - <string name="menu_timer">Stoppuhr</string> - <string name="menu_stop_slide_show">Präsentation beenden</string> - <string name="menu_pause_slide_show">Präsentation anhalten</string> - <string name="menu_resume_slide_show">Präsentation fortsetzen</string> - <string name="button_cancel">Abbrechen</string> - <string name="button_save">Speichern</string> - <string name="button_start">Starten</string> - <string name="button_remove">Entfernen</string> - <string name="message_impress_pin_validation">Klicken Sie im Menü von LibreOffice Impress auf \"Bildschirmpräsentation → Impress-Fernsteuerung\" und geben Sie den Code ein.</string> - <string name="message_connection_failed_title">Verbindung fehlgeschlagen</string> - <string name="message_impress_remote_enabling">Stellen Sie sicher, dass Sie die Fernsteuerung aktiviert haben. Klicken Sie hierzu im Menü von LibreOffice Impress auf „Extras → Optionen... → LibreOffice Impress → Allgemein“.</string> - <string name="message_impress_wifi_enabling">Sie sollten auch die experimentellen Funktionen im Menü unter „Extras → Optionen... → LibreOffice → Erweitert“ aktiviert haben.</string> - <string name="message_impress_pairing_check">Falls Sie Probleme beim Verbindungsaufbau über Bluetooth haben, überprüfen Sie die Anweisungen für Ihr Betriebssystem.</string> - <string name="message_ip_address_validation">Geben Sie eine gültige IP-Adresse ein.</string> - <string name="message_time_is_up">Die Zeit ist abgelaufen!</string> - <string name="message_search_wifi">Stellen Sie sicher, dass LibreOffice auf einem Rechner im selben Drahtlosnetzwerk läuft.</string> - <string name="message_search_bluetooth">Stellen Sie sicher, dass auf dem Rechner, auf dem LibreOffice läuft, Bluetooth aktiviert ist.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Mehr erfahren</a> - </string> - <string name="message_paused">Unterbrochen</string> - <string name="message_notes_empty">Keine vorhanden.</string> - <string name="hint_ip_address">IP-Adresse</string> - <string name="hint_name">Name (optional)</string> - <string name="header_notes">Notizen</string> - <string name="mask_slide_show_progress">Folie %1$d von %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Eine Minute verbleibend</item> - <item quantity="other">%d Minuten verbleibend</item> - </plurals> - <string name="description_pager_slide">Folienvorschau</string> - <string name="description_grid_slide">Folienvorschau</string> - <string name="description_empty_slide">Leere Folie</string> - <string name="preferences_volume_keys_actions_title">Lautstärketasten</string> - <string name="preferences_volume_keys_actions_summary">Folienwechsel und Animationen mittels Lautstärketasten vornehmen</string> - <string name="preferences_keep_screen_on_title">Bildschirm eingeschaltet</string> - <string name="preferences_keep_screen_on_summary">Handy während der Präsentation vom Standby abhalten</string> - <string name="preferences_quiet_mode_title">Stiller Modus</string> - <string name="preferences_quiet_mode_summary">Vibrationsalarm für die Dauer der Präsentation aktiviert.</string> - <string name="requirements_libreoffice_version">LibreOffice Version 4.0.3 oder höher läuft auf einem Rechner.</string> - <string name="requirements_libreoffice_general_enabled">Impress-Fernsteuerung aktiviert im Menü von LibreOffice Impress unter „Extras → Optionen... → LibreOffice Impress → Allgemein“.</string> - <string name="requirements_libreoffice_experimental_enabled">Experimentelle Funktionen aktiviert im Menü von LibreOffice Impress unter „Extras → Optionen... → LibreOffice → Erweitert“.</string> - <string name="requirements_network_connection">Die Android-Schnittstelle und ein Rechner im selben Netzwerk miteinander verbunden.</string> - <string name="requirements_network_ports">Falls Sie eine Firewall einsetzen, stellen Sie sicher, dass die Ports 1598 und 1599 offen sind.</string> - <string name="requirements_bluetooth_connection">Ein Computer mit aktiviertem Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-el/strings.xml b/android/sdremote/res/values-el/strings.xml deleted file mode 100644 index 88d69e5dffde..000000000000 --- a/android/sdremote/res/values-el/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Απομακρυσμένο Impress</string> - <string name="title_computers">Υπολογιστές</string> - <string name="title_generic">Γενικά</string> - <string name="title_licenses">Άδειες ανοικτού λογισμικού</string> - <string name="title_settings">Ρυθμίσεις</string> - <string name="title_requirements">Απαιτήσεις</string> - <string name="title_connection">Σύνδεση</string> - <string name="title_creation">Δημιουργία</string> - <string name="title_slide_show">Παρουσίαση</string> - <string name="title_timer">Χρονόμετρο</string> - <string name="menu_licenses">Άδειες ανοικτού λογισμικού</string> - <string name="menu_settings">Ρυθμίσεις</string> - <string name="menu_requirements">Απαιτήσεις</string> - <string name="menu_reconnect">Επανασύνδεση</string> - <string name="menu_add_computer">Προσθήκη υπολογιστή</string> - <string name="menu_remove_computer">Αφαίρεση</string> - <string name="menu_slides_grid">Πλέγμα διαφανειών</string> - <string name="menu_slides_pager">Σελιδοποίηση διαφανειών</string> - <string name="menu_timer">Χρονόμετρο</string> - <string name="menu_stop_slide_show">Διακοπή παρουσίασης</string> - <string name="menu_pause_slide_show">Παύση παρουσίασης</string> - <string name="menu_resume_slide_show">Συνέχιση παρουσίασης</string> - <string name="button_cancel">Ακύρωση</string> - <string name="button_save">Αποθήκευση</string> - <string name="button_start">Έναρξη</string> - <string name="button_remove">Αφαίρεση</string> - <string name="message_impress_pin_validation">Πηγαίνετε στο “Παρουσίαση → Απομακρυσμένο Impress” στο LibreOffice Impress και εισαγωγή του κώδικα.</string> - <string name="message_connection_failed_title">Αποτυχία σύνδεσης</string> - <string name="message_impress_remote_enabling">Βεβαιωθείτε ότι ενεργοποιήσατε τον απομακρυσμένο έλεγχο. Πηγαίνετε στο “Εργαλεία → Επιλογές → LibreOffice Impress → Γενικά” στο LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Θα πρέπει να ενεργοποιήσετε πειραματικά γνωρίσματα στο “Εργαλεία → Επιλογές → LibreOffice → Προχωρημένα” επίσης.</string> - <string name="message_impress_pairing_check">Αν έχετε προβλήματα σύνδεσης μπλουτούθ κοιτάξτε τις οδηγίες τις σχετικές με το λειτουργικό της επιφάνειας εργασίας σας.</string> - <string name="message_ip_address_validation">Πληκτρολογήστε μια έγκυρη διεύθυνση IP.</string> - <string name="message_time_is_up">Λήξη χρόνου!</string> - <string name="message_search_wifi">"Βεβαιωθείτε ότι το LibreOffice εκτελείται σε έναν υπολογιστή στο ίδιο ασύρματο δίκτυο."</string> - <string name="message_search_bluetooth">Βεβαιωθείτε ότι το LibreOffice εκτελείται σε έναν υπολογιστή με ενεργό το μπλουτούθ.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Μάθετε περισσότερα</a> - </string> - <string name="message_paused">Σε παύση</string> - <string name="message_notes_empty">Τίποτα εδώ.</string> - <string name="hint_ip_address">Διεύθυνση IP</string> - <string name="hint_name">Όνομα (προαιρετικό)</string> - <string name="header_notes">Σημειώσεις</string> - <string name="mask_slide_show_progress">Διαφάνεια %1$d από %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Ένα λεπτό απέμεινε</item> - <item quantity="other">%d λεπτά απέμειναν</item> - </plurals> - <string name="description_pager_slide">Προεπισκόπηση διαφάνειας</string> - <string name="description_grid_slide">Προεπισκόπηση διαφάνειας</string> - <string name="description_empty_slide">Κενή διαφάνεια</string> - <string name="preferences_volume_keys_actions_title">Ενέργειες πλήκτρων έντασης</string> - <string name="preferences_volume_keys_actions_summary">Αλλαγή διαφανειών και ενεργοποίηση κινήσεων χρησιμοποιώντας πλήκτρα έντασης</string> - <string name="preferences_keep_screen_on_title">Διατήρηση ενεργούς οθόνης</string> - <string name="preferences_keep_screen_on_summary">Αποτροπή τηλεφώνου από ύπνωση κατά την παρουσίαση</string> - <string name="preferences_quiet_mode_title">Αθόρυβη λειτουργία</string> - <string name="preferences_quiet_mode_summary">Ορισμός σε λειτουργία δόνησης κατά την παρουσίαση</string> - <string name="requirements_libreoffice_version">LibreOffice με έκδοση 4.0.3 ή μεγαλύτερη που εκτελείται σε έναν υπολογιστή.</string> - <string name="requirements_libreoffice_general_enabled">Απομακρυσμένο Impress ενεργοποιημένο στο “Εργαλεία → Επιλογές → LibreOffice Impress → Γενικά” στο LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Πειραματικά γνωρίσματα ενεργοποιημένα στο “Εργαλεία → Επιλογές → LibreOffice → Προχωρημένα” στο LibreOffice Impress.</string> - <string name="requirements_network_connection">Η συσκευή Android και ένας υπολογιστής συνδεμένος στο ίδιο δίκτυο.</string> - <string name="requirements_network_ports">Αν έχετε τείχος προστασίας βεβαιωθείτε ότι οι θύρες 1598 και 1599 είναι ανοικτές.</string> - <string name="requirements_bluetooth_connection">Ένας υπολογιστής με ενεργοποιημένο μπλουτούθ.</string> -</resources> diff --git a/android/sdremote/res/values-es/strings.xml b/android/sdremote/res/values-es/strings.xml deleted file mode 100644 index b74735cd28bf..000000000000 --- a/android/sdremote/res/values-es/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Control remoto de Impress</string> - <string name="title_computers">PC</string> - <string name="title_generic">Genérico</string> - <string name="title_licenses">Licencias de código abierto</string> - <string name="title_settings">Configuraciones</string> - <string name="title_requirements">Requisitos</string> - <string name="title_connection">Conexión</string> - <string name="title_creation">Creación</string> - <string name="title_slide_show">Presentación</string> - <string name="title_timer">Reloj</string> - <string name="menu_licenses">Licencias de código abierto</string> - <string name="menu_settings">Configuración</string> - <string name="menu_requirements">Requisitos</string> - <string name="menu_reconnect">Volver a conectar</string> - <string name="menu_add_computer">Añadir un PC</string> - <string name="menu_remove_computer">Quitar</string> - <string name="menu_slides_grid">Cuadrícula de diapositivas</string> - <string name="menu_slides_pager">Paginador de diapositivas</string> - <string name="menu_timer">Reloj</string> - <string name="menu_stop_slide_show">Parar presentación</string> - <string name="menu_pause_slide_show">Pausar presentación</string> - <string name="menu_resume_slide_show">Reanudar presentación</string> - <string name="button_cancel">Cancelar</string> - <string name="button_save">Guardar</string> - <string name="button_start">Iniciar</string> - <string name="button_remove">Eliminar</string> - <string name="message_impress_pin_validation">Vaya a «Presentación → Control remoto de Impress» en LibreOffice Impress y escriba el código.</string> - <string name="message_connection_failed_title">La conexión falló</string> - <string name="message_impress_remote_enabling">Asegúrese de activar el control remoto. Vaya a «Herramientas → Opciones → LibreOffice Impress → General» en LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">También puede las funcionalidades experimentales en «Herramientas → Opciones → LibreOffice → Avanzado».</string> - <string name="message_impress_pairing_check">Si tiene problemas de conexión Bluetooth, verifique las instrucciones relativas a su sistema operativo de escritorio.</string> - <string name="message_ip_address_validation">Escriba una dirección IP válida.</string> - <string name="message_time_is_up">Se acabó el tiempo.</string> - <string name="message_search_wifi">Asegúrese de que LibreOffice se ejecuta en un equipo de la misma red WiFi.</string> - <string name="message_search_bluetooth">Asegúrese de que LibreOffice se ejecuta en un ordenador con Bluetooth activado.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Más información</a> - </string> - <string name="message_paused">Pausa</string> - <string name="message_notes_empty">Nada aquí.</string> - <string name="hint_ip_address">Dirección IP</string> - <string name="hint_name">Nombre (opcional)</string> - <string name="header_notes">Notas</string> - <string name="mask_slide_show_progress">Diapositiva %1$d de %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Queda un minuto</item> - <item quantity="other">Quedan %d minutos</item> - </plurals> - <string name="description_pager_slide">Previsualización de la diapositiva</string> - <string name="description_grid_slide">Previsualización de la diapositiva</string> - <string name="description_empty_slide">Diapositiva vacía</string> - <string name="preferences_volume_keys_actions_title">Acciones de las teclas de volumen</string> - <string name="preferences_volume_keys_actions_summary">Pasar las diapositivas y activar animaciones utilizando las teclas de volumen.</string> - <string name="preferences_keep_screen_on_title">Mantener la pantalla activada</string> - <string name="preferences_keep_screen_on_summary">Desactivar el modo suspender del teléfono durante la presentación</string> - <string name="preferences_quiet_mode_title">Modo silencioso</string> - <string name="preferences_quiet_mode_summary">Configurar el modo de timbre de vibración durante la presentación</string> - <string name="requirements_libreoffice_version">LibreOffice versión 4.0.3 o superior se ejecuta en el ordenador.</string> - <string name="requirements_libreoffice_general_enabled">Impress Remoto activado en \"Herramientas → Opciones → LibreOffice Impress → General\" en LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Características experimentales habilitadas en \"Herramientas → Opciones → LibreOffice → Advanced\" en LibreOffice Impress.</string> - <string name="requirements_network_connection">El dispositivo Android y un ordenador conectados a la misma red.</string> - <string name="requirements_network_ports">"Si usa un cortafuegos asegúrese de que los puertos 1598 y 1599 estén abiertos. "</string> - <string name="requirements_bluetooth_connection">Una PC con Bluetooth activado.</string> -</resources> diff --git a/android/sdremote/res/values-et/strings.xml b/android/sdremote/res/values-et/strings.xml deleted file mode 100644 index 640f5e006a72..000000000000 --- a/android/sdremote/res/values-et/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impressi pult</string> - <string name="title_computers">Arvutid</string> - <string name="title_generic">Üldine</string> - <string name="title_licenses">Avatud lähtekoodi litsentsid</string> - <string name="title_settings">Sätted</string> - <string name="title_requirements">Nõuded</string> - <string name="title_connection">Ühendus</string> - <string name="title_creation">Loomine</string> - <string name="title_slide_show">Slaidiseanss</string> - <string name="title_timer">Taimer</string> - <string name="menu_licenses">Avatud lähtekoodi litsentsid</string> - <string name="menu_settings">Sätted</string> - <string name="menu_requirements">Nõuded</string> - <string name="menu_reconnect">Ühenda uuesti</string> - <string name="menu_add_computer">Lisa arvuti</string> - <string name="menu_remove_computer">Eemalda</string> - <string name="menu_slides_grid">Mitu slaidi</string> - <string name="menu_slides_pager">Üks slaid</string> - <string name="menu_timer">Taimer</string> - <string name="menu_stop_slide_show">Lõpeta slaidiseanss</string> - <string name="menu_pause_slide_show">Peata slaidiseanss</string> - <string name="menu_resume_slide_show">Jätka slaidiseanssi</string> - <string name="button_cancel">Loobu</string> - <string name="button_save">Salvesta</string> - <string name="button_start">Alusta</string> - <string name="button_remove">Eemalda</string> - <string name="message_impress_pin_validation">Vali LibreOffice Impressi menüüst Slaidiseanss - Kaugjuhtimispult ning sisesta kood.</string> - <string name="message_connection_failed_title">Ühendumine nurjus</string> - <string name="message_impress_remote_enabling">Vaata, et kaugjuhtimispult oleks lubatud. Selleks vali LibreOffice Impressis menüüst Tööriistad - Sätted - LibreOffice Impress - Üldine.</string> - <string name="message_impress_wifi_enabling">Lubada tuleb ka katselised võimalused (Tööriistad - Sätted - LibreOffice - Edasijõudnuile).</string> - <string name="message_impress_pairing_check">Kui seadmeid ei õnnestu Bluetoothi kaudu siduda, siis otsi juhiseid vastavalt arvuti opsüsteemile.</string> - <string name="message_ip_address_validation">Sisesta korrektne IP-aadress.</string> - <string name="message_time_is_up">Aeg on täis!</string> - <string name="message_search_wifi">Vaata, et arvuti, kus LibreOffice töötab, oleks samas Wi-Fi-võrgus kui telefon.</string> - <string name="message_search_bluetooth">Vaata, et Bluetooth oleks sisse lülitatud arvutis, kus LibreOffice töötab.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Lisateave</a> - </string> - <string name="message_paused">Peatatud</string> - <string name="message_notes_empty">Märkmeid pole.</string> - <string name="hint_ip_address">IP-aadress</string> - <string name="hint_name">Nimi (valikuline)</string> - <string name="header_notes">Märkmed</string> - <string name="mask_slide_show_progress">Slaid %1$d / %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Üks minut jäänud</item> - <item quantity="other">%d minutit jäänud</item> - </plurals> - <string name="description_pager_slide">Slaidi eelvaade</string> - <string name="description_grid_slide">Slaidi eelvaade</string> - <string name="description_empty_slide">Tühi slaid</string> - <string name="preferences_volume_keys_actions_title">Toimingud helivaljuse nuppudega</string> - <string name="preferences_volume_keys_actions_summary">Laseb helinuppudega slaide vahetada ja animatsioone käivitada</string> - <string name="preferences_keep_screen_on_title">Ekraan püsivalt sees</string> - <string name="preferences_keep_screen_on_summary">Keelab telefonil esitluse ajal ekraani välja lülitada</string> - <string name="preferences_quiet_mode_title">Vaikne režiim</string> - <string name="preferences_quiet_mode_summary">Esitluse ajaks läheb telefon värinarežiimi</string> - <string name="requirements_libreoffice_version">Arvutis töötav LibreOffice\'i versioon 4.0.3 või uuem</string> - <string name="requirements_libreoffice_general_enabled">LibreOffice Impressi seadetes kaugjuhtimispult lubatud (Tööriistad - Sätted - LibreOffice Impress - Üldine).</string> - <string name="requirements_libreoffice_experimental_enabled">LibreOffice\'i seadetes katselised võimalused lubatud (Tööriistad - Sätted - LibreOffice - Edasijõudnuile).</string> - <string name="requirements_network_connection">Samasse võrku ühendatud Androidi-seade ja arvuti.</string> - <string name="requirements_network_ports">Kui tulemüür töötab, siis tuleb avada pordid 1598 ja 1599.</string> - <string name="requirements_bluetooth_connection">Sisselülitatud Bluetoothiga arvuti.</string> -</resources> diff --git a/android/sdremote/res/values-fi/strings.xml b/android/sdremote/res/values-fi/strings.xml deleted file mode 100644 index abb1ae946b6f..000000000000 --- a/android/sdremote/res/values-fi/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress-kauko-ohjain</string> - <string name="title_computers">Tietokoneet</string> - <string name="title_generic">Yleistä</string> - <string name="title_licenses">Avoimen lähdekoodin lisenssit</string> - <string name="title_settings">Asetukset</string> - <string name="title_requirements">Vaatimukset</string> - <string name="title_connection">Yhteys</string> - <string name="title_creation">Tietokoneen lisäys</string> - <string name="title_slide_show">Diaesitys</string> - <string name="title_timer">Ajoitus</string> - <string name="menu_licenses">Avoimen lähdekoodin lisenssit</string> - <string name="menu_settings">Asetukset</string> - <string name="menu_requirements">Vaatimukset</string> - <string name="menu_reconnect">Yhdistä uudelleen</string> - <string name="menu_add_computer">Lisää tietokone</string> - <string name="menu_remove_computer">Poista</string> - <string name="menu_slides_grid">Kaikki diat</string> - <string name="menu_slides_pager">Dia kerrallaan</string> - <string name="menu_timer">Ajoitus</string> - <string name="menu_stop_slide_show">Lopeta diaesitys</string> - <string name="menu_pause_slide_show">Keskeytä diaesitys</string> - <string name="menu_resume_slide_show">Jatka diaesitystä</string> - <string name="button_cancel">Peruuta</string> - <string name="button_save">Tallenna</string> - <string name="button_start">Aloita</string> - <string name="button_remove">Poista</string> - <string name="message_impress_pin_validation">Valitse LibreOffice Impressissä ”Diaesitys → Impress-kauko-ohjain” ja syötä koodi.</string> - <string name="message_connection_failed_title">Yhteyden muodostaminen epäonnistui</string> - <string name="message_impress_remote_enabling">Varmista, että kauko-ohjaus on käytössä. LibreOffice Impressissä asetus löytyy kohdasta ”Työkalut → Asetukset → LibreOffice Impress → Yleiset”.</string> - <string name="message_impress_wifi_enabling">Ota käyttöön kokeelliset ominaisuudet kohdasta ”Työkalut → Asetukset → LibreOffice → Lisäasetukset”.</string> - <string name="message_impress_pairing_check">Jos Bluetooth-pariyhteyden muodostamisessa on ongelmia, lue työpöytäkäyttöjärjestelmääsi koskevat ohjeet.</string> - <string name="message_ip_address_validation">Syötä kelvollinen IP-osoite.</string> - <string name="message_time_is_up">Aika lopussa!</string> - <string name="message_search_wifi">Varmista, että LibreOffice on käynnissä tietokoneella, joka on samassa WiFi-verkossa.</string> - <string name="message_search_bluetooth">Varmista, että LibreOffice on käynnissä tietokoneella, jossa Bluetooth on käytettävissä.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Lisätietoja</a> - </string> - <string name="message_paused">Keskeytetty</string> - <string name="message_notes_empty">Ei muistiinpanoja.</string> - <string name="hint_ip_address">IP-osoite</string> - <string name="hint_name">Nimi (valinnainen)</string> - <string name="header_notes">Muistiinpanot</string> - <string name="mask_slide_show_progress">Dia %1$d / %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Minuutti jäljellä</item> - <item quantity="other">%d minuuttia jäljellä</item> - </plurals> - <string name="description_pager_slide">Dian esikatselu</string> - <string name="description_grid_slide">Dian esikatselu</string> - <string name="description_empty_slide">Tyhjä dia</string> - <string name="preferences_volume_keys_actions_title">Äänenvoimakkuussäätimen toiminnot</string> - <string name="preferences_volume_keys_actions_summary">Vaihda diaa ja käynnistä animaatiot äänenvoimakkuussäätimellä</string> - <string name="preferences_keep_screen_on_title">Pidä näyttö päällä</string> - <string name="preferences_keep_screen_on_summary">Estä puhelinta menemästä lepotilaan esityksen aikana</string> - <string name="preferences_quiet_mode_title">Hiljainen tila</string> - <string name="preferences_quiet_mode_summary">Aseta puhelimen värinähälytys päälle esityksen ajaksi</string> - <string name="requirements_libreoffice_version">LibreOfficen versio 4.0.3 tai uudempi käynnissä tietokoneella.</string> - <string name="requirements_libreoffice_general_enabled">Kauko-ohjaus sallittu LibreOffice Impressissä kohdasta ”Työkalut → Asetukset → LibreOffice Impress → Yleiset”.</string> - <string name="requirements_libreoffice_experimental_enabled">Kokeelliset ominaisuudet käytössä LibreOffice Impressissä kohdasta ”Työkalut → Asetukset → LibreOffice → Lisäasetukset”.</string> - <string name="requirements_network_connection">Android-mobiililaite ja tietokone yhdistettynä samaan verkkoon.</string> - <string name="requirements_network_ports">Jos käytössä on palomuuri, porttien 1598 ja 1599 on oltava auki.</string> - <string name="requirements_bluetooth_connection">Tietokone, jossa Bluetooth on käytettävissä.</string> -</resources> diff --git a/android/sdremote/res/values-fr/strings.xml b/android/sdremote/res/values-fr/strings.xml deleted file mode 100644 index 8865a4fd9bef..000000000000 --- a/android/sdremote/res/values-fr/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Contrôle distant Impress</string> - <string name="title_computers">Ordinateurs</string> - <string name="title_generic">Générique</string> - <string name="title_licenses">Licences Open Source</string> - <string name="title_settings">Paramètres</string> - <string name="title_requirements">Besoins</string> - <string name="title_connection">Connexion</string> - <string name="title_creation">Création</string> - <string name="title_slide_show">Diaporama</string> - <string name="title_timer">Minuteur</string> - <string name="menu_licenses">Licences open source</string> - <string name="menu_settings">Paramètres</string> - <string name="menu_requirements">Besoins</string> - <string name="menu_reconnect">Reconnecter</string> - <string name="menu_add_computer">Ajouter un ordinateur</string> - <string name="menu_remove_computer">Supprimer</string> - <string name="menu_slides_grid">Grille de diapos</string> - <string name="menu_slides_pager">Pageur de diapos</string> - <string name="menu_timer">Minuteur</string> - <string name="menu_stop_slide_show">Arrêter le diaporama</string> - <string name="menu_pause_slide_show">Mettre le diaporama en pause</string> - <string name="menu_resume_slide_show">Reprendre le diaporama</string> - <string name="button_cancel">Annuler</string> - <string name="button_save">Enregistrer</string> - <string name="button_start">Démarrer</string> - <string name="button_remove">Supprimer</string> - <string name="message_impress_pin_validation">Allez dans \"Diaporama →Contrôle distant Impress\" dans LibreOffice et saisissez le code.</string> - <string name="message_connection_failed_title">La connexion a échoué</string> - <string name="message_impress_remote_enabling">Assurez-vous d\'avoir activé le contrôle distant. Allez dans \"Outils →Options →LibreOffice Impress →Général\" dans LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Vous devez également activer les fonctions expérimentales dans \"Outils →Options →LibreOffice →Avancé\".</string> - <string name="message_impress_pairing_check">Si vous avez un problème de couplage Bluetooth, veuillez vérifier les instructions relatives à l\'environnement de bureau de votre OS.</string> - <string name="message_ip_address_validation">Saisissez une adresse IP valide.</string> - <string name="message_time_is_up">Délai écoulé !</string> - <string name="message_search_wifi">Assurez-vous que LibreOffice est exécuté sur un ordinateur sur le même réseau WiFi.</string> - <string name="message_search_bluetooth">Assurez-vous que LibreOffice est exécuté sur un ordinateur dont le Bluetooth est activé.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">En savoir plus</a> - </string> - <string name="message_paused">Pause</string> - <string name="message_notes_empty">Rien ici.</string> - <string name="hint_ip_address">Adresse IP</string> - <string name="hint_name">Nom (facultatif)</string> - <string name="header_notes">Notes</string> - <string name="mask_slide_show_progress">Diapo %1$d de %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Une minute restante</item> - <item quantity="other">%d minutes restantes</item> - </plurals> - <string name="description_pager_slide">Aperçu de la diapo</string> - <string name="description_grid_slide">Aperçu de la diapo</string> - <string name="description_empty_slide">Diapo vierge</string> - <string name="preferences_volume_keys_actions_title">Actions des touches de volume</string> - <string name="preferences_volume_keys_actions_summary">Changer de diapos et activer les animations en utilisant les touches de volume</string> - <string name="preferences_keep_screen_on_title">Garder l\'écran actif</string> - <string name="preferences_keep_screen_on_summary">Empêcher le téléphone d\'entrer en veille pendant la présentation</string> - <string name="preferences_quiet_mode_title">Mode silencieux</string> - <string name="preferences_quiet_mode_summary">Définir sur mode vibreur pendant la présentation</string> - <string name="requirements_libreoffice_version">LibreOffice version 4.0.3 ou supérieure s\'exécutant sur un ordinateur.</string> - <string name="requirements_libreoffice_general_enabled">Contrôle distant activé dans \"Outils →Options →LibreOffice Impress →Général\" dans LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Fonctions expérimentales activées dans \"Outils →Options →LibreOffice →Avancé\" dans LibreOffice Impress.</string> - <string name="requirements_network_connection">Le périphérique Android et un ordinateur connectés au même réseau.</string> - <string name="requirements_network_ports">S\'il y a un pare-feu, assurez-vous que les ports 1598 et 1599 sont ouverts.</string> - <string name="requirements_bluetooth_connection">Un ordinateur dont le Bluetooth est activé.</string> -</resources> diff --git a/android/sdremote/res/values-gl/strings.xml b/android/sdremote/res/values-gl/strings.xml deleted file mode 100644 index c091d168b97d..000000000000 --- a/android/sdremote/res/values-gl/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Control remoto do Impress</string> - <string name="title_computers">Computadores</string> - <string name="title_generic">Xenérico</string> - <string name="title_licenses">Licenzas de código aberto</string> - <string name="title_settings">Configuración</string> - <string name="title_requirements">Requisitos</string> - <string name="title_connection">Conexión</string> - <string name="title_creation">Creación</string> - <string name="title_slide_show">Presentación</string> - <string name="title_timer">Temporizador</string> - <string name="menu_licenses">Licenzas de código aberto</string> - <string name="menu_settings">Configuración</string> - <string name="menu_requirements">Requisitos</string> - <string name="menu_reconnect">Reconectar</string> - <string name="menu_add_computer">Engadir computador</string> - <string name="menu_remove_computer">Retirar</string> - <string name="menu_slides_grid">Grade de diapositivas</string> - <string name="menu_slides_pager">Paxinador de diapositivas</string> - <string name="menu_timer">Temporizador</string> - <string name="menu_stop_slide_show">Parar a presentación</string> - <string name="menu_pause_slide_show">Deter a presentación</string> - <string name="menu_resume_slide_show">Retomar a presentación</string> - <string name="button_cancel">Cancelar</string> - <string name="button_save">Gardar</string> - <string name="button_start">Iniciar</string> - <string name="button_remove">Retirar</string> - <string name="message_impress_pin_validation">Ir a «Presentación → Control remoto do Impress» no Impress de LibreOffice e introducir o código.</string> - <string name="message_connection_failed_title">A conexión fallou</string> - <string name="message_impress_remote_enabling">Asegúrese de ter activado o control remoto. Ir a «Ferramentas → Opcións → Impress de LibreOffice → Xeral» no Impress de LibreOffice.</string> - <string name="message_impress_wifi_enabling">Debería activar as funcionalidades experimentais en «Ferramentas → Opcións → LibreOffice → Avanzado» tamén.</string> - <string name="message_impress_pairing_check">No caso de ter problemas co emparellamento por bluetooh, comprobe as instrucións relativas ao seu sistema operativo de escritorio.</string> - <string name="message_ip_address_validation">Escriba un enderezo IP válido.</string> - <string name="message_time_is_up">Rematou o tempo!</string> - <string name="message_search_wifi">Asegúrese de que LibreOffice se executa nun computador da mesma rede wifi.</string> - <string name="message_search_bluetooth">Asegúrese de que LibreOffice se executa nun computador co bluetooh activado.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Saiba máis</a> - </string> - <string name="message_paused">Detida</string> - <string name="message_notes_empty">Ren aquí.</string> - <string name="hint_ip_address">Enderezo IP</string> - <string name="hint_name">Nome (opcional)</string> - <string name="header_notes">Notas</string> - <string name="mask_slide_show_progress">Diapositiva %1$d de %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Falta un minuto</item> - <item quantity="other">Faltan %d minutos</item> - </plurals> - <string name="description_pager_slide">Visualización da diapositiva</string> - <string name="description_grid_slide">Visualizar a diapositiva</string> - <string name="description_empty_slide">Diapositiva virxe</string> - <string name="preferences_volume_keys_actions_title">Accións das teclas de volume</string> - <string name="preferences_volume_keys_actions_summary">Trocar diapositivas e activar as animacións utilizando as teclas de volume</string> - <string name="preferences_keep_screen_on_title">Manter a pantalla acesa</string> - <string name="preferences_keep_screen_on_summary">Evitar que o teléfono se durma durante a presentación</string> - <string name="preferences_quiet_mode_title">Modo silencioso</string> - <string name="preferences_quiet_mode_summary">Configurar o timbre de vibración durante a presentación</string> - <string name="requirements_libreoffice_version">LibreOffice versión 4.03 ou superior executándose nun computador.</string> - <string name="requirements_libreoffice_general_enabled">Activar o control remoto do Impress en «Ferramentas → Opcións → LibreOffice Impress → Xeral» no Impress de LibreOffice</string> - <string name="requirements_libreoffice_experimental_enabled">Activar as funcionalidades experimentais en «Ferramentas → Opcións → LibreOffice → Avanzadas» no Impress de LibreOffice.</string> - <string name="requirements_network_connection">O dispositivo android e un computador conectado na mesma rede.</string> - <string name="requirements_network_ports">Se ten unha devasa, asegúrese de que os portos 1598 e 1599 están abertos.</string> - <string name="requirements_bluetooth_connection">Un computador co bluetooh activado.</string> -</resources> diff --git a/android/sdremote/res/values-he/strings.xml b/android/sdremote/res/values-he/strings.xml deleted file mode 100644 index 4d95f9ad1fcf..000000000000 --- a/android/sdremote/res/values-he/strings.xml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="title_computers">מחשבים</string> - <string name="title_generic">כללי</string> - <string name="title_licenses">רישיונות קוד פתוח</string> - <string name="title_settings">הגדרות</string> - <string name="title_requirements">דרישות</string> - <string name="title_connection">חיבור</string> - <string name="title_creation">יצירה</string> - <string name="title_slide_show">מצגת</string> - <string name="title_timer">מתזמן</string> - <string name="menu_licenses">רישיונות קוד פתוח</string> - <string name="menu_settings">הגדרות</string> - <string name="menu_requirements">דרישות</string> - <string name="menu_reconnect">חיבור מחדש</string> - <string name="menu_add_computer">הוספת מחשב</string> - <string name="menu_remove_computer">הסרה</string> - <string name="menu_slides_grid">רשת שקופיות</string> - <string name="menu_slides_pager">נווט שקופיות</string> - <string name="menu_timer">מתזמן</string> - <string name="menu_stop_slide_show">עצירת המצגת</string> - <string name="menu_pause_slide_show">השהיית המצגת</string> - <string name="menu_resume_slide_show">המשך המצגת</string> - <string name="button_cancel">ביטול</string> - <string name="button_save">שמירה</string> - <string name="button_start">התחלה</string> - <string name="button_remove">הסרה</string> - <string name="message_connection_failed_title">החיבור נכשל</string> - <string name="message_impress_pairing_check">אם יש לך בעיות צימוד ל־Bluetooth נא לחפש את ההנחיות הקשורות למערכת ההפעלה של המחשב שלך.</string> - <string name="message_ip_address_validation">נא להזין כתובת IP חוקית.</string> - <string name="message_time_is_up">זמנך עבר!</string> - <string name="message_search_wifi">נא לוודא ש־LibreOffice פועל על מחשב שמחובר לאותה הרשת האלחוטית.</string> - <string name="message_search_bluetooth">נא לוודא ש־LibreOffice פועל על מחשב עם התקן Bluetooth פעיל.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">מידע נוסף</a> - </string> - <string name="message_paused">מושהה</string> - <string name="message_notes_empty">אין כאן כלום.</string> - <string name="hint_ip_address">כתובת IP</string> - <string name="hint_name">שם (רשות)</string> - <string name="header_notes">הערות</string> - <string name="mask_slide_show_progress">שקופית %1$d מתוך %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">דקה אחת נותרה</item> - <item quantity="other">%d דקות נותרו</item> - </plurals> - <string name="description_pager_slide">תצוגה מקדימה של השקופית</string> - <string name="description_grid_slide">תצוגה מקדימה של השקופית</string> - <string name="description_empty_slide">שקופית ריקה</string> - <string name="preferences_volume_keys_actions_title">פעולות כפתורי עצמת השמע</string> - <string name="preferences_volume_keys_actions_summary">ניתן להחליף בין שקופיות ולהפעיל הנפשות באמצעות כפתורי עצמת השמע</string> - <string name="preferences_keep_screen_on_title">להשאיר את הצג פעיל</string> - <string name="preferences_keep_screen_on_summary">למנוע מהטלפון להיכנס למצב שינה בעת ההצגה</string> - <string name="preferences_quiet_mode_title">מצב שקט</string> - <string name="preferences_quiet_mode_summary">הגדרת מצב צלצול ברטט בעת ההצגה</string> - <string name="requirements_libreoffice_version">גרסה 4.0.3 ומעלה של LibreOffice פועלת על מחשב.</string> - <string name="requirements_network_connection">התקן אנדרויד ומחשב המחוברים לאותה הרשת.</string> - <string name="requirements_network_ports">אם יש לך חומת אש עליך לוודא שפתחות 1598 ו־1599 פתוחות.</string> - <string name="requirements_bluetooth_connection">מחשב עם Bluetooth פעיל.</string> -</resources> diff --git a/android/sdremote/res/values-hi/strings.xml b/android/sdremote/res/values-hi/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-hi/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-hr/strings.xml b/android/sdremote/res/values-hr/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-hr/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-hu/strings.xml b/android/sdremote/res/values-hu/strings.xml deleted file mode 100644 index af4ea1cdbe55..000000000000 --- a/android/sdremote/res/values-hu/strings.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Remote</string> - <string name="title_computers">Számítógépek</string> - <string name="title_generic">Általános</string> - <string name="title_licenses">Nyílt forrású licencek</string> - <string name="title_settings">Beállítások</string> - <string name="title_requirements">Követelmények</string> - <string name="title_connection">Kapcsolat</string> - <string name="title_creation">Létrehozás</string> - <string name="title_slide_show">Diavetítés</string> - <string name="title_timer">Időzítő</string> - <string name="menu_licenses">Nyílt forrású licencek</string> - <string name="menu_settings">Beállítások</string> - <string name="menu_requirements">Követelmények</string> - <string name="menu_reconnect">Újrakapcsolódás</string> - <string name="menu_add_computer">Számítógép hozzáadása</string> - <string name="menu_remove_computer">Eltávolítás</string> - <string name="menu_slides_grid">Diaáttekintő</string> - <string name="menu_slides_pager">Dialapozó</string> - <string name="menu_timer">Időzítő</string> - <string name="menu_stop_slide_show">Diavetítés leállítása</string> - <string name="menu_pause_slide_show">Diavetítés szüneteltetése</string> - <string name="menu_resume_slide_show">Diavetítés folytatása</string> - <string name="button_cancel">Mégse</string> - <string name="button_save">Mentés</string> - <string name="button_start">Kezdés</string> - <string name="button_remove">Eltávolítás</string> - <string name="message_impress_pin_validation">A LibreOffice Impressben válassza a „Diavetítés → Impress távirányító” menüparancsot, és írja be a kódot.</string> - <string name="message_connection_failed_title">Sikertelen kapcsolat</string> - <string name="message_impress_remote_enabling">Ellenőrizze, hogy engedélyezte-e a távirányítót a LibreOffice Impress „Eszközök → Beállítások → LibreOffice Impress → Általános” paneljén.</string> - <string name="message_impress_wifi_enabling">A kísérleti funkciókat is engedélyeznie kell az „Eszközök → Beállítások → LibreOffice → Speciális” panelen.</string> - <string name="message_impress_pairing_check">Ha a Bluetooth-párosítással vannak problémái, olvassa el az asztali operációs rendszerének használati utasítását.</string> - <string name="message_ip_address_validation">Írjon be egy érvényes IP-címet.</string> - <string name="message_time_is_up">Lejárt az idő!</string> - <string name="message_search_wifi">Ellenőrizze, hogy fut-e a LibreOffice egy azonos WiFi-hálózatra csatlakozó számítógépen.</string> - <string name="message_search_bluetooth">Ellenőrizze, hogy fut-e a LibreOffice egy Bluetooth-os számítógépen.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">További infó</a> - </string> - <string name="message_paused">Szünet</string> - <string name="message_notes_empty">Nincs itt semmi.</string> - <string name="hint_ip_address">IP-cím</string> - <string name="hint_name">Név (nem kötelező)</string> - <string name="header_notes">Megjegyzések</string> - <string name="mask_slide_show_progress">%1$d. / %2$d dia</string> - <plurals name="mask_timer_progress"> - <item quantity="other">Egy perc van hátra.</item> - </plurals> - <string name="description_pager_slide">Diaelőnézet</string> - <string name="description_grid_slide">Diaelőnézet</string> - <string name="description_empty_slide">Üres dia</string> - <string name="preferences_volume_keys_actions_title">Hangerőgombok használata</string> - <string name="preferences_volume_keys_actions_summary">Diaváltás és animációk aktiválása a hangerőgombokkal</string> - <string name="preferences_keep_screen_on_title">Képernyő bekapcsolva tartása</string> - <string name="preferences_keep_screen_on_summary">Megakadályozza a telefon elalvását előadás közben</string> - <string name="preferences_quiet_mode_title">Csendes mód</string> - <string name="preferences_quiet_mode_summary">Rezgőre állítja a csengetést előadás közben</string> - <string name="requirements_libreoffice_version">LibreOffice 4.0.3-at vagy újabbat futtató számítógép</string> - <string name="requirements_libreoffice_general_enabled">Engedélyezett Impress távirányító a LibreOffice Impress „Eszközök → Beállítások → LibreOffice Impress → Általános” paneljén.</string> - <string name="requirements_libreoffice_experimental_enabled">Engedélyezett kísérleti funkciók a LibreOffice Impress „Eszközök → Beállítások → LibreOffice → Speciális” paneljén.</string> - <string name="requirements_network_connection">Az Android eszköz és a számítógép ugyanahhoz a hálózathoz csatlakozzon.</string> - <string name="requirements_network_ports">A tűzfalon legyen nyitva az 1598-as és 1599-es port.</string> - <string name="requirements_bluetooth_connection">Bluetooth-os számítógép</string> -</resources> diff --git a/android/sdremote/res/values-id/strings.xml b/android/sdremote/res/values-id/strings.xml deleted file mode 100644 index f692690b5190..000000000000 --- a/android/sdremote/res/values-id/strings.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="title_computers">Komputer</string> - <string name="title_generic">Generik</string> - <string name="title_licenses">Lisensi open source</string> - <string name="title_settings">Pengaturan</string> - <string name="title_requirements">Kebutuhan</string> - <string name="title_connection">Koneksi</string> - <string name="title_creation">Pembuatan</string> - <string name="title_slide_show">Pertunjukan salindia</string> - <string name="title_timer">Pewaktu</string> - <string name="menu_licenses">Lisensi open source</string> - <string name="menu_settings">Pengaturan</string> -</resources> diff --git a/android/sdremote/res/values-it/strings.xml b/android/sdremote/res/values-it/strings.xml deleted file mode 100644 index f12c891f7cd7..000000000000 --- a/android/sdremote/res/values-it/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Remote</string> - <string name="title_computers">Computer</string> - <string name="title_generic">Generici</string> - <string name="title_licenses">Licenze open source</string> - <string name="title_settings">Impostazioni</string> - <string name="title_requirements">Requisiti</string> - <string name="title_connection">Connessione</string> - <string name="title_creation">Creazione</string> - <string name="title_slide_show">Presentazione</string> - <string name="title_timer">Timer</string> - <string name="menu_licenses">Licenze open source</string> - <string name="menu_settings">Impostazioni</string> - <string name="menu_requirements">Requisiti</string> - <string name="menu_reconnect">Riconnetti</string> - <string name="menu_add_computer">Aggiungi computer</string> - <string name="menu_remove_computer">Rimuovi</string> - <string name="menu_slides_grid">Griglia di diapositive</string> - <string name="menu_slides_pager">Sequenza di diapositive</string> - <string name="menu_timer">Timer</string> - <string name="menu_stop_slide_show">Ferma la presentazione</string> - <string name="menu_pause_slide_show">Metti in pausa la presentazione</string> - <string name="menu_resume_slide_show">Riprendi la presentazione</string> - <string name="button_cancel">Annulla</string> - <string name="button_save">Salva</string> - <string name="button_start">Avvia</string> - <string name="button_remove">Rimuovi</string> - <string name="message_impress_pin_validation">Vai a \"Presentazione → Impress Remote” in LibreOffice Impress e inserisci il codice.</string> - <string name="message_connection_failed_title">Connessione non riuscita</string> - <string name="message_impress_remote_enabling">Assicurati di aver abilitato il controllo remoto. Vai a “Strumenti → Opzioni → LibreOffice Impress → Generale” in LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Devi anche abilitare le funzionalità sperimentali in “Strumenti → Opzioni → LibreOffice → Avanzate”.</string> - <string name="message_impress_pairing_check">Se hai problemi con l\'abbinamento Bluetooth controlla le istruzioni relative al tuo sistema operativo desktop.</string> - <string name="message_ip_address_validation">Inserisci un indirizzo IP valido.</string> - <string name="message_time_is_up">Tempo scaduto!</string> - <string name="message_search_wifi">Assicurati che LibreOffice sia in esecuzione su un computer collegato alla stessa rete WiFi.</string> - <string name="message_search_bluetooth">Assicurati che LibreOffice sia in esecuzione su un computer con il Bluetooth attivato.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Per saperne di più</a> - </string> - <string name="message_paused">In pausa</string> - <string name="message_notes_empty">Niente qui.</string> - <string name="hint_ip_address">Indirizzo IP</string> - <string name="hint_name">Nome (facoltativo)</string> - <string name="header_notes">Note</string> - <string name="mask_slide_show_progress">Diapositiva %1$d da %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Un minuto rimanente</item> - <item quantity="other">%d minuti rimanenti</item> - </plurals> - <string name="description_pager_slide">Anteprima della diapositiva</string> - <string name="description_grid_slide">Anteprima della diapositiva</string> - <string name="description_empty_slide">Diapositiva vuota</string> - <string name="preferences_volume_keys_actions_title">Azione dei tasti volume</string> - <string name="preferences_volume_keys_actions_summary">Cambia le diapositive e attiva le animazioni utilizzando i tasti volume</string> - <string name="preferences_keep_screen_on_title">Mantieni lo schermo acceso</string> - <string name="preferences_keep_screen_on_summary">Impedisci lo standby del telefono durante la presentazione</string> - <string name="preferences_quiet_mode_title">Modalità silenziosa</string> - <string name="preferences_quiet_mode_summary">Imposta la suoneria su vibrazione durante la presentazione</string> - <string name="requirements_libreoffice_version">LibreOffice versione 4.0.3 o successiva in esecuzione su un computer.</string> - <string name="requirements_libreoffice_general_enabled">Impress Remote abilitato in “Strumenti → Opzioni → LibreOffice Impress → Generale” in LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Funzionalità sperimentali abilitate in “Strumenti → Opzioni → LibreOffice → Avanzate\" in LibreOffice Impress.</string> - <string name="requirements_network_connection">Il dispositivo Android e un computer connessi alla stessa rete.</string> - <string name="requirements_network_ports">Se hai un firewall, assicurati che le porte 1598 e 1599 siano aperte.</string> - <string name="requirements_bluetooth_connection">Un computer con Bluetooth attivato.</string> -</resources> diff --git a/android/sdremote/res/values-ja/strings.xml b/android/sdremote/res/values-ja/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-ja/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-kk/strings.xml b/android/sdremote/res/values-kk/strings.xml deleted file mode 100644 index e40b76a39309..000000000000 --- a/android/sdremote/res/values-kk/strings.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress-ті қашықтан басқару</string> - <string name="title_computers">Компьютерлер</string> - <string name="title_generic">Жалпы</string> - <string name="title_licenses">Лицензиялар</string> - <string name="title_settings">Баптаулар</string> - <string name="title_requirements">Талаптары</string> - <string name="title_connection">Байланыс</string> - <string name="title_creation">Жасау</string> - <string name="title_slide_show">Слайд-шоу</string> - <string name="title_timer">Таймер</string> - <string name="menu_licenses">Лицензиялар</string> - <string name="menu_settings">Баптаулар</string> - <string name="menu_requirements">Талаптары</string> - <string name="menu_reconnect">Қайта байланысу</string> - <string name="menu_add_computer">Компьютерді қосу</string> - <string name="menu_remove_computer">Өшіру</string> - <string name="menu_slides_grid">Слайдтар тормен</string> - <string name="menu_slides_pager">Слайдтар бет бойынша</string> - <string name="menu_timer">Таймер</string> - <string name="menu_stop_slide_show">Слайдшоуды тоқтату</string> - <string name="menu_pause_slide_show">Слайдшоуды аялдату</string> - <string name="menu_resume_slide_show">Слайдшоуды жалғастыру</string> - <string name="button_cancel">Бас тарту</string> - <string name="button_save">Сақтау</string> - <string name="button_start">Бастау</string> - <string name="button_remove">Өшіру</string> - <string name="message_connection_failed_title">Байланыс орнату сәтсіз</string> - <string name="message_time_is_up">Уақыт бітті!</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Көбірек біліңіз</a> - </string> - <string name="message_paused">Аялдатылған</string> - <string name="hint_ip_address">IP адресі</string> - <string name="hint_name">Аты (міндетті емес)</string> - <string name="header_notes">Жазбалар</string> - <string name="mask_slide_show_progress">Слайд %1$d, барлығы %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="other">%d минут қалды</item> - </plurals> - <string name="description_pager_slide">Слайдтарды қарау</string> - <string name="description_grid_slide">Слайдтарды қарау</string> - <string name="description_empty_slide">Бос слайд</string> - <string name="preferences_volume_keys_actions_title">Дыбыс пернелерінің әрекеттері</string> - <string name="preferences_keep_screen_on_title">Экранды сөндірмеу</string> - <string name="preferences_quiet_mode_title">Тыныш режимі</string> -</resources> diff --git a/android/sdremote/res/values-ko/strings.xml b/android/sdremote/res/values-ko/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-ko/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-lt/strings.xml b/android/sdremote/res/values-lt/strings.xml deleted file mode 100644 index dacbb827ac8b..000000000000 --- a/android/sdremote/res/values-lt/strings.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">„Impress“ nuotolinis valdymas</string> - <string name="title_computers">Kompiuteriai</string> - <string name="title_generic">Bendrosios</string> - <string name="title_licenses">Atvirojo kodo licencijos</string> - <string name="title_settings">Nuostatos</string> - <string name="title_requirements">Reikalavimai</string> - <string name="title_connection">Ryšys</string> - <string name="title_creation">Sukūrimas</string> - <string name="title_slide_show">Pateikties demonstravimas</string> - <string name="title_timer">Laikmatis</string> - <string name="menu_licenses">Atvirojo kodo licencijos</string> - <string name="menu_settings">Nuostatos</string> - <string name="menu_requirements">Reikalavimai</string> - <string name="menu_reconnect">Jungtis ir naujo</string> - <string name="menu_add_computer">Pridėti kompiuterį</string> - <string name="menu_remove_computer">Pašalinti</string> - <string name="menu_slides_grid">Skaidrių tinklelis</string> - <string name="menu_slides_pager">Skaidrių albumas</string> - <string name="menu_timer">Laikmatis</string> - <string name="menu_stop_slide_show">Nutraukti demonstravimą</string> - <string name="menu_pause_slide_show">Pristabdyti demonstravimą</string> - <string name="menu_resume_slide_show">Tęsti demonstravimą</string> - <string name="button_cancel">Atsisakyti</string> - <string name="button_save">Įrašyti</string> - <string name="button_start">Pradėti</string> - <string name="button_remove">Pašalinti</string> - <string name="message_impress_pin_validation">„LibreOffice“ pateikčių rengyklėje atverkite meniu punktą „Demonstravimas → „Impress“ nuotolinis valdymas“ ir įveskite kodą.</string> - <string name="message_connection_failed_title">Nepavyko užmegzti ryšio</string> - <string name="message_impress_remote_enabling">Įsitikinkite, jog įgalintas nuotolinis valdymas. „LibreOffice“ pateikčių rengyklėje atverkite meniu punktą „Priemonės → Parinktys → „LibreOffice“ pateikčių rengyklė → Bendra“.</string> - <string name="message_impress_wifi_enabling">Taip pat derėtų įgalinti eksperimentines funkcijas. Tai daroma, atvėrus meniu „Priemonės → Parinktys → „LibreOffice“ → Kitkas“.</string> - <string name="message_impress_pairing_check">Jeigu turite problemų suporuojant įrenginius per „Bluetooth“, pasidomėkite susijusia dokumentacija Jūsų naudojamai operacinei sistemai.</string> - <string name="message_ip_address_validation">Įveskite galiojantį IP adresą.</string> - <string name="message_time_is_up">Laikas baigėsi!</string> - <string name="message_search_wifi">Įsitikinkite, jog „LibreOffice“ paleista kompiuteryje, prijungtame prie to paties tinklo.</string> - <string name="message_search_bluetooth">Įsitikinkite, jog „LibreOffice“ paleista kompiuteryje su įgalintu „Bluetooth“ ryšiu.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Sužinoti daugiau</a> - </string> - <string name="message_paused">Pristabdyta</string> - <string name="message_notes_empty">Čia nieko nėra.</string> - <string name="hint_ip_address">IP adresas</string> - <string name="hint_name">Vardas (nebūtinas)</string> - <string name="header_notes">Pastabos</string> - <string name="mask_slide_show_progress">%1$d-oji skaidrė iš %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Liko %d minutė</item> - <item quantity="few">Liko %d minutės</item> - <item quantity="other">Liko %d minučių</item> - </plurals> - <string name="description_pager_slide">Skaidrės peržiūra</string> - <string name="description_grid_slide">Skaidrės peržiūra</string> - <string name="description_empty_slide">Tuščia skaidrė</string> - <string name="preferences_volume_keys_actions_title">Garsio mygtukų veiksmai</string> - <string name="preferences_volume_keys_actions_summary">Keisti skaidres ir aktyvinti animaciją naudojant garsio mygtukus</string> - <string name="preferences_keep_screen_on_title">Neišjungti ekrano</string> - <string name="preferences_keep_screen_on_summary">Neleisti telefonui užmigti demonstravimo metu</string> - <string name="preferences_quiet_mode_title">Tylioji veiksena</string> - <string name="preferences_quiet_mode_summary">Išjungti skambučių garsą demonstravimo metu, įjungti vibravimą</string> - <string name="requirements_libreoffice_version">„LibreOffice“ 4.0.3 ar vėlesnė, veikianti kompiuteryje.</string> - <string name="requirements_libreoffice_general_enabled">„LibreOffice“ pateikčių rengyklės nuostatose (meniu „Priemonės → Parinktys → „LibreOffice“ parengčių rengyklė → Bendrosios“) įgalintas „LibreOffice“ nuotolinis valdymas.</string> - <string name="requirements_libreoffice_experimental_enabled">„LibreOffice“ pateikčių rengyklės nuostatose (meniu „Priemonės → Parinktys → Kitkas“) įgalintos eksperimentinės galimybės.</string> - <string name="requirements_network_connection">„Android“ įrenginys ir kompiuteris, esantys tame pačiame tinkle.</string> - <string name="requirements_network_ports">Jeigu naudojate ugniasienę, įsitikinkite, jog atverti 1598 ir 1599 prievadai.</string> - <string name="requirements_bluetooth_connection">Kompiuteris su įgalintu „Bluetooth“ ryšiu.</string> -</resources> diff --git a/android/sdremote/res/values-lv/strings.xml b/android/sdremote/res/values-lv/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-lv/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-nb/strings.xml b/android/sdremote/res/values-nb/strings.xml deleted file mode 100644 index d67dcb409211..000000000000 --- a/android/sdremote/res/values-nb/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Remote</string> - <string name="title_computers">Datamaskiner</string> - <string name="title_generic">Generisk</string> - <string name="title_licenses">Åpen kildekode-lisenser</string> - <string name="title_settings">Innstillinger</string> - <string name="title_requirements">Krav</string> - <string name="title_connection">Tilkobling</string> - <string name="title_creation">Oppretting</string> - <string name="title_slide_show">Lysbildeframvisning</string> - <string name="title_timer">Tidtaker</string> - <string name="menu_licenses">Åpen kildekode-lisenser</string> - <string name="menu_settings">Innstillinger</string> - <string name="menu_requirements">Krav</string> - <string name="menu_reconnect">Koble til på nytt</string> - <string name="menu_add_computer">Legg til en datamaskin</string> - <string name="menu_remove_computer">Fjern</string> - <string name="menu_slides_grid">Lysbilderutenett</string> - <string name="menu_slides_pager">Lysbildebytter</string> - <string name="menu_timer">Tidtaker</string> - <string name="menu_stop_slide_show">Stopp lysbildeframvising</string> - <string name="menu_pause_slide_show">Sett lysbildeframvisning på pause</string> - <string name="menu_resume_slide_show">Gjenoppta lysbildeframvisning</string> - <string name="button_cancel">Avbryt</string> - <string name="button_save">Lagre</string> - <string name="button_start">Start</string> - <string name="button_remove">Fjern</string> - <string name="message_impress_pin_validation">Gå til «Lysbildeframvisning → Impress Remote» i LibreOffice Impress, og skriv inn koden.</string> - <string name="message_connection_failed_title">Tilkoblinga mislyktes</string> - <string name="message_impress_remote_enabling">"Sørg for at fjernkontrollen er påslått. Gå til «Verktøy → Innstillinger → LibreOffice Impress → Generelt» i LibreOffice Impress."</string> - <string name="message_impress_wifi_enabling">Du bør også slå på de eksperimentelle funksjonene i «Verktøy → LibreOffice → Avansert».</string> - <string name="message_impress_pairing_check">Hvis du har problemer med å pare Bluetooth-enheter, må du lese instruksjonene for ditt operativsystem.</string> - <string name="message_ip_address_validation">Skriv inn en gyldig IP-adresse.</string> - <string name="message_time_is_up">Tiden er ute!</string> - <string name="message_search_wifi">Sørg for at LibreOffice kjører på en datamaskin tilkoblet det samme WiFi-nettverket.</string> - <string name="message_search_bluetooth">Sørg for at LibreOffice kjører på en datamaskin med Bluetooth er påslått.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Lær mer</a> - </string> - <string name="message_paused">På pause</string> - <string name="message_notes_empty">Her var det ingenting.</string> - <string name="hint_ip_address">IP-adresse</string> - <string name="hint_name">Navn (valgfritt)</string> - <string name="header_notes">Merknader</string> - <string name="mask_slide_show_progress">Lysbilde %1$d fra %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Et minutt gjenstår%d minutter gjenstår</item> - <item quantity="other"/> - </plurals> - <string name="description_pager_slide">Forhåndsvisning av lysbilde</string> - <string name="description_grid_slide">Forhåndsvisning av lysbilde</string> - <string name="description_empty_slide">Tomt lysbilde</string> - <string name="preferences_volume_keys_actions_title">Handlinger for volumknapper</string> - <string name="preferences_volume_keys_actions_summary">Bytt lysbilder og slå på animasjoner ved å bruke volumknappene.</string> - <string name="preferences_keep_screen_on_title">La skjermen være påslått</string> - <string name="preferences_keep_screen_on_summary">Hindre telefonen i å sove under presentasjonen</string> - <string name="preferences_quiet_mode_title">Stillemodus</string> - <string name="preferences_quiet_mode_summary">Sett på vibrasjonsmodus under presentasjonen</string> - <string name="requirements_libreoffice_version">En datamaskin med LibreOffice versjon 4,0,3 eller nyere.</string> - <string name="requirements_libreoffice_general_enabled">Impress Remote påslått i «Verktøy → Innstillinger → LibreOffice Impress → Generelt» i LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Eksperimentelle funksjoner påslått i «Verktøy → Innstillinger → LibreOffice → Avansert» i LibreOffice Impress.</string> - <string name="requirements_network_connection">En Android-enhet og datamaskin tilkoblet det samme nettverket.</string> - <string name="requirements_network_ports">Hvis du har en brannmur, må portene «1598» og «1599» være åpne.</string> - <string name="requirements_bluetooth_connection">En datamaskin med Blutetooth påslått.</string> -</resources> diff --git a/android/sdremote/res/values-nl/strings.xml b/android/sdremote/res/values-nl/strings.xml deleted file mode 100644 index 17de07ba61d4..000000000000 --- a/android/sdremote/res/values-nl/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Remote</string> - <string name="title_computers">Computers</string> - <string name="title_generic">Algemeen</string> - <string name="title_licenses">Open source licenties</string> - <string name="title_settings">Instellingen</string> - <string name="title_requirements">Vereisten</string> - <string name="title_connection">Verbinding</string> - <string name="title_creation">Aanmaak</string> - <string name="title_slide_show">Diashow</string> - <string name="title_timer">Timer</string> - <string name="menu_licenses">Open source licenties</string> - <string name="menu_settings">Instellingen</string> - <string name="menu_requirements">Vereisten</string> - <string name="menu_reconnect">Opnieuw verbinden</string> - <string name="menu_add_computer">Computer toevoegen</string> - <string name="menu_remove_computer">Verwijder</string> - <string name="menu_slides_grid">Diaraster</string> - <string name="menu_slides_pager">Diapager</string> - <string name="menu_timer">Timer</string> - <string name="menu_stop_slide_show">Stop diashow</string> - <string name="menu_pause_slide_show">Pauzeer diashow</string> - <string name="menu_resume_slide_show">Hervat diashow</string> - <string name="button_cancel">Annuleer</string> - <string name="button_save">Opslaan</string> - <string name="button_start">Begin</string> - <string name="button_remove">Verwijder</string> - <string name="message_impress_pin_validation">Ga naar \"Presentatie > Impress afstandsbediening\" in LibreOffice Impress en voer de code in.</string> - <string name="message_connection_failed_title">Verbinding mislukt</string> - <string name="message_impress_remote_enabling">Zorg ervoor dat de afstandsbediening is ingeschakeld. Ga naar \"Extra > Opties > LibreOffice Impress > Algemeen\", in LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">U moet ook experimentele functies inschakelen in \"Extra > Opties > LibreOffice > Geavanceerd\".</string> - <string name="message_impress_pairing_check">Als u Bluetooth-problemen heeft, bekijk de instructies met betrekking tot uw desktop OS.</string> - <string name="message_ip_address_validation">Type een geldig IP-adres in.</string> - <string name="message_time_is_up">Tijd is om!</string> - <string name="message_search_wifi">Zorg ervoor dat LibreOffice wordt uitgevoerd op een computer op hetzelfde WiFi-netwerk.</string> - <string name="message_search_bluetooth">Zorg ervoor dat LibreOffice wordt uitgevoerd op een computer met Bluetooth.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Leer meer</a> - </string> - <string name="message_paused">Gepauzeerd</string> - <string name="message_notes_empty">Niets hier.</string> - <string name="hint_ip_address">IP-adres</string> - <string name="hint_name">Naam optioneel)</string> - <string name="header_notes">Aantekeningen</string> - <string name="mask_slide_show_progress">Dia %1$d van %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Nog één minuutnog %d minuten</item> - <item quantity="other"/> - </plurals> - <string name="description_pager_slide">Dia voorvertoning</string> - <string name="description_grid_slide">Dia voorvertoning</string> - <string name="description_empty_slide">Lege dia</string> - <string name="preferences_volume_keys_actions_title">Volumetoetsen-acties</string> - <string name="preferences_volume_keys_actions_summary">Wissel dia\'s en activeer animaties met behulp van de volumetoetsen</string> - <string name="preferences_keep_screen_on_title">Houd het scherm aan</string> - <string name="preferences_keep_screen_on_summary">Voorkom dat de telefoon in slaapstand gaat gedurende de presentatie</string> - <string name="preferences_quiet_mode_title">Stille modus</string> - <string name="preferences_quiet_mode_summary">Zet de trilstand aan tijdens de presentatie</string> - <string name="requirements_libreoffice_version">LibreOffice versie 4.0.3 of hoger uitvoeren op een computer</string> - <string name="requirements_libreoffice_general_enabled">Impress afstandsbedienng ingeschakeld in \"Extra > Opties > LibreOffice Impress > Algemeen\" in LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Experimentele functies ingeschakeld in \"Extra > Opties > LibreOffice > Geavanceerd\" in LibreOffice Impress.</string> - <string name="requirements_network_connection">Het Android-toestel en een computer zijn aangesloten op hetzelfde netwerk.</string> - <string name="requirements_network_ports">Als u een firewall heeft, zorg er dan voor dat poorten 1598 en 1599 zijn geopend.</string> - <string name="requirements_bluetooth_connection">Een computer met ingeschakelde Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-pl/strings.xml b/android/sdremote/res/values-pl/strings.xml deleted file mode 100644 index cc7b135cb912..000000000000 --- a/android/sdremote/res/values-pl/strings.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Pilot Impressa</string> - <string name="title_computers">Komputery</string> - <string name="title_generic">Ogólne</string> - <string name="title_licenses">Licencje Open Source</string> - <string name="title_settings">Ustawienia</string> - <string name="title_requirements">Wymagania</string> - <string name="title_connection">Połączenie</string> - <string name="title_creation">Utworzono</string> - <string name="title_slide_show">Pokaz slajdów</string> - <string name="title_timer">Czasomierz</string> - <string name="menu_licenses">Licencje Open Source</string> - <string name="menu_settings">Ustawienia</string> - <string name="menu_requirements">Wymagania</string> - <string name="menu_reconnect">Połącz ponownie</string> - <string name="menu_add_computer">Dodaj komputer</string> - <string name="menu_remove_computer">Usuń</string> - <string name="menu_slides_grid">Siatka slajdów</string> - <string name="menu_slides_pager">Pager slajdów</string> - <string name="menu_timer">Czasomierz</string> - <string name="menu_stop_slide_show">Zatrzymaj pokaz slajdów</string> - <string name="menu_pause_slide_show">Wstrzymaj pokaz slajdów</string> - <string name="menu_resume_slide_show">Wznów pokaz slajdów</string> - <string name="button_cancel">Anuluj</string> - <string name="button_save">Zapisz</string> - <string name="button_start">Uruchom</string> - <string name="button_remove">Usuń</string> - <string name="message_impress_pin_validation">Przejdź do “Pokaz slajdów → Pilot Impressa” w LibreOffice Impress i wprowadź kod.</string> - <string name="message_connection_failed_title">Połączenie się nie powiodło</string> - <string name="message_impress_remote_enabling">Upewnij się, że włączyłeś zdalne sterowanie. Przejdź do “Narzędzia → Opcje → LibreOffice Impress → Ogólne” w LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Powinieneś również włączyć eksperymentalne funkcje w “Narzędzia → Opcje → LibreOffice → Zaawansowane”.</string> - <string name="message_impress_pairing_check">Jeśli wystąpiły problemy z parowaniem urządzeń przez Bluetooth, zapoznaj się z instrukcją odpowiednią dla Twojego systemu operacyjnego.</string> - <string name="message_ip_address_validation">Wprowadź poprawny adres IP</string> - <string name="message_time_is_up">Koniec czasu!</string> - <string name="message_search_wifi">Upewnij się, że LibreOffice jest uruchomiony na komputerze podłączonym do tej samej sieci WiFi.</string> - <string name="message_search_bluetooth">Upewnij się, że LibreOffice jest uruchomiony na komputerze z włączoną technologią Bluetooth.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Dowiedz się więcej</a> - </string> - <string name="message_paused">Wstrzymano</string> - <string name="message_notes_empty">Pusto.</string> - <string name="hint_ip_address">Adres IP</string> - <string name="hint_name">Nazwa (opcjonalnie)</string> - <string name="header_notes">Notatki</string> - <string name="mask_slide_show_progress">Slajd %1$d z %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Pozostała jedna minuta</item> - <item quantity="few">Pozostało %d minut</item> - <item quantity="other">Pozostały %d minuty</item> - </plurals> - <string name="description_pager_slide">Podgląd slajdu</string> - <string name="description_grid_slide">Podgląd slajdu</string> - <string name="description_empty_slide">Pusty slajd</string> - <string name="preferences_volume_keys_actions_title">Działanie klawiszy głośności</string> - <string name="preferences_volume_keys_actions_summary">Przełącza slajdy i aktywuje animacje używając przycisków głośności</string> - <string name="preferences_keep_screen_on_title">Utrzymuj włączony ekran</string> - <string name="preferences_keep_screen_on_summary">Zapobiega przejściu telefonu w tryb uśpienia podczas prezentacji</string> - <string name="preferences_quiet_mode_title">Tryb cichy</string> - <string name="preferences_quiet_mode_summary">Ustaw tryb wibracji dzwonka podczas prezentacji</string> - <string name="requirements_libreoffice_version">LibreOffice 4.0.3 lub nowszy działający na komputerze.</string> - <string name="requirements_libreoffice_general_enabled">Zdalne sterowanie włączone w “Narzędzia → Opcje → LibreOffice Impress → Ogólne” w LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Eksperymentalne funkcje włączone w “Narzędzia → Opcje → LibreOffice → Zaawansowane” w LibreOffice Impress.</string> - <string name="requirements_network_connection">Urządzenie Android oraz komputer znajdują się w tej samej sieci.</string> - <string name="requirements_network_ports">Jeśli posiadasz zaporę sieciową, upewnij się, że porty 1598 oraz 1599 zostały otwarte.</string> - <string name="requirements_bluetooth_connection">Komputer z włączoną technologią Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-pt-rBR/strings.xml b/android/sdremote/res/values-pt-rBR/strings.xml deleted file mode 100644 index 11016dd02d4f..000000000000 --- a/android/sdremote/res/values-pt-rBR/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Controle remoto do Impress</string> - <string name="title_computers">Computadores</string> - <string name="title_generic">Genérico</string> - <string name="title_licenses">Licenças de código aberto</string> - <string name="title_settings">Configurações</string> - <string name="title_requirements">Requisitos</string> - <string name="title_connection">Conexão</string> - <string name="title_creation">Criação</string> - <string name="title_slide_show">Apresentação de slides</string> - <string name="title_timer">Temporizador</string> - <string name="menu_licenses">Licenças de código aberto</string> - <string name="menu_settings">Configurações</string> - <string name="menu_requirements">Requisitos</string> - <string name="menu_reconnect">Reconectar</string> - <string name="menu_add_computer">Adicionar computador</string> - <string name="menu_remove_computer">Remover</string> - <string name="menu_slides_grid">Grade de slides</string> - <string name="menu_slides_pager">Paginador de slides</string> - <string name="menu_timer">Temporizador</string> - <string name="menu_stop_slide_show">Parar apresentação</string> - <string name="menu_pause_slide_show">Pausar apresentação</string> - <string name="menu_resume_slide_show">Continuar apresentação</string> - <string name="button_cancel">Cancelar</string> - <string name="button_save">Salvar</string> - <string name="button_start">Iniciar</string> - <string name="button_remove">Remover</string> - <string name="message_impress_pin_validation">Vá em “Apresentação de slides → Controle remoto do impress” no LibreOffice Impress e insira o código.</string> - <string name="message_connection_failed_title">Falha de conexão</string> - <string name="message_impress_remote_enabling">Certifique-se de ter ativado o controle remoto. Vá em “Ferramentas → Opções → LibreOffice Impress → Geral” no LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Você deve também ativar recursos experimentais em “Ferramentas → Opções → LibreOffice → Avançado”.</string> - <string name="message_impress_pairing_check">Se tiver problemas com o pareamento Bluetooth, veja as instruções relacionadas ao sistema operacional do seu computador.</string> - <string name="message_ip_address_validation">Digite um endereço IP válido.</string> - <string name="message_time_is_up">O tempo acabou!</string> - <string name="message_search_wifi">Certifique-se de que o LibreOffice esteja rodando em um computador na mesma rede WiFi.</string> - <string name="message_search_bluetooth">Certifique-se de que o LibreOffice esteja rodando em um computador com Bluetooth ativado.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Saiba mais</a> - </string> - <string name="message_paused">Pausado</string> - <string name="message_notes_empty">Nada aqui.</string> - <string name="hint_ip_address">Endereço IP</string> - <string name="hint_name">Nome (opcional)</string> - <string name="header_notes">Anotações</string> - <string name="mask_slide_show_progress">Slide %1$d de %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Falta 1 minuto</item> - <item quantity="other">Faltam %d minutos</item> - </plurals> - <string name="description_pager_slide">Visualização de slide</string> - <string name="description_grid_slide">Pré-visualização</string> - <string name="description_empty_slide">Slide vazio</string> - <string name="preferences_volume_keys_actions_title">Ações das teclas de volume</string> - <string name="preferences_volume_keys_actions_summary">Trocar slides e ativar animações usando as teclas de volume</string> - <string name="preferences_keep_screen_on_title">Manter tela ligada</string> - <string name="preferences_keep_screen_on_summary">Impedir suspensão do telefone durante a apresentação</string> - <string name="preferences_quiet_mode_title">Modo silencioso</string> - <string name="preferences_quiet_mode_summary">Ativar modo de vibração durante a apresentação</string> - <string name="requirements_libreoffice_version">LibreOffice versão 4.0.3 ou superior em execução no computador.</string> - <string name="requirements_libreoffice_general_enabled">Controle remoto do Impress ativo em “Ferramentas → Opções → LibreOffice Impress → Geral” no LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Funcionalidades experimentais ativas em “Ferramentas → Opções → LibreOffice → Avançado” no LibreOffice Impress.</string> - <string name="requirements_network_connection">O dispositivo Android e um computador conectados à mesma rede.</string> - <string name="requirements_network_ports">Se possui um firewall, certifique-se que as portas 1598 e 1599 estão abertas.</string> - <string name="requirements_bluetooth_connection">Um computador com Bluetooth ativo.</string> -</resources> diff --git a/android/sdremote/res/values-pt/strings.xml b/android/sdremote/res/values-pt/strings.xml deleted file mode 100644 index 7d0432b28780..000000000000 --- a/android/sdremote/res/values-pt/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress remoto</string> - <string name="title_computers">Computadores</string> - <string name="title_generic">Genérico</string> - <string name="title_licenses">Licenças Open Source</string> - <string name="title_settings">Definições</string> - <string name="title_requirements">Requisitos</string> - <string name="title_connection">Ligação</string> - <string name="title_creation">Criação</string> - <string name="title_slide_show">Apresentação</string> - <string name="title_timer">Temporizador</string> - <string name="menu_licenses">Licenças Open Source</string> - <string name="menu_settings">Definições</string> - <string name="menu_requirements">Requisitos</string> - <string name="menu_reconnect">Nova ligação</string> - <string name="menu_add_computer">Adicionar um computador</string> - <string name="menu_remove_computer">Remover</string> - <string name="menu_slides_grid">Grelha de diapositivos</string> - <string name="menu_slides_pager">Paginador de diapositivos</string> - <string name="menu_timer">Temporizador</string> - <string name="menu_stop_slide_show">Parar apresentação</string> - <string name="menu_pause_slide_show">Pausa na apresentação</string> - <string name="menu_resume_slide_show">Retomar apresentação</string> - <string name="button_cancel">Cancelar</string> - <string name="button_save">Guardar</string> - <string name="button_start">Iniciar</string> - <string name="button_remove">Remover</string> - <string name="message_impress_pin_validation">Aceda a “Apresentação → Impress remoto” no LibreOffice Impress e introduza o código.</string> - <string name="message_connection_failed_title">Falha de ligação</string> - <string name="message_impress_remote_enabling">Certifique-se que ativou o controlo remoto. Aceda a “Ferramentas → Opções → LibreOffice Impress → Geral” no LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Deve também ativar as funcionalidades de teste em “Ferramentas → Opções → LibreOffice → Avançado”.</string> - <string name="message_impress_pairing_check">Sem existirem problemas com o emparelhamento de dispositivos Buletooth, verifique a documentação do seu sistema operativo.</string> - <string name="message_ip_address_validation">Escreva um endereço IP válido.</string> - <string name="message_time_is_up">O tempo acabou!</string> - <string name="message_search_wifi">Certifique-se que o LibreOffice está a ser executado num computador com a mesma rede sem fios.</string> - <string name="message_search_bluetooth">Certifique-se que o LibreOffice está a ser executado num computador com Bluetooth ativo.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Saber mais</a> - </string> - <string name="message_paused">Pausa</string> - <string name="message_notes_empty">Nada aqui.</string> - <string name="hint_ip_address">Endereço IP</string> - <string name="hint_name">Nome (opcional)</string> - <string name="header_notes">Notas</string> - <string name="mask_slide_show_progress">Diapositivo %1$d de %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Falta 1 minuto</item> - <item quantity="other">Faltam %d minutos</item> - </plurals> - <string name="description_pager_slide">Pré-visualização</string> - <string name="description_grid_slide">Pré-visualização</string> - <string name="description_empty_slide">Diapositivo vazio</string> - <string name="preferences_volume_keys_actions_title">Ações das teclas de volume</string> - <string name="preferences_volume_keys_actions_summary">Trocar diapositivos e ativar animações com as teclas de volume</string> - <string name="preferences_keep_screen_on_title">Manter ecrã ligado</string> - <string name="preferences_keep_screen_on_summary">Impedir suspensão do telefone durante a apresentação</string> - <string name="preferences_quiet_mode_title">Modo silencioso</string> - <string name="preferences_quiet_mode_summary">Ativar modo de vibração durante a apresentação</string> - <string name="requirements_libreoffice_version">Deve possuir a versão 4.0.3 ou superior em execução no computador.</string> - <string name="requirements_libreoffice_general_enabled">Impress Remote ativo em “Ferramentas → Opções → LibreOffice Impress → Geral” no LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Funcionalidades de teste ativas em “Ferramentas → Opções → LibreOffice → Avançado” no LibreOffice Impress.</string> - <string name="requirements_network_connection">Um dispositivo Android e um computador ligados na mesma rede.</string> - <string name="requirements_network_ports">Se possui uma firewall, certifique-se que as portas 1598 e 1599 estão abertas.</string> - <string name="requirements_bluetooth_connection">Um computador com Bluetooth ativo.</string> -</resources> diff --git a/android/sdremote/res/values-ro/strings.xml b/android/sdremote/res/values-ro/strings.xml deleted file mode 100644 index d2c91d05b17d..000000000000 --- a/android/sdremote/res/values-ro/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Remote</string> - <string name="title_computers">Calculatoare</string> - <string name="title_generic">Generic</string> - <string name="title_licenses">Licențe libere</string> - <string name="title_settings">Setări</string> - <string name="title_requirements">Cerințe</string> - <string name="title_connection">Conexiune</string> - <string name="title_creation">Creare</string> - <string name="title_slide_show">Prezentare</string> - <string name="title_timer">Cronometru</string> - <string name="menu_licenses">Licențe libere</string> - <string name="menu_settings">Setări</string> - <string name="menu_requirements">Cerințe</string> - <string name="menu_reconnect">Reconectare</string> - <string name="menu_add_computer">Adăugare calculator</string> - <string name="menu_remove_computer">Eliminare</string> - <string name="menu_slides_grid">Afișor diapozitive</string> - <string name="menu_timer">Cronometru</string> - <string name="menu_stop_slide_show">Oprire prezentare</string> - <string name="menu_pause_slide_show">Pauză prezentare</string> - <string name="menu_resume_slide_show">Reluare prezentare</string> - <string name="button_cancel">Anulare</string> - <string name="button_save">Salvare</string> - <string name="button_start">Începe</string> - <string name="button_remove">Șterge</string> - <string name="message_impress_pin_validation">Mergeți la „Prezentare → Impress de la distanță” în LibreOffice Impress și introduceți codul.</string> - <string name="message_connection_failed_title">Conectare eșuată</string> - <string name="message_impress_remote_enabling">Asigurați-vă că ați activat controlul de la distanță. Se poate activa în „Unelte - Opțiuni - LibreOffice Impress - General” în LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Trebuie să activați și opțiunile experimentale din “Unelte → Opțiuni → LibreOffice → Avansat”.</string> - <string name="message_impress_pairing_check">Dacă aveți probleme cu împerecherea pe Bluetooth citiți manualul sistemului de operare folosit.</string> - <string name="message_ip_address_validation">Introduceți o adresă IP corectă.</string> - <string name="message_time_is_up">Timpul a expirat!</string> - <string name="message_search_wifi">Asigurați-vă că LibreOffice rulează în aceeași rețea WiFi.</string> - <string name="message_search_bluetooth">Asigurați-vă că LibreOffice rulează pe un calculator cu Bluetooth pornit.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Mai multe informații</a> - </string> - <string name="message_paused">Pauză</string> - <string name="message_notes_empty">Aici nu este nimic.</string> - <string name="hint_ip_address">Adresă IP</string> - <string name="hint_name">Nume (opțional)</string> - <string name="header_notes">Notițe</string> - <string name="mask_slide_show_progress">Diapozitiv %1$d din %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Încă un minut.</item> - <item quantity="few">Încă %d minute.</item> - <item quantity="other"/> - </plurals> - <string name="description_pager_slide">Previzualizare</string> - <string name="description_grid_slide">Previzualizare</string> - <string name="description_empty_slide">Diapozitiv gol</string> - <string name="preferences_volume_keys_actions_title">Utilizarea butoanelor de volum</string> - <string name="preferences_volume_keys_actions_summary">Rulați diapozitivele și activați animațiile utilizând tastele de volum</string> - <string name="preferences_keep_screen_on_title">Păstrează ecranul porni</string> - <string name="preferences_keep_screen_on_summary">Blochează stingerea telefonului în timpul prezentării</string> - <string name="preferences_quiet_mode_title">Mod silențios</string> - <string name="preferences_quiet_mode_summary">Setează modul vibrare în timpul prezentării</string> - <string name="requirements_libreoffice_version">Versiunea LibreOffice 4.0.3 sau mai nou pe calculator.</string> - <string name="requirements_libreoffice_general_enabled">Activat telecomandă LibreOffice Impress în „Unelte → Opțiuni → LibreOffice Impress → General”.</string> - <string name="requirements_libreoffice_experimental_enabled">Activarea funcțiunilor experimentale în „Unelte → Opțiuni → LibreOffice → Avansat”.</string> - <string name="requirements_network_connection">Dispozitivul cu Android și calculatorul să fiu conectate în aceeași rețea.</string> - <string name="requirements_network_ports">În firewall trebuie deschise porturile 1598 și 1599.</string> - <string name="requirements_bluetooth_connection">Calculator cu Bluetooth</string> -</resources> diff --git a/android/sdremote/res/values-ru/strings.xml b/android/sdremote/res/values-ru/strings.xml deleted file mode 100644 index 779865104a91..000000000000 --- a/android/sdremote/res/values-ru/strings.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Пульт ДУ Impress</string> - <string name="title_computers">Компьютеры</string> - <string name="title_generic">Общие</string> - <string name="title_licenses">Лицензии</string> - <string name="title_settings">Настройки</string> - <string name="title_requirements">Требования</string> - <string name="title_connection">Подключение</string> - <string name="title_creation">Создание</string> - <string name="title_slide_show">Демонстрация</string> - <string name="title_timer">Таймер</string> - <string name="menu_licenses">Лицензии</string> - <string name="menu_settings">Настройки</string> - <string name="menu_requirements">Требования</string> - <string name="menu_reconnect">Переподключить</string> - <string name="menu_add_computer">Добавить компьютер</string> - <string name="menu_remove_computer">Удалить компьютер</string> - <string name="menu_slides_grid">Слайды сеткой</string> - <string name="menu_slides_pager">Слайды постранично</string> - <string name="menu_timer">Таймер</string> - <string name="menu_stop_slide_show">Остановить</string> - <string name="menu_pause_slide_show">Пауза</string> - <string name="menu_resume_slide_show">Продолжить</string> - <string name="button_cancel">Отмена</string> - <string name="button_save">Сохранить</string> - <string name="button_start">Начать</string> - <string name="button_remove">Удалить</string> - <string name="message_impress_pin_validation">В LibreOffice Impress выполните «Демонстрация → Пульт ДУ Impress» и введите код.</string> - <string name="message_connection_failed_title">Сбой подключения</string> - <string name="message_impress_remote_enabling">Убедитесь, что дистанционное управление разрешено в «Сервис → Параметры → LibreOffice Impress → Общие» в LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Также, необходимо разрешить экспериментальные возможности в «Сервис → Параметры → Расширенные возможности.</string> - <string name="message_impress_pairing_check">При трудностях с соединением Bluetooth обратитесь к инструкциям операционной системы компьютера.</string> - <string name="message_ip_address_validation">Введите правильный адрес IP.</string> - <string name="message_time_is_up">Время вышло!</string> - <string name="message_search_wifi">Убедитесь, что LibreOffice запущен на компьютере в той же сети WiFi.</string> - <string name="message_search_bluetooth">Убедитесь, что LibreOffice запущен на компьютере с включённым Bluetooth.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Подробнее</a> - </string> - <string name="message_paused">Пауза</string> - <string name="message_notes_empty">Пусто.</string> - <string name="hint_ip_address">Адрес IP</string> - <string name="hint_name">Имя (необязательно)</string> - <string name="header_notes">Примечания</string> - <string name="mask_slide_show_progress">Слайд %1$d из %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Осталась минута</item> - <item quantity="few">Осталось %d минуты</item> - <item quantity="many">Осталось %d минут</item> - <item quantity="other"/> - </plurals> - <string name="description_pager_slide">Просмотр слайдов</string> - <string name="description_grid_slide">Просмотр слайдов</string> - <string name="description_empty_slide">Пустой слайд</string> - <string name="preferences_volume_keys_actions_title">Функции клавиш громкости</string> - <string name="preferences_volume_keys_actions_summary">Смена слайдов с анимацией клавишами громкости</string> - <string name="preferences_keep_screen_on_title">Не гасить экран</string> - <string name="preferences_keep_screen_on_summary">Не давать телефону засыпать при демонстрации</string> - <string name="preferences_quiet_mode_title">Тихий режим</string> - <string name="preferences_quiet_mode_summary">Установить режим вибрации при демонстрации</string> - <string name="requirements_libreoffice_version">На компьютере установлен LibreOffice версии 4.0.3 или выше.</string> - <string name="requirements_libreoffice_general_enabled">Дистанционное упраление Impress включено в «Сервис → Параметры → LibreOffice Impress → Общие» в LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Включены экспериментальные возможности в «Сервис → Параметры → LibreOffice → Расширенные возможности» в LibreOffice.</string> - <string name="requirements_network_connection">Устройство Android и компьютер, поключеные к одной сети.</string> - <string name="requirements_network_ports">Если включен фаеревол, порты 1598 и 1599 должны быть открыты.</string> - <string name="requirements_bluetooth_connection">Компьютер с включённым Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-sk/strings.xml b/android/sdremote/res/values-sk/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-sk/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-sl/strings.xml b/android/sdremote/res/values-sl/strings.xml deleted file mode 100644 index 354b66c37317..000000000000 --- a/android/sdremote/res/values-sl/strings.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Daljinec za Impress</string> - <string name="title_computers">Računalniki</string> - <string name="title_generic">Splošno</string> - <string name="title_licenses">Odprto-kodna dovoljenja</string> - <string name="title_settings">Nastavitve</string> - <string name="title_requirements">Zahteve</string> - <string name="title_connection">Povezava</string> - <string name="title_creation">Ustvarjanje</string> - <string name="title_slide_show">Projekcija</string> - <string name="title_timer">Štoparica</string> - <string name="menu_licenses">Odprto-kodna dovoljenja</string> - <string name="menu_settings">Nastavitve</string> - <string name="menu_requirements">Zahteve</string> - <string name="menu_reconnect">Znova poveži</string> - <string name="menu_add_computer">Dodaj računalnik</string> - <string name="menu_remove_computer">Odstrani</string> - <string name="menu_slides_grid">Mrežni pogled</string> - <string name="menu_slides_pager">Kalejdoskop prosojnic</string> - <string name="menu_timer">Štoparica</string> - <string name="menu_stop_slide_show">Ustavi projekcijo</string> - <string name="menu_pause_slide_show">Začasno prekini projekcijo</string> - <string name="menu_resume_slide_show">Nadaljuj s projekcijo</string> - <string name="button_cancel">Prekliči</string> - <string name="button_save">Shrani</string> - <string name="button_start">Začni</string> - <string name="button_remove">Odstrani</string> - <string name="message_impress_pin_validation">V LibreOffice Impress pojdite na \"Projekcija → Daljinec za Impress\" in vnesite kodo.</string> - <string name="message_connection_failed_title">Povezava ni uspela</string> - <string name="message_impress_remote_enabling">Preverite, da ste omogočili daljinec. Odprite \"Orodja → Možnosti → LibreOffice Impress → Splošno\" v LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Prav tako omogočite poskusne funkcionalnosti v \"Orodja → Možnosti → LibreOffice → Napredno\".</string> - <string name="message_impress_pairing_check">Če imate težave pri ujemanju naprav prek vmesnika Bluetooth, preverite napotke svojega namiznega operacijskega sistema.</string> - <string name="message_ip_address_validation">Vnesite veljaven naslov IP.</string> - <string name="message_time_is_up">Čas je potekel!</string> - <string name="message_search_wifi">Zagotovite, da je LibreOffice zagnan na računalniku v istem brezžičnem omrežju.</string> - <string name="message_search_bluetooth">Zagotovite, da je LibreOffice zagnan na računalniku z omogočenim vmesnikom Bluetooth.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Več o tem</a> - </string> - <string name="message_paused">Začasno prekinjeno</string> - <string name="message_notes_empty">Tukaj ni ničesar.</string> - <string name="hint_ip_address">Naslov IP</string> - <string name="hint_name">Ime (neobvezno)</string> - <string name="header_notes">Opombe</string> - <string name="mask_slide_show_progress">Prosojnica %1$d od %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Še %d minut</item> - <item quantity="two">Še %d minuta</item> - <item quantity="few">Še %d minuti</item> - <item quantity="other">Še %d minute</item> - </plurals> - <string name="description_pager_slide">Predogled prosojnice</string> - <string name="description_grid_slide">Predogled prosojnice</string> - <string name="description_empty_slide">Prazna prosojnica</string> - <string name="preferences_volume_keys_actions_title">Dejanja tipk za glasnost</string> - <string name="preferences_volume_keys_actions_summary">S tipkama za glasnost preklopi med prosojnicami in sproži animacije.</string> - <string name="preferences_keep_screen_on_title">Obdrži prižgan zaslon</string> - <string name="preferences_keep_screen_on_summary">Prepreči, da telefon med predstavitvijo preklopi v spanje</string> - <string name="preferences_quiet_mode_title">Tihi način</string> - <string name="preferences_quiet_mode_summary">Nastavi, da telefon med predstavitvijo vibrira</string> - <string name="requirements_libreoffice_version">Na računalniku nameščen LibreOffice različice 4.0.3 ali novejši.</string> - <string name="requirements_libreoffice_general_enabled">V LibreOffice Impress omogočen Daljinec za Impress, v \"Orodja → Možnosti → LibreOffice Impress → Splošno\".</string> - <string name="requirements_libreoffice_experimental_enabled">V LibreOffice Impress omogočene poskusne funkcionalnosti v \"Orodja → Možnosti → LibreOffice → Napredno\".</string> - <string name="requirements_network_connection">Napravo Android in računalnik, priključena na isto omrežje.</string> - <string name="requirements_network_ports">Če imate požarni zid, preverite, da sta vrati 1598 in 1599 odprti.</string> - <string name="requirements_bluetooth_connection">Računalnik z omogočenim vmesnikom Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-sr/strings.xml b/android/sdremote/res/values-sr/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-sr/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-sv/strings.xml b/android/sdremote/res/values-sv/strings.xml deleted file mode 100644 index 8fbcb6773c9c..000000000000 --- a/android/sdremote/res/values-sv/strings.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress-fjärrkontroll</string> - <string name="title_computers">Datorer</string> - <string name="title_generic">Allmänt</string> - <string name="title_licenses">Licenser (öppen källkod)</string> - <string name="title_settings">Inställningar</string> - <string name="title_requirements">Systemkrav</string> - <string name="title_connection">Anslutning</string> - <string name="title_creation">Upprättning</string> - <string name="title_slide_show">Presentation</string> - <string name="title_timer">Tidtagarur</string> - <string name="menu_licenses">Licenser (öppen källkod)</string> - <string name="menu_settings">Inställningar</string> - <string name="menu_requirements">Systemkrav</string> - <string name="menu_reconnect">Återanslut</string> - <string name="menu_add_computer">Lägg till dator</string> - <string name="menu_remove_computer">Ta bort</string> - <string name="menu_slides_grid">Bildrutnät</string> - <string name="menu_slides_pager">Bildbytare</string> - <string name="menu_timer">Tidtagarur</string> - <string name="menu_stop_slide_show">Stoppa presentation</string> - <string name="menu_pause_slide_show">Pausa presentation</string> - <string name="menu_resume_slide_show">Återuppta presentation</string> - <string name="button_cancel">Avbryt</string> - <string name="button_save">Spara</string> - <string name="button_start">Start</string> - <string name="button_remove">Ta bort</string> - <string name="message_impress_pin_validation">Gå till ”Presentation → Impress fjärrkontroll” i LibreOffice Impress och skriv in koden.</string> - <string name="message_connection_failed_title">Anslutningen misslyckades</string> - <string name="message_impress_remote_enabling">Försäkra dig om att du aktiverat fjärrkontrollen. Gå till ”Verktyg → Alternativ → LibreOffice Impress → Allmännt” i LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Du ska även aktivera experimentella funktioner under ”Verktyg → Alternativ → LibreOffice → Avancerat”.</string> - <string name="message_impress_pairing_check">Om du har problem att parkoppla via bluetooth så får du läsa de instruktioner som gäller för ditt operativsystem.</string> - <string name="message_ip_address_validation">Skriv in en giltig IP-adress.</string> - <string name="message_time_is_up">Tiden är ute!</string> - <string name="message_search_wifi">Försäkra dig om att LibreOffice körs på en dator i samma Wifi-nätverk.</string> - <string name="message_search_bluetooth">Försäkra dig om att LibreOffice körs på en dator där Bluetooth är aktiverat.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Lär dig mer</a> - </string> - <string name="message_paused">Pausad</string> - <string name="message_notes_empty">Ingenting här.</string> - <string name="hint_ip_address">IP-adress</string> - <string name="hint_name">Namn (valfritt)</string> - <string name="header_notes">Anteckningar</string> - <string name="mask_slide_show_progress">Bild %1$d av %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">En minut kvar</item> - <item quantity="other">%d minuter kvar</item> - </plurals> - <string name="description_pager_slide">Förhandsvisning av bild</string> - <string name="description_grid_slide">Förhandsvisning av bild</string> - <string name="description_empty_slide">Tom bild</string> - <string name="preferences_volume_keys_actions_title">Funktioner för volymknappar</string> - <string name="preferences_volume_keys_actions_summary">Byt bilder och aktivera animeringar genom att använda volymknapparna</string> - <string name="preferences_keep_screen_on_title">Behåll skärmen på</string> - <string name="preferences_keep_screen_on_summary">Förhindra att telefonen försätts i sovläge under presentationen</string> - <string name="preferences_quiet_mode_title">Tyst läge</string> - <string name="preferences_quiet_mode_summary">Aktivera telefonens vibrator under presentationen</string> - <string name="requirements_libreoffice_version">LibreOffice version 4.0.3 eller senare körs på en dator.</string> - <string name="requirements_libreoffice_general_enabled">Impress-fjärrkontroll aktiverad under ”Verktyg → Alternativ → LibreOffice Impress → Allmänt” i LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Experimentella funktioner aktiverade under ”Verktyg → Alternativ → LibreOffice → Avancerat” i LibreOffice Impress.</string> - <string name="requirements_network_connection">Android-enheten och en dator är anslutna till samma nätverk.</string> - <string name="requirements_network_ports">Om du har en brandvägg ska portarna 1598 och 1599 vara öppna.</string> - <string name="requirements_bluetooth_connection">En dator med Bluetooth aktiverat.</string> -</resources> diff --git a/android/sdremote/res/values-th/strings.xml b/android/sdremote/res/values-th/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-th/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-tr/strings.xml b/android/sdremote/res/values-tr/strings.xml deleted file mode 100644 index 3d80d0c1a900..000000000000 --- a/android/sdremote/res/values-tr/strings.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Uzaktan Kumanda</string> - <string name="title_computers">Bilgisayarlar</string> - <string name="title_generic">Genel</string> - <string name="title_licenses">Açık kaynak lisansları</string> - <string name="title_settings">Ayarlar</string> - <string name="title_requirements">Gereksinimler</string> - <string name="title_connection">Bağlantı</string> - <string name="title_creation">Oluşturma</string> - <string name="title_slide_show">Slayt gösterisi</string> - <string name="title_timer">Zamanlayıcı</string> - <string name="menu_licenses">Açık kaynak lisansları</string> - <string name="menu_settings">Ayarlar</string> - <string name="menu_requirements">Gereksinimler</string> - <string name="menu_reconnect">Yeniden bağlan</string> - <string name="menu_add_computer">Bilgisayar ekle</string> - <string name="menu_remove_computer">Kaldır</string> - <string name="menu_slides_grid">Slayt ızgarası</string> - <string name="menu_slides_pager">Slayt sayfalayıcı</string> - <string name="menu_timer">Zamanlayıcı</string> - <string name="menu_stop_slide_show">Slayt gösterisini durdur</string> - <string name="menu_pause_slide_show">Slayt gösterisini beklet</string> - <string name="menu_resume_slide_show">Slayt gösterisine dön</string> - <string name="button_cancel">İptal</string> - <string name="button_save">Kaydet</string> - <string name="button_start">Başlat</string> - <string name="button_remove">Kaldır</string> - <string name="message_impress_pin_validation">LibreOffice Impress\'de \"Slayt Gösterisi → Impress Uzaktan Kumanda\" yolunu takip edin ve aşağıdaki kodu girin.</string> - <string name="message_connection_failed_title">Bağlantı başarısız oldu</string> - <string name="message_impress_remote_enabling">Uzaktan erişimi etkinleştirdiğinizden emin olun. LibreOffice Impress\'te bunu yapmak için \"Araçlar → Seçenekler → LibreOffice Impress → Genel” yolunu izleyiniz.</string> - <string name="message_impress_wifi_enabling">"Bunun yanında “Araçlar → Seçenekler → LibreOffice → Gelişmiş” yolunu izleyerek deneysel özellikleri de etkinleştirmelisiniz."</string> - <string name="message_impress_pairing_check">Eğer Bluetooth paylaşım sorununuz varsa masaüstü işletim sisteminizle ilgili talimatları kontrol edin.</string> - <string name="message_ip_address_validation">Geçerli bir IP adresi girin.</string> - <string name="message_time_is_up">Süre doldu!</string> - <string name="message_search_wifi">LibreOffice\'in aynı WiFi ağındaki bir bilgisayarda çalıştığından emin olun.</string> - <string name="message_search_bluetooth">LibreOffice\'in Bluetooth\'u etkinleştirilmiş bir bilgisayarda çalıştığından emin olun.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Daha fazlasını öğren</a> - </string> - <string name="message_paused">Beklet</string> - <string name="message_notes_empty">Burada bir şey yok.</string> - <string name="hint_ip_address">IP adresi</string> - <string name="hint_name">İsim (isteğe bağlı)</string> - <string name="header_notes">Notlar</string> - <string name="mask_slide_show_progress">%2$d slayttan %1$d slayt</string> - <plurals name="mask_timer_progress"> - <item quantity="other">Bir dakika kaldı%d dakika kaldı</item> - </plurals> - <string name="description_pager_slide">Slayt önizleme</string> - <string name="description_grid_slide">Slayt önizleme</string> - <string name="description_empty_slide">Boş slayt</string> - <string name="preferences_volume_keys_actions_title">Ses düğme eylemleri</string> - <string name="preferences_volume_keys_actions_summary">Ses düğmelerini kullanarak slayta geç ve canlandırmayı etkinleştir</string> - <string name="preferences_keep_screen_on_title">Ekranı açık tut</string> - <string name="preferences_keep_screen_on_summary">Sunum esnasında telefonu uyku kipine alma</string> - <string name="preferences_quiet_mode_title">Sessiz kip</string> - <string name="preferences_quiet_mode_summary">Sunum esnasında zil sesini titreşim olarak ayarla</string> - <string name="requirements_libreoffice_version">Bilgisayarda LibreOffice 4.0.3 veya daha üst sürüm çalışıyor.</string> - <string name="requirements_libreoffice_general_enabled">Impress Uzaktan Kumanda, LibreOffice Impress içerisinde \"Araçlar → Seçenekler → LibreOffice Impress → Genel\" yolu ile etkinleştirilir.</string> - <string name="requirements_libreoffice_experimental_enabled">Deneysel Özellikler \"Araçlar → Seçenekler → LimreOffice → Gelişmiş\" yolu ile etkinleştirilir.</string> - <string name="requirements_network_connection">Aynı şebekeye bağlanmış Android cihaz ve bilgisayar.</string> - <string name="requirements_network_ports">Eğer güvenlik duvarı kullanıyorsanız, 1598 ve 1599 numaralı bağlantı noktalarının açık olduğundan emin olun.</string> - <string name="requirements_bluetooth_connection">Bluetooth\'u etkinleştirilmiş bir bilgisayar.</string> -</resources> diff --git a/android/sdremote/res/values-uk/strings.xml b/android/sdremote/res/values-uk/strings.xml deleted file mode 100644 index 38b20bf0dc04..000000000000 --- a/android/sdremote/res/values-uk/strings.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress Remote</string> - <string name="title_computers">Комп’ютери</string> - <string name="title_generic">Загальне</string> - <string name="title_licenses">Ліцензії з відкритим кодом</string> - <string name="title_settings">Налаштування</string> - <string name="title_requirements">Вимоги</string> - <string name="title_connection">З\'єднання</string> - <string name="title_creation">Створення</string> - <string name="title_slide_show">Показ слайдів</string> - <string name="title_timer">Таймер</string> - <string name="menu_licenses">Ліцензії з відкритим кодом</string> - <string name="menu_settings">Налаштування</string> - <string name="menu_requirements">Вимоги</string> - <string name="menu_reconnect">Перез\'єднатися</string> - <string name="menu_add_computer">Додати комп\'ютер</string> - <string name="menu_remove_computer">Вилучити</string> - <string name="menu_slides_grid">Слайди сіткою</string> - <string name="menu_slides_pager">Слайди сторінкою</string> - <string name="menu_timer">Таймер</string> - <string name="menu_stop_slide_show">Припинити показ слайдів</string> - <string name="menu_pause_slide_show">Припинити показ слайдів</string> - <string name="menu_resume_slide_show">Відновити показ слайдів</string> - <string name="button_cancel">Скасувати</string> - <string name="button_save">Зберегти</string> - <string name="button_start">Початок</string> - <string name="button_remove">Вилучити</string> - <string name="message_impress_pin_validation">Перейдіть до “Показ слайдів → Impress Remote” у LibreOffice Impress та введіть код.</string> - <string name="message_connection_failed_title">Збій підключення</string> - <string name="message_impress_remote_enabling">Переконайтеся, що ви увімкнули дистанційне управління. Перейдіть до Go to “Засоби → Параметри → LibreOffice Impress → Загальні” у LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">Ви також можете увімкнути експериментальні можливості у “Засоби → Параметри → LibreOffice → Додатково”.</string> - <string name="message_impress_pairing_check">Якщо у вас наявні проблеми спарення пристроїв Bluetooth, то прочитайте вказівки з цього питання для вашої ОС.</string> - <string name="message_ip_address_validation">Введіть вірну IP-адресу.</string> - <string name="message_time_is_up">Час вийшов!</string> - <string name="message_search_wifi">Переконайтеся, що LibreOffice запущений на комп\'ютері у тій самій мережі Wi-Fi.</string> - <string name="message_search_bluetooth">Переконайтеся, що LibreOffice запущений на комп\'ютері з увімкненим Bluetooth.</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">Дізнатися більше</a> - </string> - <string name="message_paused">Призупинено</string> - <string name="message_notes_empty">Нічого.</string> - <string name="hint_ip_address">ІР-адреса</string> - <string name="hint_name">Назва (необов\'язкова)</string> - <string name="header_notes">Примітки</string> - <string name="mask_slide_show_progress">Слайд %1$d із %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">Одна хвилина лишилася</item> - <item quantity="few">%d хвилини лишилися</item> - <item quantity="many">%d хвилин лишилося</item> - <item quantity="other"/> - </plurals> - <string name="description_pager_slide">Перегляд слайду</string> - <string name="description_grid_slide">Перегляд слайду</string> - <string name="description_empty_slide">Порожній слайд</string> - <string name="preferences_volume_keys_actions_title">Дії клавіш гучності</string> - <string name="preferences_volume_keys_actions_summary">Перемикати слайди та задіяти анімації за допомогою клавіш гучності</string> - <string name="preferences_keep_screen_on_title">Зберігати екран увімкненим</string> - <string name="preferences_keep_screen_on_summary">Запобігає переходу у сплячий режим під час презентації</string> - <string name="preferences_quiet_mode_title">Тихий режим</string> - <string name="preferences_quiet_mode_summary">Установка режиму вібрації дзвінка під час презентації</string> - <string name="requirements_libreoffice_version">На комп\'ютері запущений LibreOffice версії 4.0.3 або вищої.</string> - <string name="requirements_libreoffice_general_enabled">Impress Remote увімкнено через “Засоби → Параметри → LibreOffice Impress → Загальні” у LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Експериментальні можливості увімкнені через “Засоби → Параметри → LibreOffice → Додатково” у LibreOffice Impress.</string> - <string name="requirements_network_connection">Пристрій на Андроїді і комп\'ютер з\'єднані з однаковою мережею.</string> - <string name="requirements_network_ports">Якщо у вас є брандмауер, то переконайтеся, що порти 1598 та 1599 - відкриті.</string> - <string name="requirements_bluetooth_connection">Комп\'ютер з увімкненим Bluetooth.</string> -</resources> diff --git a/android/sdremote/res/values-vi/strings.xml b/android/sdremote/res/values-vi/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-vi/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-xlarge/dimens.xml b/android/sdremote/res/values-xlarge/dimens.xml deleted file mode 100644 index 5771b36001ec..000000000000 --- a/android/sdremote/res/values-xlarge/dimens.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - - <dimen name="text_size_notes">22sp</dimen> - -</resources>
\ No newline at end of file diff --git a/android/sdremote/res/values-zh-rCN/strings.xml b/android/sdremote/res/values-zh-rCN/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-zh-rCN/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-zh-rHK/strings.xml b/android/sdremote/res/values-zh-rHK/strings.xml deleted file mode 100644 index 94edc23d4501..000000000000 --- a/android/sdremote/res/values-zh-rHK/strings.xml +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources/> diff --git a/android/sdremote/res/values-zh-rTW/strings.xml b/android/sdremote/res/values-zh-rTW/strings.xml deleted file mode 100644 index ea7d74e1f23f..000000000000 --- a/android/sdremote/res/values-zh-rTW/strings.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<resources> - <string name="application_name">Impress 遙控</string> - <string name="title_computers">電腦</string> - <string name="title_generic">一般</string> - <string name="title_licenses">開放源碼條款</string> - <string name="title_settings">設定</string> - <string name="title_requirements">系統需求</string> - <string name="title_connection">連線</string> - <string name="title_creation">建立</string> - <string name="title_slide_show">投影片放映</string> - <string name="title_timer">倒數計時</string> - <string name="menu_licenses">開放源碼條款</string> - <string name="menu_settings">設定</string> - <string name="menu_requirements">系統需求</string> - <string name="menu_reconnect">重新連接</string> - <string name="menu_add_computer">加入電腦</string> - <string name="menu_remove_computer">移除</string> - <string name="menu_slides_grid">投影片柵格</string> - <string name="menu_slides_pager">投影片傳呼</string> - <string name="menu_timer">計時器</string> - <string name="menu_stop_slide_show">停止投影片放映</string> - <string name="menu_pause_slide_show">暫停投影片放映</string> - <string name="menu_resume_slide_show">接續投影片放映</string> - <string name="button_cancel">取消</string> - <string name="button_save">儲存</string> - <string name="button_start">開始</string> - <string name="button_remove">移除</string> - <string name="message_impress_pin_validation">在 LibreOffice Impress 按下 [投影片放映 → Impress 遙控],接著輸入代碼。</string> - <string name="message_connection_failed_title">連線失敗</string> - <string name="message_impress_remote_enabling">請確認您已啟用遠端控制功能。前往 LibreOffice Impress 中的 [工具 → 選項 → LibreOffice Impress → 一般 之下啟用。</string> - <string name="message_impress_wifi_enabling">您應該也要啟用 [工具 → 選項 → LibreOffice → 進階] 之下的實驗性功能。</string> - <string name="message_impress_pairing_check">如果您發生藍牙配對問題,請檢查與您桌面作業系統相關的指示。</string> - <string name="message_ip_address_validation">請輸入有效的 IP 位址。</string> - <string name="message_time_is_up">時間到!</string> - <string name="message_search_wifi">請確認 LibreOffice 正在執行中,而且電腦連接到相同的 WiFi 網路上。</string> - <string name="message_search_bluetooth">請確認 LibreOffice 正在執行中,而且電腦已啟用藍牙。</string> - <string name="message_learn_more"> - <a href="org.libreoffice.impressremote://requirements/">深入瞭解</a> - </string> - <string name="message_paused">已暫停</string> - <string name="message_notes_empty">這裡沒有備註。</string> - <string name="hint_ip_address">IP 位址</string> - <string name="hint_name">名稱 (選用)</string> - <string name="header_notes">備註</string> - <string name="mask_slide_show_progress">投影片 %1$d / %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="other">剩餘 %d 分鐘</item> - </plurals> - <string name="description_pager_slide">投影片預覽</string> - <string name="description_grid_slide">投影片預覽</string> - <string name="description_empty_slide">空白投影片</string> - <string name="preferences_volume_keys_actions_title">音量鍵動作</string> - <string name="preferences_volume_keys_actions_summary">以音量鍵切換投影片與展現動畫</string> - <string name="preferences_keep_screen_on_title">螢幕保持開啟</string> - <string name="preferences_keep_screen_on_summary">防止手機在簡報途中待機</string> - <string name="preferences_quiet_mode_title">寧靜模式</string> - <string name="preferences_quiet_mode_summary">簡報時將手機設為震動模式</string> - <string name="requirements_libreoffice_version">電腦上正執行 LibreOffice 4.0.3 或以上版本。</string> - <string name="requirements_libreoffice_general_enabled">在 LibreOffice Impress 中的 [工具 → 選項 → LibreOffice Impress → 一般] 之下啟用 Impress 遠端控制。</string> - <string name="requirements_libreoffice_experimental_enabled">在 LibreOffice Impress 中的 [工具 → 選項 → LibreOffice → 進階] 之下啟用實驗性功能。</string> - <string name="requirements_network_connection">Android 裝置與電腦連接到相同的網路上。</string> - <string name="requirements_network_ports">如果您有防火牆,請確認連接埠 1598 與 1599 維持開放。</string> - <string name="requirements_bluetooth_connection">電腦已啟用藍牙。</string> -</resources> diff --git a/android/sdremote/res/values/colors.xml b/android/sdremote/res/values/colors.xml deleted file mode 100644 index d1e587611d02..000000000000 --- a/android/sdremote/res/values/colors.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<resources> - - <color name="background_action_bar">#e46f1f</color> - <color name="background_action_bar_tab_indicator">#e6821c</color> - <color name="background_action_bar_divider">#55ffffff</color> - <color name="background_header">@color/background_action_bar</color> - <color name="background_slide_index">#7f000000</color> - <color name="background_slide_empty">@android:color/black</color> - - <color name="stroke_grid_slide">#65000000</color> - <color name="stroke_pager_slide">#35000000</color> - -</resources>
\ No newline at end of file diff --git a/android/sdremote/res/values/dimens.xml b/android/sdremote/res/values/dimens.xml deleted file mode 100644 index 6862d4fd4568..000000000000 --- a/android/sdremote/res/values/dimens.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<resources> - - <dimen name="text_size_notes">14sp</dimen> - - <!-- It is a good practice to follow official design metrics. --> - <!-- http://developer.android.com/design/style/metrics-grids.html --> - - <dimen name="padding_action_bar_button_drawable">8dp</dimen> - <dimen name="padding_creation_layout">16dp</dimen> - <dimen name="padding_slides_grid">4dp</dimen> - <dimen name="padding_slides_pager">16dp</dimen> - <dimen name="padding_slide">4dp</dimen> - <dimen name="padding_header_underline">4dp</dimen> - <dimen name="padding_header">8dp</dimen> - <dimen name="padding_slide_notes">8dp</dimen> - <dimen name="padding_help">16dp</dimen> - <dimen name="padding_section_item">8dp</dimen> - <dimen name="padding_empty_slide_layout">16dp</dimen> - - <dimen name="padding_horizontal_list">16dp</dimen> - <dimen name="padding_horizontal_list_item">8dp</dimen> - <dimen name="padding_horizontal_connection_layout">40dp</dimen> - <dimen name="padding_horizontal_action_bar_button">20dp</dimen> - <dimen name="padding_horizontal_action_bar_divider">12dp</dimen> - <dimen name="padding_horizontal_progress_layout">40dp</dimen> - - <dimen name="padding_vertical_pin">8dp</dimen> - <dimen name="padding_vertical_error_message">12dp</dimen> - <dimen name="padding_vertical_edit">8dp</dimen> - <dimen name="padding_vertical_progress_message">8dp</dimen> - <dimen name="padding_vertical_learn_more">4dp</dimen> - - <dimen name="margin_vertical_action_bar_divider">12dp</dimen> - <dimen name="margin_slide">8dp</dimen> - - <dimen name="width_action_bar_divider">0.5dp</dimen> - <dimen name="width_slides_grid_column">88dp</dimen> - - <dimen name="text_size_list_item">18sp</dimen> - <dimen name="text_size_pin">35sp</dimen> - <dimen name="text_size_error_title">20sp</dimen> - - <dimen name="spacing_slides_grid">4dp</dimen> - -</resources>
\ No newline at end of file diff --git a/android/sdremote/res/values/strings.xml b/android/sdremote/res/values/strings.xml deleted file mode 100644 index deca93b58b10..000000000000 --- a/android/sdremote/res/values/strings.xml +++ /dev/null @@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<resources> - - <string name="application_name">Impress Remote</string> - - <string name="title_computers">Computers</string> - <string name="title_generic">Generic</string> - <string name="title_bluetooth" translatable="false">Bluetooth</string> - <string name="title_wifi" translatable="false">WiFi</string> - <string name="title_licenses">Open source licenses</string> - <string name="title_settings">Settings</string> - <string name="title_requirements">Requirements</string> - <string name="title_connection">Connection</string> - <string name="title_creation">Creation</string> - <string name="title_slide_show">Slide show</string> - <string name="title_timer">Timer</string> - - <string name="menu_licenses">Open source licenses</string> - <string name="menu_settings">Settings</string> - <string name="menu_requirements">Requirements</string> - <string name="menu_reconnect">Reconnect</string> - <string name="menu_add_computer">Add computer</string> - <string name="menu_start_discovery">Start Discovery</string> - <string name="menu_remove_computer">Remove</string> - <string name="menu_slides_grid">Slides grid</string> - <string name="menu_slides_pager">Slides pager</string> - <string name="menu_timer">Timer</string> - <string name="menu_stop_slide_show">Stop slide show</string> - <string name="menu_pause_slide_show">Pause slide show</string> - <string name="menu_resume_slide_show">Resume slide show</string> - - <string name="button_cancel">Cancel</string> - <string name="button_save">Save</string> - <string name="button_start">Start</string> - <string name="button_remove">Remove</string> - - <string name="message_impress_pin_validation">Go to “Slide Show → Impress Remote” in LibreOffice Impress and enter the code.</string> - <string name="message_connection_failed_title">Connection failed</string> - <string name="message_impress_remote_enabling">Make sure you enabled remote control. Go to “Tools → Options → LibreOffice Impress → General” in LibreOffice Impress.</string> - <string name="message_impress_wifi_enabling">You should enable experimental features at “Tools → Options → LibreOffice → Advanced” as well.</string> - <string name="message_impress_pairing_check">If you have Bluetooth pairing issues check instructions related to your desktop OS.</string> - <string name="message_ip_address_validation">Type in a valid IP address.</string> - <string name="message_time_is_up">Time is up!</string> - <string name="message_search_wifi">Make sure LibreOffice is running on a computer on the same WiFi network.</string> - <string name="message_search_bluetooth">Make sure LibreOffice is running on a computer with Bluetooth enabled.</string> - <string name="message_learn_more"><a href="org.libreoffice.impressremote://requirements/">Learn more</a></string> - <string name="message_paused">Paused</string> - <string name="message_notes_empty">Nothing here.</string> - <string name="hint_ip_address">IP address</string> - <string name="hint_name">Name (optional)</string> - - <string name="header_notes">Notes</string> - - <string name="mask_slide_show_progress">Slide %1$d from %2$d</string> - <plurals name="mask_timer_progress"> - <item quantity="one">One minute left</item> - <item quantity="other">%d minutes left</item> - </plurals> - - <string name="description_pager_slide">Slide preview</string> - <string name="description_grid_slide">Slide preview</string> - <string name="description_empty_slide">Empty slide</string> - - <string name="preferences_volume_keys_actions_title">Volume keys actions</string> - <string name="preferences_volume_keys_actions_summary">Switch slides and activate animations using volume keys</string> - <string name="preferences_keep_screen_on_title">Keep screen on</string> - <string name="preferences_keep_screen_on_summary">Prevent phone from sleeping while presenting</string> - <string name="preferences_quiet_mode_title">Quiet mode</string> - <string name="preferences_quiet_mode_summary">Set up vibrate ringer mode while presenting</string> - - <string name="requirements_libreoffice_version">LibreOffice version 4.0.3 or higher running on a computer.</string> - <string name="requirements_libreoffice_general_enabled">Impress Remote enabled at “Tools → Options → LibreOffice Impress → General” in LibreOffice Impress.</string> - <string name="requirements_libreoffice_experimental_enabled">Experimental features enabled at “Tools → Options → LibreOffice → Advanced” in LibreOffice Impress.</string> - <string name="requirements_network_connection">The Android device and a computer connected to the same network.</string> - <string name="requirements_network_ports">If you have a firewall make sure ports 1598 and 1599 are opened.</string> - <string name="requirements_bluetooth_connection">A computer with enabled Bluetooth.</string> - -</resources> diff --git a/android/sdremote/res/values/styles.xml b/android/sdremote/res/values/styles.xml deleted file mode 100644 index 704642001127..000000000000 --- a/android/sdremote/res/values/styles.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<resources xmlns:tools="http://schemas.android.com/tools"> - - <style name="SectionHeader"> - <item name="android:textAllCaps" tools:targetApi="14">true</item> - <item name="android:textStyle">bold</item> - <item name="android:textColor">@color/background_header</item> - <item name="android:drawableBottom">@drawable/underline_header</item> - <item name="android:drawablePadding">@dimen/padding_header_underline</item> - <item name="android:paddingLeft">@dimen/padding_header</item> - <item name="android:paddingRight">@dimen/padding_header</item> - <item name="android:paddingTop">@dimen/padding_header</item> - <item name="android:layout_width">fill_parent</item> - <item name="android:layout_height">wrap_content</item> - </style> - - <style name="SectionItem"> - <item name="android:padding">@dimen/padding_section_item</item> - <item name="android:layout_width">fill_parent</item> - <item name="android:layout_height">wrap_content</item> - </style> - -</resources>
\ No newline at end of file diff --git a/android/sdremote/res/values/themes.xml b/android/sdremote/res/values/themes.xml deleted file mode 100644 index d2998dd9ab7d..000000000000 --- a/android/sdremote/res/values/themes.xml +++ /dev/null @@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools"> - - <style name="Theme.ImpressRemote" parent="Theme.AppCompat.Light.DarkActionBar"> - <item name="android:actionBarStyle" tools:targetApi="11">@style/Theme.ImpressRemote.ActionBar</item> - <item name="actionBarStyle">@style/Theme.ImpressRemote.ActionBar</item> - - <item name="android:actionBarTabStyle" tools:targetApi="11">@style/Theme.ImpressRemote.ActionBar.Tab</item> - <item name="actionBarTabStyle">@style/Theme.ImpressRemote.ActionBar.Tab</item> - </style> - - <style name="Theme.ImpressRemote.ActionBar" parent="Widget.AppCompat.Light.ActionBar.Solid.Inverse"> - <item name="android:background">@drawable/bg_action_bar</item> - - <item name="android:displayOptions" tools:targetApi="11">showTitle|showHome|homeAsUp|useLogo</item> - <item name="displayOptions">showTitle|showHome|homeAsUp|useLogo</item> - </style> - - <style name="Theme.ImpressRemote.ActionBar.Tab" parent="Widget.AppCompat.Light.ActionBar.TabView.Inverse"> - <item name="android:background">@drawable/bg_action_bar_tab</item> - </style> - - <style name="Theme.ImpressRemote.Computers" parent="Theme.ImpressRemote"> - <item name="android:actionBarStyle" tools:targetApi="11">@style/Theme.ImpressRemote.Computers.ActionBar</item> - <item name="actionBarStyle">@style/Theme.ImpressRemote.Computers.ActionBar</item> - </style> - - <style name="Theme.ImpressRemote.Computers.ActionBar" parent="Theme.ImpressRemote.ActionBar"> - <item name="android:navigationMode" tools:targetApi="11">tabMode</item> - <item name="navigationMode">tabMode</item> - - <item name="android:displayOptions" tools:targetApi="11">showHome|useLogo</item> - <item name="displayOptions">showHome|useLogo</item> - </style> - - <style name="Theme.ImpressRemote.ComputerCreation" parent="Theme.ImpressRemote"> - <item name="android:actionBarStyle" tools:targetApi="11">@style/Theme.ImpressRemote.ComputerCreation.ActionBar</item> - <item name="actionBarStyle">@style/Theme.ImpressRemote.ComputerCreation.ActionBar</item> - </style> - - <style name="Theme.ImpressRemote.ComputerCreation.ActionBar" parent="Theme.ImpressRemote.ActionBar"> - <item name="android:displayOptions" tools:targetApi="11">showCustom</item> - <item name="displayOptions">showCustom</item> - </style> - -</resources>
\ No newline at end of file diff --git a/android/sdremote/res/xml/preferences.xml b/android/sdremote/res/xml/preferences.xml deleted file mode 100644 index 676ce0978496..000000000000 --- a/android/sdremote/res/xml/preferences.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - - <CheckBoxPreference - android:key="volume_keys_actions" - android:defaultValue="true" - android:title="@string/preferences_volume_keys_actions_title" - android:summary="@string/preferences_volume_keys_actions_summary"/> - - <CheckBoxPreference - android:key="keep_screen_on" - android:defaultValue="true" - android:title="@string/preferences_keep_screen_on_title" - android:summary="@string/preferences_keep_screen_on_summary"/> - - <CheckBoxPreference - android:key="quiet_mode" - android:defaultValue="false" - android:title="@string/preferences_quiet_mode_title" - android:summary="@string/preferences_quiet_mode_summary"/> - -</PreferenceScreen>
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/activity/ComputerConnectionActivity.java b/android/sdremote/src/org/libreoffice/impressremote/activity/ComputerConnectionActivity.java deleted file mode 100644 index d2f50a4aef19..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/activity/ComputerConnectionActivity.java +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.activity; - -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.support.v7.app.ActionBarActivity; -import android.view.MenuItem; - -import org.libreoffice.impressremote.fragment.ComputerConnectionFragment; -import org.libreoffice.impressremote.util.Fragments; -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.communication.Server; - -public class ComputerConnectionActivity extends ActionBarActivity { - @Override - protected void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - - setUpHomeButton(); - setUpTitle(); - setUpFragment(); - } - - private void setUpHomeButton() { - getSupportActionBar().setHomeButtonEnabled(true); - } - - private void setUpTitle() { - String aComputerName = getComputer().getName(); - - getSupportActionBar().setSubtitle(aComputerName); - } - - private Server getComputer() { - return getIntent().getParcelableExtra(Intents.Extras.SERVER); - } - - private void setUpFragment() { - Server aComputer = getComputer(); - Fragment aFragment = ComputerConnectionFragment.newInstance(aComputer); - - Fragments.Operator.add(this, aFragment); - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case android.R.id.home: - navigateUp(); - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } - - private void navigateUp() { - finish(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/activity/ComputerCreationActivity.java b/android/sdremote/src/org/libreoffice/impressremote/activity/ComputerCreationActivity.java deleted file mode 100644 index dc4dcf0107ba..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/activity/ComputerCreationActivity.java +++ /dev/null @@ -1,152 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.activity; - -import android.app.Activity; -import android.content.Context; -import android.content.Intent; -import android.os.Bundle; -import android.support.v7.app.ActionBar; -import android.support.v7.app.ActionBarActivity; -import android.text.TextUtils; -import android.util.Patterns; -import android.view.KeyEvent; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.view.inputmethod.EditorInfo; -import android.widget.EditText; -import android.widget.TextView; - -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.R; - -public class ComputerCreationActivity extends ActionBarActivity implements View.OnClickListener, TextView.OnEditorActionListener { - @Override - protected void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - setContentView(R.layout.activity_computer_creation); - - setUpActionBar(); - setUpKeyboard(); - } - - private void setUpActionBar() { - View aActionBarView = buildCustomActionBarView(); - ActionBar.LayoutParams aActionBarParams = buildCustomActionBarLayoutParams(); - - getSupportActionBar().setCustomView(aActionBarView, aActionBarParams); - - getCancelButton().setOnClickListener(this); - getSaveButton().setOnClickListener(this); - } - - private View buildCustomActionBarView() { - Context aContext = getSupportActionBar().getThemedContext(); - LayoutInflater aInflater = LayoutInflater.from(aContext); - - return aInflater.inflate(R.layout.action_bar_computer_creation, null); - } - - private ActionBar.LayoutParams buildCustomActionBarLayoutParams() { - return new ActionBar.LayoutParams( - ViewGroup.LayoutParams.MATCH_PARENT, - ViewGroup.LayoutParams.MATCH_PARENT); - } - - private View getCancelButton() { - return getSupportActionBar().getCustomView().findViewById(R.id.button_cancel); - } - - private View getSaveButton() { - return getSupportActionBar().getCustomView().findViewById(R.id.button_save); - } - - @Override - public void onClick(View aView) { - if (aView.equals(getCancelButton())) { - cancelCreation(); - return; - } - - if (aView.equals(getSaveButton())) { - saveServer(); - } - } - - private void cancelCreation() { - finish(); - } - - private void saveServer() { - String aIpAddress = getText(getIpAddressEdit()); - String aName = getText(getNameEdit()); - - if (!isIpAddressValid(aIpAddress)) { - setUpIpAddressErrorMessage(); - return; - } - - if (TextUtils.isEmpty(aName)) { - aName = aIpAddress; - } - - finish(aIpAddress, aName); - } - - private String getText(EditText aEdit) { - return aEdit.getText().toString().trim(); - } - - private EditText getIpAddressEdit() { - return (EditText) findViewById(R.id.edit_ip_address); - } - - private EditText getNameEdit() { - return (EditText) findViewById(R.id.edit_name); - } - - private boolean isIpAddressValid(String aIpAddress) { - return Patterns.IP_ADDRESS.matcher(aIpAddress).matches(); - } - - private void setUpIpAddressErrorMessage() { - EditText aIpAddressEdit = getIpAddressEdit(); - - aIpAddressEdit.setError(getString(R.string.message_ip_address_validation)); - aIpAddressEdit.requestFocus(); - } - - private void finish(String aIpAddress, String aName) { - Intent aIntent = Intents.buildComputerCreationResultIntent(aIpAddress, aName); - setResult(Activity.RESULT_OK, aIntent); - - finish(); - } - - private void setUpKeyboard() { - getNameEdit().setOnEditorActionListener(this); - } - - @Override - public boolean onEditorAction(TextView aTextView, int aActionId, KeyEvent aKeyEvent) { - switch (aActionId) { - case EditorInfo.IME_ACTION_DONE: - saveServer(); - break; - - default: - break; - } - - return false; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/activity/ComputersActivity.java b/android/sdremote/src/org/libreoffice/impressremote/activity/ComputersActivity.java deleted file mode 100644 index 00d66bed04b5..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/activity/ComputersActivity.java +++ /dev/null @@ -1,207 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.activity; - -import android.bluetooth.BluetoothAdapter; -import android.content.Context; -import android.content.Intent; -import android.content.SharedPreferences; -import android.os.Bundle; -import android.support.v4.app.FragmentTransaction; -import android.support.v4.view.MenuItemCompat; -import android.support.v4.view.ViewPager; -import android.support.v7.app.ActionBar; -import android.support.v7.app.ActionBar.Tab; -import android.support.v7.app.ActionBarActivity; -import android.view.Menu; -import android.view.MenuItem; - -import org.libreoffice.impressremote.adapter.ComputersPagerAdapter; -import org.libreoffice.impressremote.fragment.ComputersFragment.Type; -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.R; - -public class ComputersActivity extends ActionBarActivity implements ActionBar.TabListener, ViewPager.OnPageChangeListener { - private static final int REQUEST_ENABLE_BT = 0; - private static final String SELECT_BLUETOOTH = "SELECT_BLUETOOTH"; - private static final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); - private static boolean disableBTOnQuit = btAdapter != null && !btAdapter.isEnabled(); - private static Tab btTab; - private static Tab wifiTab; - private boolean isInitializing; - private ComputersPagerAdapter computersPagerAdapter = new ComputersPagerAdapter(getSupportFragmentManager()); - - @Override - protected void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - isInitializing = true; - - setContentView(R.layout.activity_computers); - // Looks hacky but it seems to be the best way to set activity’s title - // different to application’s label. The other way is setting title - // to intents filter but it shows wrong label for recent apps screen then. - - ActionBar aActionBar = getSupportActionBar(); - - aActionBar.setTitle(R.string.title_computers); - aActionBar.setDisplayShowTitleEnabled(true); - - btTab = aActionBar.newTab().setTabListener(this) - .setText(R.string.title_bluetooth); - wifiTab = aActionBar.newTab().setTabListener(this) - .setText(R.string.title_wifi); - - if (btAdapter != null) { - computersPagerAdapter.addFragment(Type.BLUETOOTH); - aActionBar.addTab(btTab); - } - - computersPagerAdapter.addFragment(Type.WIFI); - - ViewPager aComputersPager = (ViewPager) findViewById(R.id.pager_computers); - aComputersPager.setAdapter(computersPagerAdapter); - aComputersPager.setOnPageChangeListener(this); - - // select wifitab - onStart() decides whether BT-Tab should be selected - // when the user starts the remote (and thus trigger the BT-enable - // intent in case BT was disabled) - isInitializing = false; - aActionBar.addTab(wifiTab, true); - } - - protected void onActivityResult(int requestCode, int resultCode, Intent data) { - if (requestCode == REQUEST_ENABLE_BT) { - if (resultCode != RESULT_OK) { - getSupportActionBar().selectTab(wifiTab); - } - } - } - - @Override - public void onTabSelected(Tab aTab, FragmentTransaction aTransaction) { - ((ViewPager) findViewById(R.id.pager_computers)).setCurrentItem(aTab - .getPosition()); - supportInvalidateOptionsMenu(); - if (isInitializing) { return; } - if (aTab.equals(btTab) && !btAdapter.isEnabled()) { - Intent enableBtIntent = new Intent( - BluetoothAdapter.ACTION_REQUEST_ENABLE); - startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); - } - } - - @Override - public void onTabUnselected(ActionBar.Tab aTab, FragmentTransaction aTransaction) { - } - - @Override - public void onTabReselected(ActionBar.Tab aTab, FragmentTransaction aTransaction) { - } - - @Override - public void onPageSelected(int aPosition) { - getSupportActionBar().setSelectedNavigationItem(aPosition); - } - - @Override - public void onPageScrolled(int aPosition, float aPositionOffset, int aPositionOffsetPixels) { - } - - @Override - public void onPageScrollStateChanged(int aPosition) { - } - - @Override - public boolean onCreateOptionsMenu(Menu aMenu) { - getMenuInflater().inflate(R.menu.menu_action_bar_computers, aMenu); - - return true; - } - - @Override - public boolean onPrepareOptionsMenu(Menu aMenu) { - aMenu.findItem(R.id.menu_add_computer) - .setVisible(getSupportActionBar().getSelectedTab().equals(wifiTab)); - - MenuItem btDiscovery = aMenu.findItem(R.id.menu_start_discovery); - if( btAdapter != null && btAdapter.isDiscovering()) { - btDiscovery.setEnabled(false); - MenuItemCompat.setActionView(btDiscovery, R.layout.progress); - } - btDiscovery.setVisible(getSupportActionBar().getSelectedTab().equals(btTab)); - - return super.onPrepareOptionsMenu(aMenu); - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case R.id.menu_settings: - callSettingsActivity(); - return true; - - case R.id.menu_requirements: - callRequirementsActivity(); - return true; - - case R.id.menu_licenses: - callLicensesActivity(); - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } - - private void callSettingsActivity() { - Intent aIntent = Intents.buildSettingsIntent(this); - startActivity(aIntent); - } - - private void callRequirementsActivity() { - Intent aIntent = Intents.buildRequirementsIntent(this); - startActivity(aIntent); - } - - private void callLicensesActivity() { - Intent aIntent = Intents.buildLicensesIntent(this); - startActivity(aIntent); - } - - @Override - protected void onStop() { - super.onStop(); - - SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE); - SharedPreferences.Editor editor = sharedPref.edit(); - editor.putBoolean(SELECT_BLUETOOTH, getSupportActionBar() - .getSelectedTab().equals(btTab)); - editor.commit(); - } - - @Override - protected void onStart() { - super.onStart(); - - SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE); - if (sharedPref.getBoolean(SELECT_BLUETOOTH, btAdapter != null)) { - getSupportActionBar().selectTab(btTab); - } - } - - @Override - protected void onDestroy() { - super.onDestroy(); - if (isFinishing() && disableBTOnQuit) { - btAdapter.disable(); - } - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/activity/LicensesActivity.java b/android/sdremote/src/org/libreoffice/impressremote/activity/LicensesActivity.java deleted file mode 100644 index 40b708b7a112..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/activity/LicensesActivity.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.activity; - -import android.content.ContentResolver; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager.NameNotFoundException; -import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; -import android.view.MenuItem; -import android.widget.TextView; - -import org.libreoffice.impressremote.R; - -public class LicensesActivity extends ActionBarActivity { - - @Override - protected void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - setContentView(R.layout.activity_licenses); - - getSupportActionBar().setHomeButtonEnabled(true); - - try { - PackageInfo info = getPackageManager().getPackageInfo( - getPackageName(), 0); - ((TextView) findViewById(R.id.version)).setText( - "Version: " + info.versionName + - " (Build ID: "+info.versionCode +")"); - } catch (NameNotFoundException e) { - // ignore - } - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case android.R.id.home: - navigateUp(); - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } - - private void navigateUp() { - finish(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/activity/RequirementsActivity.java b/android/sdremote/src/org/libreoffice/impressremote/activity/RequirementsActivity.java deleted file mode 100644 index f098060d62ae..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/activity/RequirementsActivity.java +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.activity; - -import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; -import android.view.MenuItem; - -import org.libreoffice.impressremote.R; - -public class RequirementsActivity extends ActionBarActivity { - @Override - protected void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - setContentView(R.layout.activity_requirements); - - setUpHomeButton(); - } - - private void setUpHomeButton() { - getSupportActionBar().setHomeButtonEnabled(true); - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case android.R.id.home: - navigateUp(); - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } - - private void navigateUp() { - finish(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/activity/SettingsActivity.java b/android/sdremote/src/org/libreoffice/impressremote/activity/SettingsActivity.java deleted file mode 100644 index b7964299be92..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/activity/SettingsActivity.java +++ /dev/null @@ -1,38 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.activity; - -import android.os.Bundle; -import android.preference.PreferenceActivity; -import android.view.MenuItem; - -import org.libreoffice.impressremote.R; - -public class SettingsActivity extends PreferenceActivity { - @Override - protected void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - - addPreferencesFromResource(R.xml.preferences); - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case android.R.id.home: - finish(); - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/activity/SlideShowActivity.java b/android/sdremote/src/org/libreoffice/impressremote/activity/SlideShowActivity.java deleted file mode 100644 index d7de9a330c7e..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/activity/SlideShowActivity.java +++ /dev/null @@ -1,590 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.activity; - -import android.content.BroadcastReceiver; -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.ServiceConnection; -import android.media.AudioManager; -import android.os.Bundle; -import android.os.IBinder; -import android.support.v4.app.DialogFragment; -import android.support.v4.app.Fragment; -import android.support.v4.content.LocalBroadcastManager; -import android.support.v7.app.ActionBar; -import android.support.v7.app.ActionBarActivity; -import android.view.KeyEvent; -import android.view.Menu; -import android.view.MenuItem; - -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.communication.CommunicationService; -import org.libreoffice.impressremote.communication.SlideShow; -import org.libreoffice.impressremote.communication.Timer; -import org.libreoffice.impressremote.fragment.EmptySlideFragment; -import org.libreoffice.impressremote.fragment.SlidesGridFragment; -import org.libreoffice.impressremote.fragment.SlidesPagerFragment; -import org.libreoffice.impressremote.fragment.TimerEditingDialog; -import org.libreoffice.impressremote.fragment.TimerSettingDialog; -import org.libreoffice.impressremote.util.Fragments; -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.util.Preferences; -import org.libreoffice.impressremote.util.SavedStates; - -public class SlideShowActivity extends ActionBarActivity implements ServiceConnection { - public static enum Mode { - PAGER, GRID, EMPTY - } - - private Mode mMode; - - private int mRingerMode; - - private CommunicationService mCommunicationService; - private IntentsReceiver mIntentsReceiver; - - @Override - protected void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - - mMode = loadMode(aSavedInstanceState); - - setUpHomeButton(); - setUpFragment(); - setUpKeepingScreenOn(); - - saveRingerMode(aSavedInstanceState); - enableQuietMode(); - - bindService(); - } - - private Mode loadMode(Bundle aSavedInstanceState) { - if (aSavedInstanceState == null) { - return Mode.PAGER; - } - - return (Mode) aSavedInstanceState.getSerializable(SavedStates.Keys.MODE); - } - - private void setUpHomeButton() { - getSupportActionBar().setHomeButtonEnabled(true); - } - - private void setUpFragment() { - Fragments.Operator.replaceAnimated(this, buildFragment()); - } - - private Fragment buildFragment() { - switch (mMode) { - case PAGER: - return SlidesPagerFragment.newInstance(); - - case GRID: - return SlidesGridFragment.newInstance(); - - case EMPTY: - return EmptySlideFragment.newInstance(); - - default: - return SlidesPagerFragment.newInstance(); - } - } - - private void setUpKeepingScreenOn() { - findViewById(android.R.id.content).setKeepScreenOn(isKeepingScreenOnRequired()); - } - - private boolean isKeepingScreenOnRequired() { - Preferences aPreferences = Preferences.getSettingsInstance(this); - - return aPreferences.getBoolean(Preferences.Keys.KEEP_SCREEN_ON); - } - - private void saveRingerMode(Bundle aSavedInstanceState) { - if (aSavedInstanceState == null) { - mRingerMode = getAudioManager().getRingerMode(); - } else { - mRingerMode = aSavedInstanceState.getInt(SavedStates.Keys.RINGER_MODE); - } - } - - private AudioManager getAudioManager() { - return (AudioManager) getSystemService(AUDIO_SERVICE); - } - - private void enableQuietMode() { - if (!isQuietModeRequired()) { - return; - } - - getAudioManager().setRingerMode(AudioManager.RINGER_MODE_VIBRATE); - } - - private boolean isQuietModeRequired() { - Preferences aPreferences = Preferences.getSettingsInstance(this); - - return aPreferences.getBoolean(Preferences.Keys.QUIET_MODE); - } - - private void bindService() { - Intent aIntent = Intents.buildCommunicationServiceIntent(this); - bindService(aIntent, this, Context.BIND_AUTO_CREATE); - } - - @Override - public void onServiceConnected(ComponentName mComponentName, IBinder aBinder) { - CommunicationService.ServiceBinder aServiceBinder = (CommunicationService.ServiceBinder) aBinder; - mCommunicationService = aServiceBinder.getService(); - - startSlideShow(); - resumeTimer(); - } - - private void startSlideShow() { - if (!isServiceBound()) { - return; - } - - if (mCommunicationService.getSlideShow().isRunning()) { - setUpSlideShowInformation(); - return; - } - - mCommunicationService.getCommandsTransmitter().startPresentation(); - } - - private void resumeTimer() { - if (!isServiceBound()) { - return; - } - - mCommunicationService.getSlideShow().getTimer().resume(); - } - - @Override - protected void onStart() { - super.onStart(); - - resumeTimer(); - - registerIntentsReceiver(); - } - - private void registerIntentsReceiver() { - mIntentsReceiver = new IntentsReceiver(this); - IntentFilter aIntentFilter = buildIntentsReceiverFilter(); - - getBroadcastManager().registerReceiver(mIntentsReceiver, aIntentFilter); - } - - private static final class IntentsReceiver extends BroadcastReceiver { - private final SlideShowActivity mSlideShowActivity; - - private IntentsReceiver(SlideShowActivity aSlideShowActivity) { - mSlideShowActivity = aSlideShowActivity; - } - - @Override - public void onReceive(Context aContext, Intent aIntent) { - if (Intents.Actions.SLIDE_SHOW_MODE_CHANGED.equals(aIntent.getAction())) { - Mode aMode = (Mode) aIntent.getSerializableExtra(Intents.Extras.MODE); - mSlideShowActivity.changeMode(aMode); - return; - } - - if (Intents.Actions.SLIDE_CHANGED.equals(aIntent.getAction())) { - mSlideShowActivity.setUpSlideShowInformation(); - return; - } - - if (Intents.Actions.TIMER_UPDATED.equals(aIntent.getAction())) { - mSlideShowActivity.setUpSlideShowInformation(); - return; - } - - if (Intents.Actions.TIMER_STARTED.equals(aIntent.getAction())) { - int aMinutesLength = aIntent.getIntExtra(Intents.Extras.MINUTES, 0); - mSlideShowActivity.startTimer(aMinutesLength); - mSlideShowActivity.setUpSlideShowInformation(); - return; - } - - if (Intents.Actions.TIMER_RESUMED.equals(aIntent.getAction())) { - mSlideShowActivity.resumeTimer(); - return; - } - - if (Intents.Actions.TIMER_CHANGED.equals(aIntent.getAction())) { - int aMinutesLength = aIntent.getIntExtra(Intents.Extras.MINUTES, 0); - mSlideShowActivity.changeTimer(aMinutesLength); - mSlideShowActivity.resumeTimer(); - mSlideShowActivity.setUpSlideShowInformation(); - } - } - } - - private IntentFilter buildIntentsReceiverFilter() { - IntentFilter aIntentFilter = new IntentFilter(); - aIntentFilter.addAction(Intents.Actions.SLIDE_SHOW_MODE_CHANGED); - aIntentFilter.addAction(Intents.Actions.SLIDE_CHANGED); - aIntentFilter.addAction(Intents.Actions.TIMER_UPDATED); - aIntentFilter.addAction(Intents.Actions.TIMER_STARTED); - aIntentFilter.addAction(Intents.Actions.TIMER_RESUMED); - aIntentFilter.addAction(Intents.Actions.TIMER_CHANGED); - - return aIntentFilter; - } - - private LocalBroadcastManager getBroadcastManager() { - return LocalBroadcastManager.getInstance(getApplicationContext()); - } - - private void setUpSlideShowInformation() { - if (!isServiceBound()) { - return; - } - - ActionBar aActionBar = getSupportActionBar(); - - aActionBar.setTitle(buildSlideShowProgress()); - aActionBar.setSubtitle(buildSlideShowTimerProgress()); - } - - private boolean isServiceBound() { - return mCommunicationService != null; - } - - private String buildSlideShowProgress() { - SlideShow aSlideShow = mCommunicationService.getSlideShow(); - - int aCurrentSlideIndex = aSlideShow.getHumanCurrentSlideIndex(); - int aSlidesCount = aSlideShow.getSlidesCount(); - - return getString(R.string.mask_slide_show_progress, aCurrentSlideIndex, aSlidesCount); - } - - private String buildSlideShowTimerProgress() { - Timer aTimer = mCommunicationService.getSlideShow().getTimer(); - - if (!aTimer.isSet()) { - return null; - } - - if (aTimer.isTimeUp()) { - return getString(R.string.message_time_is_up); - } - - int aMinutesLeft = aTimer.getMinutesLeft(); - - return getResources().getQuantityString(R.plurals.mask_timer_progress, aMinutesLeft, aMinutesLeft); - } - - private void startTimer(int aMinutesLength) { - Timer aTimer = mCommunicationService.getSlideShow().getTimer(); - - aTimer.setMinutesLength(aMinutesLength); - aTimer.start(); - } - - private void changeTimer(int aMinutesLength) { - Timer aTimer = mCommunicationService.getSlideShow().getTimer(); - - if (aTimer.isTimeUp()) { - aTimer.reset(); - } - - aTimer.setMinutesLength(aMinutesLength); - } - - @Override - protected void onResume() { - super.onResume(); - - setUpSlideShowInformation(); - } - - @Override - public boolean onKeyDown(int aKeyCode, KeyEvent aKeyEvent) { - if (!areVolumeKeysActionsRequired()) { - return super.onKeyDown(aKeyCode, aKeyEvent); - } - - switch (aKeyCode) { - case KeyEvent.KEYCODE_VOLUME_UP: - if (!isLastSlideDisplayed()) { - mCommunicationService.getCommandsTransmitter().performNextTransition(); - } - return true; - - case KeyEvent.KEYCODE_VOLUME_DOWN: - mCommunicationService.getCommandsTransmitter().performPreviousTransition(); - return true; - - default: - return super.onKeyDown(aKeyCode, aKeyEvent); - } - } - - private boolean areVolumeKeysActionsRequired() { - Preferences aPreferences = Preferences.getSettingsInstance(this); - - return aPreferences.getBoolean(Preferences.Keys.VOLUME_KEYS_ACTIONS); - } - - private boolean isLastSlideDisplayed() { - int aCurrentSlideIndex = mCommunicationService.getSlideShow().getHumanCurrentSlideIndex(); - int aSlidesCount = mCommunicationService.getSlideShow().getSlidesCount(); - - return aCurrentSlideIndex == aSlidesCount; - } - - @Override - public boolean onKeyUp(int aKeyCode, KeyEvent aKeyEvent) { - if (!areVolumeKeysActionsRequired()) { - return super.onKeyUp(aKeyCode, aKeyEvent); - } - - // Suppress sound of volume changing - - switch (aKeyCode) { - case KeyEvent.KEYCODE_VOLUME_UP: - case KeyEvent.KEYCODE_VOLUME_DOWN: - return true; - - default: - return super.onKeyUp(aKeyCode, aKeyEvent); - } - } - - @Override - public boolean onCreateOptionsMenu(Menu aMenu) { - getMenuInflater().inflate(R.menu.menu_action_bar_slide_show, aMenu); - - return true; - } - - @Override - public boolean onPrepareOptionsMenu(Menu aMenu) { - MenuItem aSlidesPagerMenuItem = aMenu.findItem(R.id.menu_slides_pager); - MenuItem aSlidesGridMenuItem = aMenu.findItem(R.id.menu_slides_grid); - MenuItem aSlideShowResumeMenuItem = aMenu.findItem(R.id.menu_resume_slide_show); - - switch (mMode) { - case PAGER: - setMenuItemsVisibility(aMenu, true); - aSlidesPagerMenuItem.setVisible(false); - aSlidesGridMenuItem.setVisible(true); - aSlideShowResumeMenuItem.setVisible(false); - break; - - case GRID: - setMenuItemsVisibility(aMenu, true); - aSlidesPagerMenuItem.setVisible(true); - aSlidesGridMenuItem.setVisible(false); - aSlideShowResumeMenuItem.setVisible(false); - break; - - case EMPTY: - setMenuItemsVisibility(aMenu, false); - aSlideShowResumeMenuItem.setVisible(true); - break; - - default: - break; - } - - return super.onPrepareOptionsMenu(aMenu); - } - - private void setMenuItemsVisibility(Menu aMenu, boolean aAreItemsVisible) { - for (int aItemIndex = 0; aItemIndex < aMenu.size(); aItemIndex++) { - aMenu.getItem(aItemIndex).setVisible(aAreItemsVisible); - } - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case android.R.id.home: - navigateUp(); - return true; - - case R.id.menu_slides_grid: - changeMode(Mode.GRID); - return true; - - case R.id.menu_slides_pager: - changeMode(Mode.PAGER); - return true; - - case R.id.menu_timer: - callTimer(); - return true; - - case R.id.menu_resume_slide_show: - changeMode(Mode.PAGER); - setUpSlideShowInformation(); - resumeSlideShow(); - resumeTimer(); - return true; - - case R.id.menu_pause_slide_show: - changeMode(Mode.EMPTY); - setUpSlideShowPausedInformation(); - pauseSlideShow(); - pauseTimer(); - return true; - - case R.id.menu_stop_slide_show: - stopSlideShow(); - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } - - private void navigateUp() { - finish(); - } - - private void changeMode(Mode aMode) { - mMode = aMode; - - setUpFragment(); - refreshActionBarMenu(); - } - - private void refreshActionBarMenu() { - supportInvalidateOptionsMenu(); - } - - private void callTimer() { - Timer aTimer = mCommunicationService.getSlideShow().getTimer(); - - if (aTimer.isSet()) { - callEditingTimer(aTimer); - } else { - callSettingTimer(); - } - } - - private void callEditingTimer(Timer aTimer) { - DialogFragment aTimerDialog = buildTimerEditingDialog(aTimer); - aTimerDialog.show(getSupportFragmentManager(), TimerEditingDialog.TAG); - - pauseTimer(); - } - - private DialogFragment buildTimerEditingDialog(Timer aTimer) { - if (aTimer.isTimeUp()) { - return TimerEditingDialog.newInstance(aTimer.getMinutesLength()); - } else { - return TimerEditingDialog.newInstance(aTimer.getMinutesLeft()); - } - } - - private void callSettingTimer() { - DialogFragment aTimerDialog = TimerSettingDialog.newInstance(); - aTimerDialog.show(getSupportFragmentManager(), TimerSettingDialog.TAG); - } - - private void resumeSlideShow() { - mCommunicationService.getCommandsTransmitter().resumePresentation(); - } - - private void pauseSlideShow() { - mCommunicationService.getCommandsTransmitter().setUpBlankScreen(); - } - - private void setUpSlideShowPausedInformation() { - ActionBar aActionBar = getSupportActionBar(); - - aActionBar.setTitle(R.string.title_slide_show); - aActionBar.setSubtitle(R.string.message_paused); - } - - private void pauseTimer() { - mCommunicationService.getSlideShow().getTimer().pause(); - } - - private void stopSlideShow() { - mCommunicationService.getCommandsTransmitter().stopPresentation(); - - finish(); - } - - @Override - protected void onStop() { - super.onStop(); - - unregisterIntentsReceiver(); - } - - private void unregisterIntentsReceiver() { - try { - getBroadcastManager().unregisterReceiver(mIntentsReceiver); - } catch (IllegalArgumentException e) { - // Receiver not registered. - // Fixed in Honeycomb: Android’s issue #6191. - } - } - - @Override - protected void onSaveInstanceState(Bundle aOutState) { - super.onSaveInstanceState(aOutState); - - saveMode(aOutState); - rememberRingerMode(aOutState); - } - - private void saveMode(Bundle aOutState) { - aOutState.putSerializable(SavedStates.Keys.MODE, mMode); - } - - private void rememberRingerMode(Bundle aOutState) { - aOutState.putInt(SavedStates.Keys.RINGER_MODE, mRingerMode); - } - - @Override - protected void onDestroy() { - super.onDestroy(); - - disableQuietMode(); - - if (!isServiceBound()) { - return; - } - - unbindService(); - } - - private void disableQuietMode() { - if (!isQuietModeRequired()) { - return; - } - - getAudioManager().setRingerMode(mRingerMode); - } - - private void unbindService() { - unbindService(this); - } - - @Override - public void onServiceDisconnected(ComponentName aComponentName) { - mCommunicationService = null; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/adapter/ComputersAdapter.java b/android/sdremote/src/org/libreoffice/impressremote/adapter/ComputersAdapter.java deleted file mode 100644 index 9f16976fd24c..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/adapter/ComputersAdapter.java +++ /dev/null @@ -1,64 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.adapter; - -import java.util.List; - -import android.content.Context; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.ArrayAdapter; -import android.widget.TextView; - -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.communication.Server; - -public class ComputersAdapter extends ArrayAdapter<Server> { - private final LayoutInflater mLayoutInflater; - - public ComputersAdapter(Context aContext) { - super(aContext, R.layout.list_item); - - mLayoutInflater = LayoutInflater.from(aContext); - } - - @Override - public View getView(int aPosition, View aConvertView, ViewGroup aParentViewGroup) { - TextView aListItem = (TextView) getView(aConvertView, aParentViewGroup); - - aListItem.setText(buildListItemText(aPosition)); - - return aListItem; - } - - private View getView(View aConvertView, ViewGroup aParentViewGroup) { - if (aConvertView != null) { - return aConvertView; - } - - return mLayoutInflater.inflate(R.layout.list_item, aParentViewGroup, false); - } - - private String buildListItemText(int aPosition) { - return getItem(aPosition).getName(); - } - - public void add(List<Server> aServers) { - setNotifyOnChange(false); - - for (Server aServer : aServers) { - add(aServer); - } - - notifyDataSetChanged(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/adapter/ComputersPagerAdapter.java b/android/sdremote/src/org/libreoffice/impressremote/adapter/ComputersPagerAdapter.java deleted file mode 100644 index 0a09fd2f0736..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/adapter/ComputersPagerAdapter.java +++ /dev/null @@ -1,41 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.adapter; - -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentPagerAdapter; - -import org.libreoffice.impressremote.fragment.ComputersFragment; - -public class ComputersPagerAdapter extends FragmentPagerAdapter { - private int pager_size = 0; - private ComputersFragment.Type tabs[] = new ComputersFragment.Type[2]; - - public ComputersPagerAdapter(FragmentManager aFragmentManager) { - super(aFragmentManager); - } - - public void addFragment(ComputersFragment.Type type) { - tabs[pager_size] = type; - pager_size++; - } - - @Override - public Fragment getItem(int aPosition) { - return ComputersFragment.newInstance(tabs[aPosition]); - } - - @Override - public int getCount() { - return pager_size; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/adapter/SlidesGridAdapter.java b/android/sdremote/src/org/libreoffice/impressremote/adapter/SlidesGridAdapter.java deleted file mode 100644 index 19a5eea2cc0c..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/adapter/SlidesGridAdapter.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.adapter; - -import android.content.Context; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.BaseAdapter; -import android.widget.ImageView; -import android.widget.TextView; - -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.communication.SlideShow; -import org.libreoffice.impressremote.util.ImageLoader; - -public class SlidesGridAdapter extends BaseAdapter { - private final LayoutInflater mLayoutInflater; - private final ImageLoader mImageLoader; - - private final SlideShow mSlideShow; - - public SlidesGridAdapter(Context aContext, SlideShow aSlideShow) { - mLayoutInflater = LayoutInflater.from(aContext); - mImageLoader = new ImageLoader(aContext.getResources(), R.drawable.bg_slide_unknown); - - mSlideShow = aSlideShow; - } - - @Override - public int getCount() { - return mSlideShow.getSlidesCount(); - } - - @Override - public Object getItem(int aPosition) { - return mSlideShow.getSlidePreviewBytes(aPosition); - } - - @Override - public long getItemId(int aPosition) { - return aPosition; - } - - @Override - public View getView(int aPosition, View aConvertView, ViewGroup aViewGroup) { - View aSlideView = getView(aConvertView, aViewGroup); - ViewHolder aSlideViewHolder = getViewHolder(aSlideView); - - if (isSlidePreviewAvailable(aPosition)) { - setUpSlidePreview(aSlideViewHolder, aPosition); - } else { - setUpUnknownSlidePreview(aSlideViewHolder); - } - - aSlideViewHolder.mSlideIndex.setText(buildSlideIndex(aPosition)); - - return aSlideView; - } - - private View getView(View aConvertView, ViewGroup aViewGroup) { - if (aConvertView != null) { - return aConvertView; - } - - return mLayoutInflater.inflate(R.layout.view_grid_slide, aViewGroup, false); - } - - private ViewHolder getViewHolder(View aView) { - if (aView.getTag() == null) { - aView.setTag(buildViewHolder(aView)); - } - - return (ViewHolder) aView.getTag(); - } - - private static final class ViewHolder { - public ImageView mSlidePreview; - public TextView mSlideIndex; - } - - private ViewHolder buildViewHolder(View aView) { - ViewHolder aViewHolder = new ViewHolder(); - - aViewHolder.mSlidePreview = (ImageView) aView.findViewById(R.id.image_slide_preview); - aViewHolder.mSlideIndex = (TextView) aView.findViewById(R.id.text_slide_index); - - return aViewHolder; - } - - private boolean isSlidePreviewAvailable(int aSlideIndex) { - return mSlideShow.getSlidePreviewBytes(aSlideIndex) != null; - } - - private void setUpSlidePreview(ViewHolder aSlideViewHolder, int aPosition) { - byte[] aSlidePreviewBytes = mSlideShow.getSlidePreviewBytes(aPosition); - - mImageLoader.loadImage(aSlideViewHolder.mSlidePreview, aSlidePreviewBytes); - } - - private void setUpUnknownSlidePreview(ViewHolder aSlideViewHolder) { - aSlideViewHolder.mSlidePreview.setImageResource(R.drawable.bg_slide_unknown); - } - - private String buildSlideIndex(int aPosition) { - int aHumanSlideIndex = aPosition + 1; - - return Integer.toString(aHumanSlideIndex); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/adapter/SlidesPagerAdapter.java b/android/sdremote/src/org/libreoffice/impressremote/adapter/SlidesPagerAdapter.java deleted file mode 100644 index da7826414262..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/adapter/SlidesPagerAdapter.java +++ /dev/null @@ -1,101 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.adapter; - -import android.content.Context; -import android.support.v4.view.PagerAdapter; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.ImageView; - -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.communication.SlideShow; -import org.libreoffice.impressremote.util.ImageLoader; - -public class SlidesPagerAdapter extends PagerAdapter { - private final LayoutInflater mLayoutInflater; - private final ImageLoader mImageLoader; - - private final SlideShow mSlideShow; - - private final View.OnTouchListener mSlideTouchListener; - - public SlidesPagerAdapter(Context aContext, SlideShow aSlideShow, View.OnTouchListener aSlideTouchListener) { - mLayoutInflater = LayoutInflater.from(aContext); - mImageLoader = new ImageLoader(aContext.getResources(), R.drawable.bg_slide_unknown); - - mSlideShow = aSlideShow; - - mSlideTouchListener = aSlideTouchListener; - } - - @Override - public int getCount() { - return mSlideShow.getSlidesCount(); - } - - @Override - public Object instantiateItem(ViewGroup aViewGroup, int aPosition) { - ImageView aSlideView = (ImageView) getView(aViewGroup); - - if (isSlidePreviewAvailable(aPosition)) { - setUpSlidePreview(aSlideView, aPosition); - } - else { - setUpUnknownSlidePreview(aSlideView); - } - - // touch listener that handles tap and double-tap - aSlideView.setOnTouchListener(mSlideTouchListener); - - aViewGroup.addView(aSlideView); - - return aSlideView; - } - - private View getView(ViewGroup aViewGroup) { - return mLayoutInflater.inflate(R.layout.view_pager_slide, aViewGroup, false); - } - - private boolean isSlidePreviewAvailable(int aSlideIndex) { - return mSlideShow.getSlidePreviewBytes(aSlideIndex) != null; - } - - private void setUpSlidePreview(ImageView aSlideView, int aPosition) { - byte[] aSlidePreviewBytes = mSlideShow.getSlidePreviewBytes(aPosition); - - mImageLoader.loadImage(aSlideView, aSlidePreviewBytes); - } - - private void setUpUnknownSlidePreview(ImageView aSlideView) { - aSlideView.setImageResource(R.drawable.bg_slide_unknown); - } - - @Override - public void destroyItem(ViewGroup aViewGroup, int aPosition, Object aObject) { - View aView = (View) aObject; - - aViewGroup.removeView(aView); - } - - @Override - public boolean isViewFromObject(View aView, Object aObject) { - return aView == aObject; - } - - @Override - public int getItemPosition(Object aObject) { - // There seems no other way to update slides with notifyDataSetChanged. - - return POSITION_NONE; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothServerConnection.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothServerConnection.java deleted file mode 100644 index d58460aaa8f0..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothServerConnection.java +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -package org.libreoffice.impressremote.communication; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.UUID; - -import android.bluetooth.BluetoothAdapter; -import android.bluetooth.BluetoothDevice; -import android.bluetooth.BluetoothSocket; - -class BluetoothServerConnection implements ServerConnection { - // Standard UUID for the Serial Port Profile. - // https://www.bluetooth.org/en-us/specification/assigned-numbers-overview/service-discovery - private static final String STANDARD_SPP_UUID = "00001101-0000-1000-8000-00805F9B34FB"; - - private final BluetoothSocket mServerConnection; - - public BluetoothServerConnection(Server aServer) { - mServerConnection = buildServerConnection(aServer); - } - - private BluetoothSocket buildServerConnection(Server aServer) { - try { - BluetoothDevice aBluetoothServer = BluetoothAdapter.getDefaultAdapter() - .getRemoteDevice(aServer.getAddress()); - - return aBluetoothServer.createRfcommSocketToServiceRecord( - UUID.fromString(STANDARD_SPP_UUID)); - } catch (IOException e) { - throw new RuntimeException("Unable to create server connection."); - } - } - - @Override - public void open() { - try { - mServerConnection.connect(); - } catch (IOException e) { - throw new RuntimeException("Unable to open server connection."); - } - } - - @Override - public void close() { - try { - mServerConnection.close(); - } catch (IOException e) { - throw new RuntimeException("Unable to close server connection."); - } - } - - @Override - public InputStream buildMessagesStream() { - try { - return mServerConnection.getInputStream(); - } catch (IOException e) { - throw new RuntimeException("Unable to open messages stream."); - } - } - - @Override - public OutputStream buildCommandsStream() { - try { - return mServerConnection.getOutputStream(); - } catch (IOException e) { - throw new RuntimeException("Unable to open commands stream."); - } - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothServersFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothServersFinder.java deleted file mode 100644 index 7ae17255c918..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothServersFinder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import android.bluetooth.BluetoothAdapter; -import android.bluetooth.BluetoothClass; -import android.bluetooth.BluetoothDevice; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.support.v4.content.LocalBroadcastManager; - -import org.libreoffice.impressremote.util.Intents; - -class BluetoothServersFinder extends BroadcastReceiver implements ServersFinder { - private static final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); - - private final Context mContext; - - private final Map<String, Server> mServers; - - public BluetoothServersFinder(Context aContext) { - mContext = aContext; - - mServers = new HashMap<String, Server>(); - } - - @Override - public void startSearch() { - if (btAdapter == null) { - return; - } - IntentFilter aBluetoothActionsFilter = new IntentFilter(); - aBluetoothActionsFilter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); - aBluetoothActionsFilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED); - aBluetoothActionsFilter.addAction(BluetoothDevice.ACTION_FOUND); - - mContext.registerReceiver(this, aBluetoothActionsFilter); - Set<BluetoothDevice> pairedDevices = btAdapter.getBondedDevices(); - if (pairedDevices.size() > 0) { - for (BluetoothDevice device : pairedDevices) { - addServer(device); - } - } else { - if (btAdapter.isDiscovering()) { - return; - } - btAdapter.startDiscovery(); - } - } - - @Override - public void onReceive(Context aContext, Intent aIntent) { - if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(aIntent.getAction())) { - switch (aIntent.getIntExtra(BluetoothAdapter.EXTRA_STATE, 0)) { - case BluetoothAdapter.STATE_ON: - startSearch(); - return; - - default: - return; - } - } - - if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(aIntent.getAction())) { - LocalBroadcastManager.getInstance(mContext) - .sendBroadcast(new Intent(Intents.Actions.BT_DISCOVERY_CHANGED)); - return; - } - - if (BluetoothDevice.ACTION_FOUND.equals(aIntent.getAction())) { - BluetoothDevice aBluetoothDevice = aIntent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); - - addServer(aBluetoothDevice); - } - } - - private void addServer(BluetoothDevice aBluetoothDevice) { - Server.Type aServerType = buildServerType(aBluetoothDevice); - String aServerAddress = aBluetoothDevice.getAddress(); - String aServerName = aBluetoothDevice.getName(); - - Server aServer = Server.newBluetoothInstance(aServerType, aServerAddress, aServerName); - mServers.put(aServer.getAddress(), aServer); - - Intent bIntent = Intents.buildServersListChangedIntent(); - LocalBroadcastManager.getInstance(mContext).sendBroadcast(bIntent); - } - - private Server.Type buildServerType(BluetoothDevice aBluetoothDevice) { - int aBluetoothClass = aBluetoothDevice.getBluetoothClass().getMajorDeviceClass(); - - switch (aBluetoothClass) { - case BluetoothClass.Device.Major.COMPUTER: - return Server.Type.COMPUTER; - - case BluetoothClass.Device.Major.PHONE: - return Server.Type.PHONE; - - default: - return Server.Type.UNDEFINED; - } - } - - @Override - public void stopSearch() { - if (btAdapter == null) { - return; - } - - try { - mContext.unregisterReceiver(this); - } catch (IllegalArgumentException e) { - // Receiver not registered. - // Fixed in Honeycomb: Android’s issue #6191. - } - - btAdapter.cancelDiscovery(); - } - - @Override - public List<Server> getServers() { - return new ArrayList<Server>(mServers.values()); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/CommandsTransmitter.java b/android/sdremote/src/org/libreoffice/impressremote/communication/CommandsTransmitter.java deleted file mode 100644 index ebe417c3cf64..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/CommandsTransmitter.java +++ /dev/null @@ -1,87 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.io.BufferedWriter; -import java.io.IOException; -import java.io.OutputStream; -import java.io.OutputStreamWriter; -import java.io.UnsupportedEncodingException; - -public class CommandsTransmitter { - private final BufferedWriter mCommandsWriter; - - public CommandsTransmitter(ServerConnection aServerConnection) { - mCommandsWriter = buildCommandsWriter(aServerConnection); - } - - private BufferedWriter buildCommandsWriter(ServerConnection aServerConnection) { - try { - OutputStream aCommandsStream = aServerConnection.buildCommandsStream(); - - return new BufferedWriter( - new OutputStreamWriter(aCommandsStream, Protocol.CHARSET)); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException("Unable to create commands writer."); - } - } - - public void pair(String aDeviceName, String aPin) { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.PAIR_WITH_SERVER, aDeviceName, - aPin)); - } - - private void writeCommand(String aCommand) { - try { - mCommandsWriter.write(aCommand); - mCommandsWriter.flush(); - } catch (IOException e) { - throw new RuntimeException("Unable to write command."); - } - } - - public void performNextTransition() { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.TRANSITION_NEXT)); - } - - public void performPreviousTransition() { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.TRANSITION_PREVIOUS)); - } - - public void setCurrentSlide(int slideIndex) { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.GO_TO_SLIDE, - Integer.toString(slideIndex))); - } - - public void setUpBlankScreen() { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.PRESENTATION_BLANK_SCREEN)); - } - - public void resumePresentation() { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.PRESENTATION_RESUME)); - } - - public void startPresentation() { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.PRESENTATION_START)); - } - - public void stopPresentation() { - writeCommand(Protocol.Commands - .prepareCommand(Protocol.Commands.PRESENTATION_STOP)); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java b/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java deleted file mode 100644 index cea50e53c7ab..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java +++ /dev/null @@ -1,229 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.util.List; - -import android.app.Service; -import android.content.Intent; -import android.os.Binder; -import android.os.IBinder; -import android.support.v4.content.LocalBroadcastManager; - -import org.libreoffice.impressremote.util.Intents; - -public class CommunicationService extends Service implements Runnable, MessagesListener, Timer.TimerListener { - public static final class ServiceBinder extends Binder { - private final CommunicationService mCommunicationService; - - public ServiceBinder(CommunicationService aCommunicationService) { - mCommunicationService = aCommunicationService; - } - - public CommunicationService getService() { - return mCommunicationService; - } - } - - private IBinder mBinder; - - private ServersManager mServersManager; - - private Timer mTimer; - private SlideShow mSlideShow; - - private Server mServer; - private ServerConnection mServerConnection; - - private MessagesReceiver mMessagesReceiver; - private CommandsTransmitter mCommandsTransmitter; - - @Override - public void onCreate() { - mBinder = new ServiceBinder(this); - - mServersManager = new ServersManager(this); - - mTimer = new Timer(this); - mSlideShow = new SlideShow(mTimer); - } - - @Override - public IBinder onBind(Intent aIntent) { - return mBinder; - } - - public void startServersSearch() { - mServersManager.startServersSearch(); - } - - public void stopServersSearch() { - mServersManager.stopServersSearch(); - } - - public void addServer(String aAddress, String aName) { - mServersManager.addTcpServer(aAddress, aName); - } - - public void removeServer(Server aServer) { - mServersManager.removeServer(aServer); - } - - public List<Server> getServers() { - return mServersManager.getServers(); - } - - public void connectServer(Server aServer) { - mServer = aServer; - - Thread aConnectionThread = new Thread(this); - aConnectionThread.start(); - } - - @Override - public void run() { - try { - disconnectServer(); - connectServer(); - } - catch (RuntimeException e) { - sendConnectionFailedMessage(); - } - } - - public void disconnectServer() { - if (!isServerConnectionAvailable()) { - return; - } - - mServerConnection.close(); - } - - private boolean isServerConnectionAvailable() { - return mServerConnection != null; - } - - private void connectServer() { - mServerConnection = buildServerConnection(); - mServerConnection.open(); - - mMessagesReceiver = new MessagesReceiver(mServerConnection, this); - mCommandsTransmitter = new CommandsTransmitter(mServerConnection); - - if (PairingProvider.isPairingNecessary(mServer)) { - pair(); - } - } - - private ServerConnection buildServerConnection() { - switch (mServer.getProtocol()) { - case TCP: - return new TcpServerConnection(mServer); - - case BLUETOOTH: - return new BluetoothServerConnection(mServer); - - default: - throw new RuntimeException("Unknown desired protocol."); - } - } - - private void pair() { - String aPairingDeviceName = PairingProvider.getPairingDeviceName(this); - String aPairingPin = PairingProvider.getPairingPin(this, mServer); - - mCommandsTransmitter.pair(aPairingDeviceName, aPairingPin); - } - - private void sendConnectionFailedMessage() { - Intent aIntent = Intents.buildConnectionFailedIntent(); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - public CommandsTransmitter getCommandsTransmitter() { - return mCommandsTransmitter; - } - - public SlideShow getSlideShow() { - return mSlideShow; - } - - @Override - public void onPinValidation() { - String aPin = PairingProvider.getPairingPin(this, mServer); - - Intent aIntent = Intents.buildPairingValidationIntent(aPin); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - @Override - public void onSuccessfulPairing() { - Intent aIntent = Intents.buildPairingSuccessfulIntent(); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - @Override - public void onSlideShowStart(int aSlidesCount, int aCurrentSlideIndex) { - mSlideShow = new SlideShow(mTimer); - mSlideShow.setSlidesCount(aSlidesCount); - mSlideShow.setRunning(true); - - Intent aIntent = Intents.buildSlideShowRunningIntent(); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - - onSlideChanged(aCurrentSlideIndex); - } - - @Override - public void onSlideShowFinish() { - mTimer.stop(); - mSlideShow = new SlideShow(mTimer); - - Intent aIntent = Intents.buildSlideShowStoppedIntent(); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - @Override - public void onSlideChanged(int aCurrentSlideIndex) { - mSlideShow.setCurrentSlideIndex(aCurrentSlideIndex); - - Intent aIntent = Intents.buildSlideChangedIntent(aCurrentSlideIndex); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - @Override - public void onSlidePreview(int aSlideIndex, byte[] aPreview) { - mSlideShow.setSlidePreviewBytes(aSlideIndex, aPreview); - - Intent aIntent = Intents.buildSlidePreviewIntent(aSlideIndex); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - @Override - public void onSlideNotes(int aSlideIndex, String aNotes) { - mSlideShow.setSlideNotes(aSlideIndex, aNotes); - - Intent aIntent = Intents.buildSlideNotesIntent(aSlideIndex); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - @Override - public void onTimerUpdated() { - Intent aIntent = Intents.buildTimerUpdatedIntent(); - LocalBroadcastManager.getInstance(this).sendBroadcast(aIntent); - } - - @Override - public void onDestroy() { - stopServersSearch(); - disconnectServer(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/MessagesListener.java b/android/sdremote/src/org/libreoffice/impressremote/communication/MessagesListener.java deleted file mode 100644 index a8f9237a28eb..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/MessagesListener.java +++ /dev/null @@ -1,27 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -interface MessagesListener { - public void onPinValidation(); - - public void onSuccessfulPairing(); - - public void onSlideShowStart(int aSlidesCount, int aCurrentSlideIndex); - - public void onSlideShowFinish(); - - public void onSlideChanged(int aCurrentSlideIndex); - - public void onSlidePreview(int aSlideIndex, byte[] aPreview); - - public void onSlideNotes(int aSlideIndex, String aNotes); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/MessagesReceiver.java b/android/sdremote/src/org/libreoffice/impressremote/communication/MessagesReceiver.java deleted file mode 100644 index 4d226d868183..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/MessagesReceiver.java +++ /dev/null @@ -1,172 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.List; - -import android.text.TextUtils; -import android.util.Base64; - -class MessagesReceiver implements Runnable { - private final BufferedReader mMessagesReader; - - private final MessagesListener mMessagesListener; - - public MessagesReceiver(ServerConnection aServerConnection, MessagesListener aMessagesListener) { - mMessagesReader = buildMessagesReader(aServerConnection); - - mMessagesListener = aMessagesListener; - - Thread mMessagesListenerThread = new Thread(this); - mMessagesListenerThread.start(); - } - - private BufferedReader buildMessagesReader(ServerConnection aServerConnection) { - try { - InputStream aMessagesStream = aServerConnection.buildMessagesStream(); - - return new BufferedReader( - new InputStreamReader(aMessagesStream, Protocol.CHARSET)); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException("Unable to create messages reader."); - } - } - - @Override - public void run() { - while (true) { - List<String> aMessage = readMessage(); - - if (aMessage == null) { - return; - } - - parseMessage(aMessage); - } - } - - private List<String> readMessage() { - List<String> aMessage = new ArrayList<String>(); - - String aMessageParameter = readMessageParameter(); - - while (true) { - if (aMessageParameter == null) { - break; - } - - if (TextUtils.isEmpty(aMessageParameter)) { - break; - } - - aMessage.add(aMessageParameter); - - aMessageParameter = readMessageParameter(); - } - - if (aMessageParameter == null) { - return null; - } - - return aMessage; - } - - private String readMessageParameter() { - try { - return mMessagesReader.readLine(); - } catch (IOException e) { - return null; - } - } - - private void parseMessage(List<String> aMessage) { - if (aMessage.isEmpty()) { - return; - } - - String aMessageType = aMessage.get(0); - - if (Protocol.Messages.VALIDATING.equals(aMessageType)) { - mMessagesListener.onPinValidation(); - return; - } - - if (Protocol.Messages.PAIRED.equals(aMessageType)) { - mMessagesListener.onSuccessfulPairing(); - return; - } - - if (Protocol.Messages.SLIDE_SHOW_STARTED.equals(aMessageType)) { - int aSlidesCount = parseSlidesCount(aMessage, 1); - int aCurrentSlideIndex = parseSlideIndex(aMessage, 2); - - mMessagesListener.onSlideShowStart(aSlidesCount, aCurrentSlideIndex); - return; - } - - if (Protocol.Messages.SLIDE_SHOW_FINISHED.equals(aMessageType)) { - mMessagesListener.onSlideShowFinish(); - return; - } - - if (Protocol.Messages.SLIDE_UPDATED.equals(aMessageType)) { - int aCurrentSlideIndex = parseSlideIndex(aMessage, 1); - - mMessagesListener.onSlideChanged(aCurrentSlideIndex); - return; - } - - if (Protocol.Messages.SLIDE_PREVIEW.equals(aMessageType)) { - int aSlideIndex = parseSlideIndex(aMessage, 1); - byte[] aSlidePreview = parseSlidePreview(aMessage, 2); - - mMessagesListener.onSlidePreview(aSlideIndex, aSlidePreview); - return; - } - - if (Protocol.Messages.SLIDE_NOTES.equals(aMessageType)) { - int aSlideIndex = parseSlideIndex(aMessage, 1); - String aSlideNotes = parseSlideNotes(aMessage, 2); - - mMessagesListener.onSlideNotes(aSlideIndex, aSlideNotes); - } - } - - private int parseSlidesCount(List<String> aMessage, int aMessageParameterIndex) { - return Integer.parseInt(aMessage.get(aMessageParameterIndex)); - } - - private int parseSlideIndex(List<String> aMessage, int aMessageParameterIndex) { - return Integer.parseInt(aMessage.get(aMessageParameterIndex)); - } - - private byte[] parseSlidePreview(List<String> aMessage, int aMessageParameterIndex) { - String aPreviewAsString = aMessage.get(aMessageParameterIndex); - - return Base64.decode(aPreviewAsString, Base64.DEFAULT); - } - - private String parseSlideNotes(List<String> aMessage, int aMessageParameterIndex) { - StringBuilder aNotesBuilder = new StringBuilder(); - - for (int aNoteIndex = aMessageParameterIndex; aNoteIndex < aMessage.size(); aNoteIndex++) { - aNotesBuilder.append(aMessage.get(aNoteIndex)); - } - - return aNotesBuilder.toString(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/PairingProvider.java b/android/sdremote/src/org/libreoffice/impressremote/communication/PairingProvider.java deleted file mode 100644 index 53d85d86378f..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/PairingProvider.java +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import android.bluetooth.BluetoothAdapter; -import android.content.Context; -import android.os.Build; - -import org.libreoffice.impressremote.util.Preferences; - -final class PairingProvider { - private static final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); - - private final Preferences mAuthorizedServersPreferences; - - private PairingProvider(Context aContext) { - mAuthorizedServersPreferences = Preferences.getAuthorizedServersInstance(aContext); - } - - public static boolean isPairingNecessary(Server aServer) { - return aServer.getProtocol() == Server.Protocol.TCP; - } - - public static String getPairingPin(Context aContext, Server aServer) { - return new PairingProvider(aContext).getPairingPin(aServer); - } - - private String getPairingPin(Server aServer) { - if (isPinSaved(aServer)) { - return getSavedPin(aServer); - } - - String aPin = Protocol.Pin.generate(); - - savePin(aServer, aPin); - - return aPin; - } - - private boolean isPinSaved(Server aServer) { - return getSavedPin(aServer) != null; - } - - private String getSavedPin(Server aServer) { - return mAuthorizedServersPreferences.getString(aServer.getAddress()); - } - - private void savePin(Server aServer, String aPin) { - mAuthorizedServersPreferences.setString(aServer.getAddress(), aPin); - } - - public static String getPairingDeviceName(Context aContext) { - return new PairingProvider(aContext).getPairingDeviceName(); - } - - private String getPairingDeviceName() { - if (btAdapter == null || btAdapter.getName() == null) { - return Build.MODEL; - } - - return btAdapter.getName(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/Protocol.java b/android/sdremote/src/org/libreoffice/impressremote/communication/Protocol.java deleted file mode 100644 index 505cdd65dd1e..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/Protocol.java +++ /dev/null @@ -1,122 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.util.Random; - -import android.text.TextUtils; - -final class Protocol { - private Protocol() { - } - - public static final String CHARSET = "UTF-8"; - - public static final class Ports { - private Ports() { - } - - public static final int SERVER_SEARCH = 1598; - public static final int CLIENT_CONNECTION = 1599; - } - - public static final class Addresses { - private Addresses() { - } - - public static final String SERVER_SEARCH = "239.0.0.1"; - } - - public static final class Messages { - private Messages() { - } - - public static final String PAIRED = "LO_SERVER_SERVER_PAIRED"; - public static final String VALIDATING = "LO_SERVER_VALIDATING_PIN"; - public static final String ADVERTISE = "LOREMOTE_ADVERTISE"; - - public static final String SLIDE_SHOW_STARTED = "slideshow_started"; - public static final String SLIDE_SHOW_FINISHED = "slideshow_finished"; - public static final String SLIDE_UPDATED = "slide_updated"; - public static final String SLIDE_PREVIEW = "slide_preview"; - public static final String SLIDE_NOTES = "slide_notes"; - } - - public static final class Commands { - private Commands() { - } - - public static final String PAIR_WITH_SERVER = "LO_SERVER_CLIENT_PAIR"; - public static final String SEARCH_SERVERS = "LOREMOTE_SEARCH"; - - public static final String TRANSITION_NEXT = "transition_next"; - public static final String TRANSITION_PREVIOUS = "transition_previous"; - public static final String GO_TO_SLIDE = "goto_slide"; - public static final String PRESENTATION_BLANK_SCREEN = "presentation_blank_screen"; - public static final String PRESENTATION_RESUME = "presentation_resume"; - public static final String PRESENTATION_START = "presentation_start"; - public static final String PRESENTATION_STOP = "presentation_stop"; - - private static final String DELIMITER_PARAMETER = "\n"; - private static final String DELIMITER_COMMAND = "\n\n"; - - public static String prepareCommand(String aCommand) { - return String.format("%s%s", aCommand, DELIMITER_COMMAND); - } - - public static String prepareCommand(String... aParameters) { - String aCommand = TextUtils.join(DELIMITER_PARAMETER, aParameters); - - return prepareCommand(aCommand); - } - } - - public static final class Pin { - private static final int NUMBERS_COUNT = 4; - - private Pin() { - } - - public static String generate() { - return new Pin().generatePinText(); - } - - private String generatePinText() { - int aPin = preventLeadingZeros(generatePinNumber()); - - return String.format(buildPinFormat(), aPin); - } - - private int generatePinNumber() { - int aMaximumPin = (int) Math.pow(10, NUMBERS_COUNT) - 1; - - return new Random().nextInt(aMaximumPin); - } - - private int preventLeadingZeros(int aPin) { - // Pin cannot have leading zeros. - // LibreOffice Impress doesn’t allow to enter leading zeros. - // Bug exists at least at LibreOffice 4.1. - - int aMinimumPin = (int) Math.pow(10, NUMBERS_COUNT - 1); - - if (aPin >= aMinimumPin) { - return aPin; - } - - return aPin + aMinimumPin; - } - - private String buildPinFormat() { - return String.format("%%0%sd", Integer.toString(NUMBERS_COUNT)); - } - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/Server.java b/android/sdremote/src/org/libreoffice/impressremote/communication/Server.java deleted file mode 100644 index 4053c4f68680..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/Server.java +++ /dev/null @@ -1,101 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import android.os.Parcel; -import android.os.Parcelable; -import android.text.TextUtils; - -public class Server implements Parcelable { - private static final int SPECIAL_PARCELABLE_OBJECTS_BITMASK = 0; - - public static enum Protocol { - TCP, BLUETOOTH - } - - public static enum Type { - COMPUTER, PHONE, UNDEFINED - } - - private final Protocol mProtocol; - private final Type mType; - private final String mAddress; - private final String mName; - - private Server(Protocol aProtocol, Type aType, String aAddress, String aName) { - mProtocol = aProtocol; - mType = aType; - mAddress = aAddress; - mName = aName; - } - - public static Server newTcpInstance(String aAddress, String aName) { - return new Server(Protocol.TCP, Type.UNDEFINED, aAddress, aName); - } - - public static Server newBluetoothInstance(Type aClass, String aAddress, String aName) { - return new Server(Protocol.BLUETOOTH, aClass, aAddress, aName); - } - - public Protocol getProtocol() { - return mProtocol; - } - - public Type getType() { - return mType; - } - - public String getAddress() { - return mAddress; - } - - public String getName() { - if (mName == null) { - return mAddress; - } - - if (TextUtils.isEmpty(mName)) { - return mAddress; - } - - return mName; - } - - @Override - public int describeContents() { - return SPECIAL_PARCELABLE_OBJECTS_BITMASK; - } - - @Override - public void writeToParcel(Parcel aParcel, int aFlags) { - aParcel.writeString(mProtocol.name()); - aParcel.writeString(mType.name()); - aParcel.writeString(mAddress); - aParcel.writeString(mName); - } - - public static final Parcelable.Creator<Server> CREATOR = new Parcelable.Creator<Server>() { - public Server createFromParcel(Parcel aParcel) { - return new Server(aParcel); - } - - public Server[] newArray(int aSize) { - return new Server[aSize]; - } - }; - - private Server(Parcel aParcel) { - this.mProtocol = Protocol.valueOf(aParcel.readString()); - this.mType = Type.valueOf(aParcel.readString()); - this.mAddress = aParcel.readString(); - this.mName = aParcel.readString(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/ServerConnection.java b/android/sdremote/src/org/libreoffice/impressremote/communication/ServerConnection.java deleted file mode 100644 index c9179d2ef209..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/ServerConnection.java +++ /dev/null @@ -1,24 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.io.InputStream; -import java.io.OutputStream; - -interface ServerConnection { - public void open(); - - public void close(); - - public InputStream buildMessagesStream(); - - public OutputStream buildCommandsStream(); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/ServersFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/ServersFinder.java deleted file mode 100644 index 52a31824df89..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/ServersFinder.java +++ /dev/null @@ -1,21 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.util.List; - -interface ServersFinder { - public void startSearch(); - - public void stopSearch(); - - public List<Server> getServers(); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/ServersManager.java b/android/sdremote/src/org/libreoffice/impressremote/communication/ServersManager.java deleted file mode 100644 index eac2ec1d9123..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/ServersManager.java +++ /dev/null @@ -1,162 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashSet; - -import java.util.List; -import java.util.Map; -import java.util.Set; - -import android.content.Context; - -import org.libreoffice.impressremote.util.Preferences; - -class ServersManager implements Comparator<Server> { - private static final class CompareResult { - private CompareResult() { - } - - public static final int EQUAL = 0; - } - - private final ServersFinder mBluetoothServersFinder; - private final ServersFinder mTcpServersFinder; - - private final Set<Server> mBlacklistedServers; - private final Preferences mSavedServersPreferences; - - public ServersManager(Context aContext) { - mBluetoothServersFinder = new BluetoothServersFinder(aContext); - mTcpServersFinder = new TcpServersFinder(aContext); - - mBlacklistedServers = new HashSet<Server>(); - mSavedServersPreferences = Preferences.getSavedServersInstance(aContext); - } - - public void startServersSearch() { - mBluetoothServersFinder.startSearch(); - mTcpServersFinder.startSearch(); - } - - public void stopServersSearch() { - mBluetoothServersFinder.stopSearch(); - mTcpServersFinder.stopSearch(); - } - - public List<Server> getServers() { - List<Server> aServers = new ArrayList<Server>(); - - aServers.addAll(mBluetoothServersFinder.getServers()); - aServers.addAll(mTcpServersFinder.getServers()); - aServers.addAll(getManualAddedTcpServers()); - - aServers = filterBlacklistedServers(aServers); - - Collections.sort(aServers, this); - - return aServers; - } - - private List<Server> getManualAddedTcpServers() { - Map<String, ?> aServersEntries = mSavedServersPreferences.getAll(); - - return buildTcpServers(aServersEntries); - } - - private List<Server> buildTcpServers(Map<String, ?> aServersEntries) { - List<Server> aServers = new ArrayList<Server>(); - - for (String aServerAddress : aServersEntries.keySet()) { - String aServerName = (String) aServersEntries.get(aServerAddress); - - aServers.add(Server.newTcpInstance(aServerAddress, aServerName)); - } - - return aServers; - } - - private List<Server> filterBlacklistedServers(List<Server> aServers) { - List<Server> aFilteredServers = new ArrayList<Server>(); - - for (Server aServer : aServers) { - if (mBlacklistedServers.contains(aServer)) { - continue; - } - - aFilteredServers.add(aServer); - } - - return aFilteredServers; - } - - @Override - public int compare(Server aFirstServer, Server aSecondServer) { - int aServersTypesComparison = compareServersTypes(aFirstServer, aSecondServer); - int aServersNamesComparison = compareServersNames(aFirstServer, aSecondServer); - - if (aServersTypesComparison != CompareResult.EQUAL) { - return aServersTypesComparison; - } - else { - return aServersNamesComparison; - } - } - - private int compareServersTypes(Server aFirstServer, Server aSecondServer) { - Server.Type aFirstServerType = aFirstServer.getType(); - Server.Type aSecondServerType = aSecondServer.getType(); - - return aFirstServerType.compareTo(aSecondServerType); - } - - private int compareServersNames(Server aFirstServer, Server aSecondServer) { - String aFirstServerName = aFirstServer.getName(); - String aSecondServerName = aSecondServer.getName(); - - return aFirstServerName.compareToIgnoreCase(aSecondServerName); - } - - public void addTcpServer(String aAddress, String aName) { - mSavedServersPreferences.setString(aAddress, aName); - } - - public void removeServer(Server aServer) { - if (getServersAddresses(getManualAddedTcpServers()).contains(aServer.getAddress())) { - removeManualAddedServer(aServer); - - return; - } - - blacklistServer(aServer); - } - - private List<String> getServersAddresses(List<Server> aServers) { - List<String> aServersAddresses = new ArrayList<String>(); - - for (Server aServer : aServers) { - aServersAddresses.add(aServer.getAddress()); - } - - return aServersAddresses; - } - - private void removeManualAddedServer(Server aServer) { - mSavedServersPreferences.remove(aServer.getAddress()); - } - - private void blacklistServer(Server aServer) { - mBlacklistedServers.add(aServer); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java b/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java deleted file mode 100644 index 99947f5c18c5..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java +++ /dev/null @@ -1,92 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import android.util.SparseArray; - - -public class SlideShow { - private boolean mRunning; - - private int mSlidesCount; - private int mCurrentSlideIndex; - - private final SparseArray<byte[]> mSlidePreviewsBytes; - private final SparseArray<String> mSlideNotes; - - private final Timer mTimer; - - public SlideShow(Timer aTimer) { - mRunning = false; - - mSlidesCount = 0; - mCurrentSlideIndex = 0; - - mSlidePreviewsBytes = new SparseArray<byte[]>(); - mSlideNotes = new SparseArray<String>(); - - mTimer = aTimer; - } - - public void setRunning(boolean aRunning) { - mRunning = aRunning; - } - - public boolean isRunning() { - return mRunning; - } - - public void setSlidesCount(int aSlidesCount) { - mSlidesCount = aSlidesCount; - } - - public int getSlidesCount() { - return mSlidesCount; - } - - public void setCurrentSlideIndex(int aCurrentSlideIndex) { - mCurrentSlideIndex = aCurrentSlideIndex; - } - - public int getCurrentSlideIndex() { - return mCurrentSlideIndex; - } - - public int getHumanCurrentSlideIndex() { - return getCurrentSlideIndex() + 1; - } - - public void setSlidePreviewBytes(int aSlideIndex, byte[] aSlidePreviewBytes) { - mSlidePreviewsBytes.put(aSlideIndex, aSlidePreviewBytes); - } - - public byte[] getSlidePreviewBytes(int aSlideIndex) { - return mSlidePreviewsBytes.get(aSlideIndex); - } - - public void setSlideNotes(int aSlideIndex, String aSlideNotes) { - mSlideNotes.put(aSlideIndex, aSlideNotes); - } - - public String getSlideNotes(int aSlideIndex) { - String aSlideNotes = mSlideNotes.get(aSlideIndex); - - if (aSlideNotes == null) { - return ""; - } - - return aSlideNotes; - } - - public Timer getTimer() { - return mTimer; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServerConnection.java b/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServerConnection.java deleted file mode 100644 index fa18079f3d86..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServerConnection.java +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.InetSocketAddress; -import java.net.Socket; -import java.net.SocketAddress; - -class TcpServerConnection implements ServerConnection { - private final Server mServer; - private final Socket mServerConnection; - - public TcpServerConnection(Server aServer) { - mServer = aServer; - mServerConnection = buildServerConnection(); - } - - private Socket buildServerConnection() { - return new Socket(); - } - - @Override - public void open() { - try { - mServerConnection.connect(buildServerAddress()); - } catch (IOException e) { - throw new RuntimeException("Unable to open server connection."); - } - } - - private SocketAddress buildServerAddress() { - String aServerAddress = mServer.getAddress(); - int aServerPort = Protocol.Ports.CLIENT_CONNECTION; - - return new InetSocketAddress(aServerAddress, aServerPort); - } - - @Override - public void close() { - try { - mServerConnection.close(); - } catch (IOException e) { - throw new RuntimeException("Unable to close server connection."); - } - } - - @Override - public InputStream buildMessagesStream() { - try { - return mServerConnection.getInputStream(); - } catch (IOException e) { - throw new RuntimeException("Unable to open messages stream."); - } - } - - @Override - public OutputStream buildCommandsStream() { - try { - return mServerConnection.getOutputStream(); - } catch (IOException e) { - throw new RuntimeException("Unable to open commands stream."); - } - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java deleted file mode 100644 index 40b7553b9305..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java +++ /dev/null @@ -1,181 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.io.IOException; -import java.net.DatagramPacket; -import java.net.DatagramSocket; -import java.net.InetAddress; -import java.net.SocketException; -import java.net.SocketTimeoutException; -import java.net.UnknownHostException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Scanner; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.TimeUnit; - -import android.content.Context; -import android.content.Intent; -import android.support.v4.content.LocalBroadcastManager; -import android.text.TextUtils; - -import org.libreoffice.impressremote.util.Intents; - -class TcpServersFinder implements ServersFinder, Runnable { - private static final int SEARCH_DELAY_IN_SECONDS = 5; - private static final int BLOCKING_TIMEOUT_IN_SECONDS = 5; - - private static final int SEARCH_RESULT_BUFFER_SIZE = 1024; - - private final Context mContext; - - private final Map<String, Server> mServers; - - private DatagramSocket mSearchSocket; - private ScheduledExecutorService mSearchService; - - public TcpServersFinder(Context aContext) { - mContext = aContext; - - mServers = new HashMap<String, Server>(); - - mSearchService = Executors.newSingleThreadScheduledExecutor(); - } - - @Override - public void startSearch() { - stopSearch(); - - mSearchService = Executors.newSingleThreadScheduledExecutor(); - mSearchService.scheduleAtFixedRate(this, 0, SEARCH_DELAY_IN_SECONDS, TimeUnit.SECONDS); - } - - @Override - public void run() { - setUpSearchSocket(); - - sendSearchCommand(); - - listenForSearchResults(); - - tearDownSearchSocket(); - } - - private void setUpSearchSocket() { - try { - mSearchSocket = new DatagramSocket(); - mSearchSocket.setSoTimeout((int) TimeUnit.SECONDS.toMillis(BLOCKING_TIMEOUT_IN_SECONDS)); - } catch (SocketException e) { - throw new RuntimeException("Unable to open search socket."); - } - } - - private void sendSearchCommand() { - try { - mSearchSocket.send(buildSearchPacket()); - } catch (IOException e) { - throw new RuntimeException("Unable to send search packet."); - } - } - - private DatagramPacket buildSearchPacket() { - try { - String aSearchCommand = Protocol.Commands - .prepareCommand(Protocol.Commands.SEARCH_SERVERS); - - DatagramPacket aSearchPacket = new DatagramPacket( - aSearchCommand.getBytes(), aSearchCommand.length()); - - aSearchPacket.setAddress( - InetAddress.getByName(Protocol.Addresses.SERVER_SEARCH)); - aSearchPacket.setPort(Protocol.Ports.SERVER_SEARCH); - - return aSearchPacket; - } catch (UnknownHostException e) { - throw new RuntimeException("Unable to find address to search."); - } - } - - private void listenForSearchResults() { - DatagramPacket aSearchResultPacket = buildSearchResultPacket(); - - String aSearchResult = receiveSearchResult(aSearchResultPacket); - - if (TextUtils.isEmpty(aSearchResult)) { - return; - } - - Scanner aSearchResultScanner = new Scanner(aSearchResult); - - String aMessage = aSearchResultScanner.nextLine(); - - if (!Protocol.Messages.ADVERTISE.equals(aMessage)) { - return; - } - - String aFoundServerHostname = aSearchResultScanner.nextLine(); - - addServer(buildServer(aSearchResultPacket, aFoundServerHostname)); - - callUpdatingServersList(); - } - - private DatagramPacket buildSearchResultPacket() { - byte[] aSearchResultBuffer = new byte[SEARCH_RESULT_BUFFER_SIZE]; - - return new DatagramPacket(aSearchResultBuffer, aSearchResultBuffer.length); - } - - private String receiveSearchResult(DatagramPacket aSearchResultPacket) { - try { - mSearchSocket.receive(aSearchResultPacket); - - return new String(aSearchResultPacket.getData(), Protocol.CHARSET); - } catch (SocketTimeoutException e) { - return ""; - } catch (IOException e) { - return ""; - } - } - - private void addServer(Server aServer) { - mServers.put(aServer.getAddress(), aServer); - } - - private Server buildServer(DatagramPacket aSearchResultPacket, String aServerHostname) { - String aServerAddress = aSearchResultPacket.getAddress().getHostAddress(); - - return Server.newTcpInstance(aServerAddress, aServerHostname); - } - - private void callUpdatingServersList() { - Intent aIntent = Intents.buildServersListChangedIntent(); - LocalBroadcastManager.getInstance(mContext).sendBroadcast(aIntent); - } - - private void tearDownSearchSocket() { - mSearchSocket.close(); - } - - @Override - public void stopSearch() { - mSearchService.shutdown(); - } - - @Override - public List<Server> getServers() { - return new ArrayList<Server>(mServers.values()); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/Timer.java b/android/sdremote/src/org/libreoffice/impressremote/communication/Timer.java deleted file mode 100644 index 937ccc533a69..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/Timer.java +++ /dev/null @@ -1,105 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.communication; - -import java.util.concurrent.TimeUnit; - -import android.os.Handler; - -public class Timer implements Runnable { - public interface TimerListener { - public void onTimerUpdated(); - } - - private static final long UPDATE_PERIOD_IN_MINUTES = 1; - - private final Handler mTimerHandler; - private final TimerListener mTimerListener; - - private int mTotalMinutes; - private int mPassedMinutes; - - public Timer(TimerListener aTimerListener) { - mTimerHandler = new Handler(); - mTimerListener = aTimerListener; - - mTotalMinutes = 0; - mPassedMinutes = 0; - } - - public void setMinutesLength(int aLengthInMinutes) { - mTotalMinutes = aLengthInMinutes; - } - - public int getMinutesLength() { - return mTotalMinutes; - } - - public boolean isSet() { - return mTotalMinutes != 0; - } - - public int getMinutesLeft() { - return mTotalMinutes - mPassedMinutes; - } - - public boolean isTimeUp() { - return getMinutesLeft() <= 0; - } - - public void start() { - if (!isSet()) { - return; - } - - tearDownTimerHandler(); - setUpTimerHandler(); - } - - private void tearDownTimerHandler() { - mTimerHandler.removeCallbacks(this); - } - - private void setUpTimerHandler() { - mTimerHandler.postDelayed(this, TimeUnit.MINUTES.toMillis(UPDATE_PERIOD_IN_MINUTES)); - } - - @Override - public void run() { - increasePassedMinutes(); - - mTimerListener.onTimerUpdated(); - - start(); - } - - private void increasePassedMinutes() { - mPassedMinutes++; - } - - public void stop() { - pause(); - reset(); - } - - public void pause() { - tearDownTimerHandler(); - } - - public void reset() { - mTotalMinutes = 0; - mPassedMinutes = 0; - } - - public void resume() { - start(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java deleted file mode 100644 index c2adf4b03aa0..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java +++ /dev/null @@ -1,379 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.fragment; - -import android.content.BroadcastReceiver; -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.ServiceConnection; -import android.os.Bundle; -import android.os.IBinder; -import android.support.v4.app.Fragment; -import android.support.v4.content.LocalBroadcastManager; -import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup; -import android.widget.TextView; -import android.widget.ViewAnimator; - -import org.libreoffice.impressremote.util.Fragments; -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.communication.CommunicationService; -import org.libreoffice.impressremote.communication.Server; -import org.libreoffice.impressremote.util.SavedStates; - -public class ComputerConnectionFragment extends Fragment implements ServiceConnection { - public static enum Result { - CONNECTED, NOT_CONNECTED - } - - private Result mResult = Result.NOT_CONNECTED; - - private CommunicationService mCommunicationService; - private BroadcastReceiver mIntentsReceiver; - - public static ComputerConnectionFragment newInstance(Server aComputer) { - ComputerConnectionFragment aFragment = new ComputerConnectionFragment(); - - aFragment.setArguments(buildArguments(aComputer)); - - return aFragment; - } - - private static Bundle buildArguments(Server aComputer) { - Bundle aArguments = new Bundle(); - - aArguments.putParcelable(Fragments.Arguments.COMPUTER, aComputer); - - return aArguments; - } - - @Override - public void onCreate(Bundle aSavedInstance) { - super.onCreate(aSavedInstance); - - setUpActionBarMenu(); - } - - private void setUpActionBarMenu() { - setHasOptionsMenu(true); - } - - @Override - public View onCreateView(LayoutInflater aInflater, ViewGroup aContainer, Bundle aSavedInstance) { - return aInflater.inflate(R.layout.fragment_computer_connection, aContainer, false); - } - - @Override - public void onViewStateRestored(Bundle aSavedInstanceState) { - super.onViewStateRestored(aSavedInstanceState); - - if (!isSavedInstanceValid(aSavedInstanceState)) { - return; - } - - loadCurrentView(aSavedInstanceState); - loadPin(aSavedInstanceState); - loadErrorMessage(aSavedInstanceState); - } - - private boolean isSavedInstanceValid(Bundle aSavedInstanceState) { - return aSavedInstanceState != null; - } - - private void loadCurrentView(Bundle aSavedInstanceState) { - int aCurrentViewId = aSavedInstanceState.getInt(SavedStates.Keys.CURRENT_VIEW_ID); - - setCurrentView(aCurrentViewId); - } - - private void setCurrentView(int aViewId) { - ViewAnimator aViewAnimator = getViewAnimator(); - View aView = getView().findViewById(aViewId); - - aViewAnimator.setDisplayedChild(aViewAnimator.indexOfChild(aView)); - } - - private ViewAnimator getViewAnimator() { - return (ViewAnimator) getView().findViewById(R.id.view_animator); - } - - private void loadPin(Bundle aSavedInstanceState) { - String aPin = aSavedInstanceState.getString(SavedStates.Keys.PIN); - - getPinTextView().setText(aPin); - } - - private TextView getPinTextView() { - return (TextView) getView().findViewById(R.id.text_pin); - } - - private void loadErrorMessage(Bundle aSavedInstanceState) { - String aErrorMessage = aSavedInstanceState.getString(SavedStates.Keys.ERROR_MESSAGE); - - getSecondaryErrorMessageTextView().setText(aErrorMessage); - } - - private TextView getSecondaryErrorMessageTextView() { - return (TextView) getView().findViewById(R.id.text_secondary_error_message); - } - - @Override - public void onActivityCreated(Bundle aSavedInstanceState) { - super.onActivityCreated(aSavedInstanceState); - - bindService(); - } - - private void bindService() { - Intent aServiceIntent = Intents.buildCommunicationServiceIntent(getActivity()); - getActivity().bindService(aServiceIntent, this, Context.BIND_AUTO_CREATE); - } - - @Override - public void onServiceConnected(ComponentName aComponentName, IBinder aBinder) { - CommunicationService.ServiceBinder aServiceBinder = (CommunicationService.ServiceBinder) aBinder; - mCommunicationService = aServiceBinder.getService(); - - connectComputer(); - } - - private void connectComputer() { - if (!isComputerConnectionRequired()) { - return; - } - - mCommunicationService.connectServer(getComputer()); - } - - private boolean isComputerConnectionRequired() { - return getViewAnimator().getCurrentView().getId() == R.id.progress_bar; - } - - private Server getComputer() { - return getArguments().getParcelable(Fragments.Arguments.COMPUTER); - } - - @Override - public void onServiceDisconnected(ComponentName aComponentName) { - mCommunicationService = null; - } - - @Override - public void onStart() { - super.onStart(); - - registerIntentsReceiver(); - } - - private void registerIntentsReceiver() { - mIntentsReceiver = new IntentsReceiver(this); - IntentFilter aIntentFilter = buildIntentsReceiverFilter(); - - getBroadcastManager().registerReceiver(mIntentsReceiver, aIntentFilter); - } - - private static class IntentsReceiver extends BroadcastReceiver { - private final ComputerConnectionFragment mComputerConnectionFragment; - - public IntentsReceiver(ComputerConnectionFragment aComputerConnectionFragment) { - mComputerConnectionFragment = aComputerConnectionFragment; - } - - @Override - public void onReceive(Context aContext, Intent aIntent) { - if (Intents.Actions.PAIRING_VALIDATION.equals(aIntent.getAction())) { - String aPin = aIntent.getStringExtra(Intents.Extras.PIN); - - mComputerConnectionFragment.setUpPinValidationInstructions(aPin); - mComputerConnectionFragment.refreshActionBarMenu(); - - return; - } - - if (Intents.Actions.PAIRING_SUCCESSFUL.equals(aIntent.getAction())) { - mComputerConnectionFragment.setUpPresentation(); - mComputerConnectionFragment.refreshActionBarMenu(); - - return; - } - - if (Intents.Actions.CONNECTION_FAILED.equals(aIntent.getAction())) { - mComputerConnectionFragment.setUpErrorMessage(); - mComputerConnectionFragment.refreshActionBarMenu(); - } - } - } - - private IntentFilter buildIntentsReceiverFilter() { - IntentFilter aIntentFilter = new IntentFilter(); - aIntentFilter.addAction(Intents.Actions.PAIRING_VALIDATION); - aIntentFilter.addAction(Intents.Actions.PAIRING_SUCCESSFUL); - aIntentFilter.addAction(Intents.Actions.CONNECTION_FAILED); - - return aIntentFilter; - } - - private LocalBroadcastManager getBroadcastManager() { - Context aContext = getActivity().getApplicationContext(); - - return LocalBroadcastManager.getInstance(aContext); - } - - private void setUpPinValidationInstructions(String aPin) { - getPinTextView().setText(aPin); - - setCurrentView(R.id.layout_pin_validation); - } - - private void setUpPresentation() { - mResult = Result.CONNECTED; - - Intent aIntent = Intents.buildSlideShowIntent(getActivity()); - startActivity(aIntent); - - getActivity().finish(); - } - - private void setUpErrorMessage() { - TextView aSecondaryMessageTextView = getSecondaryErrorMessageTextView(); - aSecondaryMessageTextView.setText(buildSecondaryErrorMessage()); - - setCurrentView(R.id.layout_error_message); - } - - private String buildSecondaryErrorMessage() { - switch (getComputer().getProtocol()) { - case BLUETOOTH: - return getString(R.string.message_impress_pairing_check); - - case TCP: - return getString(R.string.message_impress_wifi_enabling); - - default: - return ""; - } - } - - private void refreshActionBarMenu() { - getActivity().supportInvalidateOptionsMenu(); - } - - @Override - public void onCreateOptionsMenu(Menu aMenu, MenuInflater aMenuInflater) { - if (!shouldActionBarMenuBeDisplayed()) { - aMenu.clear(); - return; - } - - aMenuInflater.inflate(R.menu.menu_action_bar_computer_connection, aMenu); - } - - private boolean shouldActionBarMenuBeDisplayed() { - if (getView() == null) { - return false; - } - - return getCurrentViewId() == R.id.layout_error_message; - } - - private int getCurrentViewId() { - return getViewAnimator().getCurrentView().getId(); - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case R.id.menu_reconnect: - setCurrentView(R.id.progress_bar); - connectComputer(); - refreshActionBarMenu(); - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } - - @Override - public void onStop() { - super.onStop(); - - unregisterIntentsReceiver(); - } - - private void unregisterIntentsReceiver() { - try { - getBroadcastManager().unregisterReceiver(mIntentsReceiver); - } catch (IllegalArgumentException e) { - // Receiver not registered. - // Fixed in Honeycomb: Android’s issue #6191. - } - } - - @Override - public void onSaveInstanceState(Bundle aOutState) { - super.onSaveInstanceState(aOutState); - - saveCurrentView(aOutState); - savePin(aOutState); - saveErrorMessage(aOutState); - } - - private void saveCurrentView(Bundle aOutState) { - int aCurrentViewId = getCurrentViewId(); - - aOutState.putInt(SavedStates.Keys.CURRENT_VIEW_ID, aCurrentViewId); - } - - private void savePin(Bundle aOutState) { - String aPin = getPinTextView().getText().toString(); - - aOutState.putString(SavedStates.Keys.PIN, aPin); - } - - private void saveErrorMessage(Bundle aOutState) { - String aErrorMessage = getSecondaryErrorMessageTextView().getText().toString(); - - aOutState.putString(SavedStates.Keys.ERROR_MESSAGE, aErrorMessage); - } - - @Override - public void onDestroy() { - super.onDestroy(); - - disconnectComputer(); - - unbindService(); - } - - private void disconnectComputer() { - if (!isDisconnectRequired()) { - return; - } - - mCommunicationService.disconnectServer(); - } - - private boolean isDisconnectRequired() { - return mResult == Result.NOT_CONNECTED; - } - - private void unbindService() { - getActivity().unbindService(this); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java deleted file mode 100644 index 7f35e674d51f..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java +++ /dev/null @@ -1,439 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.fragment; - -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.TimeUnit; - -import android.app.Activity; -import android.bluetooth.BluetoothAdapter; -import android.content.BroadcastReceiver; -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.ServiceConnection; -import android.os.Bundle; -import android.os.Handler; -import android.os.IBinder; -import android.support.v4.app.ActivityCompat; -import android.support.v4.app.ListFragment; -import android.support.v4.content.LocalBroadcastManager; -import android.support.v4.view.MenuItemCompat; -import android.text.TextUtils; -import android.text.method.LinkMovementMethod; -import android.view.ContextMenu; -import android.view.LayoutInflater; -import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup; -import android.view.animation.Animation; -import android.view.animation.AnimationUtils; -import android.widget.AdapterView; -import android.widget.ListView; -import android.widget.TextView; -import android.widget.ViewAnimator; - -import org.libreoffice.impressremote.adapter.ComputersAdapter; -import org.libreoffice.impressremote.util.Fragments; -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.communication.CommunicationService; -import org.libreoffice.impressremote.communication.Server; -import org.libreoffice.impressremote.util.SavedStates; - -public class ComputersFragment extends ListFragment implements ServiceConnection, Runnable { - private static final int SHOWING_PROGRESS_MESSAGE_DELAY_IN_SECONDS = 3; - - public static enum Type { - WIFI, BLUETOOTH - } - - private CommunicationService mCommunicationService; - private BroadcastReceiver mIntentsReceiver; - - public static ComputersFragment newInstance(Type aType) { - ComputersFragment aFragment = new ComputersFragment(); - - aFragment.setArguments(buildArguments(aType)); - - return aFragment; - } - - private static Bundle buildArguments(Type aType) { - Bundle aArguments = new Bundle(); - - aArguments.putSerializable(Fragments.Arguments.TYPE, aType); - - return aArguments; - } - - @Override - public void onCreate(Bundle aSavedInstanceState) { - super.onCreate(aSavedInstanceState); - - setHasOptionsMenu(true); - } - - @Override - public View onCreateView(LayoutInflater aInflater, ViewGroup aContainer, Bundle aSavedInstanceState) { - return aInflater.inflate(R.layout.fragment_computers_list, aContainer, false); - } - - @Override - public void onViewStateRestored(Bundle aSavedInstanceState) { - super.onViewStateRestored(aSavedInstanceState); - - if (aSavedInstanceState != null - && aSavedInstanceState.getBoolean(SavedStates.Keys.PROGRESS_MESSAGE)) { - showProgressMessage(); - showLearnMoreMessage(); - } - } - - private void showProgressMessage() { - TextView aProgressMessageView = getProgressMessageView(); - Animation aFadeInAnimation = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_in); - - aProgressMessageView.setText(getProgressMessage()); - - aProgressMessageView.startAnimation(aFadeInAnimation); - aProgressMessageView.setVisibility(View.VISIBLE); - } - - private TextView getProgressMessageView() { - return (TextView) getView().findViewById(R.id.text_progress_message); - } - - private void showLearnMoreMessage() { - TextView learnMoreView = (TextView) getView().findViewById(R.id.text_learn_more); - Animation aFadeInAnimation = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_in); - - learnMoreView.setMovementMethod(LinkMovementMethod.getInstance()); - - learnMoreView.startAnimation(aFadeInAnimation); - learnMoreView.setVisibility(View.VISIBLE); - } - - private String getProgressMessage() { - switch (getType()) { - case WIFI: - return getString(R.string.message_search_wifi); - - case BLUETOOTH: - return getString(R.string.message_search_bluetooth); - - default: - return ""; - } - } - - private Type getType() { - return (Type) getArguments().getSerializable(Fragments.Arguments.TYPE); - } - - @Override - public void onActivityCreated(Bundle aSavedInstanceState) { - super.onActivityCreated(aSavedInstanceState); - - Intent aServiceIntent = Intents.buildCommunicationServiceIntent(getActivity()); - // use startService to not kill it on config changes like rotating the screen - getActivity().startService(aServiceIntent); - getActivity().bindService(aServiceIntent, this, Context.BIND_AUTO_CREATE); - } - - @Override - public void onServiceConnected(ComponentName aComponentName, IBinder aBinder) { - CommunicationService.ServiceBinder aServiceBinder = (CommunicationService.ServiceBinder) aBinder; - mCommunicationService = aServiceBinder.getService(); - - startComputersSearch(); - loadComputers(); - } - - private void startComputersSearch() { - mCommunicationService.startServersSearch(); - } - - private void loadComputers() { - if (!isVisible()) { - return; - } - - List<Server> computerList = getComputers(); - if (computerList.isEmpty()) { - setCurrentView(R.id.layout_progress); - - setUpProgressMessage(); - - setListAdapter(null); - } else { - if (getComputersAdapter() == null) { - setListAdapter(new ComputersAdapter(getActivity())); - } - - getComputersAdapter().clear(); - getComputersAdapter().add(computerList); - - setCurrentView(android.R.id.list); - } - } - - private List<Server> getComputers() { - List<Server> aComputers = new ArrayList<Server>(); - - for (Server aComputer : mCommunicationService.getServers()) { - if (isComputerSupportsRequiredType(aComputer)) { - aComputers.add(aComputer); - } - } - - return aComputers; - } - - private boolean isComputerSupportsRequiredType(Server aComputer) { - switch (getType()) { - case WIFI: - return aComputer.getProtocol() == Server.Protocol.TCP; - - case BLUETOOTH: - return aComputer.getProtocol() == Server.Protocol.BLUETOOTH; - - default: - return false; - } - } - - private void setCurrentView(int aViewId) { - ViewAnimator aViewAnimator = (ViewAnimator) getView().findViewById(R.id.view_animator); - View aView = getView().findViewById(aViewId); - - if (aViewId == aViewAnimator.getCurrentView().getId()) { - return; - } - - aViewAnimator.setDisplayedChild(aViewAnimator.indexOfChild(aView)); - } - - private void setUpProgressMessage() { - new Handler().postDelayed(this, TimeUnit.SECONDS.toMillis(SHOWING_PROGRESS_MESSAGE_DELAY_IN_SECONDS)); - } - - @Override - public void run() { - if (!isVisible()) { - return; - } - - if (!isShowingProgressMessageRequired()) { - return; - } - - showProgressMessage(); - showLearnMoreMessage(); - } - - private boolean isShowingProgressMessageRequired() { - return getProgressMessageView().getVisibility() == View.INVISIBLE; - } - - private ComputersAdapter getComputersAdapter() { - return (ComputersAdapter) getListAdapter(); - } - - @Override - public void onServiceDisconnected(ComponentName aComponentName) { - mCommunicationService = null; - } - - @Override - public void onStart() { - super.onStart(); - - registerIntentsReceiver(); - setUpContextMenu(); - - if (mCommunicationService == null) { - return; - } - - startComputersSearch(); - loadComputers(); - } - - private void registerIntentsReceiver() { - mIntentsReceiver = new IntentsReceiver(this); - IntentFilter aIntentFilter = new IntentFilter(); - aIntentFilter.addAction(Intents.Actions.SERVERS_LIST_CHANGED); - aIntentFilter.addAction(Intents.Actions.BT_DISCOVERY_CHANGED); - - getBroadcastManager().registerReceiver(mIntentsReceiver, aIntentFilter); - } - - private static final class IntentsReceiver extends BroadcastReceiver { - private final ComputersFragment mComputersFragment; - - public IntentsReceiver(ComputersFragment aComputersFragment) { - mComputersFragment = aComputersFragment; - } - - @Override - public void onReceive(Context aContext, Intent aIntent) { - if (Intents.Actions.SERVERS_LIST_CHANGED.equals(aIntent.getAction())) { - mComputersFragment.loadComputers(); - } else if (Intents.Actions.BT_DISCOVERY_CHANGED.equals(aIntent.getAction())) { - ActivityCompat.invalidateOptionsMenu(mComputersFragment.getActivity()); - } - } - } - - private LocalBroadcastManager getBroadcastManager() { - Context aContext = getActivity().getApplicationContext(); - - return LocalBroadcastManager.getInstance(aContext); - } - - private void setUpContextMenu() { - registerForContextMenu(getListView()); - } - - @Override - public void onCreateContextMenu(ContextMenu aMenu, View aView, ContextMenu.ContextMenuInfo aMenuInfo) { - super.onCreateContextMenu(aMenu, aView, aMenuInfo); - - getActivity().getMenuInflater().inflate(R.menu.menu_context_computers, aMenu); - } - - @Override - public boolean onContextItemSelected(android.view.MenuItem aMenuItem) { - if (!getUserVisibleHint()) { - // Wrong context menu could be dispatched. - // Android’s issue #20065. - return false; - } - - int aComputerPosition = getListItemPosition(aMenuItem); - Server aComputer = getComputersAdapter().getItem(aComputerPosition); - - switch (aMenuItem.getItemId()) { - case R.id.menu_remove_computer: - removeComputer(aComputer); - return true; - - default: - return super.onContextItemSelected(aMenuItem); - } - } - - private int getListItemPosition(android.view.MenuItem aMenuItem) { - AdapterView.AdapterContextMenuInfo aMenuItemInfo = (AdapterView.AdapterContextMenuInfo) aMenuItem.getMenuInfo(); - - return aMenuItemInfo.position; - } - - private void removeComputer(Server aComputer) { - mCommunicationService.removeServer(aComputer); - - Intent aIntent = Intents.buildServersListChangedIntent(); - LocalBroadcastManager.getInstance(getActivity()).sendBroadcast(aIntent); - } - - @Override - public boolean onOptionsItemSelected(MenuItem aMenuItem) { - switch (aMenuItem.getItemId()) { - case R.id.menu_add_computer: - callComputerCreationActivity(); - return true; - - case R.id.menu_start_discovery: - if (BluetoothAdapter.getDefaultAdapter().startDiscovery()) { - MenuItemCompat.setActionView(aMenuItem, R.layout.progress); - } - return true; - - default: - return super.onOptionsItemSelected(aMenuItem); - } - } - - private void callComputerCreationActivity() { - Intent aIntent = Intents.buildComputerCreationIntent(getActivity()); - startActivityForResult(aIntent, Intents.RequestCodes.CREATE_SERVER); - } - - @Override - public void onActivityResult(int aRequestCode, int aResultCode, Intent aIntent) { - if (aRequestCode != Intents.RequestCodes.CREATE_SERVER) { - return; - } - - if (aResultCode != Activity.RESULT_OK) { - return; - } - - String aServerAddress = aIntent.getStringExtra(Intents.Extras.SERVER_ADDRESS); - String aServerName = aIntent.getStringExtra(Intents.Extras.SERVER_NAME); - - addComputer(aServerAddress, aServerName); - loadComputers(); - } - - private void addComputer(String aAddress, String aName) { - mCommunicationService.addServer(aAddress, aName); - - Intent aIntent = Intents.buildServersListChangedIntent(); - LocalBroadcastManager.getInstance(getActivity()).sendBroadcast(aIntent); - } - - @Override - public void onListItemClick(ListView aListView, View aView, int aPosition, long aId) { - Server aComputer = getComputersAdapter().getItem(aPosition); - - startConnectionActivity(aComputer); - } - - private void startConnectionActivity(Server aComputer) { - Intent aIntent = Intents.buildComputerConnectionIntent(getActivity(), aComputer); - startActivity(aIntent); - } - - @Override - public void onStop() { - super.onStop(); - - try { - getBroadcastManager().unregisterReceiver(mIntentsReceiver); - } catch (IllegalArgumentException e) { - // Receiver not registered. - // Fixed in Honeycomb: Android’s issue #6191. - } - } - - @Override - public void onSaveInstanceState(Bundle aOutState) { - super.onSaveInstanceState(aOutState); - - boolean aProgressMessageDisplayed = !TextUtils.isEmpty(getProgressMessageView().getText().toString()); - - aOutState.putBoolean(SavedStates.Keys.PROGRESS_MESSAGE, aProgressMessageDisplayed); - } - - @Override - public void onDestroy() { - super.onDestroy(); - - if(getActivity().isFinishing()) { - getActivity().stopService(Intents.buildCommunicationServiceIntent(getActivity())); - } - getActivity().unbindService(this); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/EmptySlideFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/EmptySlideFragment.java deleted file mode 100644 index 51326a067b02..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/EmptySlideFragment.java +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.fragment; - -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; - -import org.libreoffice.impressremote.R; - -public class EmptySlideFragment extends Fragment { - public static EmptySlideFragment newInstance() { - return new EmptySlideFragment(); - } - - @Override - public View onCreateView(LayoutInflater aInflater, ViewGroup aContainer, Bundle aSavedInstance) { - return aInflater.inflate(R.layout.fragment_empty_slide, aContainer, false); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesGridFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesGridFragment.java deleted file mode 100644 index 5401c28cb3bd..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesGridFragment.java +++ /dev/null @@ -1,209 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.fragment; - -import android.content.BroadcastReceiver; -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.ServiceConnection; -import android.os.Bundle; -import android.os.IBinder; -import android.support.v4.app.Fragment; -import android.support.v4.content.LocalBroadcastManager; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.AdapterView; -import android.widget.GridView; - -import org.libreoffice.impressremote.activity.SlideShowActivity; -import org.libreoffice.impressremote.communication.SlideShow; -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.adapter.SlidesGridAdapter; -import org.libreoffice.impressremote.communication.CommunicationService; - -public class SlidesGridFragment extends Fragment implements ServiceConnection, AdapterView.OnItemClickListener { - private CommunicationService mCommunicationService; - private BroadcastReceiver mIntentsReceiver; - - public static SlidesGridFragment newInstance() { - return new SlidesGridFragment(); - } - - @Override - public View onCreateView(LayoutInflater aInflater, ViewGroup aContainer, Bundle aSavedInstanceState) { - return aInflater.inflate(R.layout.fragment_slides_grid, aContainer, false); - } - - @Override - public void onActivityCreated(Bundle aSavedInstanceState) { - super.onActivityCreated(aSavedInstanceState); - - bindService(); - } - - private void bindService() { - Intent aServiceIntent = Intents.buildCommunicationServiceIntent(getActivity()); - getActivity().bindService(aServiceIntent, this, Context.BIND_AUTO_CREATE); - } - - @Override - public void onServiceConnected(ComponentName aComponentName, IBinder aBinder) { - CommunicationService.ServiceBinder aServiceBinder = (CommunicationService.ServiceBinder) aBinder; - mCommunicationService = aServiceBinder.getService(); - - setUpSlidesGrid(); - } - - private void setUpSlidesGrid() { - if (!isAdded()) { - return; - } - - GridView aSlidesGrid = getSlidesGrid(); - - aSlidesGrid.setAdapter(buildSlidesAdapter()); - aSlidesGrid.setOnItemClickListener(this); - } - - private GridView getSlidesGrid() { - return (GridView) getView().findViewById(R.id.grid_slides); - } - - private SlidesGridAdapter buildSlidesAdapter() { - SlideShow aSlideShow = mCommunicationService.getSlideShow(); - - return new SlidesGridAdapter(getActivity(), aSlideShow); - } - - @Override - public void onItemClick(AdapterView<?> aAdapterView, View aView, int aPosition, long aId) { - changeCurrentSlide(aPosition); - changeSlideShowMode(); - } - - private void changeCurrentSlide(int aSlideIndex) { - mCommunicationService.getCommandsTransmitter().setCurrentSlide(aSlideIndex); - } - - private void changeSlideShowMode() { - Intent aIntent = Intents.buildSlideShowModeChangedIntent(SlideShowActivity.Mode.PAGER); - getBroadcastManager().sendBroadcast(aIntent); - } - - private LocalBroadcastManager getBroadcastManager() { - Context aContext = getActivity().getApplicationContext(); - - return LocalBroadcastManager.getInstance(aContext); - } - - @Override - public void onServiceDisconnected(ComponentName aComponentName) { - mCommunicationService = null; - } - - @Override - public void onResume() { - super.onResume(); - - registerIntentsReceiver(); - } - - private void registerIntentsReceiver() { - mIntentsReceiver = new IntentsReceiver(this); - IntentFilter aIntentFilter = buildIntentsReceiverFilter(); - - getBroadcastManager().registerReceiver(mIntentsReceiver, aIntentFilter); - } - - private static final class IntentsReceiver extends BroadcastReceiver { - private final SlidesGridFragment mSlidesGridFragment; - - private IntentsReceiver(SlidesGridFragment aSlidesGridFragment) { - mSlidesGridFragment = aSlidesGridFragment; - } - - @Override - public void onReceive(Context aContext, Intent aIntent) { - if (Intents.Actions.SLIDE_SHOW_RUNNING.equals(aIntent.getAction())) { - mSlidesGridFragment.refreshSlidesGrid(); - return; - } - - if (Intents.Actions.SLIDE_PREVIEW.equals(aIntent.getAction())) { - int aSlideIndex = aIntent.getIntExtra(Intents.Extras.SLIDE_INDEX, 0); - - mSlidesGridFragment.refreshSlidePreview(aSlideIndex); - } - } - } - - private IntentFilter buildIntentsReceiverFilter() { - IntentFilter aIntentFilter = new IntentFilter(); - aIntentFilter.addAction(Intents.Actions.SLIDE_SHOW_RUNNING); - aIntentFilter.addAction(Intents.Actions.SLIDE_PREVIEW); - - return aIntentFilter; - } - - private void refreshSlidesGrid() { - getSlidesGrid().invalidateViews(); - } - - private void refreshSlidePreview(int aSlideIndex) { - GridView aSlidesGrid = getSlidesGrid(); - View aSlideView = aSlidesGrid.getChildAt(aSlideIndex); - - if (aSlideView == null) { - return; - } - - aSlidesGrid.getAdapter().getView(aSlideIndex, aSlideView, aSlidesGrid); - } - - @Override - public void onPause() { - super.onPause(); - - unregisterIntentsReceiver(); - } - - private void unregisterIntentsReceiver() { - try { - getBroadcastManager().unregisterReceiver(mIntentsReceiver); - } catch (IllegalArgumentException e) { - // Receiver not registered. - // Fixed in Honeycomb: Android’s issue #6191. - } - } - - @Override - public void onDestroy() { - super.onDestroy(); - - unbindService(); - } - - private void unbindService() { - if (!isServiceBound()) { - return; - } - - getActivity().unbindService(this); - } - - private boolean isServiceBound() { - return mCommunicationService != null; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java deleted file mode 100644 index 002484a6ee79..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java +++ /dev/null @@ -1,364 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.fragment; - -import android.content.BroadcastReceiver; -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.ServiceConnection; -import android.os.Bundle; -import android.os.IBinder; -import android.support.v4.app.Fragment; -import android.support.v4.content.LocalBroadcastManager; -import android.support.v4.view.GestureDetectorCompat; -import android.support.v4.view.PagerAdapter; -import android.support.v4.view.ViewPager; -import android.text.Html; -import android.text.TextUtils; -import android.view.GestureDetector; -import android.view.LayoutInflater; -import android.view.MotionEvent; -import android.view.View; -import android.view.ViewGroup; -import android.widget.ScrollView; -import android.widget.TextSwitcher; - -import org.libreoffice.impressremote.communication.SlideShow; -import org.libreoffice.impressremote.util.Intents; -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.adapter.SlidesPagerAdapter; -import org.libreoffice.impressremote.communication.CommunicationService; - -public class SlidesPagerFragment extends Fragment implements ServiceConnection, ViewPager.OnPageChangeListener, View.OnTouchListener { - private CommunicationService mCommunicationService; - private BroadcastReceiver mIntentsReceiver; - private GestureDetectorCompat mDetector; - - public static SlidesPagerFragment newInstance() { - return new SlidesPagerFragment(); - } - - @Override - public View onCreateView(LayoutInflater aInflater, ViewGroup aContainer, Bundle aSavedInstanceState) { - mDetector = new GestureDetectorCompat(aContainer.getContext(), new MyGestureListener()); - return aInflater.inflate(R.layout.fragment_slides_pager, aContainer, false); - } - - @Override - public void onActivityCreated(Bundle aSavedInstanceState) { - super.onActivityCreated(aSavedInstanceState); - - bindService(); - } - - private void bindService() { - Intent aServiceIntent = Intents.buildCommunicationServiceIntent(getActivity()); - getActivity().bindService(aServiceIntent, this, Context.BIND_AUTO_CREATE); - } - - @Override - public void onServiceConnected(ComponentName aComponentName, IBinder aBinder) { - CommunicationService.ServiceBinder aServiceBinder = (CommunicationService.ServiceBinder) aBinder; - mCommunicationService = aServiceBinder.getService(); - - setUpSlidesPager(); - } - - private void setUpSlidesPager() { - if (!isServiceBound()) { - return; - } - - if (!isAdded()) { - return; - } - - ViewPager aSlidesPager = getSlidesPager(); - - aSlidesPager.setAdapter(buildSlidesAdapter()); - aSlidesPager.setPageMargin(getSlidesMargin()); - aSlidesPager.setOnPageChangeListener(this); - - setUpCurrentSlide(); - setUpCurrentSlideNotes(); - } - - private ViewPager getSlidesPager() { - return (ViewPager) getView().findViewById(R.id.pager_slides); - } - - private PagerAdapter buildSlidesAdapter() { - SlideShow aSlideShow = mCommunicationService.getSlideShow(); - - return new SlidesPagerAdapter(getActivity(), aSlideShow, this); - } - - private int getSlidesMargin() { - return getResources().getDimensionPixelSize(R.dimen.margin_slide); - } - - private void setUpCurrentSlide() { - if (!isServiceBound()) { - return; - } - - SlideShow aSlideShow = mCommunicationService.getSlideShow(); - - getSlidesPager().setCurrentItem(aSlideShow.getCurrentSlideIndex()); - } - - private void setUpCurrentSlideNotes() { - SlideShow aSlideShow = mCommunicationService.getSlideShow(); - - setUpSlideNotes(aSlideShow.getCurrentSlideIndex()); - } - - @Override - public void onPageSelected(int aPosition) { - if (mCommunicationService.getSlideShow().getCurrentSlideIndex() != aPosition) { - mCommunicationService.getCommandsTransmitter().setCurrentSlide(aPosition); - } - - setUpSlideNotes(aPosition); - } - - private void setUpSlideNotes(int aSlideIndex) { - if (!isSlideNotesLayoutAvailable()) { - return; - } - - if (!isSlideVisible(aSlideIndex)) { - return; - } - - if (!areSlideNotesAvailable(aSlideIndex)) { - hideSlideNotes(); - return; - } - - showSlideNotes(aSlideIndex); - scrollSlideNotes(); - } - - private boolean isSlideNotesLayoutAvailable() { - ViewGroup aSlideNotesLayout = (ViewGroup) getView().findViewById(R.id.layout_notes); - - return aSlideNotesLayout != null; - } - - private boolean isSlideVisible(int aSlideIndex) { - return aSlideIndex == getSlidesPager().getCurrentItem(); - } - - private boolean areSlideNotesAvailable(int aSlideIndex) { - String aSlideNotes = mCommunicationService.getSlideShow().getSlideNotes(aSlideIndex); - - return !TextUtils.isEmpty(Html.fromHtml(aSlideNotes).toString().trim()); - } - - private void showSlideNotes(int aSlideIndex) { - TextSwitcher aSlideNotesSwitcher = getSlideNotesSwitcher(); - String aSlideNotes = mCommunicationService.getSlideShow().getSlideNotes(aSlideIndex); - - aSlideNotesSwitcher.setText(Html.fromHtml(aSlideNotes)); - } - - private TextSwitcher getSlideNotesSwitcher() { - return (TextSwitcher) getView().findViewById(R.id.text_switcher_notes); - } - - private void scrollSlideNotes() { - ScrollView aSlideNotesScroll = (ScrollView) getView().findViewById(R.id.scroll_notes); - - aSlideNotesScroll.scrollTo(0, 0); - } - - private void hideSlideNotes() { - TextSwitcher aSlideNotesSwitcher = getSlideNotesSwitcher(); - - aSlideNotesSwitcher.setText(getString(R.string.message_notes_empty)); - } - - @Override - public void onPageScrolled(int aPosition, float aPositionOffset, int aPositionOffsetPixels) { - } - - @Override - public void onPageScrollStateChanged(int aState) { - } - - @Override - public void onServiceDisconnected(ComponentName aComponentName) { - mCommunicationService = null; - } - - @Override - public void onResume() { - super.onResume(); - - registerIntentsReceiver(); - } - - private void registerIntentsReceiver() { - mIntentsReceiver = new IntentsReceiver(this); - IntentFilter aIntentFilter = buildIntentsReceiverFilter(); - - getBroadcastManager().registerReceiver(mIntentsReceiver, aIntentFilter); - } - - private static final class IntentsReceiver extends BroadcastReceiver { - private final SlidesPagerFragment mSlidesPagerFragment; - - private IntentsReceiver(SlidesPagerFragment aSlidesGridFragment) { - mSlidesPagerFragment = aSlidesGridFragment; - } - - @Override - public void onReceive(Context aContext, Intent aIntent) { - if (Intents.Actions.SLIDE_SHOW_RUNNING.equals(aIntent.getAction())) { - mSlidesPagerFragment.setUpSlidesPager(); - return; - } - - if (Intents.Actions.SLIDE_SHOW_STOPPED.equals(aIntent.getAction())) { - mSlidesPagerFragment.setUpSlidesPager(); - return; - } - - if (Intents.Actions.SLIDE_CHANGED.equals(aIntent.getAction())) { - mSlidesPagerFragment.setUpCurrentSlide(); - return; - } - - if (Intents.Actions.SLIDE_PREVIEW.equals(aIntent.getAction())) { - int aSlideIndex = aIntent.getIntExtra(Intents.Extras.SLIDE_INDEX, 0); - - mSlidesPagerFragment.refreshSlide(aSlideIndex); - return; - } - - if (Intents.Actions.SLIDE_NOTES.equals(aIntent.getAction())) { - int aSlideIndex = aIntent.getIntExtra(Intents.Extras.SLIDE_INDEX, 0); - - mSlidesPagerFragment.setUpSlideNotes(aSlideIndex); - return; - } - } - } - - private IntentFilter buildIntentsReceiverFilter() { - IntentFilter aIntentFilter = new IntentFilter(); - aIntentFilter.addAction(Intents.Actions.SLIDE_SHOW_RUNNING); - aIntentFilter.addAction(Intents.Actions.SLIDE_SHOW_STOPPED); - aIntentFilter.addAction(Intents.Actions.SLIDE_CHANGED); - aIntentFilter.addAction(Intents.Actions.SLIDE_PREVIEW); - aIntentFilter.addAction(Intents.Actions.SLIDE_NOTES); - - return aIntentFilter; - } - - private LocalBroadcastManager getBroadcastManager() { - Context aContext = getActivity().getApplicationContext(); - - return LocalBroadcastManager.getInstance(aContext); - } - - private void refreshSlide(int aSlideIndex) { - // Refresh only loaded slides to avoid images blinking on large slides count. - // There is no way to invalidate only a certain slide. - - int aCurrentSlideIndex = mCommunicationService.getSlideShow().getCurrentSlideIndex(); - - if (aSlideIndex == aCurrentSlideIndex) { - refreshSlidesPager(); - return; - } - - int aSlidesOffscreenCount = getSlidesPager().getOffscreenPageLimit(); - - if (aSlideIndex < aCurrentSlideIndex - aSlidesOffscreenCount) { - return; - } - - if (aSlideIndex > aCurrentSlideIndex + aSlidesOffscreenCount) { - return; - } - - refreshSlidesPager(); - } - - private void refreshSlidesPager() { - getSlidesPager().getAdapter().notifyDataSetChanged(); - } - - @Override - public void onPause() { - super.onPause(); - - unregisterIntentsReceiver(); - } - - private void unregisterIntentsReceiver() { - try { - getBroadcastManager().unregisterReceiver(mIntentsReceiver); - } catch (IllegalArgumentException e) { - // Receiver not registered. - // Fixed in Honeycomb: Android’s issue #6191. - } - } - - @Override - public void onDestroy() { - super.onDestroy(); - - unbindService(); - } - - private void unbindService() { - if (!isServiceBound()) { - return; - } - - getActivity().unbindService(this); - } - - private boolean isServiceBound() { - return mCommunicationService != null; - } - - @Override - public boolean onTouch(View v, MotionEvent event) { - return mDetector.onTouchEvent(event); - } - - class MyGestureListener extends GestureDetector.SimpleOnGestureListener { - @Override - public boolean onDown(MotionEvent event) { - // down is the start for everything, we want that.. - return true; - } - - @Override - public boolean onSingleTapConfirmed(MotionEvent event) { - mCommunicationService.getCommandsTransmitter().performNextTransition(); - return true; - } - - @Override - public boolean onDoubleTap(MotionEvent event) { - mCommunicationService.getCommandsTransmitter().performPreviousTransition(); - return true; - } - } - -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/TimerEditingDialog.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/TimerEditingDialog.java deleted file mode 100644 index c77a79c0bce0..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/TimerEditingDialog.java +++ /dev/null @@ -1,123 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.fragment; - -import java.util.concurrent.TimeUnit; - -import android.app.Dialog; -import android.app.TimePickerDialog; -import android.content.DialogInterface; -import android.content.Intent; -import android.os.Bundle; -import android.support.v4.app.DialogFragment; -import android.support.v4.content.LocalBroadcastManager; -import android.widget.TimePicker; - -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.util.Fragments; -import org.libreoffice.impressremote.util.Intents; - -public class TimerEditingDialog extends DialogFragment implements TimePickerDialog.OnTimeSetListener, DialogInterface.OnClickListener { - public static final String TAG = "TIMER_EDITING"; - - private static final boolean IS_24_HOUR_VIEW = true; - - private int mMinutes; - - public static TimerEditingDialog newInstance(int aMinutes) { - TimerEditingDialog aDialog = new TimerEditingDialog(); - - aDialog.setArguments(buildArguments(aMinutes)); - - return aDialog; - } - - private static Bundle buildArguments(int aMinutes) { - Bundle aArguments = new Bundle(); - - aArguments.putInt(Fragments.Arguments.MINUTES, aMinutes); - - return aArguments; - } - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - mMinutes = getArguments().getInt(Fragments.Arguments.MINUTES); - } - - @Override - public Dialog onCreateDialog(Bundle aSavedInstanceState) { - TimePickerDialog aDialog = new TimePickerDialog(getActivity(), this, - getHours(mMinutes), getMinutes(mMinutes), IS_24_HOUR_VIEW); - - aDialog.setTitle(R.string.title_timer); - - aDialog.setButton(DialogInterface.BUTTON_POSITIVE, getString(R.string.button_save), this); - aDialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.button_remove), this); - - return aDialog; - } - - private int getMinutes(int aMinutes) { - return (int) (aMinutes - getHours(aMinutes) * TimeUnit.HOURS.toMinutes(1)); - } - - private int getHours(int aMinutes) { - return (int) (aMinutes / TimeUnit.HOURS.toMinutes(1)); - } - - @Override - public void onTimeSet(TimePicker aTimePicker, int aHour, int aMinute) { - mMinutes = getMinutes(aHour, aMinute); - } - - private int getMinutes(int aHours, int aMinutes) { - return (int) (TimeUnit.HOURS.toMinutes(aHours) + aMinutes); - } - - @Override - public void onClick(DialogInterface aDialogInterface, int aButtonId) { - getTimePickerDialog().onClick(aDialogInterface, aButtonId); - - if (aButtonId == DialogInterface.BUTTON_NEUTRAL) { - resetTime(); - } - - changeTimer(); - } - - private TimePickerDialog getTimePickerDialog() { - return (TimePickerDialog) getDialog(); - } - - private void resetTime() { - mMinutes = 0; - } - - private void changeTimer() { - Intent aIntent = Intents.buildTimerChangedIntent(mMinutes); - LocalBroadcastManager.getInstance(getActivity()).sendBroadcast(aIntent); - } - - @Override - public void onCancel(DialogInterface dialog) { - super.onCancel(dialog); - - resumeTimer(); - } - - private void resumeTimer() { - Intent aIntent = Intents.buildTimerResumedIntent(); - LocalBroadcastManager.getInstance(getActivity()).sendBroadcast(aIntent); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/TimerSettingDialog.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/TimerSettingDialog.java deleted file mode 100644 index 785a8b332124..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/TimerSettingDialog.java +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.fragment; - -import java.util.concurrent.TimeUnit; - -import android.app.Dialog; -import android.app.TimePickerDialog; -import android.content.DialogInterface; -import android.content.Intent; -import android.os.Bundle; -import android.support.v4.app.DialogFragment; -import android.support.v4.content.LocalBroadcastManager; -import android.widget.TimePicker; - -import org.libreoffice.impressremote.R; -import org.libreoffice.impressremote.util.Intents; - -public class TimerSettingDialog extends DialogFragment implements TimePickerDialog.OnTimeSetListener, DialogInterface.OnClickListener { - public static final String TAG = "TIMER_SETTING"; - - private static final int INITIAL_HOUR = 0; - private static final int INITIAL_MINUTE = 15; - - private static final boolean IS_24_HOUR_VIEW = true; - - private int mMinutes; - - public static TimerSettingDialog newInstance() { - return new TimerSettingDialog(); - } - - @Override - public Dialog onCreateDialog(Bundle aSavedInstanceState) { - TimePickerDialog aDialog = new TimePickerDialog(getActivity(), this, - INITIAL_HOUR, INITIAL_MINUTE, IS_24_HOUR_VIEW); - - aDialog.setTitle(R.string.title_timer); - - aDialog.setButton(DialogInterface.BUTTON_POSITIVE, getString(R.string.button_start), this); - - return aDialog; - } - - @Override - public void onTimeSet(TimePicker aTimePicker, int aHour, int aMinute) { - mMinutes = getMinutes(aHour, aMinute); - } - - private int getMinutes(int aHours, int aMinutes) { - return (int) (TimeUnit.HOURS.toMinutes(aHours) + aMinutes); - } - - @Override - public void onClick(DialogInterface aDialogInterface, int aButtonId) { - getTimePickerDialog().onClick(aDialogInterface, aButtonId); - - startTimer(); - } - - private TimePickerDialog getTimePickerDialog() { - return (TimePickerDialog) getDialog(); - } - - private void startTimer() { - Intent aIntent = Intents.buildTimerStartedIntent(mMinutes); - LocalBroadcastManager.getInstance(getActivity()).sendBroadcast(aIntent); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/util/Fragments.java b/android/sdremote/src/org/libreoffice/impressremote/util/Fragments.java deleted file mode 100644 index fae8819ad8da..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/util/Fragments.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.util; - -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentActivity; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentTransaction; - -public final class Fragments { - private Fragments() { - } - - public static final class Arguments { - private Arguments() { - } - - public static final String COMPUTER = "COMPUTER"; - public static final String MINUTES = "MINUTES"; - public static final String TYPE = "TYPE"; - } - - public static final class Operator { - private Operator() { - } - - public static void add(FragmentActivity aActivity, Fragment aFragment) { - if (isAdded(aActivity)) { - return; - } - - FragmentTransaction aFragmentTransaction = beginTransaction(aActivity); - - aFragmentTransaction.add(android.R.id.content, aFragment); - - aFragmentTransaction.commit(); - } - - private static boolean isAdded(FragmentActivity aActivity) { - FragmentManager aFragmentManager = aActivity.getSupportFragmentManager(); - - return aFragmentManager.findFragmentById(android.R.id.content) != null; - } - - private static FragmentTransaction beginTransaction(FragmentActivity aActivity) { - FragmentManager aFragmentManager = aActivity.getSupportFragmentManager(); - - return aFragmentManager.beginTransaction(); - } - - public static void replaceAnimated(FragmentActivity aActivity, Fragment aFragment) { - FragmentTransaction aFragmentTransaction = beginTransaction(aActivity); - aFragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); - - aFragmentTransaction.replace(android.R.id.content, aFragment); - - aFragmentTransaction.commit(); - } - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/util/ImageLoader.java b/android/sdremote/src/org/libreoffice/impressremote/util/ImageLoader.java deleted file mode 100644 index 1bd2f4f326df..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/util/ImageLoader.java +++ /dev/null @@ -1,154 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.util; - -import java.lang.ref.WeakReference; -import java.util.Arrays; - -import android.content.res.Resources; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; -import android.graphics.drawable.BitmapDrawable; -import android.graphics.drawable.Drawable; -import android.os.AsyncTask; -import android.widget.ImageView; - -public final class ImageLoader { - private final Resources mResources; - private final Bitmap mLoadingImage; - - public ImageLoader(Resources aResources, int aLoadingImageResourceId) { - mResources = aResources; - mLoadingImage = BitmapFactory.decodeResource(mResources, aLoadingImageResourceId); - } - - public void loadImage(ImageView aImageView, byte[] aImageBytes) { - if (isSameImageLoading(aImageView, aImageBytes)) { - return; - } - - if (isImageLoadingCancellationRequired(aImageView, aImageBytes)) { - cancelImageLoading(aImageView); - } - - startImageLoading(aImageView, aImageBytes); - } - - private boolean isSameImageLoading(ImageView aImageView, byte[] aImageBytes) { - if (!isImageLoading(aImageView)) { - return false; - } - - ImageLoadingTask aImageLoadingTask = getImageLoadingTask(aImageView); - - return Arrays.equals(aImageBytes, aImageLoadingTask.getImageBytes()); - } - - private boolean isImageLoading(ImageView aImageView) { - ImageLoadingTask aImageLoadingTask = getImageLoadingTask(aImageView); - - return aImageLoadingTask != null; - } - - private ImageLoadingTask getImageLoadingTask(ImageView aImageView) { - if (aImageView == null) { - return null; - } - - Drawable aImageDrawable = aImageView.getDrawable(); - - if (!(aImageDrawable instanceof AsyncDrawable)) { - return null; - } - - AsyncDrawable aAsyncImageDrawable = (AsyncDrawable) aImageDrawable; - - return aAsyncImageDrawable.getImageLoadingTask(); - } - - private boolean isImageLoadingCancellationRequired(ImageView aImageView, byte[] aImageBytes) { - return isImageLoading(aImageView) && !isSameImageLoading(aImageView, aImageBytes); - } - - private void cancelImageLoading(ImageView aImageView) { - ImageLoadingTask aImageLoadingTask = getImageLoadingTask(aImageView); - - aImageLoadingTask.cancel(true); - } - - private void startImageLoading(ImageView aImageView, byte[] aImageBytes) { - ImageLoadingTask aImageLoadingTask = new ImageLoadingTask(aImageView, aImageBytes); - AsyncDrawable aAsyncDrawable = new AsyncDrawable(mResources, mLoadingImage, aImageLoadingTask); - - aImageView.setImageDrawable(aAsyncDrawable); - aImageLoadingTask.execute(); - } - - private static class ImageLoadingTask extends AsyncTask<Void, Void, Bitmap> { - private final WeakReference<ImageView> mImageViewReference; - private final byte[] mImageBytes; - - public ImageLoadingTask(ImageView aImageView, byte[] aImageBytes) { - mImageViewReference = new WeakReference<ImageView>(aImageView); - mImageBytes = aImageBytes; - } - - public byte[] getImageBytes() { - return mImageBytes; - } - - @Override - protected Bitmap doInBackground(Void... aParameters) { - return BitmapFactory.decodeByteArray(mImageBytes, 0, mImageBytes.length); - } - - @Override - protected void onPostExecute(Bitmap aBitmap) { - super.onPostExecute(aBitmap); - - if (isCancelled()) { - return; - } - - if (aBitmap == null) { - return; - } - - if (mImageViewReference == null) { - return; - } - - if (getImageView() == null) { - return; - } - - getImageView().setImageBitmap(aBitmap); - } - - private ImageView getImageView() { - return mImageViewReference.get(); - } - } - - private static class AsyncDrawable extends BitmapDrawable { - private final WeakReference<ImageLoadingTask> mImageLoadingTaskReference; - - public AsyncDrawable(Resources aResources, Bitmap aBitmap, ImageLoadingTask aImageLoadingTask) { - super(aResources, aBitmap); - - mImageLoadingTaskReference = new WeakReference<ImageLoadingTask>(aImageLoadingTask); - } - - public ImageLoadingTask getImageLoadingTask() { - return mImageLoadingTaskReference.get(); - } - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/util/Intents.java b/android/sdremote/src/org/libreoffice/impressremote/util/Intents.java deleted file mode 100644 index 25f3c47312d1..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/util/Intents.java +++ /dev/null @@ -1,191 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.util; - -import android.content.Context; -import android.content.Intent; - -import org.libreoffice.impressremote.activity.ComputerConnectionActivity; -import org.libreoffice.impressremote.activity.ComputerCreationActivity; -import org.libreoffice.impressremote.activity.LicensesActivity; -import org.libreoffice.impressremote.activity.RequirementsActivity; -import org.libreoffice.impressremote.activity.SettingsActivity; -import org.libreoffice.impressremote.activity.SlideShowActivity; -import org.libreoffice.impressremote.communication.CommunicationService; -import org.libreoffice.impressremote.communication.Server; - -public final class Intents { - private Intents() { - } - - public static final class Actions { - private Actions() { - } - - public static final String SERVERS_LIST_CHANGED = "SERVERS_LIST_CHANGED"; - public static final String BT_DISCOVERY_CHANGED = "BT_DISCOVERY_CHANGED"; - - public static final String PAIRING_SUCCESSFUL = "PAIRING_SUCCESSFUL"; - public static final String PAIRING_VALIDATION = "PAIRING_VALIDATION"; - - public static final String CONNECTION_FAILED = "CONNECTION_FAILED"; - - public static final String SLIDE_SHOW_RUNNING = "SLIDE_SHOW_RUNNING"; - public static final String SLIDE_SHOW_STOPPED = "SLIDE_SHOW_STOPPED"; - - public static final String SLIDE_SHOW_MODE_CHANGED = "SLIDE_SHOW_MODE_CHANGED"; - - public static final String SLIDE_CHANGED = "SLIDE_CHANGED"; - public static final String SLIDE_PREVIEW = "SLIDE_PREVIEW"; - public static final String SLIDE_NOTES = "SLIDE_NOTES"; - - public static final String TIMER_UPDATED = "TIMER_UPDATED"; - public static final String TIMER_STARTED = "TIMER_STARTED"; - public static final String TIMER_RESUMED = "TIMER_RESUMED"; - public static final String TIMER_CHANGED = "TIMER_CHANGED"; - } - - public static final class Extras { - private Extras() { - } - - public static final String MINUTES = "MINUTES"; - public static final String MODE = "MODE"; - public static final String PIN = "PIN"; - public static final String SERVER = "SERVER"; - public static final String SERVER_ADDRESS = "SERVER_ADDRESS"; - public static final String SERVER_NAME = "SERVER_NAME"; - public static final String SLIDE_INDEX = "SLIDE_INDEX"; - } - - public static final class RequestCodes { - private RequestCodes() { - } - - public static final int CREATE_SERVER = 1; - } - - public static Intent buildServersListChangedIntent() { - return new Intent(Actions.SERVERS_LIST_CHANGED); - } - - public static Intent buildPairingSuccessfulIntent() { - return new Intent(Actions.PAIRING_SUCCESSFUL); - } - - public static Intent buildPairingValidationIntent(String aPin) { - Intent aIntent = new Intent(Actions.PAIRING_VALIDATION); - aIntent.putExtra(Extras.PIN, aPin); - - return aIntent; - } - - public static Intent buildConnectionFailedIntent() { - return new Intent(Actions.CONNECTION_FAILED); - } - - public static Intent buildSlideShowRunningIntent() { - return new Intent(Actions.SLIDE_SHOW_RUNNING); - } - - public static Intent buildSlideShowStoppedIntent() { - return new Intent(Actions.SLIDE_SHOW_STOPPED); - } - - public static Intent buildSlideShowModeChangedIntent(SlideShowActivity.Mode aMode) { - Intent aIntent = new Intent(Actions.SLIDE_SHOW_MODE_CHANGED); - aIntent.putExtra(Extras.MODE, aMode); - - return aIntent; - } - - public static Intent buildSlideChangedIntent(int aSlideIndex) { - Intent aIntent = new Intent(Actions.SLIDE_CHANGED); - aIntent.putExtra(Extras.SLIDE_INDEX, aSlideIndex); - - return aIntent; - } - - public static Intent buildSlidePreviewIntent(int aSlideIndex) { - Intent aIntent = new Intent(Actions.SLIDE_PREVIEW); - aIntent.putExtra(Extras.SLIDE_INDEX, aSlideIndex); - - return aIntent; - } - - public static Intent buildSlideNotesIntent(int aSlideIndex) { - Intent aIntent = new Intent(Actions.SLIDE_NOTES); - aIntent.putExtra(Extras.SLIDE_INDEX, aSlideIndex); - - return aIntent; - } - - public static Intent buildComputerConnectionIntent(Context aContext, Server aServer) { - Intent aIntent = new Intent(aContext, ComputerConnectionActivity.class); - aIntent.putExtra(Extras.SERVER, aServer); - - return aIntent; - } - - public static Intent buildComputerCreationIntent(Context aContext) { - return new Intent(aContext, ComputerCreationActivity.class); - } - - public static Intent buildComputerCreationResultIntent(String aAddress, String aName) { - Intent aIntent = new Intent(); - aIntent.putExtra(Extras.SERVER_ADDRESS, aAddress); - aIntent.putExtra(Extras.SERVER_NAME, aName); - - return aIntent; - } - - public static Intent buildSlideShowIntent(Context aContext) { - return new Intent(aContext, SlideShowActivity.class); - } - - public static Intent buildSettingsIntent(Context aContext) { - return new Intent(aContext, SettingsActivity.class); - } - - public static Intent buildRequirementsIntent(Context aContext) { - return new Intent(aContext, RequirementsActivity.class); - } - - public static Intent buildLicensesIntent(Context aContext) { - return new Intent(aContext, LicensesActivity.class); - } - - public static Intent buildCommunicationServiceIntent(Context aContext) { - return new Intent(aContext, CommunicationService.class); - } - - public static Intent buildTimerUpdatedIntent() { - return new Intent(Actions.TIMER_UPDATED); - } - - public static Intent buildTimerStartedIntent(int aMinutesLength) { - Intent aIntent = new Intent(Actions.TIMER_STARTED); - aIntent.putExtra(Extras.MINUTES, aMinutesLength); - - return aIntent; - } - - public static Intent buildTimerResumedIntent() { - return new Intent(Actions.TIMER_RESUMED); - } - - public static Intent buildTimerChangedIntent(int aMinutesLength) { - Intent aIntent = new Intent(Actions.TIMER_CHANGED); - aIntent.putExtra(Extras.MINUTES, aMinutesLength); - - return aIntent; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/util/Preferences.java b/android/sdremote/src/org/libreoffice/impressremote/util/Preferences.java deleted file mode 100644 index ca5fbaee8a62..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/util/Preferences.java +++ /dev/null @@ -1,102 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.util; - -import java.util.Map; - -import android.content.Context; -import android.content.SharedPreferences; -import android.preference.PreferenceManager; - -public final class Preferences { - private static final class Locations { - private Locations() { - } - - public static final String AUTHORIZED_SERVERS = "authorized_servers"; - public static final String SAVED_SERVERS = "saved_servers"; - public static final String APPLICATION_STATES = "application_states"; - } - - public static final class Keys { - private Keys() { - } - - public static final String SELECTED_COMPUTERS_TAB_INDEX = "selected_computers_tab_index"; - - public static final String KEEP_SCREEN_ON = "keep_screen_on"; - public static final String VOLUME_KEYS_ACTIONS = "volume_keys_actions"; - public static final String QUIET_MODE = "quiet_mode"; - } - - private static final class Defaults { - private Defaults() { - } - - public static final String STRING = null; - public static final int INT = 0; - public static final boolean BOOLEAN = false; - } - - private final SharedPreferences mPreferences; - - private Preferences(Context context) { - mPreferences = PreferenceManager.getDefaultSharedPreferences(context); - } - - private Preferences(Context aContext, String aLocation) { - mPreferences = aContext.getSharedPreferences(aLocation, Context.MODE_PRIVATE); - } - - public static Preferences getSettingsInstance(Context context) { - return new Preferences(context); - } - - public static Preferences getAuthorizedServersInstance(Context aContext) { - return new Preferences(aContext, Locations.AUTHORIZED_SERVERS); - } - - public static Preferences getSavedServersInstance(Context aContext) { - return new Preferences(aContext, Locations.SAVED_SERVERS); - } - - public static Preferences getApplicationStatesInstance(Context aContext) { - return new Preferences(aContext, Locations.APPLICATION_STATES); - } - - public Map<String, ?> getAll() { - return mPreferences.getAll(); - } - - public boolean getBoolean(String aKey) { - return mPreferences.getBoolean(aKey, Defaults.BOOLEAN); - } - - public int getInt(String aKey) { - return mPreferences.getInt(aKey, Defaults.INT); - } - - public String getString(String aKey) { - return mPreferences.getString(aKey, Defaults.STRING); - } - - public void setInt(String aKey, int aValue) { - mPreferences.edit().putInt(aKey, aValue).commit(); - } - - public void setString(String aKey, String aValue) { - mPreferences.edit().putString(aKey, aValue).commit(); - } - - public void remove(String aKey) { - mPreferences.edit().remove(aKey).commit(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/sdremote/src/org/libreoffice/impressremote/util/SavedStates.java b/android/sdremote/src/org/libreoffice/impressremote/util/SavedStates.java deleted file mode 100644 index 062462e757af..000000000000 --- a/android/sdremote/src/org/libreoffice/impressremote/util/SavedStates.java +++ /dev/null @@ -1,29 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.libreoffice.impressremote.util; - -public final class SavedStates { - private SavedStates() { - } - - public static final class Keys { - private Keys() { - } - - public static final String BLUETOOTH_ENABLED ="BLUETOOTH_ENABLED"; - public static final String CURRENT_VIEW_ID = "CURRENT_VIEW_ID"; - public static final String ERROR_MESSAGE = "ERROR_MESSAGE"; - public static final String MODE = "MODE"; - public static final String PIN = "PIN"; - public static final String PROGRESS_MESSAGE = "PROGRESS_MESSAGE"; - public static final String RINGER_MODE = "RINGER_MODE"; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |