[Libreoffice-commits] core.git: odk/examples

2023-11-21 Thread Hossein (via logerrit)
 odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/cxx/Makefile   |
2 +-
 odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/java/Makefile  |
2 +-
 odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/cxx/Makefile  |
2 +-
 odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/java/Makefile |
2 +-
 odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/Makefile |
2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 42edec63fba4a3ddc0dcd83a5affb7913625b42a
Author: Hossein 
AuthorDate: Tue Nov 21 12:05:10 2023 +0100
Commit: Hossein 
CommitDate: Tue Nov 21 13:31:36 2023 +0100

Cleanup make files for Java/C++ SDK examples

This fixes some minor issues with the make files for Java/C++ SDK
examples in DevelopersGuide/FirstSteps.

For Java examples, an exatra "-f Example_Java.mk" was a leftover from a
previous change.

For C++ examples, 'make clean' was not working correctly, because of a
leftover from a previous change.

Both should be fixed now.

Change-Id: Id936824675a9bfd43674ca526bc97a998ed9daf8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159777
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git 
a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/cxx/Makefile 
b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/cxx/Makefile
index 20f6b34bd8c9..47df3bdc4fa5 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/cxx/Makefile
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/cxx/Makefile
@@ -97,4 +97,4 @@ clean :
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_INC))
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_GEN))
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_OBJ))
-   -$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/*SimpleBootstrap*))
+   -$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/*FirstLoadComponent*))
diff --git 
a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/java/Makefile 
b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/java/Makefile
index 94f2332ca066..091c9bcda3e0 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/java/Makefile
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/java/Makefile
@@ -81,7 +81,7 @@ $(EXAMPLE_NAME) : $(APP_JAR)
@echo 

@echo Please use the following command to execute the example!
@echo -
-   @echo $(MAKE) -f Example_Java.mk $(APP_NAME).run
+   @echo $(MAKE) $(APP_NAME).run
@echo 

 
 %.run: $(OUT_APP_CLASS)/%.jar
diff --git 
a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/cxx/Makefile 
b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/cxx/Makefile
index dca5fa92506b..a996044c602a 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/cxx/Makefile
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/cxx/Makefile
@@ -97,4 +97,4 @@ clean :
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_INC))
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_GEN))
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_OBJ))
-   -$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/*SimpleBootstrap*))
+   -$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/*FirstUnoContact*))
diff --git 
a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/java/Makefile 
b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/java/Makefile
index 4dca4468f74a..eae7d4452ffe 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/java/Makefile
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/java/Makefile
@@ -81,7 +81,7 @@ $(EXAMPLE_NAME) : $(APP_JAR)
@echo 

@echo Please use the following command to execute the example!
@echo -
-   @echo $(MAKE) -f Example_Java.mk $(APP_NAME).run
+   @echo $(MAKE) $(APP_NAME).run
@echo 

 
 %.run: $(OUT_APP_CLASS)/%.jar
diff --git 
a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/Makefile 
b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/Makefile
index a208b6eb6006..615e86bf3f25 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/Makefile
+++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/Makefile
@@ -81,7 +81,7 @@ $(EXAMPLE_NAME) : $(APP_JAR)
@echo 

@echo Please use the following command to execute the example!
@echo -
-   @echo $(MAKE) -f Example_Java.mk $(APP_NAME).run
+   @echo $(MAKE) $(APP_NAME).run
@echo 

[Libreoffice-commits] core.git: odk/examples

2023-11-03 Thread Andrea Gelmini (via logerrit)
 odk/examples/DevelopersGuide/GUI/MessageBox.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eded77b8e0439d6bd74935ae97748653d5863974
Author: Andrea Gelmini 
AuthorDate: Fri Nov 3 19:53:49 2023 +0100
Commit: Taichi Haradaguchi <20001...@ymail.ne.jp>
CommitDate: Sat Nov 4 04:59:53 2023 +0100

Fix typo

Change-Id: I064aa3c54650904671a312eadbe8e77b26ae141a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158913
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001...@ymail.ne.jp>

diff --git a/odk/examples/DevelopersGuide/GUI/MessageBox.java 
b/odk/examples/DevelopersGuide/GUI/MessageBox.java
index cff15262d559..c5ad36e734b5 100644
--- a/odk/examples/DevelopersGuide/GUI/MessageBox.java
+++ b/odk/examples/DevelopersGuide/GUI/MessageBox.java
@@ -146,7 +146,7 @@ public class MessageBox  {
 Object oDesktop = m_xMCF.createInstanceWithContext(
"com.sun.star.frame.Desktop", 
m_xContext);
 
-// get the component laoder from the desktop to create a new
+// get the component loader from the desktop to create a new
 // text document
 com.sun.star.frame.XComponentLoader xCLoader 
=UnoRuntime.queryInterface(com.sun.star.frame.XComponentLoader.class,oDesktop);
 


[Libreoffice-commits] core.git: odk/examples

2023-11-03 Thread Andrea Gelmini (via logerrit)
 odk/examples/java/Text/TextDocumentStructure.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b73cde1acb09d21cc6c74f88992f7ee0f871eba4
Author: Andrea Gelmini 
AuthorDate: Fri Nov 3 11:33:11 2023 +0100
Commit: Taichi Haradaguchi <20001...@ymail.ne.jp>
CommitDate: Fri Nov 3 16:14:56 2023 +0100

Fix typo

Change-Id: Ida31b30c64c8ba2be61e6f4a408e1346df48d1b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158875
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001...@ymail.ne.jp>

diff --git a/odk/examples/java/Text/TextDocumentStructure.java 
b/odk/examples/java/Text/TextDocumentStructure.java
index a1043a44775f..273f08f95b8c 100644
--- a/odk/examples/java/Text/TextDocumentStructure.java
+++ b/odk/examples/java/Text/TextDocumentStructure.java
@@ -60,7 +60,7 @@ public class TextDocumentStructure {
 Object oDesktop = xMCF.createInstanceWithContext(
 "com.sun.star.frame.Desktop", 
xContext);
 
-// get the component laoder from the desktop to create a new
+// get the component loader from the desktop to create a new
 // text document
 com.sun.star.frame.XComponentLoader xCLoader =
 UnoRuntime.queryInterface(


[Libreoffice-commits] core.git: odk/examples

2023-09-16 Thread Hossein (via logerrit)
 odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.bas  |   41 +
 odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.bas |   17 
 odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.bas |  223 
++
 3 files changed, 281 insertions(+)

New commits:
commit 930f0aa232611d751209c5cb089b9f282f26bde8
Author: Hossein 
AuthorDate: Sat Sep 16 14:05:03 2023 +0200
Commit: Hossein 
CommitDate: Sat Sep 16 15:08:31 2023 +0200

tdf#157273 Port DevelopersGuide/FirstSteps examples to BASIC

These 3 examples from the chapter 1 of the DevGuide are ported to BASIC:

1) FirstUnoContact
2) FirstLoadComponent
3) HelloTextTableShape

More details can be found in the LibreOffice DevGuide:

LibreOffice Developer's Guide: Chapter 1 - First Steps
https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps

Change-Id: I577ad81d76cec06102f00b2646b004caa5f7b401
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156976
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.bas 
b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.bas
new file mode 100644
index ..e11b91b23596
--- /dev/null
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.bas
@@ -0,0 +1,41 @@
+'
+' 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/.
+'
+
+Sub Main
+desktop = createUnoService("com.sun.star.frame.Desktop")
+Dim args()
+spreadsheet_component = 
desktop.loadComponentFromURL("private:factory/scalc", "_blank", 0, args())
+
+spreadsheets = spreadsheet_component.getSheets()
+spreadsheets.insertNewByName("MySheet", 0)
+elem_type = spreadsheets.getElementType()
+Msgbox(elem_type.Name)
+sheet = spreadsheets.getByName("MySheet")
+cell = sheet.getCellByPosition(0, 0)
+cell.setValue(21)
+cell = sheet.getCellByPosition(0, 1)
+cell.setValue(21)
+cell = sheet.getCellByPosition(0, 2)
+cell.setFormula("=sum(A1:A2)")
+
+cell.setPropertyValue("CellStyle", "Result")
+
+spreadsheet_controller = spreadsheet_component.getCurrentController()
+spreadsheet_controller.setActiveSheet(sheet)
+cell.setPropertyValue("VertJustify", 
"com.sun.star.table.CellVertJustify.TOP")
+formula_cells = 
sheet.queryContentCells(com.sun.star.sheet.CellFlags.FORMULA)
+formulas = formula_cells.getCells()
+formula_enum = formulas.createEnumeration()
+
+Do while formula_enum.hasMoreElements()
+formula_cell = formula_enum.nextElement()
+Msgbox("Formula cell in column " + 
formula_cell.getCellAddress().Column + _
+ ", row " + formula_cell.getCellAddress().Row + _
+  " contains " + cell.getFormula())
+Loop
+End Sub
diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.bas 
b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.bas
new file mode 100644
index ..ba8f542d834e
--- /dev/null
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.bas
@@ -0,0 +1,17 @@
+'
+' 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/.
+'
+
+Sub Main
+Set oContext = GetDefaultContext()
+MsgBox "Connected to a running office..."
+Set oServiceManager=oContext.GetServiceManager()
+If IsNull(oServiceManager) Then
+bAvailable = "not "
+End If
+MsgBox "ServiceManager is " + bAvailable + "available"
+End Sub
\ No newline at end of file
diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.bas 
b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.bas
new file mode 100644
index ..96d75a445fac
--- /dev/null
+++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.bas
@@ -0,0 +1,223 @@
+'
+' 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/.
+'
+
+Function new_doc_component(doc_type As String)
+load_url = "private:factory/" & doc_type
+desktop = createUnoService("com.sun.star.frame.Desktop")
+Set new_doc_component = desktop.loadComponentFromURL(load_url, "_blank", 
0, Array())
+End Function
+
+Sub use_documents
+use_writer()
+use_calc()
+use_draw()
+End Sub
+
+Sub use_writer
+Set doc = new_doc_component("swriter")
+Set xtext = doc.Text
+manipulateText(xtext)
+
+' insert TextTable and get cell text, then manipulate text in cell
+Set 

[Libreoffice-commits] core.git: odk/examples odk/Package_examples.mk solenv/clang-format

2023-09-08 Thread Hossein (via logerrit)
 odk/Package_examples.mk |8 
 odk/examples/OLE/activex/Makefile   |   12 ++--
 odk/examples/OLE/activex/SOActiveX.cxx  |2 +-
 odk/examples/OLE/activex/StdAfx2.cxx|6 +++---
 odk/examples/OLE/activex/so_activex.cxx |2 +-
 solenv/clang-format/excludelist |2 +-
 6 files changed, 16 insertions(+), 16 deletions(-)

New commits:
commit 65325f9c2f9aff6782fa5df910e8f2f5e63dfd93
Author: Hossein 
AuthorDate: Thu Sep 7 17:16:24 2023 +0200
Commit: Hossein 
CommitDate: Sat Sep 9 01:20:46 2023 +0200

Rename .cpp examples to .cxx

The files are renamed, and the associated lines in Makefiles and
elsewhere are also changed.

Change-Id: Ieec38055690e03afd8982320ee0836904a3f41eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156670
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/odk/Package_examples.mk b/odk/Package_examples.mk
index 457aea37e166..f533a91a346c 100644
--- a/odk/Package_examples.mk
+++ b/odk/Package_examples.mk
@@ -366,17 +366,17 @@ $(eval $(call 
gb_Package_add_files_with_dir,odk_examples,$(SDKDIRNAME)/examples,
 DevelopersGuide/UCB/data/data.txt \
 OLE/activex/Makefile \
 OLE/activex/README.txt \
-OLE/activex/SOActiveX.cpp \
+OLE/activex/SOActiveX.cxx \
 OLE/activex/SOActiveX.h \
 OLE/activex/SOActiveX.rgs \
-OLE/activex/SOComWindowPeer.cpp \
+OLE/activex/SOComWindowPeer.cxx \
 OLE/activex/SOComWindowPeer.h \
 OLE/activex/SOComWindowPeer.rgs \
-OLE/activex/StdAfx2.cpp \
+OLE/activex/StdAfx2.cxx \
 OLE/activex/StdAfx2.h \
 OLE/activex/example.html \
 OLE/activex/resource.h \
-OLE/activex/so_activex.cpp \
+OLE/activex/so_activex.cxx \
 OLE/activex/so_activex.def \
 OLE/activex/so_activex.idl \
 OLE/activex/so_activex.rc \
diff --git a/odk/examples/OLE/activex/Makefile 
b/odk/examples/OLE/activex/Makefile
index 15167bc93ba4..ca893a44362a 100644
--- a/odk/examples/OLE/activex/Makefile
+++ b/odk/examples/OLE/activex/Makefile
@@ -50,12 +50,12 @@ OUT_COMP_SLO=$(OUT_SLO)/$(COMPONENT_NAME)
 
 MIDLFILES = so_activex.idl
 
-CXXFILES = SOActiveX.cpp \
-SOComWindowPeer.cpp \
-so_activex.cpp \
-StdAfx2.cpp
+CXXFILES = SOActiveX.cxx \
+SOComWindowPeer.cxx \
+so_activex.cxx \
+StdAfx2.cxx
 
-SLOFILES = $(patsubst %.cpp,$(OUT_COMP_SLO)/%.$(OBJ_EXT),$(CXXFILES))
+SLOFILES = $(patsubst %.cxx,$(OUT_COMP_SLO)/%.$(OBJ_EXT),$(CXXFILES))
 
 # Targets
 .PHONY: ALL
@@ -76,7 +76,7 @@ $(OUT_COMP_GEN)/so_activex.res : so_activex.rc 
$(OUT_COMP_INC)/so_activex.h
-$(MKDIR) $(subst /,$(PS),$(@D))
rc $(CC_INCLUDES) /R /FO$@ so_activex.rc   
 
-$(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cpp
+$(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cxx
-$(MKDIR) $(subst /,$(PS),$(@D))
$(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_COMP_INC) $(CC_DEFINES) 
$(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
 
diff --git a/odk/examples/OLE/activex/SOActiveX.cpp 
b/odk/examples/OLE/activex/SOActiveX.cxx
similarity index 99%
rename from odk/examples/OLE/activex/SOActiveX.cpp
rename to odk/examples/OLE/activex/SOActiveX.cxx
index 81159e489f2e..e29a439f3552 100644
--- a/odk/examples/OLE/activex/SOActiveX.cpp
+++ b/odk/examples/OLE/activex/SOActiveX.cxx
@@ -33,7 +33,7 @@
  *
  */
 
-// SOActiveX.cpp : Implementation of CSOActiveX
+// SOActiveX.cxx : Implementation of CSOActiveX
 
 #include "stdafx2.h"
 #include "so_activex.h"
diff --git a/odk/examples/OLE/activex/SOComWindowPeer.cpp 
b/odk/examples/OLE/activex/SOComWindowPeer.cxx
similarity index 100%
rename from odk/examples/OLE/activex/SOComWindowPeer.cpp
rename to odk/examples/OLE/activex/SOComWindowPeer.cxx
diff --git a/odk/examples/OLE/activex/StdAfx2.cpp 
b/odk/examples/OLE/activex/StdAfx2.cxx
similarity index 95%
rename from odk/examples/OLE/activex/StdAfx2.cpp
rename to odk/examples/OLE/activex/StdAfx2.cxx
index 3911bcf24003..46743f22c2a0 100644
--- a/odk/examples/OLE/activex/StdAfx2.cpp
+++ b/odk/examples/OLE/activex/StdAfx2.cxx
@@ -33,7 +33,7 @@
  *
  */
 
-// stdafx1.cpp : source file that includes just the standard includes
+// stdafx1.cxx : source file that includes just the standard includes
 //  stdafx1.pch will be the pre-compiled header
 //  stdafx1.obj will contain the pre-compiled type information
 
@@ -41,9 +41,9 @@
 
 #ifdef _ATL_STATIC_REGISTRY
 #include 
-#include 
+#include 
 #endif
 
-#include 
+#include 
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/odk/examples/OLE/activex/so_activex.cpp 
b/odk/examples/OLE/activex/so_activex.cxx
similarity index 98%
rename from odk/examples/OLE/activex/so_activex.cpp
rename to odk/examples/OLE/activex/so_activex.cxx
index b2cf16a80349..614d9866a7ec 100644
--- a/odk/examples/OLE/activex/so_activex.cpp
+++ 

[Libreoffice-commits] core.git: odk/examples

2023-09-08 Thread Hossein (via logerrit)
 odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.py |   62 ++
 1 file changed, 62 insertions(+)

New commits:
commit 7dc3be651b050c7b4d383d8ee25b69728418acc7
Author: Hossein 
AuthorDate: Fri Sep 8 01:16:29 2023 +0200
Commit: Hossein 
CommitDate: Fri Sep 8 10:16:06 2023 +0200

tdf#143123 Port DevelopersGuide/FirstSteps/FirstLoadComponent to Python

Porting FirstSteps/FirstLoadComponent.java to Python is done. More
information on this example can be found on LibreOffice DevGuide:

LibreOffice Developer's Guide: Chapter 1 - First Steps - First Contact
https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps

This is the last of the 3 examples in the first chapter which are ported
to Python.

Change-Id: Iac0682943d4286168bbdadf792423670f41bdee6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156686
Tested-by: Hossein 
Reviewed-by: Hossein 

diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.py 
b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.py
new file mode 100755
index ..a5d93d799f8c
--- /dev/null
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.py
@@ -0,0 +1,62 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/.
+#
+
+import uno
+import officehelper
+import sys
+import traceback
+from com.sun.star.sheet.CellFlags import FORMULA
+
+
+def main():
+try:
+remote_context = officehelper.bootstrap()
+if remote_context is None:
+print("ERROR: Could not bootstrap default Office.")
+sys.exit(1)
+srv_mgr = remote_context.getServiceManager()
+desktop = 
srv_mgr.createInstanceWithContext("com.sun.star.frame.Desktop", remote_context)
+spreadsheet_component = 
desktop.loadComponentFromURL("private:factory/scalc", "_blank", 0, tuple())
+spreadsheets = spreadsheet_component.getSheets()
+spreadsheets.insertNewByName("MySheet", 0)
+elem_type = spreadsheets.getElementType()
+print(elem_type)
+sheet = spreadsheets.getByName("MySheet")
+cell = sheet.getCellByPosition(0, 0)
+cell.setValue(21)
+cell = sheet.getCellByPosition(0, 1)
+cell.setValue(21)
+cell = sheet.getCellByPosition(0, 2)
+cell.setFormula("=sum(A1:A2)")
+
+cell.setPropertyValue("CellStyle", "Result")
+
+spreadsheet_controller = spreadsheet_component.getCurrentController()
+spreadsheet_controller.setActiveSheet(sheet)
+cell.setPropertyValue("VertJustify", 
"com.sun.star.table.CellVertJustify.TOP")
+formula_cells = sheet.queryContentCells(FORMULA)
+formulas = formula_cells.getCells()
+formula_enum = formulas.createEnumeration()
+
+while formula_enum.hasMoreElements():
+formula_cell = formula_enum.nextElement()
+print("Formula cell in column " + 
str(formula_cell.getCellAddress().Column)
+  + ", row " + str(formula_cell.getCellAddress().Row)
+  + " contains " + cell.getFormula())
+
+except Exception as e:
+print(e)
+traceback.print_exc()
+sys.exit(1)
+
+
+if __name__ == "__main__":
+main()
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:


[Libreoffice-commits] core.git: odk/examples

2023-04-18 Thread Chenxiong Qi (via logerrit)
 odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.py |  243 
++
 1 file changed, 243 insertions(+)

New commits:
commit 10fac0f7f7cdc66d9d1ee5e5bffbeb82973b733a
Author: Chenxiong Qi 
AuthorDate: Sat Feb 11 12:06:45 2023 +0800
Commit: Hossein 
CommitDate: Tue Apr 18 14:33:09 2023 +0200

tdf#143123 Port DevelopersGuide/FirstSteps/HelloTextTableShape to Python

Signed-off-by: Chenxiong Qi 
Change-Id: Ifb5639369c4af1db27ccb5a93dfad093ce7403b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146819
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.py 
b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.py
new file mode 100644
index ..a0a101e618cc
--- /dev/null
+++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.py
@@ -0,0 +1,243 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/.
+#
+
+import sys
+import traceback
+
+import uno
+import officehelper
+
+from com.sun.star.lang import DisposedException
+from com.sun.star.awt.FontSlant import ITALIC
+from com.sun.star.awt.FontWeight import BOLD
+from com.sun.star.table import BorderLine
+from com.sun.star.table import TableBorder
+from com.sun.star.awt import Size
+from com.sun.star.awt import Point
+
+
+class HelloTextTableShape:
+
+def __init__(self):
+self.remote_context = None
+self.remote_service_manager = None
+
+def use_documents(self) -> None:
+self.use_writer()
+self.use_calc()
+self.use_draw()
+
+def get_remote_service_manager(self) -> None:
+try:
+self.remote_context = officehelper.bootstrap()
+print("Connected to a running office ...")
+return self.remote_context.ServiceManager
+except Exception as e:
+traceback.print_exc()
+sys.exit(1)
+
+def new_doc_component(self, doc_type: str) -> None:
+load_url = "private:factory/" + doc_type
+self.remote_service_manager = self.get_remote_service_manager()
+desktop = self.remote_service_manager.createInstanceWithContext(
+"com.sun.star.frame.Desktop", self.remote_context
+)
+return desktop.loadComponentFromURL(load_url, "_blank", 0, tuple([]))
+
+def use_writer(self) -> None:
+try:
+doc = self.new_doc_component("swriter")
+xtext = doc.Text
+self.manipulateText(xtext)
+
+# insert TextTable and get cell text, then manipulate text in cell
+table = doc.createInstance("com.sun.star.text.TextTable")
+xtext.insertTextContent(xtext.End, table, False)
+
+xcell = table[1, 0]
+self.manipulateText(xcell)
+self.manipulateTable(table)
+
+# insert RectangleShape and get shape text, then manipulate text
+writer_shape = 
doc.createInstance("com.sun.star.drawing.RectangleShape")
+writer_shape.setSize(Size(1, 1))
+xtext.insertTextContent(xtext.End, writer_shape, False)
+# wrap text inside shape
+writer_shape.TextContourFrame = True
+
+self.manipulateText(writer_shape)
+self.manipulateShape(writer_shape)
+
+bookmark = doc.createInstance("com.sun.star.text.Bookmark")
+bookmark.Name = "MyUniqueBookmarkName"
+# insert the bookmark at the end of the document
+xtext.insertTextContent(xtext.End, bookmark, False)
+
+# Query the added bookmark and set a string
+found_bookmark = doc.Bookmarks.getByName("MyUniqueBookmarkName")
+found_bookmark.Anchor.String = (
+"The throat mike, glued to her neck, "
+"looked as much as possible like an analgesic dermadisk."
+)
+
+for text_table in doc.TextTables:
+text_table.BackColor = 0xC8FFB9
+except DisposedException:
+self.remote_context = None
+raise
+
+def use_calc(self) -> None:
+try:
+doc = self.new_doc_component("scalc")
+sheet = doc.Sheets[0]
+
+# get cell A2 in first sheet
+cell = sheet[1, 0]
+cell.IsTextWrapped = True
+
+self.manipulateText(cell)
+self.manipulateTable(sheet)
+
+# create and insert RectangleShape and get shape text,
+# then manipulate text
+shape = doc.createInstance("com.sun.star.drawing.RectangleShape")
+shape.Size = Size(1, 1)
+shape.Position = Point(7000, 3000)
+shape.TextContourFrame = True
+ 

[Libreoffice-commits] core.git: odk/examples

2023-02-17 Thread Stephan Bergmann (via logerrit)
 odk/examples/DevelopersGuide/Database/DriverSkeleton/Makefile |2 +-
 odk/examples/cpp/complextoolbarcontrols/Makefile  |2 +-
 odk/examples/cpp/custompanel/Makefile |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6c08211a2a37c6b1841a78d5a99d720ec385cb6b
Author: Stephan Bergmann 
AuthorDate: Fri Feb 17 13:41:54 2023 +0100
Commit: Stephan Bergmann 
CommitDate: Fri Feb 17 14:29:42 2023 +

Remove remaining STL_INCLUDES

...that 1628005298923ad15cc78dbad63669b701f5fd04 "Trying to remove the 
stlport
mention from the code" didn't catch

Change-Id: I271d7760d2b2dd25c0fa27489a8ddf455963d970
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147213
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/Makefile 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/Makefile
index 567ba11490d2..06afac5fbf5d 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/Makefile
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/Makefile
@@ -75,7 +75,7 @@ include $(SETTINGS)/stdtarget.mk
 
 $(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cxx $(SDKTYPEFLAG)
-$(MKDIR) $(subst /,$(PS),$(@D))
-   $(CC) $(CC_FLAGS) $(CC_INCLUDES) $(STL_INCLUDES) -I$(OUT_COMP_INC) 
$(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
+   $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_COMP_INC) $(CC_DEFINES) 
$(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
 
 ifeq "$(OS)" "WIN"
 $(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
diff --git a/odk/examples/cpp/complextoolbarcontrols/Makefile 
b/odk/examples/cpp/complextoolbarcontrols/Makefile
index ad75987cfab0..0defc6176479 100644
--- a/odk/examples/cpp/complextoolbarcontrols/Makefile
+++ b/odk/examples/cpp/complextoolbarcontrols/Makefile
@@ -76,7 +76,7 @@ include $(SETTINGS)/stdtarget.mk
 
 $(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cxx $(SDKTYPEFLAG)
-$(MKDIR) $(subst /,$(PS),$(@D))
-   $(CC) $(CC_FLAGS) $(STL_INCLUDES) $(CC_INCLUDES) -I$(OUT_COMP_INC) 
$(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
+   $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_COMP_INC) $(CC_DEFINES) 
$(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
 
 
 ifeq "$(OS)" "WIN"
diff --git a/odk/examples/cpp/custompanel/Makefile 
b/odk/examples/cpp/custompanel/Makefile
index fcbcd20dcedf..b19c5a1721b6 100644
--- a/odk/examples/cpp/custompanel/Makefile
+++ b/odk/examples/cpp/custompanel/Makefile
@@ -71,7 +71,7 @@ include $(SETTINGS)/stdtarget.mk
 
 $(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cxx $(SDKTYPEFLAG)
-$(MKDIR) $(subst /,$(PS),$(@D))
-   $(CC) $(CC_FLAGS) $(STL_INCLUDES) $(CC_INCLUDES) -I$(OUT_COMP_INC) 
$(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
+   $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_COMP_INC) $(CC_DEFINES) 
$(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
 
 
 #$(COMP_MAPFILE) : $(SLOFILES)


[Libreoffice-commits] core.git: odk/examples

2023-01-19 Thread Chenxiong Qi (via logerrit)
 odk/examples/examples.html |   47 +++-
 odk/examples/python/Spreadsheet/ChartTypeChange.py |  101 +
 odk/examples/python/Spreadsheet/EuroAdaption.py|  164 +++
 odk/examples/python/Spreadsheet/SCalc.py   |  225 +
 4 files changed, 530 insertions(+), 7 deletions(-)

New commits:
commit 9753aa4a776af24c1bfb9cd41867ee2078438934
Author: Chenxiong Qi 
AuthorDate: Thu Dec 8 18:47:13 2022 +0800
Commit: Hossein 
CommitDate: Thu Jan 19 21:39:01 2023 +

tdf#143123 Port some Spreadsheet Java examples to Python

Some examples inside odk/examples/java/Spreadsheet are ported to
Python:

ChartTypeChange.java-> ChartTypeChange.py
EuroAdaption.java   -> EuroAdaption.py
SCalc.java  -> SCalc.py

Code format is checked with 'pycodestyle':

pycodestyle --ignore=E501,E722 odk/examples/python/Spreadsheet/*.py

Signed-off-by: Chenxiong Qi 
Change-Id: If0631b5970faab6499cfea3eef559e003fad24d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143810
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/odk/examples/examples.html b/odk/examples/examples.html
index 86589c3624a0..f50dffbc79e8 100644
--- a/odk/examples/examples.html
+++ b/odk/examples/examples.html
@@ -509,13 +509,46 @@
 
 
   
-  
- 
- 
- No Additional information
- 
- 
- 
+
+  
+
+  Spreadsheet Document Examples
+  Description
+
+
+  ChartTypeChange
+  This class loads a LibreOffice 
%PRODUCT_RELEASE% Calc document and changes the type of the embedded chart.
+
+
+  EuroAdaption
+  The application connects to the office 
server and gets
+the  multi component factory, opens 
an empty Calc document, enters an
+example text, sets the number format to DM, changes the 
number format to
+EUR (Euro), and uses the DM/EUR factor on each cell with 
content.
+  
+
+
+  SCalc
+  The program connects to the office server 
and gets the
+ multi component factory. Then an 
empty calc document will be opened,
+cell styles will be created, some data will be inserted 
into the sheets,
+and the created cell styles will be applied. Finally, a 3D 
chart will be
+inserted.
+  
+
+  
+
+  
+
+
+  
+
+  
+
+ No Additional information
+
+  
+
   
 
   
diff --git a/odk/examples/python/Spreadsheet/ChartTypeChange.py 
b/odk/examples/python/Spreadsheet/ChartTypeChange.py
new file mode 100644
index ..6ee2c31d6766
--- /dev/null
+++ b/odk/examples/python/Spreadsheet/ChartTypeChange.py
@@ -0,0 +1,101 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/.
+#
+
+import sys
+import time
+import traceback
+from typing import Union
+
+import officehelper
+from com.sun.star.awt import Rectangle
+
+
+def main():
+try:
+remote_context = officehelper.bootstrap()
+srv_mgr = remote_context.getServiceManager()
+desktop = srv_mgr.createInstanceWithContext(
+"com.sun.star.frame.Desktop", remote_context
+)
+doc = desktop.loadComponentFromURL("private:factory/scalc", "_blank", 
0, tuple())
+sheet = doc.Sheets[0]
+
+cell_values = (
+("", "Jan", "Feb", "Mar", "Apr", "Mai"),
+("Profit", 12.3, 43.2, 5.1, 76, 56.8),
+("Rival in business", 12.2, 12.6, 17.7, 20.4, 100),
+)
+
+# Write the data into spreadsheet.
+for row, row_data in enumerate(cell_values):
+for column, cell_value in enumerate(row_data):
+insert_into_cell(column, row, cell_value, sheet)
+
+# Create a rectangle, which holds the size of the chart.
+rect = Rectangle()
+rect.X, rect.Y, rect.Width, rect.Height = 500, 3000, 25000, 11000
+
+# Create the Unicode of the character for the column name.
+char_rect = chr(65 + len(cell_values[0]) - 1)
+# Get the cell range of the written values.
+chart_cell_range = sheet[f"A1:{char_rect}{len(cell_values)}"]

[Libreoffice-commits] core.git: odk/examples

2022-12-02 Thread Chenxiong Qi (via logerrit)
 odk/examples/examples.html|   48 +
 odk/examples/python/Text/BookmarkInsertion.py |  160 
 odk/examples/python/Text/GraphicsInserter.py  |  100 ++
 odk/examples/python/Text/HardFormatting.py|  110 +++
 odk/examples/python/Text/SWriter.py   |  210 ++
 odk/examples/python/Text/StyleCreation.py |   94 +
 odk/examples/python/Text/StyleInitialization.py   |  109 +++
 odk/examples/python/Text/TextDocumentStructure.py |   79 
 odk/examples/python/Text/TextReplace.py   |  106 +++
 odk/examples/python/Text/WriterSelector.py|   67 +++
 10 files changed, 1083 insertions(+)

New commits:
commit 8f34b0d40e149b7274a1aa4ce0b33ddbf825ee52
Author: Chenxiong Qi 
AuthorDate: Sun Sep 18 15:27:31 2022 +0800
Commit: Hossein 
CommitDate: Sat Dec 3 01:48:39 2022 +

tdf#143123 Port Text Java examples to Python

The examples inside odk/examples/java/Text are ported to Python:

BookmarkInsertion.java -> BookmarkInsertion.py
GraphicsInserter.java  -> GraphicsInserter.py
HardFormatting.java-> HardFormatting.py
StyleCreation.java -> StyleCreation.py
SWriter.java   -> SWriter.py
StyleInitialization.java   -> StyleInitialization.py
TextDocumentStructure.java -> TextDocumentStructure.py
TextReplace.java   -> TextReplace.py
WriterSelector.java-> WriterSelector.py

Code format is checked with 'pycodestyle':

pycodestyle --ignore=E501,E722 odk/examples/python/Text/*.py

Some Java methods are merged when ported to Python.

Signed-off-by: Chenxiong Qi 
Change-Id: Ic903cfa24ef32f8edaafd7e6e2e0c757b4b1be0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141425
Tested-by: Hossein 
Reviewed-by: Hossein 

diff --git a/odk/examples/examples.html b/odk/examples/examples.html
index 2b23080961fb..6cfcc045ad1f 100644
--- a/odk/examples/examples.html
+++ b/odk/examples/examples.html
@@ -459,6 +459,54 @@
 
   
 
+
+  
+
+  
+
+  Text Document Examples
+  Description
+
+
+  BookmarkInsertion
+  This application opens an empty text 
document and enters an example text. Afterwards, some bookmarks will be 
inserted.
+
+
+  HardFormatting
+  This program opens an empty text document 
and enters an example text, some text attributes will be inspected, and the PropertyState will be checked from the 
selection.
+
+
+  SWriter
+  This program opens an empty text document 
and enters some text, and a text table, a colored text, and text frame will be 
inserted.
+
+
+  StyleCreation
+  This program opens an empty text 
document. Then a new paragraph style will be created, and applied.
+
+
+  StyleInitialization
+  This program opens an empty text document 
and enters an example text. The paragraph collection will be used, in order to 
apply a different paragraph style on the paragraphs.
+
+
+  TextDocumentStructure
+  This program opens an empty text document 
and enters an example text. Document structure will be printed out. Looping 
through the paragraphs and their portions in a more Pythonic way instead of 
calling the methods of XEnumeration interface.
+
+
+  TextReplace
+  The program opens an empty text document 
and enters an example text, and some English spelled words will be replaced 
with US spelled words.
+
+
+  GraphicsInserter
+  The GraphicsInserter creates a graphics 
object on an empty text document by setting its position, width, height, and 
URL.
+
+
+  WriterSelector
+  This program gives you information on the 
selected objects, e.g. text range, text frame or graphics.
+
+  
+
+  
+
 
   
   
diff --git a/odk/examples/python/Text/BookmarkInsertion.py 
b/odk/examples/python/Text/BookmarkInsertion.py
new file mode 100644
index ..5b801f6121ea
--- /dev/null
+++ b/odk/examples/python/Text/BookmarkInsertion.py
@@ -0,0 +1,160 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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 

[Libreoffice-commits] core.git: odk/examples odk/Package_examples.mk

2022-10-13 Thread Chenxiong Qi (via logerrit)
 odk/Package_examples.mk   |6 
 odk/examples/examples.html|   36 +
 odk/examples/python/DocumentHandling/DocumentConverter.py |   91 ++
 odk/examples/python/DocumentHandling/DocumentLoader.py|   42 +-
 odk/examples/python/DocumentHandling/DocumentPrinter.py   |   71 ++
 odk/examples/python/DocumentHandling/DocumentSaver.py |   81 
 odk/examples/python/DocumentHandling/README.md|   56 
 odk/examples/python/DocumentHandling/tests/hello.odt  |binary
 odk/examples/python/DocumentLoader/README.md  |   12 -
 9 files changed, 374 insertions(+), 21 deletions(-)

New commits:
commit 665d1633c9e08da85fae179e62923211bc07c480
Author: Chenxiong Qi 
AuthorDate: Wed Sep 14 09:29:25 2022 +0800
Commit: Hossein 
CommitDate: Thu Oct 13 15:41:40 2022 +0200

tdf#143123 port DocumentHandling examples to Python

This port keeps the similarity with Java ones as much as possible.

examples.html is also updated by adding the Python examples.

Signed-off-by: Chenxiong Qi 
Change-Id: I2af26aaf42f5408bf254a4e0507442200f843661
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139887
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/odk/Package_examples.mk b/odk/Package_examples.mk
index 6749bcdcc798..457aea37e166 100644
--- a/odk/Package_examples.mk
+++ b/odk/Package_examples.mk
@@ -541,6 +541,12 @@ $(eval $(call 
gb_Package_add_files_with_dir,odk_examples,$(SDKDIRNAME)/examples,
 python/toolpanel/toolpanel.component \
 python/toolpanel/toolpanel.py \
 python/toolpanel/toolpanels/poc.xdl \
+python/DocumentHandling/DocumentConverter.py \
+python/DocumentHandling/DocumentLoader.py \
+python/DocumentHandling/DocumentPrinter.py \
+python/DocumentHandling/DocumentSaver.py \
+python/DocumentHandling/README.md \
+python/DocumentHandling/tests/hello.odt \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/odk/examples/examples.html b/odk/examples/examples.html
index 9a1bf3de6b3a..2b23080961fb 100644
--- a/odk/examples/examples.html
+++ b/odk/examples/examples.html
@@ -423,6 +423,42 @@
  
  

+
+  
+
+  
+
+  Document Handling Examples
+  Description
+
+
+  
+DocumentConverter
+  
+  The program offers a service that converts 
arbitrary documents to a favored document type.
+
+
+  
+DocumentLoader
+  
+  The DocumentLoader can open a new or an 
existing document.
+
+
+  
+DocumentPrinter
+  
+  The DocumentPrinter allows you to print the 
favored pages of a specified document on your favored printer.
+
+
+  
+DocumentSaver
+  
+  The DocumentSaver shows how to save a 
document and how you can change the type of your document.
+
+  
+
+  
+
 
   
   
diff --git a/odk/examples/python/DocumentHandling/DocumentConverter.py 
b/odk/examples/python/DocumentHandling/DocumentConverter.py
new file mode 100644
index ..a1f54fca9102
--- /dev/null
+++ b/odk/examples/python/DocumentHandling/DocumentConverter.py
@@ -0,0 +1,91 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/.
+#
+
+import argparse
+import os
+import sys
+from os.path import abspath, basename, isdir, join, splitext
+
+import uno
+import unohelper
+from com.sun.star.beans import PropertyValue
+from com.sun.star.connection import NoConnectException
+
+PROG = "$OFFICE_PROGRAM_PATH/python {}".format(basename(sys.argv[0]))
+SOFFICE_CONNECTION_URI = 
"uno:socket,host=localhost,port=2083;urp;StarOffice.ComponentContext"
+
+
+def connect_soffice():
+"""Connect to remote running LibreOffice"""
+local_context = uno.getComponentContext()
+resolver = local_context.ServiceManager.createInstanceWithContext(
+"com.sun.star.bridge.UnoUrlResolver", local_context
+)
+try:
+remote_context = resolver.resolve(SOFFICE_CONNECTION_URI)
+except NoConnectException:
+raise Exception("Cannot establish a connection to LibreOffice.")
+
+return remote_context.ServiceManager.createInstanceWithContext(
+"com.sun.star.frame.Desktop", remote_context
+)
+
+
+def convert(src_file, dest_file, to_type):
+src_url = "file://{}".format(src_file).replace("\\", "/")
+dest_url = 

[Libreoffice-commits] core.git: odk/examples

2022-08-14 Thread Andrea Gelmini (via logerrit)
 odk/examples/java/Storage/TestHelper.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c5881289931f35b74ffda92ab72c01781c771f96
Author: Andrea Gelmini 
AuthorDate: Sat Aug 13 22:41:45 2022 +0200
Commit: Andrea Gelmini 
CommitDate: Sun Aug 14 19:43:00 2022 +0200

Fix typo

Change-Id: I9a973141bdefca22dc24ecfaba58803dfc256e15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138239
Reviewed-by: Julien Nabet 
Tested-by: Jenkins

diff --git a/odk/examples/java/Storage/TestHelper.java 
b/odk/examples/java/Storage/TestHelper.java
index a486f1d53dae..3fac93e96f84 100644
--- a/odk/examples/java/Storage/TestHelper.java
+++ b/odk/examples/java/Storage/TestHelper.java
@@ -857,7 +857,7 @@ public class TestHelper  {
 try
 {
 Object oDummyStream = xStorage.openStreamElement( sName, nMode );
-Error( "The trying to open substoream '" + sName + "' must fail!" 
);
+Error( "The trying to open substream '" + sName + "' must fail!" );
 }
 catch( Exception e )
 {


[Libreoffice-commits] core.git: odk/examples

2022-07-14 Thread Stephan Bergmann (via logerrit)
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
 |7 ---
 1 file changed, 7 deletions(-)

New commits:
commit dcded5774c02da6528cf2ff97b13a531c7cf6813
Author: Stephan Bergmann 
AuthorDate: Thu Jul 14 12:32:54 2022 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jul 14 14:03:35 2022 +0200

Drop poor @attention paragraph

For one, Javadoc (unlike Doxygen) doesn't support @attention, so this 
caused a

> Generating workdir/CustomTarget/odk/docs/java/ref/help-doc.html...
> Note: Custom tags that could override future standard tags:  @attention. 
To avoid potential overrides, use at least one period character (.) in custom 
tag names.
> Note: Custom tags that were not seen:  @attention

warning during the build.  And for another, that paragraph was phrased in 
poor,
broken English and didn't add much value anyway.

Change-Id: I603170ec262d042e92bdff38ae415dda0bcc28bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137053
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
index 18c45da85b79..4d88e7932d30 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
@@ -46,13 +46,6 @@ import com.sun.star.uno.UnoRuntime;
 - a stream for input or output
 - or a URL for creating such streams
 - information about required action on filtering
-
-  @attentionThis class mustn't be threadsafe - because instances of it
-are used temp. only - not as members. So no concurrent access
-should occur.
-Another reason: it would be very difficult to safe every
-access on our internal member. To do so - we must implement
-special methods instead of allowing pure member access.
  -*/
 
 public class FilterOptions


[Libreoffice-commits] core.git: odk/examples

2022-04-20 Thread Hossein (via logerrit)
 odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.cpp |   35 
 1 file changed, 35 insertions(+)

New commits:
commit a40558be785756929f606ab0798a026b985e0ffb
Author: Hossein 
AuthorDate: Tue Apr 12 15:20:01 2022 +0200
Commit: Hossein 
CommitDate: Wed Apr 20 14:51:40 2022 +0200

tdf#143122 - Port Java examples to C++

Porting FirstSteps/FirstUnoContact.java to C++ is done. More
information on this example can be found in the DevGuide:

LibreOffice Developer's Guide: Chapter 1 - First Steps - First Contact
https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps

Change-Id: I84b0a60738bfe614158d7eabf8bff3cda1ccca50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132910
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.cpp 
b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.cpp
new file mode 100644
index ..bdcac76bec14
--- /dev/null
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.cpp
@@ -0,0 +1,35 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4;
+ * fill-column: 100 -*- */
+/*
+ * 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/.
+ */
+
+#include 
+#include 
+#include 
+#include 
+
+SAL_IMPLEMENT_MAIN()
+{
+try
+{
+css::uno::Reference 
xContext(cppu::bootstrap());
+std::cout << "Connected to a running office ..." << std::endl;
+css::uno::Reference xMCF = 
xContext->getServiceManager();
+std::string available = xMCF != nullptr ? "available" : "not 
available";
+std::cout << "remote ServiceManager is " + available << std::endl;
+}
+catch (css::uno::Exception& e)
+{
+std::cout << e.Message << std::endl;
+return 1;
+}
+return 0;
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s
+ * cinkeys+=0=break: */


[Libreoffice-commits] core.git: odk/examples

2022-04-20 Thread Hossein (via logerrit)
 odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.py |   24 +
 1 file changed, 24 insertions(+)

New commits:
commit c37d00a4f22a973c0905a9d8f409994763cb637a
Author: Hossein 
AuthorDate: Tue Apr 12 16:07:19 2022 +0200
Commit: Hossein 
CommitDate: Wed Apr 20 12:39:50 2022 +0200

tdf#143123 - Port Java examples to Python

Porting FirstSteps/FirstUnoContact.java to Python is done. More
information on this example can be found in the DevGuide:

LibreOffice Developer's Guide: Chapter 1 - First Steps - First Contact
https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps

Change-Id: I8a97672a0b437177f19ddce029e6ef27e97533ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132914
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.py 
b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.py
new file mode 100644
index ..06cd0bc5a719
--- /dev/null
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact.py
@@ -0,0 +1,24 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/.
+#
+
+import uno
+import officehelper
+
+try:
+xContext = officehelper.bootstrap()
+print("Connected to a running office ...")
+xMCF = xContext.getServiceManager()
+available = "not available" if xMCF is None else "available"
+print("remote ServiceManager is " + available)
+
+except Exception as e:
+print(e)
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
+


[Libreoffice-commits] core.git: odk/examples odk/Package_examples.mk

2022-04-06 Thread Hossein (via logerrit)
 odk/Package_examples.mk  |1 
 odk/examples/DevelopersGuide/FirstSteps/FirstConnection.java |   61 ---
 2 files changed, 62 deletions(-)

New commits:
commit 9c2c16fbd1282a21ffb82f71e7e3c575fd0e78b6
Author: Hossein 
AuthorDate: Sat Apr 2 18:35:48 2022 +0200
Commit: Hossein 
CommitDate: Wed Apr 6 16:44:48 2022 +0200

Remove duplicate DevGuide example FirstConnection

While cleaning up "LibreOffice DevGuide: Chapter 1 - First Steps" in
the TDF Wiki, I understood that only 3 examples were compiled via the
Makefile, but there were 4 java files. It turned out that the
FirstUnoContact.java and FirstConnection.java are essentially the
same. I removed the second one, as it was not built, and was not
referenced elsewhere.

Change-Id: I7df5dd9dfc3aae15de4484b4a3dd6272066a8683
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132457
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 
Reviewed-by: Hossein 

diff --git a/odk/Package_examples.mk b/odk/Package_examples.mk
index 78368d14bdab..f7bda16f9dd8 100644
--- a/odk/Package_examples.mk
+++ b/odk/Package_examples.mk
@@ -171,7 +171,6 @@ $(eval $(call 
gb_Package_add_files_with_dir,odk_examples,$(SDKDIRNAME)/examples,
 
DevelopersGuide/Extensions/DialogWithHelp/help/en/com.foocorp.foo-ext/page1.xhp 
\
 
DevelopersGuide/Extensions/DialogWithHelp/help/en/com.foocorp.foo-ext/page2.xhp 
\
 
DevelopersGuide/Extensions/DialogWithHelp/help/en/com.foocorp.foo-ext/subfolder/anotherpage.xhp
 \
-DevelopersGuide/FirstSteps/FirstConnection.java \
 DevelopersGuide/FirstSteps/FirstLoadComponent.java \
 DevelopersGuide/FirstSteps/FirstUnoContact.java \
 DevelopersGuide/FirstSteps/HelloTextTableShape.java \
diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstConnection.java 
b/odk/examples/DevelopersGuide/FirstSteps/FirstConnection.java
deleted file mode 100644
index 9506b0070117..
--- a/odk/examples/DevelopersGuide/FirstSteps/FirstConnection.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 
*/
-/*
- *
- *  The Contents of this file are made available subject to the terms of
- *  the BSD license.
- *
- *  Copyright 2000, 2010 Oracle and/or its affiliates.
- *  All rights reserved.
- *
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions
- *  are met:
- *  1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *  2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *  3. Neither the name of Sun Microsystems, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- *  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- *  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- *  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- *  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
- *  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
- *  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-public class FirstConnection {
-
-public static void main(String[] args) {
-try {
-// get the remote office component context
-com.sun.star.uno.XComponentContext xContext =
-com.sun.star.comp.helper.Bootstrap.bootstrap();
-
-System.out.println("Connected to a running office ...");
-
-com.sun.star.lang.XMultiComponentFactory xMCF =
-xContext.getServiceManager();
-
-String available = (null != xMCF ? "available" : "not available");
-System.out.println( "remote ServiceManager is " + available );
-}
-catch (java.lang.Exception e){
-e.printStackTrace();
-}
-finally {
-System.exit(0);
-}
-}
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */


[Libreoffice-commits] core.git: odk/examples

2021-11-14 Thread Hossein (via logerrit)
 odk/examples/cpp/counter/counter.cxx |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b56abc20eb198057d65ff40575a53cf1e29cf086
Author: Hossein 
AuthorDate: Sat Oct 9 22:29:58 2021 +0200
Commit: Mike Kaganski 
CommitDate: Mon Nov 15 08:24:42 2021 +0100

Clean C++ SDK example "counter"

* Use  instead of 

Change-Id: I5cc70613c0b183c24bfa73b779dac3b382b31c93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123328
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/odk/examples/cpp/counter/counter.cxx 
b/odk/examples/cpp/counter/counter.cxx
index c45546889285..667c04a7057e 100644
--- a/odk/examples/cpp/counter/counter.cxx
+++ b/odk/examples/cpp/counter/counter.cxx
@@ -40,7 +40,7 @@
  * simple example component implementing a counter
  */
 
-#include 
+#include 
 #include 
 #include 
 #include 
@@ -77,9 +77,9 @@ class MyCounterImpl
 public:
 MyCounterImpl( const Reference< XMultiServiceFactory > & xServiceManager )
 : m_xServiceManager( xServiceManager ), m_nRefCount( 0 )
-{ printf( "< MyCounterImpl ctor called >\n" ); }
+{ std::cout << "< MyCounterImpl ctor called >" << std::endl; }
 ~MyCounterImpl()
-{ printf( "< MyCounterImpl dtor called >\n" ); }
+{ std::cout << "< MyCounterImpl dtor called >" << std::endl; }
 
 // XInterface implementation
 virtual void SAL_CALL acquire() throw ()


[Libreoffice-commits] core.git: odk/examples

2021-11-14 Thread Hossein (via logerrit)
 odk/examples/cpp/Convertor/Convertor.cxx |   12 +---
 odk/examples/cpp/Convertor/Makefile  |   13 +++--
 2 files changed, 4 insertions(+), 21 deletions(-)

New commits:
commit 7a0d3ed55c5b6ebda129d66574d78168ca29135b
Author: Hossein 
AuthorDate: Sun Nov 14 01:13:08 2021 +0200
Commit: Mike Kaganski 
CommitDate: Mon Nov 15 07:35:39 2021 +0100

Fixing the license statement for the Convertor C++ example

Fixing the license statement for the 'Convertor.cxx' and 'Makefile'
according to the '/TEMPLATE.SOURCECODE.HEADER'

This example was added in 83b529d88388c7c8e0563242a030063bd95c4bed

Change-Id: I654d641999aab6951ad21f84fd75e080bb709ec4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125128
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/odk/examples/cpp/Convertor/Convertor.cxx 
b/odk/examples/cpp/Convertor/Convertor.cxx
index 7297c0eaeec5..765a28317409 100644
--- a/odk/examples/cpp/Convertor/Convertor.cxx
+++ b/odk/examples/cpp/Convertor/Convertor.cxx
@@ -1,20 +1,10 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
 /*
  * 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 .
  */
 
 #include 
diff --git a/odk/examples/cpp/Convertor/Makefile 
b/odk/examples/cpp/Convertor/Makefile
index 33d86ae6b844..32bec8f7deba 100644
--- a/odk/examples/cpp/Convertor/Makefile
+++ b/odk/examples/cpp/Convertor/Makefile
@@ -1,3 +1,4 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 
100 -*-
 #
 # This file is part of the LibreOffice project.
 #
@@ -5,16 +6,6 @@
 # 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 .
-#
 
 # Builds the C++ Convertor example of the SDK.
 
@@ -88,3 +79,5 @@ clean :
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_GEN))
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_OBJ))
-$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/Convertor*))
+
+# vim: set noet sw=4 ts=4:


[Libreoffice-commits] core.git: odk/examples

2021-10-25 Thread Hossein (via logerrit)
 odk/examples/cpp/DocumentLoader/DocumentLoader.cxx |2 +-
 odk/examples/cpp/DocumentLoader/Makefile   |   10 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 4a8aed2940040e8b8f0db0f06cb06a757cd06a9a
Author: Hossein 
AuthorDate: Sun Oct 24 16:03:58 2021 +0200
Commit: Mike Kaganski 
CommitDate: Mon Oct 25 09:05:23 2021 +0200

Cleanup DocumentLoader C++ SDK example

* Remove unncessary C-style cast from DocumentLoader.cxx
* Remove trailing whitespaces from Makefile

Change-Id: I7cff589353d3e40301cf45ce0a76e0c75beddf13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124115
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx 
b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
index 6925fef788b1..38b661e030cf 100644
--- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
+++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
@@ -62,7 +62,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 {
 OUString 
sConnectionString("uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager");
 
-sal_Int32 nCount = (sal_Int32)rtl_getAppCommandArgCount();
+sal_Int32 nCount = rtl_getAppCommandArgCount();
 
 if (nCount < 1)
 {
diff --git a/odk/examples/cpp/DocumentLoader/Makefile 
b/odk/examples/cpp/DocumentLoader/Makefile
index 812d133324f6..56e370bec41c 100644
--- a/odk/examples/cpp/DocumentLoader/Makefile
+++ b/odk/examples/cpp/DocumentLoader/Makefile
@@ -2,7 +2,7 @@
 #
 #  The Contents of this file are made available subject to the terms of
 #  the BSD license.
-#  
+#
 #  Copyright 2000, 2010 Oracle and/or its affiliates.
 #  All rights reserved.
 #
@@ -29,7 +29,7 @@
 #  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
 #  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 #  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 
+#
 #**
 
 # Builds the C++ DocumentLoader example of the SDK.
@@ -81,7 +81,7 @@ endif
 CppDocumentLoaderExample : $(OUT_BIN)/DocumentLoader$(EXE_EXT)
@echo 

@echo The example loads the "$(QM)test.odt$(QM)" document in the 
DocumentLoader example directory.
-   @echo If you want to load your own document, please use: 
+   @echo If you want to load your own document, please use:
@echo $(SQM)  $(SQM)DocumentLoader 
-env:URE_MORE_TYPES="$(QM)$(QM)" "$(QM)filename$(QM)" 
[connection_url]
@echo -
@echo Use the following command to execute the example!
@@ -89,8 +89,8 @@ CppDocumentLoaderExample : $(OUT_BIN)/DocumentLoader$(EXE_EXT)
@echo $(MAKE) DocumentLoader.run
@echo -
@echo NOTE: This example does not use the new UNO bootstrap mechanism, 
it uses still a socket
-   @echo $(SQM)  $(SQM)connection. The example use the 
defaultBootstrap_InitialComponentContext method and provides 
-   @echo $(SQM)  $(SQM)the additional office types via the UNO 
environment variable -env:URE_MORE_TYPES=... 
+   @echo $(SQM)  $(SQM)connection. The example use the 
defaultBootstrap_InitialComponentContext method and provides
+   @echo $(SQM)  $(SQM)the additional office types via the UNO 
environment variable -env:URE_MORE_TYPES=...
@echo $(SQM)  $(SQM)Before you can run this example you have to 
start your office in listening mode.
@echo -
@echo $(SQM)  $(SQM)soffice 
"$(QM)--accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager$(QM)"


[Libreoffice-commits] core.git: odk/examples onlineupdate/source oox/qa opencl/opencltest opencl/source registry/test xmlhelp/source xmloff/qa

2021-10-05 Thread Julien Nabet (via logerrit)
 odk/examples/cpp/DocumentLoader/DocumentLoader.cxx   |   
13 ++--
 onlineupdate/source/update/updater/progressui-unused/progressui_gonk.cxx |
6 --
 oox/qa/token/tokenmap-test.cxx   |
1 
 opencl/opencltest/main.cxx   |   
10 +--
 opencl/source/openclwrapper.cxx  |
2 
 registry/test/testmerge.cxx  |
9 +--
 registry/test/testregcpp.cxx |
6 --
 xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx|   
29 --
 xmloff/qa/unit/tokenmap-test.cxx |
1 
 9 files changed, 31 insertions(+), 46 deletions(-)

New commits:
commit 10ad9560fba562f494fa44fc8a7bd2388d9e8c5c
Author: Julien Nabet 
AuthorDate: Tue Oct 5 20:49:26 2021 +0200
Commit: Julien Nabet 
CommitDate: Tue Oct 5 23:09:56 2021 +0200

drop 'using namespace std' in o* r* x*

Change-Id: I15d56d133cf464a3cb6483be785b1259c7f35b43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123120
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx 
b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
index 057a9e8152b0..6925fef788b1 100644
--- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
+++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
@@ -49,7 +49,6 @@
 #include 
 #include 
 
-using namespace std;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
 using namespace com::sun::star::beans;
@@ -67,14 +66,14 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 
 if (nCount < 1)
 {
-cout << "using: DocumentLoader 
-env:URE_MORE_TYPES=  "
+std::cout << "using: DocumentLoader 
-env:URE_MORE_TYPES=  "
 "[]"
- << endl
- << endl
+ << std::endl
+ << std::endl
  << "example: DocumentLoader 
-env:URE_MORE_TYPES=\"file:///.../program/offapi.rdb\" "
 "\"file:///e:/temp/test.odt\" "
 
"\"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager\""
- << endl;
+ << std::endl;
 exit(1);
 }
  if (nCount == 2)
@@ -109,8 +108,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 }
 catch ( Exception& e )
 {
-cout << "Error: cannot establish a connection using "
- << sConnectionString << endl << e.Message << endl;
+std::cout << "Error: cannot establish a connection using "
+ << sConnectionString << std::endl << e.Message << std::endl;
 exit(1);
 }
 
diff --git 
a/onlineupdate/source/update/updater/progressui-unused/progressui_gonk.cxx 
b/onlineupdate/source/update/updater/progressui-unused/progressui_gonk.cxx
index c855e548efe0..2878aa2f0bb7 100644
--- a/onlineupdate/source/update/updater/progressui-unused/progressui_gonk.cxx
+++ b/onlineupdate/source/update/updater/progressui-unused/progressui_gonk.cxx
@@ -16,8 +16,6 @@
 
 #define LOG(args...)  __android_log_print(ANDROID_LOG_INFO, "GeckoUpdater" , 
## args)
 
-using namespace std;
-
 int InitProgressUI(int *argc, char ***argv)
 {
 return 0;
@@ -48,7 +46,7 @@ void UpdateProgressUI(float progress)
 sLastNumBars = numBars;
 
 size_t numSpaces = kProgressBarLength - numBars;
-string bars(numBars, '=');
-string spaces(numSpaces, ' ');
+std::string bars(numBars, '=');
+std::string spaces(numSpaces, ' ');
 LOG("Progress [ %s%s ]\n", bars.c_str(), spaces.c_str());
 }
diff --git a/oox/qa/token/tokenmap-test.cxx b/oox/qa/token/tokenmap-test.cxx
index 4f617189bbf4..058f7c16ebbf 100644
--- a/oox/qa/token/tokenmap-test.cxx
+++ b/oox/qa/token/tokenmap-test.cxx
@@ -15,7 +15,6 @@
 #include 
 #include 
 
-using namespace std;
 using namespace com::sun::star::uno;
 
 namespace oox {
diff --git a/opencl/opencltest/main.cxx b/opencl/opencltest/main.cxx
index a499032f8c05..0db18b0042d1 100644
--- a/opencl/opencltest/main.cxx
+++ b/opencl/opencltest/main.cxx
@@ -18,8 +18,6 @@
 
 #include 
 
-using namespace std;
-
 // The purpose of this separate executable is to check whether OpenCL works
 // without crashing (asserting, etc.). Other checks can be done by LO core 
itself.
 
@@ -44,7 +42,7 @@ static void runTest(const char* deviceName, const char* 
devicePlatform)
 // Find the given OpenCL device (in order to use the same one as LO core).
 cl_uint numPlatforms;
 openclcheck(clGetPlatformIDs(0, nullptr, ));
-vector platforms(numPlatforms);
+std::vector platforms(numPlatforms);
 openclcheck(clGetPlatformIDs(numPlatforms, platforms.data(), nullptr));
 cl_platform_id platformId = nullptr;
 for (cl_uint i = 0; i < numPlatforms; ++i)
@@ -67,7 +65,7 @@ static void runTest(const char* deviceName, const char* 
devicePlatform)
 
 

[Libreoffice-commits] core.git: odk/examples

2021-10-03 Thread Roman Kuznetsov (via logerrit)
 odk/examples/cpp/Draw/Draw.cxx |   15 +++
 1 file changed, 7 insertions(+), 8 deletions(-)

New commits:
commit e7a7cfa029f8a6979179c5cf394d7eea80982ca8
Author: Roman Kuznetsov 
AuthorDate: Fri Oct 1 14:26:07 2021 +0200
Commit: Roman Kuznetsov 
CommitDate: Sun Oct 3 12:05:01 2021 +0200

drop 'using namespace std' here

Change-Id: I6ebbd0ece563f0d877b03389fa9a96311cd207cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122867
Tested-by: Jenkins
Reviewed-by: Roman Kuznetsov 

diff --git a/odk/examples/cpp/Draw/Draw.cxx b/odk/examples/cpp/Draw/Draw.cxx
index 0e0f7ab41603..843bdd553346 100644
--- a/odk/examples/cpp/Draw/Draw.cxx
+++ b/odk/examples/cpp/Draw/Draw.cxx
@@ -37,7 +37,6 @@
 #include 
 #include 
 
-using namespace std;
 using namespace cppu;
 using namespace rtl;
 using namespace css::uno;
@@ -67,7 +66,7 @@ int main()
 }
 catch (Exception& e)
 {
-cout << "Error: cannot do bootstraping." << endl << e.Message << endl;
+std::cout << "Error: cannot do bootstraping." << std::endl << 
e.Message << std::endl;
 exit(1);
 }
 
@@ -86,7 +85,7 @@ int main()
 }
 catch (Exception& e)
 {
-cout << "Error: Document creation was not possible" << endl;
+std::cout << "Error: Document creation was not possible" << std::endl;
 exit(1);
 }
 
@@ -119,7 +118,7 @@ Reference openDraw(Reference 
xContext)
 }
 catch (Exception e)
 {
-cout << "Error opening draw." << endl << e.Message << endl;
+std::cout << "Error opening draw." << std::endl << e.Message << 
std::endl;
 exit(1);
 }
 
@@ -152,7 +151,7 @@ Reference createShape(Reference 
xDocComp, int height, int wi
 }
 catch (Exception e)
 {
-cout << "Could not create instance." << endl << e.Message << endl;
+std::cout << "Could not create instance." << std::endl << e.Message << 
std::endl;
 exit(1);
 }
 
@@ -164,7 +163,7 @@ Reference createShape(Reference 
xDocComp, int height, int wi
 }
 catch (Exception e)
 {
-cout << "Can not change the shape colors." << endl << e.Message << 
endl;
+std::cout << "Can not change the shape colors." << std::endl << 
e.Message << std::endl;
 exit(1);
 }
 
@@ -205,7 +204,7 @@ Reference createSequence(Reference 
xDocComp, Reference<
 catch (Exception e)
 {
 // Some exception occurs.FAILED
-cout << "Could not get Shape." << endl << e.Message << endl;
+std::cout << "Could not get Shape." << std::endl << e.Message << 
std::endl;
 exit(1);
 }
 
@@ -220,7 +219,7 @@ Reference createSequence(Reference 
xDocComp, Reference<
 }
 catch (Exception e)
 {
-cout << "Can not change shape colors." << endl << e.Message << 
endl;
+std::cout << "Can not change shape colors." << std::endl << 
e.Message << std::endl;
 exit(1);
 }
 xShapes->add(xShape);


[Libreoffice-commits] core.git: odk/examples

2021-09-20 Thread Stephan Bergmann (via logerrit)
 
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1405f98b6e0fc43d41c3b8f16923589eccd08495
Author: Stephan Bergmann 
AuthorDate: Mon Sep 20 10:08:02 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Mon Sep 20 12:13:29 2021 +0200

Adapt SetWindowLong call to 64-bit build

This failed with GWL_WNDPROC being undefined in 64-bit builds.  See the 
note at

:
"To write code that is compatible with both 32-bit and 64-bit versions of
Windows, use SetWindowLongPtr."

Change-Id: I7abcc681b4daf459eb0c0481266949c75ecf4dda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122341
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
index f7bef492022c..2de998c69475 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
@@ -122,7 +122,7 @@ JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow
  */
 if (GetProp( hWnd, OLD_PROC_KEY )==0)
 {
-hFuncPtr = SetWindowLong( hWnd, GWL_WNDPROC, (DWORD)NativeViewWndProc 
);
+hFuncPtr = SetWindowLongPtr( hWnd, GWLP_WNDPROC, 
(LONG_PTR)NativeViewWndProc );
 SetProp( hWnd, OLD_PROC_KEY, (HANDLE)hFuncPtr );
 }
 


[Libreoffice-commits] core.git: odk/examples

2021-09-20 Thread Stephan Bergmann (via logerrit)
 odk/examples/cpp/Draw/Draw.cxx |9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 3e2370260f2b79c43b4f8a86b123861aa95d3ef2
Author: Stephan Bergmann 
AuthorDate: Mon Sep 20 09:37:26 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Mon Sep 20 11:20:13 2021 +0200

Fix type of css.drawing.FillProperties FillColor property

(where css.util.Color is a typedef for UNOIDL LONG).  This caused issues on
Windows, where in C/C++ sal_Int32 is a typedef for long rather than int.

Change-Id: Ic0407674d06a219210d7f044815d7135eb79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122340
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/cpp/Draw/Draw.cxx b/odk/examples/cpp/Draw/Draw.cxx
index 511869fd1370..0e0f7ab41603 100644
--- a/odk/examples/cpp/Draw/Draw.cxx
+++ b/odk/examples/cpp/Draw/Draw.cxx
@@ -35,6 +35,7 @@
 #include 
 #include 
 #include 
+#include 
 
 using namespace std;
 using namespace cppu;
@@ -49,10 +50,10 @@ using namespace css::drawing;
 using namespace css::awt;
 using namespace css::container;
 
-int getCol(int r, int g, int b);
+css::util::Color getCol(int r, int g, int b);
 Reference openDraw(Reference xComponentContext);
 Reference createShape(Reference xDocComp, int height, int 
width, int x, int y,
-  OUString kind, int col);
+  OUString kind, css::util::Color col);
 Reference createSequence(Reference xDocComp, 
Reference xDP);
 
 int main()
@@ -126,7 +127,7 @@ Reference openDraw(Reference 
xContext)
 }
 
 Reference createShape(Reference xDocComp, int height, int 
width, int x, int y,
-  OUString kind, int col)
+  OUString kind, css::util::Color col)
 {
 // kind can be either 'Ellipse', 'Line' or 'Rectangle'
 Size size;
@@ -230,6 +231,6 @@ Reference createSequence(Reference 
xDocComp, Reference<
 return xSGrouper->group(xShapes);
 }
 
-int getCol(int r, int g, int b) { return r * 65536 + g * 256 + b; }
+css::util::Color getCol(int r, int g, int b) { return r * 65536 + g * 256 + b; 
}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


[Libreoffice-commits] core.git: odk/examples

2021-09-10 Thread Stephan Bergmann (via logerrit)
 odk/examples/cpp/remoteclient/Makefile |8 
 1 file changed, 8 deletions(-)

New commits:
commit cc60672058f8ea72f29e5ebc5be3439fd41a5de9
Author: Stephan Bergmann 
AuthorDate: Fri Sep 10 13:21:04 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Fri Sep 10 14:56:06 2021 +0200

This example doesn't have any idl files

Change-Id: Ia70268084603db3329d276533a9351e6c1eebbca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121894
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/cpp/remoteclient/Makefile 
b/odk/examples/cpp/remoteclient/Makefile
index 238ec3ca2a74..956243a5d452 100644
--- a/odk/examples/cpp/remoteclient/Makefile
+++ b/odk/examples/cpp/remoteclient/Makefile
@@ -44,8 +44,6 @@ include $(SETTINGS)/std.mk
 COMP_NAME=remoteclientsample
 COMP_IMPL_NAME=$(COMP_NAME).uno.$(SHAREDLIB_EXT)
 COMP_IMPL=$(SHAREDLIB_OUT)/$(COMP_IMPL_NAME)
-COMP_RDB_NAME = $(COMP_NAME).uno.rdb
-COMP_RDB = $(OUT_BIN)/$(COMP_RDB_NAME)
 COMP_SERVICES=$(SHAREDLIB_OUT)/remoteclientsample.rdb
 
 ENV_COMP_SERVICES=-env:URE_MORE_SERVICES=$(URLPREFIX)$(COMP_SERVICES)
@@ -67,12 +65,6 @@ ALL : \
 
 include $(SETTINGS)/stdtarget.mk
 
-# This example type library will be extended by the URE types
-$(OUT_BIN)/%.rdb :
-   -$(MKDIR) $(subst /,$(PS),$(@D))
-   -$(DEL) $(subst \\,\,$(subst /,$(PS),$@))
-   $(REGMERGE) $@ / $(URE_TYPES) 
-
 $(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cxx $(SDKTYPEFLAG)
-$(MKDIR) $(subst /,$(PS),$(@D))
$(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_COMP_INC) $(CC_DEFINES) 
$(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<


[Libreoffice-commits] core.git: odk/examples

2021-09-09 Thread Stephan Bergmann (via logerrit)
 odk/examples/DevelopersGuide/Components/CppComponent/Makefile |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 96d1240adf946c443fb2c369a1c84e31e259c7a8
Author: Stephan Bergmann 
AuthorDate: Thu Sep 9 13:58:25 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Sep 9 22:51:08 2021 +0200

Fix apparent typos

...introduced with aaebbb0e597bfeb8e1c545130a0d17a55b164228
"INTEGRATION: CWS jsc21" (but which never caused an issue as cppumaker 
generated
output for all of $(COMP_RDB) anyway when the undefined $(TYPESLIST) didn't
contribute anything to its command line)

Change-Id: Ic6792ad9edc159c02d307ca72500605bc3c38077
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121851
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/DevelopersGuide/Components/CppComponent/Makefile 
b/odk/examples/DevelopersGuide/Components/CppComponent/Makefile
index 5a63f4687b43..98a3eaf2b591 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/Makefile
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/Makefile
@@ -72,8 +72,8 @@ SLOFILES = $(patsubst 
%.cxx,$(SAMPLE_SLO_OUT)/%.$(OBJ_EXT),$(CXXFILES))
 
 GENURDFILES = $(patsubst %.idl,$(SAMPLE_GEN_OUT)/%.urd,$(IDLFILES))
 
-TYPELIST=-Tmy_module.XSomething  \
-   -Tmy_modules.MyService1 \
+TYPESLIST=-Tmy_module.XSomething  \
+   -Tmy_module.MyService1 \
-Tmy_module.MyService2
  
 # Targets


[Libreoffice-commits] core.git: odk/examples odk/Package_examples.mk

2021-08-26 Thread Stephan Bergmann (via logerrit)
 odk/Package_examples.mk  |1 
 odk/examples/java/MinimalComponent/BuildMinimalComponent.xml |   76 ---
 2 files changed, 77 deletions(-)

New commits:
commit 60b32d931da91a25e7f8912c36c48ba8302e6a43
Author: Stephan Bergmann 
AuthorDate: Thu Aug 26 08:10:15 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Aug 26 10:55:15 2021 +0200

Remove spurious odk/examples/java/MinimalComponent/BuildMinimalComponent.xml

It had been added together with odk/examples/java/MinimalComponent/Makefile 
in
ff4c86ff37af5136466d49a9fb394974ee62cb0f "Added an example for a minimal UNO
component", and it apparently is an Ant build script that shall do the same 
as
the Makefile.  However, it is apparently unused:  For one, it does not
appear to get referenced from anywhere else in the code or to get mentioned 
at

.
And for another, it would apparently only work on Windows (using e.g.
"${ODKPATH}/windows/bin/idlc.exe"), but would typically fail even there with
something like

> > ant -f BuildMinimalComponent.xml
> Buildfile: 
C:\lo\core\instdir\sdk\examples\java\MinimalComponent\BuildMinimalComponent.xml
>
> init:
>
> unoidl:
>
> BUILD FAILED
> 
C:\lo\core\instdir\sdk\examples\java\MinimalComponent\BuildMinimalComponent.xml:35:
 The directory D:\cvs\api\odk\WINexample.out\misc does not exist

due to the hardcoded D:/cvs/api/odk paths.

Change-Id: Idd020bcf1a2383295704b208d3ac2be047f270ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121050
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/Package_examples.mk b/odk/Package_examples.mk
index e2cb4bd4c7a1..9b752f2387ed 100644
--- a/odk/Package_examples.mk
+++ b/odk/Package_examples.mk
@@ -483,7 +483,6 @@ $(eval $(call 
gb_Package_add_files_with_dir,odk_examples,$(SDKDIRNAME)/examples,
 java/Inspector/images/properties_16.png \
 java/Inspector/images/services_16.png \
 java/Inspector/manifest.mf \
-java/MinimalComponent/BuildMinimalComponent.xml \
 java/MinimalComponent/Makefile \
 java/MinimalComponent/MinimalComponent.components \
 java/MinimalComponent/MinimalComponent.idl \
diff --git a/odk/examples/java/MinimalComponent/BuildMinimalComponent.xml 
b/odk/examples/java/MinimalComponent/BuildMinimalComponent.xml
deleted file mode 100644
index 10dfde5ecee4..
--- a/odk/examples/java/MinimalComponent/BuildMinimalComponent.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-  
-
- 
- 
- 
- 
- 
- 
-   
-   
-
-   
- 
-   
-
-   
- 
-   
-
-   
- 
-   
-
-   
- 
-
-   
-
-   
-
-   
-   
-   
-   
-   
-   
-   
-   
-   
- 
-
-
- 
-
-
- 
-
-
-
-
-


[Libreoffice-commits] core.git: odk/examples

2021-08-25 Thread Stephan Bergmann (via logerrit)
 odk/examples/java/ConverterServlet/web.xml |   72 +++--
 1 file changed, 18 insertions(+), 54 deletions(-)

New commits:
commit 15a15c2eb07d5c0b521a03297cdb27e645063161
Author: Stephan Bergmann 
AuthorDate: Wed Aug 25 15:58:14 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Wed Aug 25 21:38:17 2021 +0200

Fix corrupted odk/examples/java/ConverterServlet/web.xml

Instead of just adding a license header,
2b4fd2c89a38ccac13c72f2e94501a8702e7da4b "re-base on ALv2 code" had 
apparently
erroneously overwritten this file with the content of the completely 
unrelated
odk/examples/java/MinimalComponent/BuildMinimalComponent.xml.

Change-Id: Iee6dcb528dbb444a132c27e7183b3957319882c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121037
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/java/ConverterServlet/web.xml 
b/odk/examples/java/ConverterServlet/web.xml
index 10dfde5ecee4..a0f36c7b265a 100644
--- a/odk/examples/java/ConverterServlet/web.xml
+++ b/odk/examples/java/ConverterServlet/web.xml
@@ -1,4 +1,4 @@
-
+
 
-
 
-  
-
- 
- 
- 
- 
- 
- 
-   
-   
+http://java.sun.com/dtd/web-app_2_3.dtd;>
 
-   
- 
-   
+
+Conversion
+
+  Converter servlet demo of the SDK.
+
 
-   
- 
-   
+
+ConverterServlet
+ConverterServlet
+
 
-   
- 
-   
+
+ConverterServlet
+/servlet/*
+
 
-   
- 
-
-   
-
-   
-
-   
-   
-   
-   
-   
-   
-   
-   
-   
- 
-
-
- 
-
-
- 
-
-
-
-
-
+


[Libreoffice-commits] core.git: odk/examples

2021-07-18 Thread Andrea Gelmini (via logerrit)
 odk/examples/python/DocumentLoader/README.md |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e6af563b99b415b3188e3e11956c24d68e27930e
Author: Andrea Gelmini 
AuthorDate: Sat Jul 17 12:38:34 2021 +0200
Commit: Julien Nabet 
CommitDate: Sun Jul 18 12:14:16 2021 +0200

Fix typos

Change-Id: I0a8ce634944df4af5c9e2000af5f6429b4e40b2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119097
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/odk/examples/python/DocumentLoader/README.md 
b/odk/examples/python/DocumentLoader/README.md
index c5a80f0f69c3..d95c933ab9c1 100644
--- a/odk/examples/python/DocumentLoader/README.md
+++ b/odk/examples/python/DocumentLoader/README.md
@@ -4,9 +4,9 @@ to get started, first start LibreOffice listening on port 2083
 
 $OFFICE_PROGRAM_PATH/soffice "--accept=socket,port=2083;urp;"
 
-The synatx for executing this example is:
+The syntax to run this example is:
 
 $OFFICE_PROGRAM_PATH/python DocumentLoader.py 
 
 You should use 'setsdkenv_unix' for Unix/Linux and setsdkenv_windows.bat for 
Windows. In this way,
-the LibreOffice internal Python interpretor will be used.
+the LibreOffice internal Python interpreter will be used.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2021-07-16 Thread Hossein (via logerrit)
 odk/examples/python/DocumentLoader/DocumentLoader.py |   44 +++
 odk/examples/python/DocumentLoader/README.md |   12 +
 2 files changed, 56 insertions(+)

New commits:
commit ff93afcc76d5f82e74174825173075cd938a230c
Author: Hossein 
AuthorDate: Wed Jun 30 05:49:01 2021 +0200
Commit: Thorsten Behrens 
CommitDate: Fri Jul 16 16:05:01 2021 +0200

Porting C++/Java DocumentLoader example to Python

* Using UNO for Python
* Opening the file in LibreOffice if it is listeing on port 2083

Change-Id: I14b1a38da5d66dd2ee8c859071c148ce08a080d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118142
Reviewed-by: Thorsten Behrens 
Tested-by: Jenkins

diff --git a/odk/examples/python/DocumentLoader/DocumentLoader.py 
b/odk/examples/python/DocumentLoader/DocumentLoader.py
new file mode 100644
index ..521b63ce9066
--- /dev/null
+++ b/odk/examples/python/DocumentLoader/DocumentLoader.py
@@ -0,0 +1,44 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/.
+#
+
+import uno
+from com.sun.star.connection import NoConnectException
+from os.path import isfile, abspath
+from sys import argv, exit
+
+if __name__ == "__main__":
+if len(argv) < 2:
+print("usage: $OFFICE_PROGRAM_PATH/python DocumentLoader.py ")
+exit(1)
+if not isfile(argv[1]):
+print("%s could not be opened" % argv[1])
+exit(1)
+
+# UNO component context for initializing the Python runtime
+localContext = uno.getComponentContext()
+
+# Create an instance of a service implementation
+resolver = localContext.ServiceManager.createInstanceWithContext(
+"com.sun.star.bridge.UnoUrlResolver", localContext)
+
+try:
+context = resolver.resolve(
+"uno:socket,host=localhost,"
+"port=2083;urp;StarOffice.ComponentContext")
+except NoConnectException:
+raise Exception("Error: cannot establish a connection to LibreOffice.")
+
+desktop = context.ServiceManager.createInstanceWithContext(
+"com.sun.star.frame.Desktop", context)
+url = uno.systemPathToFileUrl(abspath(argv[1]))
+
+# Load a LibreOffice document, and automatically display it on the screen
+xComp = desktop.loadComponentFromURL(url, "_blank", 0, tuple([]))
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/odk/examples/python/DocumentLoader/README.md 
b/odk/examples/python/DocumentLoader/README.md
new file mode 100644
index ..c5a80f0f69c3
--- /dev/null
+++ b/odk/examples/python/DocumentLoader/README.md
@@ -0,0 +1,12 @@
+# DocumentLoader
+This example is somehow similar to DocumentLoader in C++ and Java.
+to get started, first start LibreOffice listening on port 2083
+
+$OFFICE_PROGRAM_PATH/soffice "--accept=socket,port=2083;urp;"
+
+The synatx for executing this example is:
+
+$OFFICE_PROGRAM_PATH/python DocumentLoader.py 
+
+You should use 'setsdkenv_unix' for Unix/Linux and setsdkenv_windows.bat for 
Windows. In this way,
+the LibreOffice internal Python interpretor will be used.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2021-07-13 Thread Andrea Gelmini (via logerrit)
 odk/examples/cpp/Draw/Draw.cxx |2 +-
 odk/examples/cpp/Draw/Makefile |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ee51f0ca4c1d9e8d6cecb5113508a284fe55c54c
Author: Andrea Gelmini 
AuthorDate: Tue Jul 13 14:41:53 2021 +0200
Commit: Adolfo Jayme Barrientos 
CommitDate: Wed Jul 14 04:53:35 2021 +0200

Fix typos

Change-Id: I809231e7e6ceaa93c2d0b523de8a4b93b07b449c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118841
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos 

diff --git a/odk/examples/cpp/Draw/Draw.cxx b/odk/examples/cpp/Draw/Draw.cxx
index d7924e53c539..511869fd1370 100644
--- a/odk/examples/cpp/Draw/Draw.cxx
+++ b/odk/examples/cpp/Draw/Draw.cxx
@@ -133,7 +133,7 @@ Reference createShape(Reference 
xDocComp, int height, int wi
 Point position;
 Reference xShape;
 
-// get the mutliservice factory
+// get the multiservice factory
 Reference xDocMSF(xDocComp, UNO_QUERY);
 
 try
diff --git a/odk/examples/cpp/Draw/Makefile b/odk/examples/cpp/Draw/Makefile
index f3a3ca5ea80d..333a3a4672d3 100644
--- a/odk/examples/cpp/Draw/Makefile
+++ b/odk/examples/cpp/Draw/Makefile
@@ -64,7 +64,7 @@ endif
 
 CppDrawExample : $(OUT_BIN)/Draw$(EXE_EXT)
@echo 

-   @echo The example connects to the office server, create an empy 
documents and puts some
+   @echo The example connects to the office server, create an empty 
documents and puts some
@echo   shapes on it.
@echo -
@echo Use the following command to execute the example!
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2021-07-11 Thread Hossein (via logerrit)
 odk/examples/cpp/DocumentLoader/DocumentLoader.cxx |   26 ++---
 1 file changed, 13 insertions(+), 13 deletions(-)

New commits:
commit 0fc020fb73c86a20608e8dff12af607e60327379
Author: Hossein 
AuthorDate: Tue Jun 29 20:24:59 2021 +0200
Commit: Thorsten Behrens 
CommitDate: Mon Jul 12 00:09:05 2021 +0200

Cleaning up DocumentLoader C++ SDK example

* Removing calls to C functions
* Simplifying string usage

Change-Id: Ia8ca329d7ad586d98e309809e430006eaac9eaaa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118131
Reviewed-by: Thorsten Behrens 
Tested-by: Thorsten Behrens 

diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx 
b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
index 7e1f89cf3875..057a9e8152b0 100644
--- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
+++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
@@ -34,9 +34,7 @@
  */
 
 // Simple client application using the UnoUrlResolver service.
-#include 
-#include 
-
+#include 
 #include 
 #include 
 
@@ -51,8 +49,7 @@
 #include 
 #include 
 
-#include 
-
+using namespace std;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
 using namespace com::sun::star::beans;
@@ -60,9 +57,7 @@ using namespace com::sun::star::bridge;
 using namespace com::sun::star::frame;
 using namespace com::sun::star::registry;
 
-using ::rtl::OUString;
-using ::rtl::OUStringToOString;
-
+using namespace rtl;
 
 SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 {
@@ -72,8 +67,14 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 
 if (nCount < 1)
 {
-printf("using: DocumentLoader 
-env:URE_MORE_TYPES=  
[]\n\n"
-   "example: DocumentLoader 
-env:URE_MORE_TYPES=\"file:///.../program/offapi.rdb\" 
\"file:///e:/temp/test.odt\" 
\"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager\"\n");
+cout << "using: DocumentLoader 
-env:URE_MORE_TYPES=  "
+"[]"
+ << endl
+ << endl
+ << "example: DocumentLoader 
-env:URE_MORE_TYPES=\"file:///.../program/offapi.rdb\" "
+"\"file:///e:/temp/test.odt\" "
+
"\"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager\""
+ << endl;
 exit(1);
 }
  if (nCount == 2)
@@ -108,9 +109,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 }
 catch ( Exception& e )
 {
-printf("Error: cannot establish a connection using '%s':\n   %s\n",
-   OUStringToOString(sConnectionString, 
RTL_TEXTENCODING_ASCII_US).getStr(),
-   OUStringToOString(e.Message, 
RTL_TEXTENCODING_ASCII_US).getStr());
+cout << "Error: cannot establish a connection using "
+ << sConnectionString << endl << e.Message << endl;
 exit(1);
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2021-06-22 Thread Stephan Bergmann (via logerrit)
 odk/examples/java/Inspector/ObjectInspector.xcu |4 
 1 file changed, 4 deletions(-)

New commits:
commit a344462ccb324b14dbf17391146f78d84307cbec
Author: Stephan Bergmann 
AuthorDate: Tue Jun 22 14:14:34 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Wed Jun 23 06:28:36 2021 +0200

Remove unused DOCTYPE from odk/examples xcu file

The declared entities have apparently never been referenced ever since the
file's introduction in 9fa09d43d0dc0ec0ac71bad31b85ce7fc302ee90 
"INTEGRATION:
CWS sdkinspector2".  (And at least xmlreader skips and ignores the content 
of
such document type declarations anyway.)

Change-Id: I8263200f52bb5f1692090995574619f9c0ec478f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117658
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/java/Inspector/ObjectInspector.xcu 
b/odk/examples/java/Inspector/ObjectInspector.xcu
index b7696086629c..d6fb08a0f8ce 100644
--- a/odk/examples/java/Inspector/ObjectInspector.xcu
+++ b/odk/examples/java/Inspector/ObjectInspector.xcu
@@ -16,10 +16,6 @@
  *   except in compliance with the License. You may obtain a copy of
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->
-
-
-]>
 http://openoffice.org/2001/registry;
 xmlns:xs="http://www.w3.org/2001/XMLSchema;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples odk/qa solenv/clang-format

2020-11-21 Thread Philipp Hofer (via logerrit)
 
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.h
|6 --
 
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.h
 |6 --
 odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx 
  |   21 --
 odk/examples/DevelopersGuide/ProfUNO/Lifetime/object_lifetime.cxx  
  |   12 ++---
 odk/examples/OLE/activex/SOComWindowPeer.cpp   
  |   10 +---
 odk/examples/OLE/activex/StdAfx2.h 
  |2 
 odk/examples/OLE/activex/so_activex.cpp
  |   17 +---
 odk/examples/cpp/complextoolbarcontrols/CalcListener.cxx   
  |9 
 odk/qa/checkapi/checkapi.cxx   
  |7 ---
 solenv/clang-format/excludelist
  |9 
 10 files changed, 30 insertions(+), 69 deletions(-)

New commits:
commit 2184efed3943fe9634e6e361e8b0306a374cbf59
Author: Philipp Hofer 
AuthorDate: Thu Nov 12 13:08:05 2020 +0100
Commit: Christian Lohmaier 
CommitDate: Sat Nov 21 13:18:11 2020 +0100

tdf#123936 Formatting files in module odk with clang-format

Change-Id: I427263ee98206c00cd2b3392fc9f2f55ad1ded5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105692
Reviewed-by: Christian Lohmaier 
Tested-by: Jenkins

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.h
 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.h
index 81de2d9f1b31..99207192f796 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.h
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.h
@@ -47,16 +47,14 @@ extern "C" {
  * Method:getNativeWindowSystemType
  * Signature: ()I
  */
-JNIEXPORT jint JNICALL Java_NativeView_getNativeWindowSystemType
-  (JNIEnv *, jobject);
+JNIEXPORT jint JNICALL Java_NativeView_getNativeWindowSystemType(JNIEnv*, 
jobject);
 
 /*
  * Class: org_openoffice_OpenOffice
  * Method:getNativeWindow
  * Signature: ()J
  */
-JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow
-  (JNIEnv *, jobject);
+JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow(JNIEnv*, jobject);
 
 #ifdef __cplusplus
 }
diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.h
 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.h
index 81de2d9f1b31..99207192f796 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.h
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.h
@@ -47,16 +47,14 @@ extern "C" {
  * Method:getNativeWindowSystemType
  * Signature: ()I
  */
-JNIEXPORT jint JNICALL Java_NativeView_getNativeWindowSystemType
-  (JNIEnv *, jobject);
+JNIEXPORT jint JNICALL Java_NativeView_getNativeWindowSystemType(JNIEnv*, 
jobject);
 
 /*
  * Class: org_openoffice_OpenOffice
  * Method:getNativeWindow
  * Signature: ()J
  */
-JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow
-  (JNIEnv *, jobject);
+JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow(JNIEnv*, jobject);
 
 #ifdef __cplusplus
 }
diff --git a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx 
b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
index ecb21116a00a..26162eeb3617 100644
--- a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
+++ b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
@@ -53,35 +53,34 @@ SAL_IMPLEMENT_MAIN()
 
 // give it an initial size, should be a good guess.
 // stringbuffer extends if necessary
-OUStringBuffer buf( 128 );
+OUStringBuffer buf(128);
 
 // append an ascii string
-buf.append( "pi ( here " );
+buf.append("pi ( here ");
 
 // numbers can be simply appended
-buf.append( pi );
+buf.append(pi);
 
 // lets the compiler count the stringlength, so this is more efficient than
 // the above appendAscii call, where length of the string must be 
calculated at
 // runtime
-buf.append( " ) multiplied with " );
-buf.append( n );
-buf.append( " gives " );
-buf.append( (double)( n * pi ) );
-buf.append( "." );
+buf.append(" ) multiplied with ");
+buf.append(n);
+buf.append(" gives ");
+buf.append((double)(n * pi));
+buf.append(".");
 
 // now transfer the buffer into the string.
 // afterwards buffer is empty and may be reused again !
 OUString string = buf.makeStringAndClear();
 
 // I could of course also used the OStringBuffer directly
-OString oString = rtl::OUStringToOString( string , 

[Libreoffice-commits] core.git: odk/examples

2020-09-27 Thread Stephan Bergmann (via logerrit)
 odk/examples/DevelopersGuide/Components/Thumbs/Makefile |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 37a96d9fa4f5a6dbc7e7eabed169535cf276284e
Author: Stephan Bergmann 
AuthorDate: Sun Sep 27 12:22:18 2020 +0200
Commit: Stephan Bergmann 
CommitDate: Sun Sep 27 13:40:25 2020 +0200

Fix an odk/examples dependency

ImageShrink.oxt is created in the org/openoffice/comp/test sub-make, and
CustomTarget_odk/build-examples_java had once failed for me with

> make[2]: *** No rule to make target 
'~/lo/core/workdir/CustomTarget/odk/build-examples_java/out/sdk/LINUXexample.out/bin/ImageShrink.oxt',
 needed by 'ComponentsThumbsExample'.  Stop.

Change-Id: I926d0691e7eee3506d4afe2eda1a2fc873422e18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103502
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/DevelopersGuide/Components/Thumbs/Makefile 
b/odk/examples/DevelopersGuide/Components/Thumbs/Makefile
index 95adaef3d1d5..7a7ac34f7159 100644
--- a/odk/examples/DevelopersGuide/Components/Thumbs/Makefile
+++ b/odk/examples/DevelopersGuide/Components/Thumbs/Makefile
@@ -58,6 +58,8 @@ $(SUBDIRS) :
 
 org/openoffice/comp/test : org/openoffice/test
 
+$(COMP_PACKAGE): org/openoffice/comp/test
+
 ComponentsThumbsExample : $(COMP_PACKAGE)
@echo 

@echo Please use one of the following command to execute the example!
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2020-09-15 Thread Andrea Gelmini (via logerrit)
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx |2 
+-
 odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx |2 
+-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f6b5f5a1726d7ee0dd2f147407c66bd3ca487a8b
Author: Andrea Gelmini 
AuthorDate: Mon Sep 14 20:34:03 2020 +0200
Commit: Julien Nabet 
CommitDate: Tue Sep 15 08:14:32 2020 +0200

Fix typos

Change-Id: Ia0a24bf32290ecb6b6153ba412d5e282f56d92f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102693
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index d68b96876eb5..a8b9305314f6 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -70,7 +70,7 @@ class MyService1Impl
 {
 oslInterlockedCount m_refcount;
 OUString m_sData;
-// it's good practise to store the context for further use when you use
+// it's good practice to store the context for further use when you use
 // other UNO API's in your implementation
 Reference< XComponentContext > m_xContext;
 public:
diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
index 840252f691fe..1920f82ead7c 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
@@ -74,7 +74,7 @@ class MyService2Impl : public ::cppu::WeakImplHelper3<
   ::my_module::XSomething, lang::XServiceInfo, lang::XInitialization >
 {
 OUString m_sData;
-// it's good practise to store the context for further use when you use
+// it's good practice to store the context for further use when you use
 // other UNO API's in your implementation
 Reference< XComponentContext > m_xContext;
 public:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2020-08-31 Thread Maxim Monastirsky (via logerrit)
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
  |   24 --
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
 |   24 --
 odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu  
 |3 -
 3 files changed, 51 deletions(-)

New commits:
commit 9bf4e2aa77c208d09b32c3638afab6f904bf0257
Author: Maxim Monastirsky 
AuthorDate: Sun Aug 30 16:20:42 2020 +0300
Commit: Maxim Monastirsky 
CommitDate: Mon Aug 31 15:19:27 2020 +0200

Remove empty ImageIdentifier properties from sdk examples

Change-Id: Id1a6b4fc6e156f67550458b4b7e4b1ffe32f812a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101691
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky 

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
index e891edaaef15..77aae07c47a5 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
@@ -31,9 +31,6 @@
 
 
org.openoffice.Office.addon.example:Function1
 
-
-
-
 
 
 Add-On Function 1
@@ -46,9 +43,6 @@
 
 
org.openoffice.Office.addon.example:Function2
 
-
-
-
 
 
 Add-On Function 2
@@ -71,9 +65,6 @@
 
 
org.openoffice.Office.addon.example:Function1
 
-
-
-
 
 
 Add-On Function 1
@@ -94,9 +85,6 @@
 
 
 
-
-
-
 
 
 Add-On sub menu
@@ -109,9 +97,6 @@
 
 
org.openoffice.Office.addon.example:Function2
 
-
-
-
 
 
 Add-On Function 
2
@@ -134,9 +119,6 @@
 
 
org.openoffice.Office.addon.example:Function1
 
-
-
-
 
 
 Function 1
@@ -152,9 +134,6 @@
 
 
org.openoffice.Office.addon.example:Function2
 
-
-
-
 
 
 Function 2
@@ -213,9 +192,6 @@
 
 org.openoffice.Office.addon.example:Help
 
-
-
-
 
 
   
   
diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
index 4e23a827e945..8f302612c705 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
@@ -31,9 +31,6 @@
 
 
org.openoffice.Office.addon.example:Function1
 
-
-
-
 
 
 Add-On Function 1
@@ -46,9 +43,6 @@
 
 
org.openoffice.Office.addon.example:Function2
 
-
-
-
 
 
 Add-On Function 2
@@ -71,9 +65,6 @@
 
 
org.openoffice.Office.addon.example:Function1
 

[Libreoffice-commits] core.git: odk/examples sd/source

2020-08-29 Thread Andrea Gelmini (via logerrit)
 odk/examples/java/Inspector/MethodParametersDialog.java |6 +++---
 sd/source/ui/framework/tools/FrameworkHelper.cxx|2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 86b78dcfb8bafd3c763d8c6b49671fd29fe91c35
Author: Andrea Gelmini 
AuthorDate: Fri Aug 28 12:12:54 2020 +0200
Commit: Noel Grandin 
CommitDate: Sat Aug 29 11:30:04 2020 +0200

Fix typo in code

It passed "make check" on Linux

Change-Id: I255b7a0873170d956c914d76fd363e358f807d7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101596
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/odk/examples/java/Inspector/MethodParametersDialog.java 
b/odk/examples/java/Inspector/MethodParametersDialog.java
index 621e6228b5da..216ef87f39df 100644
--- a/odk/examples/java/Inspector/MethodParametersDialog.java
+++ b/odk/examples/java/Inspector/MethodParametersDialog.java
@@ -65,7 +65,7 @@ public class MethodParametersDialog extends JDialog{
 private Object m_oUnoReturnObject = null;
 private JLabel jLblResult;
 private JPanel jResultPanel = null;
-private boolean bisdiposed = false;
+private boolean bisdisposed = false;
 private XUnoMethodNode m_xUnoMethodNode;
 
 
@@ -105,7 +105,7 @@ public class MethodParametersDialog extends JDialog{
 super.requestFocus();
 m_aParameterPanels[0].getInputComponent().requestFocusInWindow();
 setVisible(true);
-if (!bisdiposed){
+if (!bisdisposed){
 ArrayList aMethodObjects = new ArrayList();
 for (int i = 0; i < m_aParameterPanels.length; i++){
 aMethodObjects.add(m_aParameterPanels[i].getValue());
@@ -319,7 +319,7 @@ public class MethodParametersDialog extends JDialog{
 jCancelButton.setFocusPainted(true);
 jCancelButton.addActionListener(new ActionListener(){
 public void actionPerformed(java.awt.event.ActionEvent evt) {
-bisdiposed = true;
+bisdisposed = true;
 dispose();
 }
 });
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx 
b/sd/source/ui/framework/tools/FrameworkHelper.cxx
index 3ececeaa506e..4ff28a7d25f6 100644
--- a/sd/source/ui/framework/tools/FrameworkHelper.cxx
+++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx
@@ -276,7 +276,7 @@ public:
 ViewURLMap() {}
 };
 
-//- Framework::DiposeListener -
+//- Framework::DisposeListener 
-
 
 namespace {
 typedef ::cppu::WeakComponentImplHelper <
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2020-07-22 Thread Stephan Bergmann (via logerrit)
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
|   16 
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx
|   37 -
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
  |   32 -
 odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx 
  |   24 
 odk/examples/DevelopersGuide/Database/DriverSkeleton/OSubComponent.hxx 
  |   14 
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx   
  |   46 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.hxx   
  |   48 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx 
  |  298 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx 
  |  298 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx   
  |   23 
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx   
  |   22 
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SPreparedStatement.cxx
  |   70 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SPreparedStatement.hxx
  |   71 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
  |  162 ++---
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.hxx
  |  160 ++---
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.cxx
  |   42 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.hxx
  |   42 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
  |   39 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx
  |   41 -
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
 |8 
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.hxx
 |   33 -
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
   |   42 -
 odk/examples/cpp/complextoolbarcontrols/CalcListener.cxx   
  |4 
 odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx 
  |2 
 odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h   
  |2 
 odk/examples/cpp/complextoolbarcontrols/MyJob.cxx  
  |7 
 odk/examples/cpp/complextoolbarcontrols/MyJob.h
  |   24 
 odk/examples/cpp/complextoolbarcontrols/MyListener.cxx 
  |6 
 odk/examples/cpp/complextoolbarcontrols/MyListener.h   
  |   26 
 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx  
  |   18 
 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h
  |   40 -
 odk/examples/cpp/complextoolbarcontrols/WriterListener.cxx 
  |4 
 odk/examples/cpp/counter/counter.cxx   
  |   19 
 odk/examples/cpp/remoteclient/remoteclient.cxx 
  |5 
 34 files changed, 789 insertions(+), 936 deletions(-)

New commits:
commit ddcc98fa50dd9d86a60dada4daa00f4d95ffe005
Author: Stephan Bergmann 
AuthorDate: Wed Jul 22 13:41:12 2020 +0200
Commit: Stephan Bergmann 
CommitDate: Wed Jul 22 15:13:24 2020 +0200

Remove obsolete dynamic exception specifications from SDK example C++ code

GCC 11 trunk g++ defaults to C++17 now, so that 
CustomTarget_odk/build-examples
and CustomTarget_odk/build-examples_java would now fail with "error: ISO 
C++17
does not allow dynamic exception specifications".

550e0e42d9ccef1244299b2d6cbda18549f8af19 "Remove dynamic exception
specifications from cppumaker-generated code" had long since removed the
exception specifications from the underlying (C++ classes representing) UNO
interface types, so just remove them from the SDK example code, too.  An
alternative would have been to make sure those CustomTarget use an old C++
compiler standard.  However, testing that the examples work against a new
standard has probably similar merit to testing that they keep working 
against
some obsolete standard.

Change-Id: I8ec9ac2f9ced7bd1b746fb00d9bce94bf6aedda5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99218
Tested-by: Jenkins

[Libreoffice-commits] core.git: odk/examples

2020-04-23 Thread Caolán McNamara (via logerrit)
 odk/examples/cpp/complextoolbarcontrols/Addons.xcu |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fb878ce13e90c1f4e36c2d2e0bf193bf1b9ad21a
Author: Caolán McNamara 
AuthorDate: Thu Apr 23 11:48:13 2020 +0100
Commit: Caolán McNamara 
CommitDate: Thu Apr 23 14:48:26 2020 +0200

make spinbutton demo wide enough to use

Change-Id: Ibfd0e27b0b382fb6e0f71bfd4d9555998b03ded5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92754
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/odk/examples/cpp/complextoolbarcontrols/Addons.xcu 
b/odk/examples/cpp/complextoolbarcontrols/Addons.xcu
index ce9aa26920fc..786c3ad29647 100644
--- a/odk/examples/cpp/complextoolbarcontrols/Addons.xcu
+++ b/odk/examples/cpp/complextoolbarcontrols/Addons.xcu
@@ -79,7 +79,7 @@
 Spinfield
 
 
-70
+150
 
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples odk/settings

2019-10-31 Thread Vasily Melenchuk (via logerrit)
 odk/examples/cpp/complextoolbarcontrols/Makefile |6 +++---
 odk/settings/settings.mk |5 +
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 3208236305f7c24fce556fda10eeb9905779a37c
Author: Vasily Melenchuk 
AuthorDate: Tue Oct 15 15:07:10 2019 +0300
Commit: Thorsten Behrens 
CommitDate: Fri Nov 1 00:27:35 2019 +0100

odk: fix for change directory in complextoolbarcontrols sample

On Windows classical "cd" command does not change drive automatically.
So if OO_SDK_OUT folder located on another drive than SDK_HOME we
will receive confusing buid errors.

To avoid this for Windows configuration we should use "cd /d".

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

diff --git a/odk/examples/cpp/complextoolbarcontrols/Makefile 
b/odk/examples/cpp/complextoolbarcontrols/Makefile
index 446b06e50e15..ad75987cfab0 100644
--- a/odk/examples/cpp/complextoolbarcontrols/Makefile
+++ b/odk/examples/cpp/complextoolbarcontrols/Makefile
@@ -142,10 +142,10 @@ $(COMP_PACKAGE) : $(SHAREDLIB_OUT)/$(COMP_IMPL_NAME) 
Addons.xcu ProtocolHandler.
-$(MKDIR) $(subst /,$(PS),$(@D)) && $(DEL) $(subst \\,\,$(subst 
/,$(PS),$@))
-$(MKDIR) $(subst /,$(PS),$(OUT_COMP_GEN)/$(UNOPKG_PLATFORM))
$(COPY) $(subst /,$(PS),$<) $(subst 
/,$(PS),$(OUT_COMP_GEN)/$(UNOPKG_PLATFORM))
-   cd $(subst /,$(PS),$(OUT_COMP_GEN)) && $(SDK_ZIP) -u ../../bin/$(@F) 
$(COMP_NAME).components description.xml
-   cd $(subst /,$(PS),$(OUT_COMP_GEN)) && $(SDK_ZIP) -u ../../bin/$(@F) 
$(UNOPKG_PLATFORM)/$(https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: odk/examples sw/qa sw/source vcl/source vcl/unx wizards/com xmloff/source xmlsecurity/source

2019-09-06 Thread Andrea Gelmini (via logerrit)
 odk/examples/DevelopersGuide/Forms/ControlLock.java|2 -
 odk/examples/DevelopersGuide/Forms/DataAwareness.java  |2 -
 odk/examples/DevelopersGuide/Forms/SalesFilter.java|2 -
 odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java |2 -
 odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java  |2 -
 odk/examples/cpp/remoteclient/remoteclient.cxx |2 -
 sw/qa/extras/ooxmlexport/ooxmlexport2.cxx  |2 -
 sw/source/core/edit/autofmt.cxx|6 +--
 sw/source/core/unocore/unoportenum.cxx |2 -
 sw/source/filter/ww8/wrtww8.cxx|2 -
 sw/source/filter/ww8/ww8par2.cxx   |2 -
 sw/source/filter/ww8/ww8par5.cxx   |2 -
 sw/source/uibase/app/docshini.cxx  |4 +-
 sw/source/uibase/fldui/fldmgr.cxx  |4 +-
 sw/source/uibase/uno/unodispatch.cxx   |2 -
 vcl/source/app/svapp.cxx   |2 -
 vcl/source/control/edit.cxx|2 -
 vcl/source/control/fmtfield.cxx|6 +--
 vcl/source/control/wizardmachine.cxx   |   22 ++---
 vcl/source/edit/texteng.cxx|6 +--
 vcl/source/filter/ixpm/xpmread.cxx |2 -
 vcl/source/treelist/svimpbox.cxx   |2 -
 vcl/source/window/brdwin.cxx   |2 -
 vcl/source/window/floatwin.cxx |2 -
 vcl/source/window/window.cxx   |2 -
 vcl/unx/generic/print/printerjob.cxx   |2 -
 wizards/com/sun/star/wizards/agenda/TopicsControl.py   |2 -
 xmloff/source/core/xmlexp.cxx  |2 -
 xmloff/source/forms/elementexport.cxx  |4 +-
 xmloff/source/forms/elementimport.cxx  |4 +-
 xmloff/source/forms/propertyexport.cxx |2 -
 xmloff/source/table/XMLTableExport.cxx |2 -
 xmlsecurity/source/helper/documentsignaturehelper.cxx  |2 -
 xmlsecurity/source/helper/documentsignaturemanager.cxx |2 -
 34 files changed, 54 insertions(+), 54 deletions(-)

New commits:
commit 73e3604fc16695758b9a7f55051d2f786f74be2d
Author: Andrea Gelmini 
AuthorDate: Thu Sep 5 18:47:55 2019 +0200
Commit: Julien Nabet 
CommitDate: Fri Sep 6 09:05:50 2019 +0200

Fixing '' and '..'

Change-Id: I926069d6c1f2712e5020d930f7ff6c62fd00e912
Reviewed-on: https://gerrit.libreoffice.org/78667
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/odk/examples/DevelopersGuide/Forms/ControlLock.java 
b/odk/examples/DevelopersGuide/Forms/ControlLock.java
index 51358a7f02ba..6895f73f9289 100644
--- a/odk/examples/DevelopersGuide/Forms/ControlLock.java
+++ b/odk/examples/DevelopersGuide/Forms/ControlLock.java
@@ -90,7 +90,7 @@ class LockControlModels extends ComponentTreeTraversal
 xPSI = xCompProps.getPropertySetInfo();
 
 if ( ( null != xPSI ) && xPSI.hasPropertyByName( "DataField" ) )
-{   // indeed it has 
+{   // indeed it has...
 String sDataField = (String)xCompProps.getPropertyValue( 
"DataField" );
 if ( sDataField.equals( m_sDataField ) )
 {   // we found a control model which is bound to what we're 
looking for
diff --git a/odk/examples/DevelopersGuide/Forms/DataAwareness.java 
b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
index 123360c4e942..fbb3b7fe5e8e 100644
--- a/odk/examples/DevelopersGuide/Forms/DataAwareness.java
+++ b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
@@ -384,7 +384,7 @@ public class DataAwareness extends DocumentBasedExample 
implements XPropertyChan
 
 The check is made using a SELECT statement, so even if the 
connection
 is a n SDB-level connection, which may filter tables in its table
-supplier, the result may be reliable 
+supplier, the result may be reliable...
 */
 protected boolean existsInvisibleTable( XConnection xConn, String 
sTableName ) throws java.lang.Exception
 {
diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java 
b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
index 519e3e80ce65..753135bd3532 100644
--- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java
+++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
@@ -362,7 +362,7 @@ class SalesFilter implements XActionListener, 
XPropertyChangeListener, XResetLis
 // the current string items
 String[] aOldFilterItems = (String[])m_xFilterList.getPropertyValue( 
"StringItemList" );
 
-// translate this into a vector - much more comfort to work with a 
vector than with an array 
+// 

[Libreoffice-commits] core.git: odk/examples

2019-08-29 Thread Andrea Gelmini (via logerrit)
 odk/examples/java/Spreadsheet/XCalcAddins.idl |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ecada6d16942f52b37f45254c341c71a62de9a11
Author: Andrea Gelmini 
AuthorDate: Thu Aug 29 08:58:54 2019 +0200
Commit: Julien Nabet 
CommitDate: Thu Aug 29 09:03:17 2019 +0200

Fix typo

Change-Id: I46650797efa70d6b416356a3e5ed57d26d8e69be
Reviewed-on: https://gerrit.libreoffice.org/78252
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/odk/examples/java/Spreadsheet/XCalcAddins.idl 
b/odk/examples/java/Spreadsheet/XCalcAddins.idl
index 2c6dd3859207..79767b12c42e 100644
--- a/odk/examples/java/Spreadsheet/XCalcAddins.idl
+++ b/odk/examples/java/Spreadsheet/XCalcAddins.idl
@@ -49,7 +49,7 @@ module org {
   any number of arguments after xOptions.
   Furthermore, you could replace the name of the service and
   the interface, but only if you want to replace this name in all
-  your project files. This example will work with tNecessaryhe 
default
+  your project files. This example will work with the necessary 
default
   names.
   Interface names should start with an X prefix.
*/
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: odk/examples

2019-08-21 Thread Vasily Melenchuk (via logerrit)
 odk/examples/cpp/complextoolbarcontrols/Makefile |2 +-
 odk/examples/cpp/custompanel/Makefile|2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c3c0826b9c300d84d10dcca90b22ae662211316a
Author: Vasily Melenchuk 
AuthorDate: Tue Aug 20 15:16:46 2019 +0300
Commit: Julien Nabet 
CommitDate: Wed Aug 21 08:00:50 2019 +0200

odk: fixed typos in generated manifests

Change-Id: I85766d1ba3598b37e3a776605628402ca5795bc5
Reviewed-on: https://gerrit.libreoffice.org/77809
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/odk/examples/cpp/complextoolbarcontrols/Makefile 
b/odk/examples/cpp/complextoolbarcontrols/Makefile
index 1199e637a4f1..446b06e50e15 100644
--- a/odk/examples/cpp/complextoolbarcontrols/Makefile
+++ b/odk/examples/cpp/complextoolbarcontrols/Makefile
@@ -112,7 +112,7 @@ $(OUT_COMP_GEN)/%/manifest.xml :
@echo $(SQM)   
$(SQM)manifest:full-path="$(QM)Addons.xcu$(QM)"/$(CSEP) >> $@
@echo $(SQM)  $(SQM)$(OSEP)manifest:file-entry 
manifest:media-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> 
$@
@echo $(SQM)   
$(SQM)manifest:full-path="$(QM)WriterWindowState.xcu$(QM)"/$(CSEP) >> $@
-   @echo $(SQM)  $(SQM)$(OSEP)manifest:file-entry 
manifest:meda-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> $@
+   @echo $(SQM)  $(SQM)$(OSEP)manifest:file-entry 
manifest:media-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> 
$@
@echo $(SQM)   
$(SQM)manifest:full-path="$(QM)CalcWindowState.xcu$(QM)"/$(CSEP) >> $@
@echo $(SQM)  $(SQM)$(OSEP)manifest:file-entry 
manifest:media-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> 
$@
@echo $(SQM)   
$(SQM)manifest:full-path="$(QM)ProtocolHandler.xcu$(QM)"/$(CSEP) >> $@
diff --git a/odk/examples/cpp/custompanel/Makefile 
b/odk/examples/cpp/custompanel/Makefile
index c696e46ce353..fcbcd20dcedf 100644
--- a/odk/examples/cpp/custompanel/Makefile
+++ b/odk/examples/cpp/custompanel/Makefile
@@ -106,7 +106,7 @@ $(OUT_COMP_GEN)/%/manifest.xml :
@echo $(OSEP)?xml version="$(QM)1.0$(QM)" 
encoding="$(QM)UTF-8$(QM)"?$(CSEP) > $@
@echo $(OSEP)!DOCTYPE manifest:manifest PUBLIC 
"$(QM)-//OpenOffice.org//DTD Manifest 1.0//EN$(QM)" 
"$(QM)Manifest.dtd$(QM)"$(CSEP) >> $@
@echo $(OSEP)manifest:manifest 
xmlns:manifest="$(QM)http://openoffice.org/2001/manifest$(QM)"$(CSEP) >> $@
-   @echo $(SQM)  $(SQM)$(OSEP)manifest:file-entry 
manifest:meda-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> $@
+   @echo $(SQM)  $(SQM)$(OSEP)manifest:file-entry 
manifest:media-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> 
$@
@echo $(SQM)   
$(SQM)manifest:full-path="$(QM)CalcWindowState.xcu$(QM)"/$(CSEP) >> $@
@echo $(SQM)  $(SQM)$(OSEP)manifest:file-entry 
manifest:media-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> 
$@
@echo $(SQM)   
$(SQM)manifest:full-path="$(QM)DrawWindowState.xcu$(QM)"/$(CSEP) >> $@
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: odk/examples offapi/com

2019-08-12 Thread Andrea Gelmini (via logerrit)
 odk/examples/DevelopersGuide/examples.html   |4 ++--
 offapi/com/sun/star/awt/PushButtonType.idl   |2 +-
 offapi/com/sun/star/awt/XItemListListener.idl|2 +-
 offapi/com/sun/star/awt/grid/UnoControlGridModel.idl |2 +-
 offapi/com/sun/star/awt/tree/XTreeControl.idl|6 +++---
 5 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit ba17fe467d41f17395e607ed092af992c9ac84cb
Author: Andrea Gelmini 
AuthorDate: Sun Aug 11 19:50:56 2019 +0200
Commit: Julien Nabet 
CommitDate: Mon Aug 12 15:06:09 2019 +0200

Fix typos

Change-Id: I62b669b85e2380df2a6efa05764f21405e7eb2ae
Reviewed-on: https://gerrit.libreoffice.org/77318
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/odk/examples/DevelopersGuide/examples.html 
b/odk/examples/DevelopersGuide/examples.html
index 51ac213231d1..9d11058c531f 100644
--- a/odk/examples/DevelopersGuide/examples.html
+++ b/odk/examples/DevelopersGuide/examples.html
@@ -2559,7 +2559,7 @@ example which implements a data sink.
  href="./UCB/PropertiesComposer.java"
  title="link to UCB/PropertiesComposer.java">PropertiesComposer
   Shows how to set property values
-of an UCB resource.
+of a UCB resource.
 
 
   
  href="./UCB/PropertiesRetriever.java"
  title="link to UCB/PropertiesRetriever.java">PropertiesRetriever
   Shows how to access property
-values of an UCB resource.
+values of a UCB resource.
 
 
   Nodecan't be made visible since at least one of the 
parent nodes are
 collapsed and expanding failed because at least one of the 
registered
-XTreeExpansionListener raised a ExpandVetoException.
+XTreeExpansionListener raised an ExpandVetoException.
 */
 void makeNodeVisible( [in] XTreeNode Node )
 raises( com::sun::star::lang::IllegalArgumentException, 
ExpandVetoException );
@@ -118,7 +118,7 @@ interface XTreeControl
 
 @throws ExpandVetoException
 if expanding Node failed because at least one of the 
registered
-XTreeExpansionListener raised a ExpandVetoException.
+XTreeExpansionListener raised an ExpandVetoException.
 */
 void expandNode( [in] XTreeNode Node )
 raises( com::sun::star::lang::IllegalArgumentException, 
ExpandVetoException );
@@ -133,7 +133,7 @@ interface XTreeControl
 
 @throws ExpandVetoException
 if collapsing Node failed because at least one of the 
registered
-XTreeExpansionListener raised a ExpandVetoException.
+XTreeExpansionListener raised an ExpandVetoException.
 */
 void collapseNode( [in] XTreeNode Node )
 raises( com::sun::star::lang::IllegalArgumentException, 
ExpandVetoException );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: odk/examples odk/util

2019-07-20 Thread Andrea Gelmini (via logerrit)
 odk/examples/DevelopersGuide/Components/SimpleLicense/Makefile 
  |2 +-
 odk/examples/DevelopersGuide/Components/dialogcomponent/Makefile   
  |2 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/OSubComponent.hxx 
  |2 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
  |2 +-
 odk/examples/DevelopersGuide/Database/sdbcx.java   
  |2 +-
 odk/examples/DevelopersGuide/Forms/KeyGenerator.java   
  |2 +-
 odk/examples/DevelopersGuide/Forms/SalesFilter.java
  |4 ++--
 odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java   
  |2 +-
 odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java 
  |2 +-
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
  |2 +-
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java  
  |4 ++--
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java  
  |4 ++--
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
 |4 ++--
 odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java  
  |2 +-
 odk/examples/DevelopersGuide/examples.html 
  |4 ++--
 odk/examples/cpp/DocumentLoader/DocumentLoader.cxx 
  |2 +-
 odk/examples/examples.html 
  |2 +-
 odk/examples/java/ConverterServlet/ConverterServlet.java   
  |2 +-
 odk/examples/java/Inspector/InspectorPane.java 
  |6 +++---
 odk/examples/java/Inspector/Makefile   
  |2 +-
 odk/examples/java/MinimalComponent/Makefile
  |2 +-
 odk/examples/java/Spreadsheet/ChartTypeChange.java 
  |2 +-
 odk/examples/java/Spreadsheet/EuroAdaption.java
  |6 +++---
 odk/examples/java/Spreadsheet/SCalc.java   
  |8 
 odk/examples/java/Storage/TestHelper.java  
  |2 +-
 odk/examples/java/Text/BookmarkInsertion.java  
  |6 +++---
 odk/examples/java/Text/HardFormatting.java 
  |4 ++--
 odk/examples/java/Text/SWriter.java
  |4 ++--
 odk/examples/java/Text/StyleCreation.java  
  |2 +-
 odk/examples/java/Text/StyleInitialization.java
  |   10 +-
 odk/examples/java/Text/TextReplace.java
  |4 ++--
 odk/examples/python/toolpanel/readme   
  |4 ++--
 odk/util/check.pl  
  |2 +-
 33 files changed, 55 insertions(+), 55 deletions(-)

New commits:
commit dd950a6edbd3abc45409724be8cabe1dee71b63d
Author: Andrea Gelmini 
AuthorDate: Sat Jul 20 18:05:48 2019 +0200
Commit: Andrea Gelmini 
CommitDate: Sat Jul 20 22:39:25 2019 +0200

Fix typos

Change-Id: Ib361243332b7219c0073c787c378c648e44705f2
Reviewed-on: https://gerrit.libreoffice.org/75487
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini 

diff --git a/odk/examples/DevelopersGuide/Components/SimpleLicense/Makefile 
b/odk/examples/DevelopersGuide/Components/SimpleLicense/Makefile
index 8dd4f0502f94..efcac2aac3cf 100644
--- a/odk/examples/DevelopersGuide/Components/SimpleLicense/Makefile
+++ b/odk/examples/DevelopersGuide/Components/SimpleLicense/Makefile
@@ -42,7 +42,7 @@ include $(SETTINGS)/std.mk
 
 # Define non-platform/compiler specific settings
 
-# we use the sample directory name dor separating this example 
+# we use the sample directory name for separating this example
 # from others in the output directory
 SAMPLE_NAME=LicenseTest
 SAMPLE_CLASS_OUT=$(OUT_CLASS)/$(SAMPLE_NAME)
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/Makefile 
b/odk/examples/DevelopersGuide/Components/dialogcomponent/Makefile
index f0b38086061a..23d766868eb4 100644
--- a/odk/examples/DevelopersGuide/Components/dialogcomponent/Makefile
+++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/Makefile
@@ -42,7 +42,7 @@ include $(SETTINGS)/std.mk
 
 # Define 

[Libreoffice-commits] core.git: odk/examples

2019-07-20 Thread Andrea Gelmini (via logerrit)
 odk/examples/cpp/remoteclient/remoteclient.cxx   |2 +-
 odk/examples/java/EmbedDocument/Container1/EmbedContApp.java |2 +-
 odk/examples/java/Inspector/Inspector.java   |2 +-
 odk/examples/java/Spreadsheet/SCalc.java |4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 2286eb08e7a6a820ec71ed22945cf422fa88a16a
Author: Andrea Gelmini 
AuthorDate: Sat Jul 20 19:29:05 2019 +0200
Commit: Andrea Gelmini 
CommitDate: Sat Jul 20 22:36:27 2019 +0200

Fix typos in code

Extracted from https://gerrit.libreoffice.org/#/c/75487/1

Change-Id: I80f9247c5c961a33c0d2c8354ea0524820b33409
Reviewed-on: https://gerrit.libreoffice.org/76028
Reviewed-by: Michael Meeks 
Tested-by: Andrea Gelmini 

diff --git a/odk/examples/cpp/remoteclient/remoteclient.cxx 
b/odk/examples/cpp/remoteclient/remoteclient.cxx
index 90f6280c15f4..7af63f15948b 100644
--- a/odk/examples/cpp/remoteclient/remoteclient.cxx
+++ b/odk/examples/cpp/remoteclient/remoteclient.cxx
@@ -168,7 +168,7 @@ sal_Int32 PipeClientMain::run( const Sequence< OUString > & 
aArguments ) throw (
 {
 OString o = OUStringToOString( e.Message, 
RTL_TEXTENCODING_ASCII_US );
 printf( "%s\n", o.pData->buffer );
-printf( "couldn't access local resource ( possible security resons 
)\n" );
+printf( "couldn't access local resource (possible security 
reasons)\n" );
 }
 catch( NoConnectException  )
 {
diff --git a/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java 
b/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
index 2f198376652b..a275c27eaf7f 100644
--- a/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
+++ b/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
@@ -388,7 +388,7 @@ public class EmbedContApp extends Applet implements 
MouseListener, XEmbeddedClie
 if ( m_xStorage == null )
 {
 JOptionPane.showMessageDialog( m_aFrame,
-"No storage for oned 
file!",
+"No storage for owned 
file!",
 "Error:",
 
JOptionPane.ERROR_MESSAGE );
 return;
diff --git a/odk/examples/java/Inspector/Inspector.java 
b/odk/examples/java/Inspector/Inspector.java
index 18d8d909a449..18a75bcdb469 100644
--- a/odk/examples/java/Inspector/Inspector.java
+++ b/odk/examples/java/Inspector/Inspector.java
@@ -88,7 +88,7 @@ public class Inspector{
 private TDocSupplier oTDocSupplier;
 private Introspector m_oIntrospector = null;
 // TODO: improve these strings:
-private static final String sWRONGINSTALLATIONPATH = "Your selected 
path does not refer to an SDK-Installation!";
+private static final String sWRONGINSTALLATIONPATH = "Your selected 
path does not refer to a SDK-Installation!";
 /** Creates a new instance of Dialog */
 public _Inspector(XComponentContext _xComponentContext) {
 m_xComponentContext = _xComponentContext;
diff --git a/odk/examples/java/Spreadsheet/SCalc.java 
b/odk/examples/java/Spreadsheet/SCalc.java
index 96fdc1ad429d..85eea9e0fd04 100644
--- a/odk/examples/java/Spreadsheet/SCalc.java
+++ b/odk/examples/java/Spreadsheet/SCalc.java
@@ -307,7 +307,7 @@ public class SCalc  {
 XChartDocument xChart = UnoRuntime.queryInterface(
 XChartDocument.class,oInt);
 XDiagram oDiag = xChart.getDiagram();
-System.out.println("Change Diagramm to 3D");
+System.out.println("Change Diagram to 3D");
 XPropertySet oCPS = UnoRuntime.queryInterface(
 XPropertySet.class, oDiag );
 oCPS.setPropertyValue("Dim3D", Boolean.TRUE);
@@ -317,7 +317,7 @@ public class SCalc  {
 XPropertySet.class, xChart.getTitle() );
 oTPS.setPropertyValue("String","The new title");
 } catch (Exception e){
-System.err.println("Changin Properties failed "+e);
+System.err.println("Changing Properties failed "+e);
 e.printStackTrace(System.err);
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: odk/examples

2018-10-21 Thread Libreoffice Gerrit user
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Makefile |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 21ba68ae7991ee0f6546d765dcad2c84cd05a375
Author: Stephan Bergmann 
AuthorDate: Sat Oct 20 14:38:35 2018 +0200
Commit: Stephan Bergmann 
CommitDate: Sun Oct 21 10:42:13 2018 +0200

Java 11 no longer synthesizes DocumentView$1.class

...so, for simplicity, just include whatever generated DocumentView$*.class 
by
wildcard

Change-Id: I779e2709c8ef2859d68233300302dd62dbe2455f
Reviewed-on: https://gerrit.libreoffice.org/62073
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Makefile 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Makefile
index 42271086aef0..2048ade63d98 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Makefile
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Makefile
@@ -66,8 +66,7 @@ APP1_JAVAFILES  = \
 APP1_CLASSFILES = $(patsubst %.java,$(OUT_APP_CLASS)/%.class,$(APP1_JAVAFILES))
 APP1_CLASSNAMES = $(patsubst %.java,%.class,$(APP1_JAVAFILES)) \
CustomizeView$(QUOTE)$$ClickListener.class \
-   DocumentView$(QUOTE)$$1.class \
-   DocumentView$(QUOTE)$$Reactor.class
+   DocumentView$(QUOTE)$$*.class
 
 
 SDK_CLASSPATH = $(subst $(EMPTYSTRING) 
$(PATH_SEPARATOR),$(PATH_SEPARATOR),$(CLASSPATH)\
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2018-10-11 Thread Libreoffice Gerrit user
 odk/examples/OLE/activex/StdAfx2.h |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 04eb39a9829cf40974b82f9c44abf51d51d2685d
Author: Jan-Marek Glogowski 
AuthorDate: Thu Oct 11 09:44:46 2018 +
Commit: Jan-Marek Glogowski 
CommitDate: Thu Oct 11 19:00:51 2018 +0200

Restore explicit _WIN32_WINVER in the ODK example

Change-Id: I01855c37955dcae13dbb3c6f028d4030dc48945a
Reviewed-on: https://gerrit.libreoffice.org/61657
Reviewed-by: Stephan Bergmann 
Tested-by: Jenkins

diff --git a/odk/examples/OLE/activex/StdAfx2.h 
b/odk/examples/OLE/activex/StdAfx2.h
index 1d6c6ddfd074..df14ccf949a0 100644
--- a/odk/examples/OLE/activex/StdAfx2.h
+++ b/odk/examples/OLE/activex/StdAfx2.h
@@ -41,6 +41,9 @@
 #define INCLUDED_EXAMPLES_ACTIVEX_STDAFX2_H
 
 #define STRICT
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0502
+#endif
 #define _ATL_APARTMENT_THREADED
 #define _ATL_STATIC_REGISTRY
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2018-10-02 Thread Libreoffice Gerrit user
 odk/examples/cpp/DocumentLoader/test.odt |binary
 1 file changed

New commits:
commit a40b31b6b1ae413aa72dfed99ccee9c7d5919fc9
Author: Tor Lillqvist 
AuthorDate: Tue Oct 2 17:52:36 2018 +0300
Commit: Tor Lillqvist 
CommitDate: Tue Oct 2 17:53:01 2018 +0300

Add some colour to a sample odt file

Change-Id: If4dc6458d9c5fb3b574c1bb55196a5086aff3365

diff --git a/odk/examples/cpp/DocumentLoader/test.odt 
b/odk/examples/cpp/DocumentLoader/test.odt
index 82edb8ef595a..dc4efecac071 100644
Binary files a/odk/examples/cpp/DocumentLoader/test.odt and 
b/odk/examples/cpp/DocumentLoader/test.odt differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2018-09-28 Thread Libreoffice Gerrit user
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java | 
   6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit defda20708507303c8980433fed90a1e7088ee81
Author: Andrea Gelmini 
AuthorDate: Mon Sep 17 12:08:43 2018 +0200
Commit: Julien Nabet 
CommitDate: Fri Sep 28 08:24:20 2018 +0200

Fix toogle->toggle

It passed "make check" on Linux

Change-Id: Id25a7893e536a579cef58f63e8ec7ce240ad16fb
Reviewed-on: https://gerrit.libreoffice.org/60633
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index 3ff97d1402e9..f19429585472 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -57,9 +57,9 @@ public class CustomizeView extendsJPanel
 private static final String FEATUREPROP_TOOLBAR = "ToolBarVisible";
 private static final String FEATUREPROP_OBJECTBAR   = "ObjectBarVisible"  ;
 
-private static final String ACTION_MENUBAR  = "toogle_menu"   ;
-private static final String ACTION_TOOLBAR  = "toogle_toolbar";
-private static final String ACTION_OBJECTBAR= "toogle_objectbar"  ;
+private static final String ACTION_MENUBAR  = "toggle_menu"   ;
+private static final String ACTION_TOOLBAR  = "toggle_toolbar";
+private static final String ACTION_OBJECTBAR= "toggle_objectbar"  ;
 
 private static final String MENUBAR_ON  = "menubar on";
 private static final String TOOLBAR_ON  = "toolbar on";
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples package/qa vcl/osx

2018-03-17 Thread Julien Nabet
 odk/examples/java/Storage/Test03.java  |2 +-
 package/qa/ofopxmlstorages/Test03.java |2 +-
 package/qa/storages/Test03.java|2 +-
 vcl/osx/a11ywrapper.mm |2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 840cb33c4191152445ad8dd05db225ec08ea8f58
Author: Julien Nabet 
Date:   Sat Mar 17 18:01:33 2018 +0100

Typos concerning hierarchy

Change-Id: Ied3c6d1513f2181a5f7da2904a0df2f806146cec
Reviewed-on: https://gerrit.libreoffice.org/51465
Tested-by: Jenkins 
Reviewed-by: Julien Nabet 

diff --git a/odk/examples/java/Storage/Test03.java 
b/odk/examples/java/Storage/Test03.java
index fd5dfb36b309..51be98575b8c 100644
--- a/odk/examples/java/Storage/Test03.java
+++ b/odk/examples/java/Storage/Test03.java
@@ -87,7 +87,7 @@ public class Test03 implements StorageTest {
 return false;
 
 
-// check storage hyerarchy tree
+// check storage hierarchy tree
 
 
 // check that isStorageElement() and isStreamElement reacts to 
nonexisting object correctly
diff --git a/package/qa/ofopxmlstorages/Test03.java 
b/package/qa/ofopxmlstorages/Test03.java
index 703e42020966..99bab1d1c79e 100644
--- a/package/qa/ofopxmlstorages/Test03.java
+++ b/package/qa/ofopxmlstorages/Test03.java
@@ -116,7 +116,7 @@ public class Test03 implements StorageTest {
 return false;
 
 
-// check storage hyerarchy tree
+// check storage hierarchy tree
 
 
 // check that isStorageElement() and isStreamElement reacts to 
nonexisting object correctly
diff --git a/package/qa/storages/Test03.java b/package/qa/storages/Test03.java
index 7aace8c21139..57b2f1b25315 100644
--- a/package/qa/storages/Test03.java
+++ b/package/qa/storages/Test03.java
@@ -108,7 +108,7 @@ public class Test03 implements StorageTest {
 return false;
 
 
-// check storage hyerarchy tree
+// check storage hierarchy tree
 
 
 // check that isStorageElement() and isStreamElement reacts to 
nonexisting object correctly
diff --git a/vcl/osx/a11ywrapper.mm b/vcl/osx/a11ywrapper.mm
index a02cc81995fa..67e155e81e53 100644
--- a/vcl/osx/a11ywrapper.mm
+++ b/vcl/osx/a11ywrapper.mm
@@ -986,7 +986,7 @@ Reference < XAccessibleContext > hitTestRunner ( 
css::awt::Point point,
 }
 }
 
-// iterate the hirerachy looking doing recursive hit testing.
+// iterate the hierarchy looking doing recursive hit testing.
 // apparently necessary as a special treatment for e.g. comboboxes
 if ( !hitChild.is() ) {
 bool bSafeToIterate = true;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2018-03-12 Thread Tomaž Vajngerl
 odk/examples/java/Text/GraphicsInserter.java |   20 +---
 1 file changed, 17 insertions(+), 3 deletions(-)

New commits:
commit 5b87abe06da35ca3a11628674af23460349b439a
Author: Tomaž Vajngerl 
Date:   Mon Mar 12 16:54:05 2018 +0900

Change ODK example to use Graphic property instead of GraphicURL

Change-Id: I0a8b518a62c35da52008668c6e8cc7d0fd74e1d4
Reviewed-on: https://gerrit.libreoffice.org/51105
Tested-by: Jenkins 
Reviewed-by: Tomaž Vajngerl 

diff --git a/odk/examples/java/Text/GraphicsInserter.java 
b/odk/examples/java/Text/GraphicsInserter.java
index c49d118b69d6..b4b5b49eaa62 100644
--- a/odk/examples/java/Text/GraphicsInserter.java
+++ b/odk/examples/java/Text/GraphicsInserter.java
@@ -99,8 +99,8 @@ public class GraphicsInserter {
 Object oGraphic = null;
 try {
 // Creating the service GraphicObject
-oGraphic =
-
xMSFDoc.createInstance("com.sun.star.text.TextGraphicObject");
+oGraphic =xMSFDoc
+.createInstance("com.sun.star.text.TextGraphicObject");
 }
 catch ( Exception exception ) {
 System.out.println( "Could not create instance" );
@@ -142,12 +142,26 @@ public class GraphicsInserter {
 sUrl.append(sourceFile.getCanonicalPath().replace('\\', '/'));
 System.out.println( "insert graphic \"" + sUrl + "\"");
 
+com.sun.star.graphic.XGraphicProvider xGraphicProvider =
+
UnoRuntime.queryInterface(com.sun.star.graphic.XGraphicProvider.class,
+
xMCF.createInstanceWithContext("com.sun.star.graphic.GraphicProvider",
+xContext));
+
+
+com.sun.star.beans.PropertyValue[] aMediaProps = new 
com.sun.star.beans.PropertyValue[] { new com.sun.star.beans.PropertyValue() };
+aMediaProps[0].Name = "URL";
+aMediaProps[0].Value = sUrl;
+
+com.sun.star.graphic.XGraphic xGraphic =
+
UnoRuntime.queryInterface(com.sun.star.graphic.XGraphic.class,
+xGraphicProvider.queryGraphic(aMediaProps));
+
 // Setting the anchor type
 xPropSet.setPropertyValue("AnchorType",

com.sun.star.text.TextContentAnchorType.AT_PARAGRAPH );
 
 // Setting the graphic url
-xPropSet.setPropertyValue( "GraphicURL", sUrl.toString() );
+xPropSet.setPropertyValue( "Graphic", xGraphic );
 
 // Setting the horizontal position
 xPropSet.setPropertyValue( "HoriOrientPosition",
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2018-02-16 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1ce138c74bfa46c7fa5a80f71e977f95591d5f34
Author: Stephan Bergmann 
Date:   Fri Feb 16 14:33:47 2018 +0100

Adding props to extensible group must use op "replace" (or "fuse")

Change-Id: Ic0101b4baee78096d9ee3b2a6a086a7e808d4d1e
Reviewed-on: https://gerrit.libreoffice.org/49862
Tested-by: Jenkins 
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu 
b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu
index ff1baf5e38ec..f97f202c651e 100644
--- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu
+++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu
@@ -23,7 +23,7 @@
 
com.sun.star.comp.framework.java.services.AsyncJob
 
 
-
+
 val_1
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2018-02-16 Thread Stephan Bergmann
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
  |6 --
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
 |6 --
 odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu  
 |6 --
 3 files changed, 18 deletions(-)

New commits:
commit b4550ff54f55829a5c9266d0058168e7e8d69a34
Author: Stephan Bergmann 
Date:   Fri Feb 16 14:31:48 2018 +0100

PopupMenu template doesn't have Target/ImageIdentifier properties

Change-Id: Ic36f4c6fcf657a7a10e4872856cbb7fc1928c3eb
Reviewed-on: https://gerrit.libreoffice.org/49861
Tested-by: Jenkins 
Reviewed-by: Stephan Bergmann 

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
index 350b24e554ba..e891edaaef15 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
@@ -66,12 +66,6 @@
 
 Add-On example
 
-
-_self
-
-
-
-
 
 
 
diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
index bf2e26fc54f5..4e23a827e945 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
@@ -66,12 +66,6 @@
 
 Add-On example
 
-
-_self
-
-
-
-
 
 
 
diff --git a/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu 
b/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu
index 89136e9dc09a..2cae636272c1 100644
--- a/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu
+++ b/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu
@@ -24,12 +24,6 @@
   
   Foo E~xtension
 
-
-  _self
-
-
-  
-
 
   
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples sc/source

2018-01-13 Thread Julien Nabet
 odk/examples/java/Spreadsheet/SCalc.java |2 +-
 sc/source/filter/inc/xlstyle.hxx |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit facfc2951ea9f4745edd4a6fb1cf97697f33f40a
Author: Julien Nabet 
Date:   Sat Jan 13 22:41:53 2018 +0100

Typo: syles->styles

Change-Id: Ia93306eda5e09cc9cae62fc43c472d266ec03bfa
Reviewed-on: https://gerrit.libreoffice.org/47846
Tested-by: Jenkins 
Reviewed-by: Julien Nabet 

diff --git a/odk/examples/java/Spreadsheet/SCalc.java 
b/odk/examples/java/Spreadsheet/SCalc.java
index b251656c7250..5772ab31b9a9 100644
--- a/odk/examples/java/Spreadsheet/SCalc.java
+++ b/odk/examples/java/Spreadsheet/SCalc.java
@@ -38,7 +38,7 @@
 //  Step 2: open an empty calc document
 //  Step 3: create cell styles
 //  Step 4: get the sheet an insert some data
-//  Step 5: apply the created cell syles
+//  Step 5: apply the created cell styles
 //  Step 6: insert a 3D Chart
 
 
diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx
index 4b8dd97109d4..1e20c5c396d8 100644
--- a/sc/source/filter/inc/xlstyle.hxx
+++ b/sc/source/filter/inc/xlstyle.hxx
@@ -146,7 +146,7 @@ const sal_uInt32 EXC_XFID_NOTFOUND  = 0x;
 const sal_uInt16 EXC_XF_LOCKED  = 0x0001;
 const sal_uInt16 EXC_XF_HIDDEN  = 0x0002;
 const sal_uInt16 EXC_XF_STYLE   = 0x0004;
-const sal_uInt16 EXC_XF_STYLEPARENT = 0x0FFF;   /// Syles don't have a 
parent.
+const sal_uInt16 EXC_XF_STYLEPARENT = 0x0FFF;   /// Styles don't have 
a parent.
 const sal_uInt16 EXC_XF_LINEBREAK   = 0x0008;   /// Automatic line 
break.
 const sal_uInt16 EXC_XF_SHRINK  = 0x0010;   /// Shrink to fit into 
cell.
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples sw/source

2017-11-17 Thread Andrea Gelmini
 odk/examples/java/Text/TextReplace.java |2 +-
 sw/source/core/text/porlay.cxx  |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6e6e5cd3b6320de24953f275281780ff25f17110
Author: Andrea Gelmini 
Date:   Fri Nov 17 20:48:08 2017 +0100

Fix typos

Change-Id: Idc648e4673cca1b1dec8c1f009d52cfa290508ff
Reviewed-on: https://gerrit.libreoffice.org/44895
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/odk/examples/java/Text/TextReplace.java 
b/odk/examples/java/Text/TextReplace.java
index 3a94178980ef..a43799ffadb9 100644
--- a/odk/examples/java/Text/TextReplace.java
+++ b/odk/examples/java/Text/TextReplace.java
@@ -119,7 +119,7 @@ public class TextReplace {
 xTextCursor.gotoEnd(false);
 xCPS.setPropertyValue( "CharColor", Integer.valueOf( 0 ) );
 
-xText.insertString( xTextCursor, "in the alley. Like lightening he 
darted off to the left and disappeared between the two warehouses almost 
falling over the trash can lying in the ", false  );
+xText.insertString( xTextCursor, "in the alley. Like lightning he 
darted off to the left and disappeared between the two warehouses almost 
falling over the trash can lying in the ", false  );
 
 xText.insertString( xTextCursor, "centre ", true );
 xCPS = UnoRuntime.queryInterface(
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index f075d2efb93d..e115bbe2d402 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -257,7 +257,7 @@ SwMarginPortion *SwLineLayout::CalcLeftMargin()
 {
 if( pPos->IsFlyPortion() )
 {
-// The FlyPortion get's sucked out ...
+// The FlyPortion gets sucked out...
 pLeft->Join( static_cast(pPos) );
 pPos = pLeft->GetPortion();
 if( GetpKanaComp() && !GetKanaComp().empty() )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2017-11-13 Thread Muhammet Kara
 odk/examples/DevelopersGuide/examples.html |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9050854c35c389466923f0224a36572d36cd471a
Author: Muhammet Kara 
Date:   Mon Nov 13 17:19:41 2017 +

odk: fix broken link to the Developer's Guide

Change-Id: I0ba8a017a0c9178cb185c9a44bcee36caaf145de
Reviewed-on: https://gerrit.libreoffice.org/44692
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/odk/examples/DevelopersGuide/examples.html 
b/odk/examples/DevelopersGuide/examples.html
index 0425db2f4620..b3d3c1c38f9b 100644
--- a/odk/examples/DevelopersGuide/examples.html
+++ b/odk/examples/DevelopersGuide/examples.html
@@ -52,7 +52,7 @@
 
   
   The http://doc.services.openoffice.org/wiki/index.php/Documentation/DevGuide/OpenOffice.org_Developers_Guide;
+ 
href="https://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide;
  title="link to the Developer's Guide in the Wiki">Developer's Guide
 comes with a wide range of examples from all application areas which
 shows the use of the API in the context of the different functional
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2017-10-11 Thread dennisroczek
 
odk/examples/DevelopersGuide/Extensions/DialogWithHelp/help/de/com.foocorp.foo-ext/page1.xhp
 |   72 ++---
 
odk/examples/DevelopersGuide/Extensions/DialogWithHelp/help/de/com.foocorp.foo-ext/page2.xhp
 |4 
 
odk/examples/DevelopersGuide/Extensions/DialogWithHelp/help/de/com.foocorp.foo-ext/subfolder/anotherpage.xhp
 |  136 +-
 3 files changed, 106 insertions(+), 106 deletions(-)

New commits:
commit bb1a1e367e049d8f2ea30187b329d370bfd2c6ef
Author: dennisroczek 
Date:   Wed Oct 11 17:43:04 2017 +0200

fix grammar / typos in German ODK example

Change-Id: Iea4494d13bc201bba501302b08e81af21ca6083a
Reviewed-on: https://gerrit.libreoffice.org/43327
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git 
a/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/help/de/com.foocorp.foo-ext/page1.xhp
 
b/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/help/de/com.foocorp.foo-ext/page1.xhp
index 384b694b1059..d5ec9d530e3f 100644
--- 
a/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/help/de/com.foocorp.foo-ext/page1.xhp
+++ 
b/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/help/de/com.foocorp.foo-ext/page1.xhp
@@ -25,7 +25,7 @@
 
 
 
-Foo Einzel-Eintrag fuer page1
+Foo Einzel-Eintrag für page1
 Foo Alle Seiten;page1
 
 
@@ -39,51 +39,51 @@
 
 Dies ist ein Link zu "page2" 
der Extension foo Hilfe.
 
-Dies ist ein Link zu 
einer Section innerhalb einer Hilfe-Datei (unten in dieser Datei, kann aber 
auch in einer anderen Datei sein).
+Dies ist ein Link zu 
einer Sektion innerhalb einer Hilfe-Datei (unten in dieser Datei, kann aber 
auch in einer anderen Datei sein).
 
 Dies ist ein Link zu einer 
Hilfe-Seite in der installierten Hilfe.
-Etwas 
Fuell-Text
-Ich mag Fuell-Text. 
Ich mag Fuell-Text. Ich mag Fuell-Text.
-Ich mag Fuell-Text. 
Ich mag Fuell-Text. Ich mag Fuell-Text.
-Ich mag Fuell-Text. 
Ich mag Fuell-Text. Ich mag Fuell-Text.
-Ich mag Fuell-Text. 
Ich mag Fuell-Text. Ich mag Fuell-Text.
-Ich mag Fuell-Text. 
Ich mag Fuell-Text. Ich mag Fuell-Text.
-Ich mag Fuell-Text. 
Ich mag Fuell-Text. Ich mag Fuell-Text.
+Etwas 
Füll-Text
+Ich mag Füll-Text. 
Ich mag Füll-Text. Ich mag Füll-Text.
+Ich mag Füll-Text. 
Ich mag Füll-Text. Ich mag Füll-Text.
+Ich mag Füll-Text. 
Ich mag Füll-Text. Ich mag Füll-Text.
+Ich mag Füll-Text. 
Ich mag Füll-Text. Ich mag Füll-Text.
+Ich mag Füll-Text. 
Ich mag Füll-Text. Ich mag Füll-Text.
+Ich mag Füll-Text. 
Ich mag Füll-Text. Ich mag Füll-Text.
 
 Section 
"target"
 
 This is a section within the file page1.xhp. The section has the name "target".
 
 
-Noch mehr 
Fuell-Text
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
-Dieser Text fuellt 
die Seite um die Section "target" oben anzeigen zu koennen.
+Noch mehr 
Füll-Text
+Dieser Text füllt 
die Seite um die Section "target" oben anzeigen zu können.
+Dieser Text füllt 
die Seite um die Section "target" oben anzeigen zu können.
+Dieser Text füllt 
die Seite 

[Libreoffice-commits] core.git: odk/examples

2017-07-17 Thread Rene Engelhard
 odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/Makefile |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 77d6bb690865540577c04952ba685a0cfe3fa01e
Author: Rene Engelhard 
Date:   Mon Jul 17 10:53:29 2017 +0200

use ifeq "$(SDK_AUTO_DEPLOYMENT)" "YES"

... instead of ifneq "$(SDK_AUTO_DEPLOYMENT)" "", as the variable is = NO
if disabled

Change-Id: I7dd2d165235f5cb7e55a8fed628ada71b04c7881

diff --git 
a/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/Makefile 
b/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/Makefile
index bcd47ac1725f..3af249f9d4b0 100644
--- a/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/Makefile
+++ b/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/Makefile
@@ -106,7 +106,7 @@ $(COMPONENT_PACKAGE) : $(COMPONENT_JAR) 
$(COMPONENT_UNOPKG_MANIFEST)
cd $(subst /,$(PS),$(OUT_COMP_CLASS)/$(subst .$(UNOOXT_EXT),,$(@F))) && 
$(SDK_ZIP) -u ../../../bin/$(@F) META-INF/manifest.xml
 
 $(REGISTERFLAG) : $(COMPONENT_PACKAGE)
-ifneq "$(SDK_AUTO_DEPLOYMENT)" ""
+ifeq "$(SDK_AUTO_DEPLOYMENT)" "YES"
-$(DEL) $(subst \\,\,$(subst /,$(PS),$@))
-$(MKDIR) $(subst /,$(PS),$(@D))
$(DEPLOYTOOL) $(COMPONENT_PACKAGE_URL)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2017-06-12 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/GUI/UnoDialogSample.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 32119d28ef2fb0bc6a401128edc3b863cce0d06b
Author: Stephan Bergmann 
Date:   Mon Jun 12 11:33:41 2017 +0200

Fix unclear comment

...after 5312da481ea8e25f06a7a0b725001b40069af081 "Translate German 
comments and
debug strings (leftovers in dirs j... to q...)"

Change-Id: I4155abb0a2d3d58b92be6835b8e9de37d2a19cfd

diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java 
b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index f8363ab54576..dea9e85cea5a 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -95,7 +95,7 @@ import com.sun.star.util.Time;
 import com.sun.star.util.thePathSettings;
 
 
-// hand the position and width over as parameters
+// Suggestion: hand the position and width over as parameters
 
 public class UnoDialogSample implements XTextListener, XSpinListener, 
XActionListener, XFocusListener, XMouseListener, XItemListener, 
XAdjustmentListener, XKeyListener {
 protected XComponentContext m_xContext = null;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples oox/source vcl/source xmloff/source

2017-06-05 Thread Julien Nabet
 odk/examples/DevelopersGuide/Components/JavaComponent/TestComponentB.java| 
   2 +-
 odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java | 
   2 +-
 oox/source/export/drawingml.cxx  | 
   2 +-
 vcl/source/gdi/pdfwriter_impl.cxx| 
   4 ++--
 xmloff/source/text/txtparae.cxx  | 
   2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit f60603a2d783af8ff3de1696795aab548ca8460b
Author: Julien Nabet 
Date:   Mon Jun 5 20:46:27 2017 +0200

typos

Change-Id: I3a28b5ce7464de72477234925533d45f6121
Reviewed-on: https://gerrit.libreoffice.org/38420
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git 
a/odk/examples/DevelopersGuide/Components/JavaComponent/TestComponentB.java 
b/odk/examples/DevelopersGuide/Components/JavaComponent/TestComponentB.java
index 3edfec18b37e..c8f6def18549 100644
--- a/odk/examples/DevelopersGuide/Components/JavaComponent/TestComponentB.java
+++ b/odk/examples/DevelopersGuide/Components/JavaComponent/TestComponentB.java
@@ -39,7 +39,7 @@ import com.sun.star.test.XSomethingB;
 import com.sun.star.uno.Type;
 
 // TestComponentB implements all necessary interfaces self, this is only
-// for demonstration. More convenient is to use the impelmentation WeakBase or
+// for demonstration. More convenient is to use the implementation WeakBase or
 // ComponentBase, see implementation of TestComponentA.
 public class TestComponentB implements XTypeProvider, XServiceInfo, 
XSomethingB {
 static final String __serviceName= "com.sun.star.test.SomethingB";
diff --git 
a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java 
b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
index d7a3940bc611..643dcda6425c 100644
--- 
a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
+++ 
b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
@@ -62,7 +62,7 @@ import com.sun.star.awt.Rectangle;
 import com.sun.star.test.XTestDialogHandler;
 
 // DialogComponent implements all necessary interfaces self, this is only
-// for demonstration. More convenient is to use the impelmentation WeakBase or
+// for demonstration. More convenient is to use the implementation WeakBase or
 // ComponentBase, see implementation of TestComponentA.
 public class DialogComponent {
 
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index ad3685869f9e..f1995e90b3a7 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -2638,7 +2638,7 @@ void DrawingML::WritePolyPolygon( const 
tools::PolyPolygon& rPolyPolygon )
 
 const tools::Rectangle aRect( rPolyPolygon.GetBoundRect() );
 
-// Put all polygons of rPolyPolygon in the same path elemnt
+// Put all polygons of rPolyPolygon in the same path element
 // to subtract the overlapped areas.
 mpFS->startElementNS( XML_a, XML_path,
 XML_w, I64S( aRect.GetWidth() ),
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index 3a2a81ef06eb..41749131ace9 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -2642,7 +2642,7 @@ sal_Int32 PDFWriterImpl::emitStructure( 
PDFStructureElement& rEle )
 {
 OSL_FAIL( "PDFWriterImpl::emitStructure: invalid child 
structure element" );
 #if OSL_DEBUG_LEVEL > 1
-SAL_INFO("vcl.pdfwriter", "PDFWriterImpl::emitStructure: 
invalid child structure elemnt with id " << *it);
+SAL_INFO("vcl.pdfwriter", "PDFWriterImpl::emitStructure: 
invalid child structure element with id " << *it);
 #endif
 }
 }
@@ -12761,7 +12761,7 @@ void PDFWriterImpl::addInternalStructureContainer( 
PDFStructureElement& rEle )
 {
 OSL_FAIL( "PDFWriterImpl::addInternalStructureContainer: 
invalid child structure element" );
 #if OSL_DEBUG_LEVEL > 1
-SAL_INFO("vcl.pdfwriter", 
"PDFWriterImpl::addInternalStructureContainer: invalid child structure elemnt 
with id " << *it );
+SAL_INFO("vcl.pdfwriter", 
"PDFWriterImpl::addInternalStructureContainer: invalid child structure element 
with id " << *it );
 #endif
 }
 }
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 16b9c4820853..10a0158ed0c3 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -3453,7 +3453,7 @@ void XMLTextParagraphExport::exportCharacterData(const 
OUString& rText,
 }
 
 // If the current character has to be exported as a special
-// element, the elemnt will be exported now.
+// element, the 

[Libreoffice-commits] core.git: odk/examples

2017-01-26 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java |   11 
--
 1 file changed, 9 insertions(+), 2 deletions(-)

New commits:
commit d119e3a986a82ce94018c5ac021996ff221f3772
Author: Stephan Bergmann 
Date:   Thu Jan 26 16:26:57 2017 +0100

Adapt odk/examples to incompatibly changed (unpublished) API

...changed with f88f6bcfce233c336c9025d466c5c2fb0b671de3 "Resolves: 
tdf#35247
introduce a locale independent numeric field filter".

Makes the example at least compile again.  No idea whether any of the values
reported by getLocaleIndependentElementNames would actually need to be 
different
from those reported by getElementNames for this exampel.

Change-Id: I115096477b28a4ceea398cbbb473a707141d05aa

diff --git 
a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java 
b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
index 830cefa..6b10da9 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
@@ -170,7 +170,7 @@ class ExampleMember implements 
com.sun.star.container.XNamed,
 
 //  implementation of com.sun.star.sheet.DataPilotSourceMembers
 
-class ExampleMembers implements com.sun.star.container.XNameAccess
+class ExampleMembers implements com.sun.star.sheet.XMembersAccess
 {
 private final ExampleSettings aSettings;
 private ExampleMember[] aMembers;
@@ -224,6 +224,13 @@ class ExampleMembers implements 
com.sun.star.container.XNameAccess
 return true;
 return false;
 }
+
+// XMembersAccess
+
+public String[] getLocaleIndependentElementNames()
+{
+return getElementNames();
+}
 }
 
 //  implementation of com.sun.star.sheet.DataPilotSourceLevel
@@ -258,7 +265,7 @@ class ExampleLevel implements
 
 // XMembersSupplier
 
-public com.sun.star.container.XNameAccess getMembers()
+public com.sun.star.sheet.XMembersAccess getMembers()
 {
 if ( aMembers == null )
 aMembers = new ExampleMembers( aSettings );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples ridljar/com ridljar/test

2016-05-13 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/Forms/SalesFilter.java |2 
 odk/examples/DevelopersGuide/GUI/SystemDialog.java  |2 
 ridljar/com/sun/star/uno/Type.java  |   93 
 ridljar/test/com/sun/star/uno/Type_Test.java|6 +
 4 files changed, 67 insertions(+), 36 deletions(-)

New commits:
commit 5b78551dcf54158adffe3236a45946942af5f354
Author: Stephan Bergmann 
Date:   Fri May 13 19:19:32 2016 +0200

Related tdf#99272: Prevent bogus com.sun.star.uno.Type(Short[].class) etc.

...so that the JNI UNO bridge will not accidentally reinterpret a Short[] 
as a
short[].  

makes it clear that the former is not a valid Java representation for UNO 
type
"sequence of short".

Needed one fix in bogus test code.  Also fixed the two bogus places in 
odk/examples
mentioned in f53e427291321eabe8d060a737e750a94739f911 "Resolves: tdf#99272 
new
Short[] used instead of new short[]".

Change-Id: I8321eb1294ec77b3a9bf73cafb6e7fe337157bb7

diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java 
b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
index 26b7ba8..0eda808 100644
--- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java
+++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
@@ -86,7 +86,7 @@ class SalesFilter implements XActionListener, 
XPropertyChangeListener, XResetLis
 m_xFilterList.setPropertyValue( "Dropdown", Boolean.TRUE );
 m_xFilterList.setPropertyValue( "LineCount", Short.valueOf( 
(short)11 ) );
 m_xFilterList.setPropertyValue( "StringItemList", new String[] { 
"ever (means no filter)", "this morning", "1 week ago", "1 month ago", "1 year 
ago", "" } );
-m_xFilterList.setPropertyValue( "DefaultSelection", new Short[] { 
Short.valueOf( (short)0 ) } );
+m_xFilterList.setPropertyValue( "DefaultSelection", new short[] { 
(short)0 } );
 
 m_xApplyFilter.setPropertyValue( "Label", "Apply Filter" );
 
diff --git a/odk/examples/DevelopersGuide/GUI/SystemDialog.java 
b/odk/examples/DevelopersGuide/GUI/SystemDialog.java
index 3631678..7d2abefe 100644
--- a/odk/examples/DevelopersGuide/GUI/SystemDialog.java
+++ b/odk/examples/DevelopersGuide/GUI/SystemDialog.java
@@ -99,7 +99,7 @@ public class SystemDialog  {
 
 // choose the template that defines the capabilities of the 
filepicker dialog
 XInitialization xInitialize = 
UnoRuntime.queryInterface(XInitialization.class, xFilePicker);
-Short[] listAny = new Short[] { 
Short.valueOf(com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION)};
+short[] listAny = new short[] { 
com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION };
 xInitialize.initialize(listAny);
 
 // add a control to the dialog to add the extension automatically 
to the filename...
diff --git a/ridljar/com/sun/star/uno/Type.java 
b/ridljar/com/sun/star/uno/Type.java
index c1b0e3e..018a606 100644
--- a/ridljar/com/sun/star/uno/Type.java
+++ b/ridljar/com/sun/star/uno/Type.java
@@ -78,65 +78,81 @@ public class Type {
 TYPE_NAME_ANY
 };
 
-private static final HashMap __javaClassToTypeClass 
= new HashMap();
+private static final class TypeInfo {
+TypeInfo(
+TypeClass thePrimary, TypeClass theAlternative,
+boolean theSequenceComponentType)
+{
+primary = thePrimary;
+alternative = theAlternative;
+sequenceComponentType = theSequenceComponentType;
+}
+
+final TypeClass primary;
+final TypeClass alternative;
+final boolean sequenceComponentType;
+}
+
+private static final HashMap __javaClassToTypeClass =
+new HashMap();
 static {
 __javaClassToTypeClass.put(
-void.class, new TypeClass[] { TypeClass.VOID, TypeClass.VOID });
+void.class, new TypeInfo(TypeClass.VOID, TypeClass.VOID, false));
 __javaClassToTypeClass.put(
-Void.class, new TypeClass[] { TypeClass.VOID, TypeClass.VOID });
+Void.class, new TypeInfo(TypeClass.VOID, TypeClass.VOID, false));
 __javaClassToTypeClass.put(
 boolean.class,
-new TypeClass[] { TypeClass.BOOLEAN, TypeClass.BOOLEAN });
+new TypeInfo(TypeClass.BOOLEAN, TypeClass.BOOLEAN, true));
 __javaClassToTypeClass.put(
 Boolean.class,
-new TypeClass[] { TypeClass.BOOLEAN, TypeClass.BOOLEAN });
+new TypeInfo(TypeClass.BOOLEAN, TypeClass.BOOLEAN, false));
 __javaClassToTypeClass.put(
-byte.class, new TypeClass[] { TypeClass.BYTE, TypeClass.BYTE });
+byte.class, new TypeInfo(TypeClass.BYTE, TypeClass.BYTE, true));
 

[Libreoffice-commits] core.git: odk/examples

2016-04-27 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx |3 
 odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx |3 
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx   |3 
 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx  |   50 
++
 odk/examples/cpp/complextoolbarcontrols/exports.cxx|6 -
 odk/examples/cpp/custompanel/ctp_factory.cxx   |3 
 odk/examples/cpp/remoteclient/remoteclient.cxx |3 
 7 files changed, 46 insertions(+), 25 deletions(-)

New commits:
commit 3caf268f9a73c5d398a0d49e0e91eb18525465cf
Author: Stephan Bergmann 
Date:   Wed Apr 27 15:39:47 2016 +0200

Make SDK examples compile again

Revert (parts of) various commits that tried to use LIBO_INTERNAL_ONLY 
features
in external odk/examples/ code.

Change-Id: I275c3e8979c995430329bca61e51b2841503234f

diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index 5278d58..b9cf6f1 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -52,7 +52,8 @@ namespace my_sc_impl
 
 Sequence< OUString > SAL_CALL getSupportedServiceNames_MyService1Impl()
 {
-Sequence< OUString > names { "my_module.MyService1" };
+Sequence< OUString > names(1);
+names[0] = "my_module.MyService1";
 return names;
 }
 
diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
index fd36a45..def4910 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
@@ -60,7 +60,8 @@ extern Reference< XInterface > SAL_CALL create_MyService1Impl(
 
 static Sequence< OUString > getSupportedServiceNames_MyService2Impl()
 {
-Sequence names { "my_module.MyService2" };
+Sequence names(1);
+names[0] = "my_module.MyService2";
 return names;
 }
 
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
index 87dfee7..1c25940 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
@@ -88,7 +88,8 @@ Sequence< ::rtl::OUString > 
SkeletonDriver::getSupportedServiceNames_Static(  )
 {
 /// which service is supported
 /// for more information @see com.sun.star.sdbc.Driver
-Sequence aSNS { ::rtl::OUString("com.sun.star.sdbc.Driver") };
+Sequence< ::rtl::OUString > aSNS( 1 );
+aSNS[0] = ::rtl::OUString("com.sun.star.sdbc.Driver");
 return aSNS;
 }
 
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx 
b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
index 924e769..721329d 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
+++ b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
@@ -235,15 +235,17 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, 
const Sequence < Property
 else if ( aURL.Path == "ComboboxCmd" )
 {
 // remove the text if it's in our list
-Sequence< NamedValue > aRemoveArgs { { "Text", 
css:uno::makeAny(maComboBoxText) } };
+Sequence< NamedValue > aRemoveArgs( 1 );
+aRemoveArgs[0].Name  = rtl::OUString( "Text" );
+aRemoveArgs[0].Value <<= maComboBoxText;
 SendCommand( aURL, ::rtl::OUString( "RemoveEntryText" ), 
aRemoveArgs, sal_True );
 
 // add the new text to the start of the list
-Sequence< NamedValue > aInsertArgs
-{
-{ "Pos", css::uno::makeAny(sal_Int32( 0 )) },
-{ "Text", css::uno::makeAny(maComboBoxText)) },
-};
+Sequence< NamedValue > aInsertArgs( 2 );
+aInsertArgs[0].Name = rtl::OUString( "Pos" );
+aInsertArgs[0].Value <<= sal_Int32( 0 );
+aInsertArgs[1].Name = rtl::OUString( "Text" );
+aInsertArgs[1].Value <<= maComboBoxText;
 SendCommand( aURL, ::rtl::OUString("InsertEntry"), aInsertArgs, 
sal_True );
 }
 else if ( aURL.Path == "InsertEntry" )
@@ -266,7 +268,9 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, 
const Sequence < Property
 aCmdURL.Complete = aCmdURL.Path + aCmdURL.Protocol;
 
 // set the selected item as text into the combobox
-Sequence< NamedValue > aArgs { { "Text", css::uno::makeAny(aText) 
} };
+Sequence< NamedValue > aArgs( 1 );
+aArgs[0].Name = "Text";
+aArgs[0].Value <<= aText;
  

[Libreoffice-commits] core.git: odk/examples

2015-10-02 Thread Andrea Gelmini
 odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java 
  |4 +-
 odk/examples/DevelopersGuide/Config/ConfigExamples.java
  |2 -
 odk/examples/DevelopersGuide/Forms/DataAwareness.java  
  |2 -
 odk/examples/DevelopersGuide/GUI/UnoDialogSample.java  
  |4 +-
 odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java 
  |2 -
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java   
  |2 -
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java  
  |6 ++--
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java 
  |   14 +-
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java  
  |6 ++--
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java  
  |4 +-
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
 |2 -
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
 |2 -
 odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java  
  |2 -
 odk/examples/DevelopersGuide/Text/TextDocuments.java   
  |2 -
 odk/examples/java/ConverterServlet/ConverterServlet.java   
  |2 -
 15 files changed, 28 insertions(+), 28 deletions(-)

New commits:
commit 34ab9e2e1790f053910a71cf7b8a7e2f054ddd34
Author: Andrea Gelmini 
Date:   Fri Oct 2 10:43:00 2015 +0200

Fix typos

Change-Id: I51ed2ccb06ba4ced15cd0b8e23e59a9609f07e93
Reviewed-on: https://gerrit.libreoffice.org/18961
Reviewed-by: Samuel Mehrbrodt 
Tested-by: Samuel Mehrbrodt 

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java 
b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
index f263f0e..8e3ef82 100644
--- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
+++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
@@ -242,7 +242,7 @@ public class AsyncJob extendsWeakBase implements 
XServiceInfo, XAsyncJob
  *  is shown as title of the info box.
  *
  *  @param  sMessage
- *  inclused the message body, which is shown as info.
+ *  included the message body, which is shown as info.
  */
 
 private void showInfoModal( com.sun.star.awt.XWindow xParent  ,
@@ -327,7 +327,7 @@ public class AsyncJob extendsWeakBase implements 
XServiceInfo, XAsyncJob
  *  contains all shared configuration items for a job
  *
  *  @param  lJobConfig
- *  contains all job sepcific configuration items
+ *  contains all job specific configuration items
  *
  *  @param  lEnvironment
  *  contains some environment information
diff --git a/odk/examples/DevelopersGuide/Config/ConfigExamples.java 
b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
index db4a639..c2b80e2 100644
--- a/odk/examples/DevelopersGuide/Config/ConfigExamples.java
+++ b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
@@ -431,7 +431,7 @@ public class ConfigExamples
 }
 
 // BROWSE example
-/// Interface to procees information when browsing the configuration tree
+/// Interface to process information when browsing the configuration tree
 public interface IConfigurationProcessor
 {
 /// process a value item
diff --git a/odk/examples/DevelopersGuide/Forms/DataAwareness.java 
b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
index 6170f440..a040646 100644
--- a/odk/examples/DevelopersGuide/Forms/DataAwareness.java
+++ b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
@@ -305,7 +305,7 @@ public class DataAwareness extends DocumentBasedExample 
implements XPropertyChan
 bGenerateOnReset = ( 0 == nNewValue );
 }
 else if ( sRefValue.equals( "reset" ) )
-{   // generat on reset
+{   // generate on reset
 bGenerateOnReset = ( 0 != nNewValue );
 }
 m_aSalesmanKeyGenerator.activateKeyGenerator( 
bGenerateOnReset );
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java 
b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index d2730e0..6f0f964 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -1340,9 

[Libreoffice-commits] core.git: odk/examples

2015-06-17 Thread Stephan Bergmann
 odk/examples/java/Spreadsheet/CalcAddins.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3b07120a72a5fd28836b226becbc100e24e84edf
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Jun 17 17:54:19 2015 +0200

Fix CalcAddins example

was broken with 70f56bc22fe952c75ec714e05e1bb5296491a36a java: reduce 
scope,
make member classes private

Change-Id: I84a3fafbfdddf6bb04ab7787d344bf50ffd22994

diff --git a/odk/examples/java/Spreadsheet/CalcAddins.java 
b/odk/examples/java/Spreadsheet/CalcAddins.java
index 8195195..a791d8f 100644
--- a/odk/examples/java/Spreadsheet/CalcAddins.java
+++ b/odk/examples/java/Spreadsheet/CalcAddins.java
@@ -60,7 +60,7 @@ public class CalcAddins {
  * of the service description. It implements the needed interfaces.
  * @implements XCalcAddins, XAddIn, XServiceName, XServiceInfo, XTypeProvider
  */
-private static class _CalcAddins extends WeakBase implements
+public static class _CalcAddins extends WeakBase implements
 XCalcAddins,
 XAddIn,
 XServiceName,
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2015-04-28 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx |2 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx  |2 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx  |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6f6446081ca71fe8a7aa34ccff2f3bbfa424d115
Author: Stephan Bergmann sberg...@redhat.com
Date:   Tue Apr 28 18:28:40 2015 +0200

Revert erroneous replacements

Change-Id: I5dbde1fe4eb406b9fc54d803fc912072000c650d

diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
index 2c535c9..0530fed 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
@@ -318,7 +318,7 @@ void SAL_CALL OConnection::close(  ) throw(SQLException, 
RuntimeException)
 checkDisposed(OConnection_BASE::rBHelper.bDisposed);
 
 }
-disposeOnce();
+dispose();
 }
 
 // XWarningsSupplier
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
index ece9cea..40582fc 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
@@ -410,7 +410,7 @@ void SAL_CALL OResultSet::close(  ) throw(SQLException, 
RuntimeException)
 checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
 }
-disposeOnce();
+dispose();
 }
 
 
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
index 57ac764..bc84cc4 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
@@ -133,7 +133,7 @@ void SAL_CALL OStatement_Base::close(  ) 
throw(SQLException, RuntimeException)
 checkDisposed(OStatement_BASE::rBHelper.bDisposed);
 
 }
-disposeOnce();
+dispose();
 }
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2015-04-20 Thread Stephan Bergmann
 odk/examples/python/toolpanel/Makefile |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 423cfc2061babc90a61bbd97f38da13ba538396d
Author: Stephan Bergmann sberg...@redhat.com
Date:   Mon Apr 20 14:49:58 2015 +0200

Create output dir

Change-Id: Iba9f6923e2e7cfefe980a97d7c1cd35e01f437fa

diff --git a/odk/examples/python/toolpanel/Makefile 
b/odk/examples/python/toolpanel/Makefile
index f395228..a2e77f0 100644
--- a/odk/examples/python/toolpanel/Makefile
+++ b/odk/examples/python/toolpanel/Makefile
@@ -25,4 +25,5 @@ FILES = \
 toolpanels/poc.xdl
 
 $(OUT_BIN)/toolpanel.$(UNOOXT_EXT): $(FILES)
+   -$(MKDIR) $(subst /,$(PS),$(@D))
$(SDK_ZIP) $@ $^
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-12-01 Thread Stephan Bergmann
 odk/examples/python/toolpanel/Makefile |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 542120c30672144a6ad536909b7f4740d3a6112f
Author: Stephan Bergmann sberg...@redhat.com
Date:   Mon Dec 1 15:32:05 2014 +0100

Generate oxt in OUT_BIN

Change-Id: Idb4569c64060ef9d60e0d090cf46b053a252d750

diff --git a/odk/examples/python/toolpanel/Makefile 
b/odk/examples/python/toolpanel/Makefile
index 3a1d93a..f395228 100644
--- a/odk/examples/python/toolpanel/Makefile
+++ b/odk/examples/python/toolpanel/Makefile
@@ -24,5 +24,5 @@ FILES = \
 toolpanel.py \
 toolpanels/poc.xdl
 
-toolpanel.oxt: $(FILES)
+$(OUT_BIN)/toolpanel.$(UNOOXT_EXT): $(FILES)
$(SDK_ZIP) $@ $^
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-11-19 Thread Stephan Bergmann
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
  |1 +
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
|1 +
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx   
|4 
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
|1 +
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx
 |1 +
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
 |2 ++
 odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx 
|1 +
 odk/examples/cpp/complextoolbarcontrols/MyJob.h
|1 +
 odk/examples/cpp/complextoolbarcontrols/MyListener.h   
|1 +
 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx  
|1 +
 odk/examples/cpp/counter/counter.cxx   
|1 +
 odk/examples/cpp/counter/countermain.cxx   
|2 ++
 odk/examples/cpp/remoteclient/remoteclient.cxx 
|1 +
 13 files changed, 18 insertions(+)

New commits:
commit 26cf7dcf19933feffabcb6b690e840c51f04c31b
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Nov 19 17:06:30 2014 +0100

Make SDK examples compile again

...after various recent changes to include files etc.

Change-Id: I9d2acbcfb09ca1df6247038afa6fbd99aa74a90d

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
index 41466a4..6a57f32 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
@@ -46,6 +46,7 @@
 // include our specific addon header to get access to functions and definitions
 #include addon.hxx
 
+using namespace ::rtl;
 using namespace ::osl;
 using namespace ::cppu;
 using namespace ::com::sun::star::uno;
diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index fcfef8f..20649fc 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -43,6 +43,7 @@
 #include my_module/XSomething.hpp
 
 
+using namespace ::rtl; // for OUString
 using namespace ::com::sun::star; // for odk interfaces
 using namespace ::com::sun::star::uno; // for basic types
 
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx
index b80b3e4..b482d50 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx
@@ -41,6 +41,10 @@
 #include cppuhelper/compbase2.hxx
 #include SConnection.hxx
 
+namespace com { namespace sun { namespace star { namespace lang {
+class XMultiServiceFactory;
+} } } }
+
 namespace connectivity
 {
 namespace skeleton
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
index 5676354..a64fa88 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
@@ -44,6 +44,7 @@
 #include com/sun/star/sdbc/FetchDirection.hpp
 #include com/sun/star/lang/DisposedException.hpp
 #include cppuhelper/typeprovider.hxx
+#include cppuhelper/queryinterface.hxx
 #include propertyids.hxx
 
 using namespace connectivity::skeleton;
diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx
 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx
index 89f1f38..9d234e9 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx
@@ -43,6 +43,7 @@
 
 #include filterdetect.hxx
 
+using namespace ::rtl;
 using namespace ::cppu;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
index cd87a7e..6c7e6d7 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
+++ 

[Libreoffice-commits] core.git: odk/examples qadevOOo/runner

2014-10-14 Thread Noel Grandin
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java 
|2 
 qadevOOo/runner/util/ValueChanger.java
| 1914 +-
 2 files changed, 980 insertions(+), 936 deletions(-)

New commits:
commit cc25440a9d7881b3df479179a4c320da53220119
Author: Noel Grandin n...@peralex.com
Date:   Tue Oct 14 16:01:30 2014 +0200

reformat ValueChanger

so that it is at least marginally legible

Change-Id: I20882ad77d6488bb1f2b9dc9e91dc47458596b4a

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
index 2640100..576fb50 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
@@ -111,14 +111,12 @@ public class FunctionHelper
 {
 // Any UNO method of this scope can throw this exception.
 // Reset the return value only.
-aURL = null;
 }
 catch(com.sun.star.uno.Exception exUno)
 {
 // createInstance() method of used service manager can throw it.
 // Then it wasn't possible to get the URL transformer.
 // Return default instead of really parsed URL.
-aURL = null;
 }
 
 return aURL;
diff --git a/qadevOOo/runner/util/ValueChanger.java 
b/qadevOOo/runner/util/ValueChanger.java
index adba18d..f814f1a 100644
--- a/qadevOOo/runner/util/ValueChanger.java
+++ b/qadevOOo/runner/util/ValueChanger.java
@@ -21,968 +21,1014 @@ package util;
 import com.sun.star.awt.Point;
 import com.sun.star.beans.PropertyValue;
 import com.sun.star.drawing.PolygonFlags;
-import com.sun.star.uno.Enum ;
-import java.lang.reflect.Field ;
-import java.lang.reflect.Method ;
-import java.lang.reflect.Modifier ;
-import java.lang.reflect.Array ;
+import com.sun.star.uno.Enum;
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
+import java.lang.reflect.Array;
 import com.sun.star.uno.Any;
 import com.sun.star.uno.AnyConverter;
 
-
 public class ValueChanger {
 
+// Method to change a Value, thought for properties
+public static Object changePValue(Object oldValue) {
 
- // Method to change a Value, thought for properties
- public static Object changePValue( Object oldValue ) {
-
-   Object newValue = null;
-
-   if (oldValue instanceof com.sun.star.uno.Any) {
- try {
-oldValue = AnyConverter.toObject(((Any) oldValue).getType(),oldValue);
- } catch (com.sun.star.lang.IllegalArgumentException iae) {
- }
-   }
-
-   if (oldValue == null)
- return null;
-
-   if (oldValue instanceof Boolean) {
- boolean oldbool = ((Boolean) oldValue).booleanValue();
- newValue = Boolean.valueOf(!oldbool);
-   } else
-
-   if (oldValue instanceof Integer) {
- int oldint = ((Integer) oldValue).intValue();
- newValue = Integer.valueOf(oldint+5);
-   } else
-
-   if (oldValue instanceof Long) {
- long oldlong = ((Long) oldValue).longValue();
- newValue = Long.valueOf(oldlong + 15);
-   } else
-
-   if (oldValue instanceof Short) {
- short oldshort = ((Short) oldValue).shortValue();
- newValue = Short.valueOf((short) (oldshort + 1));
-   } else
-
-   if (oldValue instanceof Byte) {
- byte oldbyte = ((Byte) oldValue).byteValue();
- newValue = Byte.valueOf((byte) (oldbyte + 1));
-   } else
-
-   if (oldValue instanceof Float) {
- float oldfloat = ((Float) oldValue).floatValue();
- newValue = new Float((float) (oldfloat + 16.7));
-   } else
-
-   if (oldValue instanceof Double) {
- double olddouble = ((Double) oldValue).doubleValue();
- newValue = new Double(olddouble + 17.8);
-   } else
-
-   if (oldValue instanceof String) {
- String oldString = (String) oldValue;
- newValue = oldString + New;
-   } else
-
-
-   if (oldValue instanceof com.sun.star.chart.ChartAxisArrangeOrderType) {
- Object AO1 = com.sun.star.chart.ChartAxisArrangeOrderType.AUTO;
- Object AO2=  
com.sun.star.chart.ChartAxisArrangeOrderType.SIDE_BY_SIDE;
- Object AO3=  
com.sun.star.chart.ChartAxisArrangeOrderType.STAGGER_EVEN;
- Object AO4=  com.sun.star.chart.ChartAxisArrangeOrderType.STAGGER_ODD;
-
- if (oldValue.equals(AO1)) newValue = AO2;
- if (oldValue.equals(AO2)) newValue = AO3;
- if (oldValue.equals(AO3)) newValue = AO4;
- if (oldValue.equals(AO4)) newValue = AO1;
-   } else
-
-   if (oldValue instanceof com.sun.star.view.PaperOrientation) {
- Object OR1 = com.sun.star.view.PaperOrientation.LANDSCAPE;
- Object OR2 = com.sun.star.view.PaperOrientation.PORTRAIT;
-
- if (oldValue.equals(OR1)) newValue = OR2;
- else newValue = OR1;
-   } else
-
-   if (oldValue instanceof com.sun.star.lang.Locale) {
-  

[Libreoffice-commits] core.git: odk/examples

2014-08-27 Thread Julien Nabet
 odk/examples/java/ConverterServlet/ConverterServlet.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7db1ac59128ecc175ec1fd943ee77d469dcb0ea1
Author: Julien Nabet serval2...@yahoo.fr
Date:   Wed Aug 27 20:31:40 2014 +0200

Typo: mesage-message

Change-Id: I92557a6096fd5637f9bdd7892bca98566339253f

diff --git a/odk/examples/java/ConverterServlet/ConverterServlet.java 
b/odk/examples/java/ConverterServlet/ConverterServlet.java
index 379d758..0870f7d 100644
--- a/odk/examples/java/ConverterServlet/ConverterServlet.java
+++ b/odk/examples/java/ConverterServlet/ConverterServlet.java
@@ -173,7 +173,7 @@ public class ConverterServlet extends HttpServlet {
 out.println( /head );
 out.println( bodybrp);
 out.println( bSorry, the conversion failed!/b/p);
-out.println( pbError Mesage:/bbr + 
exc.getMessage() + br);
+out.println( pbError Message:/bbr + 
exc.getMessage() + br);
 exc.printStackTrace(out);
 out.println( /p/bodyhtml);
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-08-19 Thread Chris Laplante
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
 |4 ---
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx   
   |4 +--
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx 
   |3 --
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx   
   |4 +--
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.hxx
   |2 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx
   |5 ---
 odk/examples/OLE/activex/SOComWindowPeer.h 
   |3 --
 odk/examples/cpp/DocumentLoader/DocumentLoader.cxx 
   |9 --
 odk/examples/cpp/complextoolbarcontrols/MyListener.h   
   |2 -
 odk/examples/cpp/counter/counter.cxx   
   |   13 +-
 odk/examples/cpp/counter/countermain.cxx   
   |9 --
 odk/examples/cpp/custompanel/ctp_factory.cxx   
   |4 ---
 odk/examples/cpp/custompanel/ctp_factory.hxx   
   |4 ---
 odk/examples/cpp/custompanel/ctp_panel.cxx 
   |7 -
 odk/examples/cpp/custompanel/ctp_panel.hxx 
   |7 -
 15 files changed, 10 insertions(+), 70 deletions(-)

New commits:
commit 341d9c4f089c4e8dee96c49a81abf24ab809f367
Author: Chris Laplante mostthings...@gmail.com
Date:   Mon Aug 18 16:15:41 2014 -0400

odk: Clean up comments

Change-Id: I38aa34192244cdd29e1cce7ac612aa9cd5f9e8a1
Reviewed-on: https://gerrit.libreoffice.org/11006
Reviewed-by: Noel Grandin noelgran...@gmail.com
Tested-by: Noel Grandin noelgran...@gmail.com

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
index 6233fb7..6a57f32 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
@@ -53,10 +53,6 @@ using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::registry;
 
-
-// EXPORTED 

-
-
 /**
  * This function is called to get service factories for an implementation.
  *
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
index 7075197..0530fed 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
@@ -280,8 +280,8 @@ void SAL_CALL OConnection::setTransactionIsolation( 
sal_Int32 level ) throw(SQLE
 ::osl::MutexGuard aGuard( m_aMutex );
 checkDisposed(OConnection_BASE::rBHelper.bDisposed);
 
-// set your isolation level
-// please have a look at @see com.sun.star.sdbc.TransactionIsolation
+/// set your isolation level
+/// please have a look at @see com.sun.star.sdbc.TransactionIsolation
 }
 
 sal_Int32 SAL_CALL OConnection::getTransactionIsolation(  ) 
throw(SQLException, RuntimeException)
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx
index fe1449b..66e6d4b 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx
@@ -45,9 +45,6 @@ namespace connectivity
 namespace skeleton
 {
 
-// Class: ODatabaseMetaData
-
-
 typedef ::cppu::WeakImplHelper1 
::com::sun::star::sdbc::XDatabaseMetaData ODatabaseMetaData_BASE;
 
 class ODatabaseMetaData : public ODatabaseMetaData_BASE
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
index 8cf2944..a1950a4 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
@@ -86,8 +86,8 @@ rtl::OUString SkeletonDriver::getImplementationName_Static(  
) throw(RuntimeExce
 
 Sequence ::rtl::OUString  SkeletonDriver::getSupportedServiceNames_Static(  
) throw (RuntimeException)
 {
-// which service is supported
-// for more information @see com.sun.star.sdbc.Driver
+/// which service is supported
+/// for more information @see com.sun.star.sdbc.Driver
 Sequence ::rtl::OUString  aSNS( 1 );
 aSNS[0] = 

[Libreoffice-commits] core.git: odk/examples odk/Package_examples.mk

2014-06-20 Thread Stephan Bergmann
 odk/Package_examples.mk |1 +
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx |2 +-
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx |2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 6e714e618353b9eccf04efc15a5987ee10793309
Author: Stephan Bergmann sberg...@redhat.com
Date:   Fri Jun 20 16:15:11 2014 +0200

Fix SDK examples

Change-Id: I68099725c43adeab144d53737f60f778b3aebf73

diff --git a/odk/Package_examples.mk b/odk/Package_examples.mk
index b6aaae7..4463c8f 100644
--- a/odk/Package_examples.mk
+++ b/odk/Package_examples.mk
@@ -411,6 +411,7 @@ $(eval $(call 
gb_Package_add_files_with_dir,odk_examples,$(SDKDIRNAME)/examples,
 cpp/complextoolbarcontrols/ProtocolHandler.xcu \
 cpp/complextoolbarcontrols/WriterListener.cxx \
 cpp/complextoolbarcontrols/WriterWindowState.xcu \
+cpp/complextoolbarcontrols/description.xml \
 cpp/complextoolbarcontrols/exports.cxx \
 cpp/complextoolbarcontrols/logo_big.png \
 cpp/complextoolbarcontrols/logo_small.png \
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
index b44ba02..ed34981 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
@@ -770,7 +770,7 @@ IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
 Property* pProperties = aProps.getArray();
 sal_Int32 nPos = 0;
 pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_CURSORNAME),
-PROPERTY_ID_CURSORNAME, ::cppu::UnoTypeOUString::get(), 
PropertyAttribute::READONLY);
+PROPERTY_ID_CURSORNAME, ::cppu::UnoTypertl::OUString::get(), 
PropertyAttribute::READONLY);
 pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION),
 PROPERTY_ID_FETCHDIRECTION, ::cppu::UnoTypesal_Int32::get(), 0);
 pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHSIZE),
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
index 5b91333..5676354 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
@@ -269,7 +269,7 @@ void SAL_CALL OStatement_Base::clearWarnings(  ) 
throw(SQLException, RuntimeExce
 Property* pProperties = aProps.getArray();
 sal_Int32 nPos = 0;
 pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_CURSORNAME),
-PROPERTY_ID_CURSORNAME, ::cppu::UnoTypeOUString::get(), 0);
+PROPERTY_ID_CURSORNAME, ::cppu::UnoTypertl::OUString::get(), 0);
 pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_ESCAPEPROCESSING),
 PROPERTY_ID_ESCAPEPROCESSING, ::getBooleanCppuType(), 0);
 pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION),
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-06-20 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java |   
29 --
 odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java   |   
22 ++-
 odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java |   
22 ++-
 odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java|   
22 ++-
 4 files changed, 38 insertions(+), 57 deletions(-)

New commits:
commit dc795cbd2dcb50e555945a91925616c7b3e58ee9
Author: Stephan Bergmann sberg...@redhat.com
Date:   Fri Jun 20 18:26:11 2014 +0200

Make Linguistic SDK example use __getComponentFactory

...instead of legacy __getServiceFactory.  This fixes a subtle bug:  When 
these
Java extensions are live-deployed, they are offloaded to an additional uno
process.  Their __getServiceFactory methods were called with the uno process
(component context's) service manager, which they stored away for later use 
in
OneInstanceFactory.createInstance.  So even if later on an instance was 
created
with the main LO process's component context, the uno process's component
context would be used to instantiate the (C++)
com.sun.star.linguistic2.LinguProperties service (in the uno process!), and 
that
happens to internally use comphelper::getProcessServiceFactory, which would 
be
null in the uno process,

comphelper::getProcessServiceFactory
comphelper::getProcessComponentContext
(anonymous namespace)::getConfigurationProvider
utl::ConfigManager::acquireTree
utl::ConfigManager::addConfigItem
utl::ConfigItem::ConfigItem
SvtLinguConfigItem::SvtLinguConfigItem
SvtLinguConfig::GetConfigItem
SvtLinguConfig::GetConfigItem
SvtLinguConfig::GetProperty
LinguProps::getPropertyValue
gcc3::callVirtualMethod
...

Change-Id: Ib6f5a5dd6d0adbbe14d60aaff3a8b6ba24235d11

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java 
b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java
index 2a33ecb..63c2718 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java
@@ -32,11 +32,11 @@
  *
  */
 
-import com.sun.star.lang.XSingleServiceFactory;
+import com.sun.star.lang.XSingleComponentFactory;
 import com.sun.star.lang.XServiceInfo;
 import com.sun.star.lang.XInitialization;
-import com.sun.star.lang.XMultiServiceFactory;
 import com.sun.star.beans.XPropertySet;
+import com.sun.star.uno.XComponentContext;
 import com.sun.star.uno.XInterface;
 import com.sun.star.uno.UnoRuntime;
 
@@ -49,32 +49,29 @@ import java.lang.reflect.Constructor;
 
 
 public class OneInstanceFactory implements
-XSingleServiceFactory,
+XSingleComponentFactory,
 XServiceInfo
 {
 Class   aMyClass;
 String  aSvcImplName;
 String[]aSupportedSvcNames;
 XInterface  xInstantiatedService;
-XMultiServiceFactoryxMultiFactory;
 
 public OneInstanceFactory(
 Class   aMyClass,
 String  aSvcImplName,
-String[]aSupportedSvcNames,
-XMultiServiceFactoryxMultiFactory )
+String[]aSupportedSvcNames )
 {
 this.aMyClass   = aMyClass;
 this.aSvcImplName   = aSvcImplName;
 this.aSupportedSvcNames = aSupportedSvcNames;
-this.xMultiFactory  = xMultiFactory;
 xInstantiatedService = null;
 }
 
 
-// XSingleServiceFactory
+// XSingleComponentFactory
 
-public Object createInstance()
+public Object createInstanceWithContext( XComponentContext context )
 throws com.sun.star.uno.Exception,
com.sun.star.uno.RuntimeException
 {
@@ -91,15 +88,17 @@ public class OneInstanceFactory implements
 //!! workaround for services not always being created
 //!! via 'createInstanceWithArguments'
 XInitialization xIni = UnoRuntime.queryInterface(
-XInitialization.class, createInstance());
+XInitialization.class, createInstanceWithContext(context));
 if (xIni != null)
 {
 Object[] aArguments = new Object[]{ null, null };
-if (xMultiFactory != null)
+if (context != null)
 {
 XPropertySet xPropSet = UnoRuntime.queryInterface(
-XPropertySet.class ,  xMultiFactory.createInstance(
-com.sun.star.linguistic2.LinguProperties ) );
+XPropertySet.class,
+context.getServiceManager().createInstanceWithContext(
+com.sun.star.linguistic2.LinguProperties,
+context ) );
 aArguments[0] = 

[Libreoffice-commits] core.git: odk/examples

2014-05-11 Thread Julien Nabet
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx  |   18 
--
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx  |   30 
++
 odk/examples/DevelopersGuide/Database/DriverSkeleton/propertyids.hxx |   14 

 3 files changed, 32 insertions(+), 30 deletions(-)

New commits:
commit 5e2918bc5a1279231fbcfc359432af3f37eb8d3c
Author: Julien Nabet serval2...@yahoo.fr
Date:   Sun May 11 23:12:55 2014 +0200

Kill DECL_PROP1IMPL and related (odk part)

Change-Id: Id4cd66b6082ec53facc985af48fc92de58a4c066

diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
index b8e688c..b44ba02 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
@@ -769,12 +769,18 @@ IPropertyArrayHelper* OResultSet::createArrayHelper( ) 
const
 Sequence Property  aProps(6);
 Property* pProperties = aProps.getArray();
 sal_Int32 nPos = 0;
-DECL_PROP1IMPL(CURSORNAME,  ::rtl::OUString) 
PropertyAttribute::READONLY);
-DECL_PROP0(FETCHDIRECTION,  sal_Int32);
-DECL_PROP0(FETCHSIZE,   sal_Int32);
-DECL_BOOL_PROP1IMPL(ISBOOKMARKABLE) PropertyAttribute::READONLY);
-DECL_PROP1IMPL(RESULTSETCONCURRENCY,sal_Int32) 
PropertyAttribute::READONLY);
-DECL_PROP1IMPL(RESULTSETTYPE,   sal_Int32) 
PropertyAttribute::READONLY);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_CURSORNAME),
+PROPERTY_ID_CURSORNAME, ::cppu::UnoTypeOUString::get(), 
PropertyAttribute::READONLY);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION),
+PROPERTY_ID_FETCHDIRECTION, ::cppu::UnoTypesal_Int32::get(), 0);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHSIZE),
+PROPERTY_ID_FETCHSIZE, ::cppu::UnoTypesal_Int32::get(), 0);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_ISBOOKMARKABLE),
+PROPERTY_ID_ISBOOKMARKABLE, ::getBooleanCppuType(), 
PropertyAttribute::READONLY);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_RESULTSETCONCURRENCY),
+PROPERTY_ID_RESULTSETCONCURRENCY, ::cppu::UnoTypesal_Int32::get(), 
PropertyAttribute::READONLY);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_RESULTSETTYPE),
+PROPERTY_ID_RESULTSETTYPE, ::cppu::UnoTypesal_Int32::get(), 
PropertyAttribute::READONLY);
 
 return new OPropertyArrayHelper(aProps);
 }
diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
index b5faafb..5b91333 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
@@ -268,16 +268,26 @@ void SAL_CALL OStatement_Base::clearWarnings(  ) 
throw(SQLException, RuntimeExce
 Sequence Property  aProps(10);
 Property* pProperties = aProps.getArray();
 sal_Int32 nPos = 0;
-DECL_PROP0(CURSORNAME,  ::rtl::OUString);
-DECL_BOOL_PROP0(ESCAPEPROCESSING);
-DECL_PROP0(FETCHDIRECTION,sal_Int32);
-DECL_PROP0(FETCHSIZE,   sal_Int32);
-DECL_PROP0(MAXFIELDSIZE,sal_Int32);
-DECL_PROP0(MAXROWS, sal_Int32);
-DECL_PROP0(QUERYTIMEOUT,sal_Int32);
-DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
-DECL_PROP0(RESULTSETTYPE,sal_Int32);
-DECL_BOOL_PROP0(USEBOOKMARKS);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_CURSORNAME),
+PROPERTY_ID_CURSORNAME, ::cppu::UnoTypeOUString::get(), 0);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_ESCAPEPROCESSING),
+PROPERTY_ID_ESCAPEPROCESSING, ::getBooleanCppuType(), 0);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION),
+PROPERTY_ID_FETCHDIRECTION, ::cppu::UnoTypesal_Int32::get(), 0);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHSIZE),
+PROPERTY_ID_FETCHSIZE, ::cppu::UnoTypesal_Int32::get(), 0);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_MAXFIELDSIZE),
+PROPERTY_ID_MAXFIELDSIZE, ::cppu::UnoTypesal_Int32::get(), 0);
+pProperties[nPos++] = 
::com::sun::star::beans::Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_MAXROWS),

[Libreoffice-commits] core.git: odk/examples writerfilter/source

2014-04-28 Thread Julien Nabet
 odk/examples/DevelopersGuide/Forms/DataAwareness.java |2 +-
 odk/examples/DevelopersGuide/Forms/KeyGenerator.java  |2 +-
 writerfilter/source/dmapper/DomainMapper_Impl.cxx |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 99c9e0f86b86a642a869cae9e6ccb6ef703e1652
Author: Julien Nabet serval2...@yahoo.fr
Date:   Mon Apr 28 14:21:25 2014 +0200

Typo: becase - because

Change-Id: I065a581ea02e5f8892e44c7e97903297a40cde18

diff --git a/odk/examples/DevelopersGuide/Forms/DataAwareness.java 
b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
index e13f82b..ca6454f 100644
--- a/odk/examples/DevelopersGuide/Forms/DataAwareness.java
+++ b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
@@ -219,7 +219,7 @@ public class DataAwareness extends DocumentBasedExample 
implements XPropertyChan
 /* -- */
 public void resetted( EventObject aEvent ) throws 
com.sun.star.uno.RuntimeException
 {
-// check if this reset occurred becase we're on a new record
+// check if this reset occurred because we're on a new record
 XPropertySet xFormProps = UNO.queryPropertySet(  aEvent.Source );
 try
 {
diff --git a/odk/examples/DevelopersGuide/Forms/KeyGenerator.java 
b/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
index d3e7466..47a8bd8 100644
--- a/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
+++ b/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
@@ -249,7 +249,7 @@ class KeyGeneratorForReset extends UniqueColumnValue 
implements XResetListener
 /* -- */
 public void resetted( com.sun.star.lang.EventObject aEvent ) throws 
com.sun.star.uno.RuntimeException
 {
-// check if this reset occurred becase we're on a new record
+// check if this reset occurred because we're on a new record
 XPropertySet xFormProps = UNO.queryPropertySet( aEvent.Source );
 try
 {
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx 
b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 26aa550..a738d83 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -497,7 +497,7 @@ voidDomainMapper_Impl::PopProperties(ContextType eId)
 {
 m_pLastCharacterContext = m_aPropertyStacks[eId].top();
 // Sadly an assert about deferredCharacterProperties being empty is 
not possible
-// here, becase appendTextPortion() may not be called for every 
character section.
+// here, because appendTextPortion() may not be called for every 
character section.
 deferredCharacterProperties.clear();
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-04-22 Thread Julien Nabet
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
 |3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 14d7aa76923bb046e4cca361c72eca817000342f
Author: Julien Nabet serval2...@yahoo.fr
Date:   Tue Apr 22 22:17:45 2014 +0200

cppcheck: multiCondition, remove duplicate

Change-Id: I8f819a1ab24ab9fa3a8ef7478f105620deae4aa0

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
index 31de9de..b320313 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
@@ -167,9 +167,6 @@ OUString SAL_CALL FilterDetect::detect(Sequence 
PropertyValue  aArguments )
 else if 
(aMimeType.equals(application/x-vnd.oasis.opendocument.presentation) ||

aMimeType.equals(application/vnd.oasis.opendocument.presentation))
 sTypeName = devguide_FlatXMLType_Cpp_impress;
-else if 
(aMimeType.equals(application/x-vnd.oasis.opendocument.presentation) ||
-   
aMimeType.equals(application/vnd.oasis.opendocument.presentation))
-sTypeName = devguide_FlatXMLType_Cpp_impress;
 }
 }
 return sTypeName;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-04-09 Thread Tor Lillqvist
 odk/examples/java/DocumentHandling/test/test1.odt |binary
 1 file changed

New commits:
commit 76f951dd4fef294e62d14a91602e1ab6ca6d5454
Author: Tor Lillqvist t...@collabora.com
Date:   Wed Apr 9 17:39:28 2014 +0300

Add an animated gif

Change-Id: Ifeeed4216275f944e61579408c77ae38945e60fa

diff --git a/odk/examples/java/DocumentHandling/test/test1.odt 
b/odk/examples/java/DocumentHandling/test/test1.odt
index 6ae5681..6a3c769 100644
Binary files a/odk/examples/java/DocumentHandling/test/test1.odt and 
b/odk/examples/java/DocumentHandling/test/test1.odt differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples wizards/com

2014-03-25 Thread Andras Timar
 odk/examples/DevelopersGuide/examples.html |   18 
+-
 wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py |   10 ++---
 2 files changed, 14 insertions(+), 14 deletions(-)

New commits:
commit 25b1d86643e5e60a3aa79d7ee3bd3e3828dc96b1
Author: Andras Timar andras.ti...@collabora.com
Date:   Tue Mar 25 21:25:55 2014 +0100

typo: bussiness - business

Change-Id: Id8851321571072df8042a08c2bf350891a9dfcc4

diff --git a/odk/examples/DevelopersGuide/examples.html 
b/odk/examples/DevelopersGuide/examples.html
index 6a9a750..1bb5d27 100644
--- a/odk/examples/DevelopersGuide/examples.html
+++ b/odk/examples/DevelopersGuide/examples.html
@@ -745,7 +745,7 @@ for the image shrink component and instantiates it./td
  title=link to 
Components/DialogComponent/DialogComponent.odtDialogComponent.odt/a/td
   td class=cell80Document containing Basic code to
   instantiate the Dialog Components and a Dialog containing
-  controls with events bound to methods supported by the 
+  controls with events bound to methods supported by the
   Dialog Component./td
 /tr
   /tbody
@@ -2259,7 +2259,7 @@ form controls./a/td
  title=link to Forms/DataAwareness.javaDataAwareness/a/td
   td class=cell80This class implements the basic
 example for a form working on a database. Two tables will be created
-and a form (writer document) with a bussiness example will fill its
+and a form (writer document) with a business example will fill its
 fields from these tables./td
 /tr
 tr
@@ -2805,37 +2805,37 @@ for the Office application./td
   td class=cell80Description/td
 /tr
 tr
-  td class=cell20img 
src=../../docs/images/bluball.gif/ 
+  td class=cell20img src=../../docs/images/bluball.gif/
 a href=./GUI/DialogDocument.java title=link to 
GUI/DialogDocument.javaDialogDocument/a/td
   td class=cell80A sample showing how to display an office 
document in a dialog window./td
 /tr
 tr
-  td class=cell20img 
src=../../docs/images/bluball.gif/ 
+  td class=cell20img src=../../docs/images/bluball.gif/
 a href=./GUI/Messagebox.java title=link to 
GUI/MessageBox.javaMessageBox/a/td
   td class=cell80A sample showing how to display a simple 
message box./td
 /tr
 tr
-  td class=cell20img 
src=../../docs/images/bluball.gif/ 
+  td class=cell20img src=../../docs/images/bluball.gif/
 a href=./GUI/UnoDialogSample.java title=link to 
GUI/UnoDialogSample.javaUnoDialogSample/a/td
   td class=cell80A sample showing how to create various 
controls in a dialog (fixed text field, currency field, progress bar, fixed 
line, group box, edit field, time field, date field, pattern field, numeric 
field, progressbar, check box, radio button, list box, combo box, formatted 
field, file control, button control, roadmap control)/td
 /tr
 tr
-  td class=cell20img 
src=../../docs/images/bluball.gif/ 
+  td class=cell20img src=../../docs/images/bluball.gif/
 a href=./GUI/UnoDialogSample2.java title=link to 
GUI/UnoDialogSample2.javaUnoDialogSample2/a/td
   td class=cell80A dialog sample showing how to use a 
roadmap control./td
 /tr
 tr
-  td class=cell20img 
src=../../docs/images/bluball.gif/ 
+  td class=cell20img src=../../docs/images/bluball.gif/
 a href=./GUI/UnoMenu.java title=link to GUI/UnoMenu.javaUnoMenu/a/td
   td class=cell80A sample showing a top window with some 
menus./td
 /tr
 tr
-  td class=cell20img 
src=../../docs/images/bluball.gif/ 
+  td class=cell20img src=../../docs/images/bluball.gif/
 a href=./GUI/UnoMenu2.java title=link to 
GUI/UnoMenu2.javaUnoMenu2/a/td
   td class=cell80A dialog sample showing how to use or 
work with a context menu./td
 /tr
 tr
-  td class=cell20img 
src=../../docs/images/bluball.gif/ 
+  td class=cell20img src=../../docs/images/bluball.gif/
 a href=./GUI/ImageControlSample.java title=link to 
GUI/ImageControlSample.javaImageControlSample2/a/td
   td class=cell80Dialog sample showing how to use an image 
control./td
 /tr
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py 
b/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
index 3d29aeb..77f20e4 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py

[Libreoffice-commits] core.git: odk/examples svx/source

2014-02-18 Thread Julien Nabet
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java | 
   2 +-
 svx/source/stbctrls/pszctrl.cxx  | 
   2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 78f17f316d53f40412aedf9e2ccbedd7761ee88d
Author: Julien Nabet serval2...@yahoo.fr
Date:   Wed Feb 19 07:37:15 2014 +0100

Typo: Internaly - Internally, Externaly - Externally

Change-Id: I22a81d18f8bb333b3a89c96dccbf91dc864302f1

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index dcccb06..ea8645d9 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -246,7 +246,7 @@ public class CustomizeView extendsJPanel
 
 /**
  * callback for disposing events
- * Internaly we save a reference to an office frame.
+ * Internally we save a reference to an office frame.
  * Of course he can die and inform us then. We should react
  * and forget his reference.
  *
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index 589f30d..82a0cf4 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -131,7 +131,7 @@ struct SvxPosSizeStatusBarControl_Impl
 
 This implementation-structure of the class SvxPosSizeStatusBarControl
 is done for the un-linking of the changes of the exported interface such as
-the toning down of symbols that are visible externaly.
+the toning down of symbols that are visible externally.
 
 One instance exists for each SvxPosSizeStatusBarControl-instance
 during it's life time
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-01-31 Thread Alexandre Vicenzi
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
|   23 +---
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
  |4 
 odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx 
  |4 
 odk/examples/DevelopersGuide/Database/DriverSkeleton/OSubComponent.hxx 
  |   55 +++---
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
 |   10 -
 odk/examples/cpp/complextoolbarcontrols/MyJob.cxx  
  |9 -
 odk/examples/cpp/complextoolbarcontrols/MyListener.cxx 
  |   10 -
 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx  
  |   11 --
 8 files changed, 39 insertions(+), 87 deletions(-)

New commits:
commit 4f63a5fa269678cdc021f5c280f697e53771545a
Author: Alexandre Vicenzi vicenzi.alexan...@gmail.com
Date:   Fri Jan 31 02:42:47 2014 -0200

fdo#54938 Convert odk to cppu::supportsService

Change-Id: Ia5095367be90dd5383e7701ea2587f79a7505a67
Signed-off-by: Stephan Bergmann sberg...@redhat.com

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
index 7ad15d7..4f9ed11 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
@@ -34,8 +34,6 @@
  */
 
 #include addon.hxx
-#include osl/diagnose.h
-#include rtl/ustring.hxx
 #include com/sun/star/beans/PropertyValue.hpp
 #include com/sun/star/frame/XFrame.hpp
 #include com/sun/star/frame/XController.hpp
@@ -44,6 +42,9 @@
 #include com/sun/star/awt/WindowAttribute.hpp
 #include com/sun/star/awt/XMessageBox.hpp
 #include com/sun/star/uno/XComponentContext.hpp
+#include cppuhelper/supportsservice.hxx
+#include osl/diagnose.h
+#include rtl/ustring.hxx
 
 using rtl::OUString;
 using namespace com::sun::star::uno;
@@ -193,22 +194,13 @@ void SAL_CALL Addon::removeStatusListener( const 
Reference XStatusListener  x
 {
 }
 
-//##
-// Helper functions for the implementation of UNO component interfaces 
#
-//##
-
+// Helper functions for the implementation of UNO component interfaces.
 OUString Addon_getImplementationName()
 throw (RuntimeException)
 {
 return OUString ( IMPLEMENTATION_NAME );
 }
 
-sal_Bool SAL_CALL Addon_supportsService( const ::rtl::OUString ServiceName )
-throw (RuntimeException)
-{
-return ServiceName == SERVICE_NAME;
-}
-
 Sequence ::rtl::OUString  SAL_CALL Addon_getSupportedServiceNames()
 throw (RuntimeException)
 {
@@ -224,10 +216,7 @@ Reference XInterface  SAL_CALL Addon_createInstance( 
const Reference XCompone
 return (cppu::OWeakObject*) new Addon( rContext );
 }
 
-//##
-// Implementation of the recommended/mandatory interfaces of a UNO 
component ###
-//##
-
+// Implementation of the recommended/mandatory interfaces of a UNO component.
 // XServiceInfo
 ::rtl::OUString SAL_CALL Addon::getImplementationName(  )
 throw (RuntimeException)
@@ -238,7 +227,7 @@ Reference XInterface  SAL_CALL Addon_createInstance( 
const Reference XCompone
 sal_Bool SAL_CALL Addon::supportsService( const ::rtl::OUString rServiceName )
 throw (RuntimeException)
 {
-return Addon_supportsService( rServiceName );
+return cppu::supportsService(this, rServiceName);
 }
 
 Sequence ::rtl::OUString  SAL_CALL Addon::getSupportedServiceNames(  )
diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index 37c4b61..ab82348 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -38,6 +38,7 @@
 #include rtl/uuid.h
 #include rtl/instance.hxx
 #include cppuhelper/factory.hxx
+#include cppuhelper/supportsservice.hxx
 
 #include com/sun/star/lang/XServiceInfo.hpp
 #include com/sun/star/lang/XTypeProvider.hpp
@@ -226,8 +227,7 @@ OUString MyService1Impl::getImplementationName()
 sal_Bool MyService1Impl::supportsService( OUString const  serviceName )
 throw (RuntimeException)
 {
-// this object only supports one service, so the test is simple
-

[Libreoffice-commits] core.git: odk/examples

2014-01-08 Thread Stephan Bergmann
 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h |1 +
 1 file changed, 1 insertion(+)

New commits:
commit b45e8153b28b7447a922129d3e3a182315c8b337
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Jan 8 09:01:30 2014 +0100

Missing forward declaration

Change-Id: I1c7cb32819d70efaf470247c86e0ee8dcb3f9087

diff --git a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h 
b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h
index 98b26e1..026cf42 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h
+++ b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h
@@ -43,6 +43,7 @@ namespace com
 class XModel;
 class XFrame;
 }
+namespace uno { class XComponentContext; }
 }
 }
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2014-01-08 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/Config/ConfigExamples.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 123eadba31677804a010c4bc732a3682039498d5
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Jan 8 10:50:09 2014 +0100

typo

Change-Id: Ia6aef40daa81e76051fd5b6ce7d4e38da1262b25

diff --git a/odk/examples/DevelopersGuide/Config/ConfigExamples.java 
b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
index ae3b0ce..0ca89aa 100644
--- a/odk/examples/DevelopersGuide/Config/ConfigExamples.java
+++ b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
@@ -163,7 +163,7 @@ public class ConfigExamples
 
 }
 
-/** Do some simple checks, if tehre is a valid ConfigurationProvider
+/** Do some simple checks, if there is a valid ConfigurationProvider
 */
 public static boolean checkProvider(XMultiServiceFactory xProvider)
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-11-21 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2732615c63d310232ac1900ca7549df653f792ff
Author: Stephan Bergmann sberg...@redhat.com
Date:   Thu Nov 21 15:48:31 2013 +0100

Typo in capitalization of include file name

Change-Id: I41a46c5b62c06f6298fc6e0ac70ff508bf27ec29

diff --git 
a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx 
b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
index 63a0294..5399186 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx
@@ -39,7 +39,7 @@
 #include com/sun/star/beans/PropertyAttribute.hpp
 #include com/sun/star/sdbcx/CompareBookmark.hpp
 #include cppuhelper/typeprovider.hxx
-#include cppuhelper/supportsService.hxx
+#include cppuhelper/supportsservice.hxx
 #include com/sun/star/lang/DisposedException.hpp
 #include propertyids.hxx
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples sw/source

2013-08-20 Thread Caolán McNamara
 odk/examples/java/Inspector/InspectorPane.java |6 +++---
 sw/source/core/layout/paintfrm.cxx |2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit f1304feb4b343a9497c96bc256a8ade6d8e503f1
Author: Caolán McNamara caol...@redhat.com
Date:   Tue Aug 20 13:34:56 2013 +0100

[TOOD|TOODO]-TODO

Change-Id: I3444b1788e3246503e2460051e8ddbf38aa3de86

diff --git a/odk/examples/java/Inspector/InspectorPane.java 
b/odk/examples/java/Inspector/InspectorPane.java
index 79cddd7..2f0d2c5 100644
--- a/odk/examples/java/Inspector/InspectorPane.java
+++ b/odk/examples/java/Inspector/InspectorPane.java
@@ -475,9 +475,9 @@ import com.sun.star.uno.XComponentContext;
 addPropertySetInfoSubNodes(oUnoPropertyNode);
 }
 else{
-//TOOD this code is redundant!!!
+//TODO this code is redundant!!!
 if ( oUnoObject.getClass().isArray()){
-// TOODO probably we should provid a possibility to 
insert also non-primitive nodes
+// TODO probably we should provid a possibility to 
insert also non-primitive nodes
 addPrimitiveValuesToTreeNode(oUnoPropertyNode, 
oUnoObject);
 }
 else{
@@ -526,7 +526,7 @@ import com.sun.star.uno.XComponentContext;
 else if (_oUnoNode.getNodeType() == XUnoNode.nOTHERS){
 Object oUnoObject = _oUnoNode.getUnoObject();
 if ( oUnoObject.getClass().isArray()){
-// TOODO probably we should provid a possibility to insert 
also non-primitive nodes
+// TODO probably we should provid a possibility to insert 
also non-primitive nodes
  addPrimitiveValuesToTreeNode(_oUnoNode, oUnoObject);
 }
 else{
diff --git a/sw/source/core/layout/paintfrm.cxx 
b/sw/source/core/layout/paintfrm.cxx
index 751ff7d..8b87220 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -5898,7 +5898,7 @@ static void lcl_paintBitmapExToRect(OutputDevice *pOut, 
Point aPoint, BitmapEx
 //IMPORTANT: if you change the rects here, also change 
SwPostItMgr::ScrollbarHit
 /*static*/void SwPageFrm::PaintNotesSidebar(const SwRect _rPageRect, 
ViewShell* _pViewShell, sal_uInt16 nPageNum, bool bRight)
 {
-//TOOD: cut out scrollbar area and arrows out of sidepane rect, otherwise 
it could flicker when pressing arrow buttons
+//TODO: cut out scrollbar area and arrows out of sidepane rect, otherwise 
it could flicker when pressing arrow buttons
 if (!_pViewShell )
 return;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-08-09 Thread Michael Meeks
 odk/examples/OLE/activex/README.txt |   21 +++--
 1 file changed, 11 insertions(+), 10 deletions(-)

New commits:
commit 2c9182e25a2d729368287812df00e31184dfc86f
Author: Michael Meeks michael.me...@suse.com
Date:   Fri Aug 9 05:07:16 2013 +0100

odk doc cleanup.

Change-Id: Ibc5998e665b0f81cdf805e128065e253c46594ab

diff --git a/odk/examples/OLE/activex/README.txt 
b/odk/examples/OLE/activex/README.txt
index b8be6fc..713d138 100644
--- a/odk/examples/OLE/activex/README.txt
+++ b/odk/examples/OLE/activex/README.txt
@@ -1,18 +1,19 @@
-   Compile.
+* Compile.
+
 Warning: Before the control can be built user has to add path to MS ATL headers
  into Makefile.
 
-If you use the build environment of the SDK you have to check which MS 
compiler 
+If you use the build environment of the SDK you have to check which MS compiler
 do you use. It you use the MS Visual Studio .NET compiler everything should 
work
-fine with the SDK. If you use an older MS compiler please edit the Makefile 
and 
+fine with the SDK. If you use an older MS compiler please edit the Makefile and
 uncomment or remove the line 'CL_NEW_LIB=atls.lib'.
 
-   Description.
+* Description.
 
-The StarOffice ActiveX control shows an example of access to UNO through COM 
technology.
-It requires a properly installed StarOffice version 6.0/6.1 or OpenOffice 1.0.
+The LibreOffice ActiveX control shows an example of access to UNO through COM 
technology.
+It requires a properly installed LibreOffice version 4.0 or later
 This is a Lite ActiveX control so it can be used only in containers that
-allows to use such controls. It can be activated with an OBJECT tag from 
+allows to use such controls. It can be activated with an OBJECT tag from
 a html-page to embed a document. Without any parameters a new writer document 
will be
 opened for editing. Possible parameters are
 src  - full URL to the file that should be edited/viewed;
@@ -20,13 +21,13 @@ opened for editing. Possible parameters are
   for edit, for example private:factory/swriter
 readonly - if it is set to true the document will be opened readonly,
   otherwise the document will be opened for editing.
-  
-The control can be extended easily, for example it can be changed 
+
+The control can be extended easily, for example it can be changed
 to allow scripting to load different documents.
 
 As any ActiveX control this one should be registered.
 To let MSIE register it itself the CODEBASE parameter
-for the OBJECT tag should be specified 
+for the OBJECT tag should be specified
 with an URL to the library so_activex.dll.
 
 Also it can be done using regsvr32 application.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples offapi/com offapi/type_reference

2013-08-03 Thread Lionel Elie Mamane
 odk/examples/DevelopersGuide/GUI/UnoDialogSample.java |8 
 offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl  |6 +++---
 offapi/type_reference/offapi.rdb  |binary
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit f4cadd9772ed0ff6e7f7b170080f90384d1f2318
Author: Lionel Elie Mamane lio...@mamane.lu
Date:   Sat Aug 3 11:05:21 2013 +0200

fdo#67235 adapt form control code to time nanosecond API change, step 2

Change-Id: I6ed48b506bdd7b3908ce8c7dba1b74093a3ac202

diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java 
b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 2b47e82..a76c918 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -627,7 +627,7 @@ public class UnoDialogSample implements XTextListener, 
XSpinListener, XActionLis
 return xTextComponent;
 }
 
-public XPropertySet insertTimeField(int _nPosX, int _nPosY, int _nWidth, 
int _nTime, int _nTimeMin, int _nTimeMax){
+public XPropertySet insertTimeField(int _nPosX, int _nPosY, int _nWidth, 
long _nTime, long _nTimeMin, long _nTimeMax){
 XPropertySet xTFModelPSet = null;
 try{
 // create a unique name by means of an own implementation...
@@ -649,9 +649,9 @@ public class UnoDialogSample implements XTextListener, 
XSpinListener, XActionLis
 // The following properties may also be set with XMultiPropertySet 
but we
 // use the XPropertySet interface merely for reasons of 
demonstration
 xTFModelPSet.setPropertyValue(TimeFormat, new Short((short) 5));
-xTFModelPSet.setPropertyValue(TimeMin, new Integer(_nTimeMin));
-xTFModelPSet.setPropertyValue(TimeMax, new Integer(_nTimeMax));
-xTFModelPSet.setPropertyValue(Time, new Integer(_nTime));
+xTFModelPSet.setPropertyValue(TimeMin, new Long(_nTimeMin));
+xTFModelPSet.setPropertyValue(TimeMax, new Long(_nTimeMax));
+xTFModelPSet.setPropertyValue(Time, new Long(_nTime));
 } catch (com.sun.star.uno.Exception ex) {
 /* perform individual exception handling here.
  * Possible exception types are:
diff --git a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl 
b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl
index bff3cce..5b59ff7 100644
--- a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl
+++ b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl
@@ -168,7 +168,7 @@ published service UnoControlTimeFieldModel
 
 /** specifies the time displayed in the control.
  */
-[property] long Time;
+[property] hyper Time;
 
 
 /** specifies the format of the displayed time.
@@ -187,12 +187,12 @@ published service UnoControlTimeFieldModel
 
 /** specifies the maximum time that can be entered.
  */
-[property] long TimeMax;
+[property] hyper TimeMax;
 
 
 /** specifies the minimum time that can be entered.
  */
-[property] long TimeMin;
+[property] hyper TimeMin;
 
 /** denotes the writing mode used in the control, as specified in the
 com::sun::star::text::WritingMode2 constants group.
diff --git a/offapi/type_reference/offapi.rdb b/offapi/type_reference/offapi.rdb
index c09e824..e85a073 100644
Binary files a/offapi/type_reference/offapi.rdb and 
b/offapi/type_reference/offapi.rdb differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-07-11 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java |   30 
+++---
 1 file changed, 9 insertions(+), 21 deletions(-)

New commits:
commit b62d8e6b081d90d3b6e503f5cde9e70e370d671c
Author: Stephan Bergmann sberg...@redhat.com
Date:   Thu Jul 11 16:07:33 2013 +0200

Adapt example to use retrofitted UNO service ctors

Change-Id: I85bf8e3fe76ff107cc3e611cc1103ca1f27fc00f

diff --git a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java 
b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java
index 9ad119e..5dc01aa 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java
@@ -32,15 +32,16 @@
  *
  */
 
-import com.sun.star.lang.XMultiComponentFactory;
 import com.sun.star.uno.XComponentContext;
 import com.sun.star.uno.UnoRuntime;
-import com.sun.star.frame.XComponentLoader;
+import com.sun.star.frame.Desktop;
+import com.sun.star.frame.XDesktop2;
 import com.sun.star.datatransfer.DataFlavor;
 import com.sun.star.datatransfer.UnsupportedFlavorException;
 import com.sun.star.datatransfer.XTransferable;
 import com.sun.star.datatransfer.clipboard.XClipboard;
-import com.sun.star.datatransfer.clipboard.XClipboardNotifier;
+import com.sun.star.datatransfer.clipboard.SystemClipboard;
+import com.sun.star.datatransfer.clipboard.XSystemClipboard;
 import com.sun.star.text.XTextDocument;
 import com.sun.star.uno.AnyConverter;
 
@@ -59,18 +60,11 @@ public class Clipboard
 XComponentContext xOfficeContext =
 com.sun.star.comp.helper.Bootstrap.bootstrap();
 System.out.println(Connected to a running office ...);
-// get the service manager from the office context
-XMultiComponentFactory xServiceManager =
-xOfficeContext.getServiceManager();
 
 // create a new test document
-Object oDesktop = xServiceManager.createInstanceWithContext(
-com.sun.star.frame.Desktop, xOfficeContext);
-
-XComponentLoader xCompLoader 
=UnoRuntime.queryInterface(XComponentLoader.class, oDesktop);
-
+XDesktop2 xDesktop = Desktop.create(xOfficeContext);
 com.sun.star.lang.XComponent xComponent =
-xCompLoader.loadComponentFromURL(private:factory/swriter,
+xDesktop.loadComponentFromURL(private:factory/swriter,
 _blank, 0, new com.sun.star.beans.PropertyValue[0]);
 {
 XTextDocument xDoc =UnoRuntime.queryInterface(XTextDocument.class, 
xComponent);
@@ -93,21 +87,15 @@ public class Clipboard
 }
 // test document will be closed later
 
-Object oClipboard = xServiceManager.createInstanceWithContext(
-com.sun.star.datatransfer.clipboard.SystemClipboard,
-xOfficeContext);
-
-XClipboard xClipboard = 
UnoRuntime.queryInterface(XClipboard.class, oClipboard);
+XSystemClipboard xClipboard = 
SystemClipboard.create(xOfficeContext);
 
 //---
 // registering as clipboard listener
 //---
 
-XClipboardNotifier xClipNotifier = 
UnoRuntime.queryInterface(XClipboardNotifier.class, oClipboard);
-
 ClipboardListener aClipListener= new ClipboardListener();
 
-xClipNotifier.addClipboardListener(aClipListener);
+xClipboard.addClipboardListener(aClipListener);
 
 // Read ClipBoard
 readClipBoard(xClipboard);
@@ -145,7 +133,7 @@ public class Clipboard
 //---
 // unregistering as clipboard listener
 //---
-xClipNotifier.removeClipboardListener(aClipListener);
+xClipboard.removeClipboardListener(aClipListener);
 
 // close test document
 com.sun.star.util.XCloseable xCloseable = 
UnoRuntime.queryInterface(com.sun.star.util.XCloseable.class,
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples pyuno/source xmloff/source xmlsecurity/source

2013-06-29 Thread Thomas Arnhold
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx |6 
++
 odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx |6 
++
 pyuno/source/module/pyuno_adapter.cxx  |8 
++--
 xmloff/source/text/txtparai.cxx|6 
++
 xmlsecurity/source/helper/documentsignaturehelper.cxx  |3 
+--
 xmlsecurity/source/helper/xmlsignaturehelper2.cxx  |7 
++-
 xmlsecurity/source/helper/xsecparser.cxx   |   10 
--
 7 files changed, 15 insertions(+), 31 deletions(-)

New commits:
commit b6d97514cdca32129142cd937ac0cbda3113f562
Author: Thomas Arnhold tho...@arnhold.org
Date:   Sat Jun 29 18:30:34 2013 +0200

reduce some spacing

Change-Id: I72d494b1c0ff5ed3c52ae6a078815f497e4dd647

diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index a5cad0e..86d4da0 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -60,8 +60,7 @@ Sequence OUString  SAL_CALL 
getSupportedServiceNames_MyService1Impl()
 
 OUString SAL_CALL getImplementationName_MyService1Impl()
 {
-return OUString(
- my_module.my_sc_implementation.MyService1);
+return OUString(my_module.my_sc_implementation.MyService1);
 }
 
 
@@ -222,8 +221,7 @@ OUString MyService1Impl::getImplementationName()
 throw (RuntimeException)
 {
 // unique implementation name
-return OUString(
- my_module.my_sc_implementation.MyService1);
+return OUString(my_module.my_sc_implementation.MyService1);
 }
 sal_Bool MyService1Impl::supportsService( OUString const  serviceName )
 throw (RuntimeException)
diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
index ac86ea1..e3c4459 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
@@ -66,8 +66,7 @@ static Sequence OUString  
getSupportedServiceNames_MyService2Impl()
 
 static OUString getImplementationName_MyService2Impl()
 {
-return OUString(
- my_module.my_sc_implementation.MyService2);
+return OUString(my_module.my_sc_implementation.MyService2);
 }
 
 class MyService2Impl : public ::cppu::WeakImplHelper3
@@ -148,8 +147,7 @@ OUString MyService2Impl::getImplementationName()
 throw (RuntimeException)
 {
 // unique implementation name
-return OUString(
- my_module.my_sc_implementation.MyService2);
+return OUString(my_module.my_sc_implementation.MyService2);
 }
 
 sal_Bool MyService2Impl::supportsService( OUString const  serviceName )
diff --git a/pyuno/source/module/pyuno_adapter.cxx 
b/pyuno/source/module/pyuno_adapter.cxx
index b51bc06..41a2e24 100644
--- a/pyuno/source/module/pyuno_adapter.cxx
+++ b/pyuno/source/module/pyuno_adapter.cxx
@@ -132,9 +132,7 @@ Sequence sal_Int16  Adapter::getOutIndexes( const 
OUString  functionName )
 if( ! method.is( ) )
 {
 throw RuntimeException(
-(OUString(
-pyuno bridge: Couldn't get reflection for method 
)
- + functionName),
+pyuno bridge: Couldn't get reflection for method  + 
functionName,
 Reference XInterface  () );
 }
 
@@ -265,9 +263,7 @@ Any Adapter::invoke( const OUString aFunctionName,
 if( ! ( ret = seq ) )
 {
 throw RuntimeException(
-(OUString(pyuno bridge: Couldn't extract out
- parameters for method )
- + aFunctionName),
+pyuno bridge: Couldn't extract out parameters for 
method  + aFunctionName,
 Reference XInterface  () );
 }
 
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index df7faff..a8a9d33 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -899,8 +899,7 @@ void XMLMetaImportContext::InsertMeta(
 const uno::Referencerdf::XMetadatable xMeta(
 XMLTextMarkImportContext::CreateAndInsertMark(
 GetImport(),
-OUString(
-com.sun.star.text.InContentMetadata),
+OUString(com.sun.star.text.InContentMetadata),
 OUString(),
 i_xInsertionRange, m_XmlId),
 uno::UNO_QUERY);
@@ -978,8 +977,7 @@ void 

[Libreoffice-commits] core.git: odk/examples

2013-06-19 Thread Stephan Bergmann
 odk/examples/java/ToDo/ToDo.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 38d2ea2b25f323337b91ab1507bc0b955876a216
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Jun 19 17:41:00 2013 +0200

Missing import

Regression introduced with 64e85a4cc8259a7d80c781e6698a8f30e7e0151d Java
cleanup, remove unused imports.

Change-Id: I843cf651e20d2dd410f481222aca5206e0166a30

diff --git a/odk/examples/java/ToDo/ToDo.java b/odk/examples/java/ToDo/ToDo.java
index 7185493..e4ab0ca 100644
--- a/odk/examples/java/ToDo/ToDo.java
+++ b/odk/examples/java/ToDo/ToDo.java
@@ -62,7 +62,7 @@ import com.sun.star.text.XTextField;
 import com.sun.star.text.XTextRange;
 import com.sun.star.uno.UnoRuntime;
 import com.sun.star.uno.XComponentContext;
-// addintional interfaces used by the implementation
+import org.openoffice.XToDo;
 
 /** This class capsulates the class, that implements the minimal component, a
  * factory for creating the service (CODE__getServiceFactory/CODE) and a
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-06-06 Thread Ariel Constenla-Haile
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9f97b3e270736284e2b189508b808711ebe46b26
Author: Ariel Constenla-Haile arie...@apache.org
Date:   Thu Jun 6 03:23:59 2013 +

Fix breaker when compiled with DEBUG=yes

(cherry picked from commit 07c6343beaea37e8e6254e0f988e19f1eccf38ce)

Conflicts:

odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx

Change-Id: I75278282efc80f3e9c31c413842392030beeb265

diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
index 5cfe660..321bcf0 100644
--- 
a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
+++ 
b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
@@ -178,7 +178,7 @@ sal_Bool XFlatXml::importer(
 catch( Exception exc)
 {
 // something went wrong
-OSL_FAIL(exc.Message);
+
OSL_FAIL(rtl::OUStringToOString(exc.Message,RTL_TEXTENCODING_UTF8).getStr());
 return sal_False;
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-05-07 Thread Stephan Bergmann
 odk/examples/DevelopersGuide/OfficeBean/Makefile   |4 +---
 odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java |3 ++-
 2 files changed, 3 insertions(+), 4 deletions(-)

New commits:
commit c756afcdbab0afae23f2dc39def08debd949d492
Author: Stephan Bergmann sberg...@redhat.com
Date:   Tue May 7 13:59:20 2013 +0200

Move the example code off the com.sun.star.comp.beans package

Change-Id: I27ffb8f1bddc0a41d76a8b6d441e10e9a71ff10f

diff --git a/odk/examples/DevelopersGuide/OfficeBean/Makefile 
b/odk/examples/DevelopersGuide/OfficeBean/Makefile
index 5aab7ea..3326244 100644
--- a/odk/examples/DevelopersGuide/OfficeBean/Makefile
+++ b/odk/examples/DevelopersGuide/OfficeBean/Makefile
@@ -43,9 +43,7 @@ include $(SETTINGS)/std.mk
 # Define non-platform/compiler specific settings
 OUT_COMP_CLASS = $(OUT_CLASS)/OOoBeanViewer
 
-# normally the idl file should be stored in a directory tree fitting the 
module structure,
-# for the example we know the module structure
-PACKAGE = com/sun/star/comp/beans
+PACKAGE = org/libreoffice/sdk/examples/developers_guide/office_bean
 
 JAVAFILES  = \
OOoBeanViewer.java \
diff --git a/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java 
b/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java
index 0bbe547..8cc7556 100644
--- a/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java
+++ b/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java
@@ -32,8 +32,9 @@
  *
  */
 
-package com.sun.star.comp.beans;
+package org.libreoffice.sdk.examples.developers_guide.office_bean;
 
+import com.sun.star.comp.beans.OOoBean;
 import javax.swing.filechooser.*;
 import javax.swing.*;
 import java.io.*;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-04-23 Thread Noel Grandin
 odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java |7 
+++
 1 file changed, 7 insertions(+)

New commits:
commit 4f6adb0585037013241bd59e5c869a261c1f20c1
Author: Noel Grandin n...@peralex.com
Date:   Tue Apr 23 08:53:16 2013 +0200

Fix compilation of Spreadsheet odk example

because of change to XDataPilotsResults IDL in
commit ac569ed4cf5064248b9952f182f6572f20dc9bcb
fdo#60300: Work-in-progress change to rework pivot table core

Change-Id: I730e15226f4dfe3e6baa5d54e987da1016f6b15b
Reviewed-on: https://gerrit.libreoffice.org/3565
Reviewed-by: Fridrich Strba fridr...@documentfoundation.org
Tested-by: Fridrich Strba fridr...@documentfoundation.org

diff --git 
a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java 
b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
index c94f205..f7220f0 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
@@ -1,3 +1,5 @@
+import com.sun.star.sheet.DataPilotFieldFilter;
+
 /*
  *
  *  The Contents of this file are made available subject to the terms of
@@ -864,6 +866,11 @@ public class ExampleDataPilotSource
 return aResults;
 }
 
+public double[] getFilteredResults(DataPilotFieldFilter[] aFilters) {
+// FIXME
+return new double[0];
+}
+
 //  XDimensionsSupplier
 
 public com.sun.star.container.XNameAccess getDimensions()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-04-23 Thread Noel Grandin
 odk/examples/DevelopersGuide/Forms/ButtonOperator.java   | 
   2 -
 odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java   | 
  10 
 odk/examples/DevelopersGuide/Forms/FLTools.java  | 
   6 ++---
 odk/examples/DevelopersGuide/Forms/SalesFilter.java  | 
   2 -
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java | 
  12 +-
 5 files changed, 16 insertions(+), 16 deletions(-)

New commits:
commit bc8b419b0dc8bffb70accce443f4f46aa48cbd58
Author: Noel Grandin n...@peralex.com
Date:   Tue Apr 23 09:18:08 2013 +0200

Java cleanup - use generics to reduce casting

More queryInterface related cleanup.

Change-Id: I97d064c425389e687c6f0fbc3a962080f46dd511
Reviewed-on: https://gerrit.libreoffice.org/3568
Reviewed-by: Fridrich Strba fridr...@documentfoundation.org
Tested-by: Fridrich Strba fridr...@documentfoundation.org

diff --git a/odk/examples/DevelopersGuide/Forms/ButtonOperator.java 
b/odk/examples/DevelopersGuide/Forms/ButtonOperator.java
index 113b704..a447381 100644
--- a/odk/examples/DevelopersGuide/Forms/ButtonOperator.java
+++ b/odk/examples/DevelopersGuide/Forms/ButtonOperator.java
@@ -148,7 +148,7 @@ public class ButtonOperator implements XActionListener, 
XFeatureInvalidation
 public void actionPerformed( ActionEvent aEvent ) throws 
com.sun.star.uno.RuntimeException
 {
 // get the model's name
-XPropertySet buttonModel = (XPropertySet)FLTools.getModel( 
aEvent.Source, XPropertySet.class );
+XPropertySet buttonModel = FLTools.getModel( aEvent.Source, 
XPropertySet.class );
 try
 {
 short formFeature = getAssociatedFormFeature( buttonModel );
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java 
b/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java
index 25308ea..09befbe 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java
@@ -69,7 +69,7 @@ class DocumentViewHelper
 @param aInterfaceClass
 the class of the interface which shall be returned
 */
-public Object get( Class aInterfaceClass )
+public T T get( ClassT aInterfaceClass )
 {
 return UnoRuntime.queryInterface( aInterfaceClass, m_controller );
 }
@@ -88,7 +88,7 @@ class DocumentViewHelper
 XDispatch xReturn = null;
 
 // go get the current view
-XController xController = (XController)get( XController.class );
+XController xController = get( XController.class );
 // go get the dispatch provider of it's frame
 XDispatchProvider xProvider = UnoRuntime.queryInterface(
 XDispatchProvider.class, xController.getFrame() );
@@ -119,7 +119,7 @@ class DocumentViewHelper
  */
 public XFormController getFormController( Object _form )
 {
-XFormLayerAccess formLayer = (XFormLayerAccess)get( 
XFormLayerAccess.class );
+XFormLayerAccess formLayer = get( XFormLayerAccess.class );
 return formLayer.getFormController( UnoRuntime.queryInterface( 
XForm.class, _form ) );
 }
 
@@ -133,7 +133,7 @@ class DocumentViewHelper
 public XControl getFormControl( XControlModel xModel ) throws 
com.sun.star.uno.Exception
 {
 // the current view of the document
-XControlAccess xCtrlAcc = (XControlAccess)get( XControlAccess.class );
+XControlAccess xCtrlAcc = get( XControlAccess.class );
 // delegate the task of looking for the control
 return xCtrlAcc.getControl( xModel );
 }
@@ -146,7 +146,7 @@ class DocumentViewHelper
 }
 
 /* -- */
-public Object getFormControl( Object aModel, Class aInterfaceClass ) 
throws com.sun.star.uno.Exception
+public T T getFormControl( Object aModel, ClassT aInterfaceClass ) 
throws com.sun.star.uno.Exception
 {
 XControlModel xModel = UnoRuntime.queryInterface( XControlModel.class, 
aModel );
 return UnoRuntime.queryInterface( aInterfaceClass, getFormControl( 
xModel ) );
diff --git a/odk/examples/DevelopersGuide/Forms/FLTools.java 
b/odk/examples/DevelopersGuide/Forms/FLTools.java
index 1438166..36d4fb3 100644
--- a/odk/examples/DevelopersGuide/Forms/FLTools.java
+++ b/odk/examples/DevelopersGuide/Forms/FLTools.java
@@ -159,7 +159,7 @@ public class FLTools
 /* -- */
 /** retrieves the parent of the given object
 */
-static Object getParent( Object aComponent, Class aInterfaceClass )
+static T T getParent( Object aComponent, ClassT aInterfaceClass )
 {
 XChild xAsChild = UnoRuntime.queryInterface( XChild.class, aComponent 
);
 
@@ -171,7 +171,7 @@ public class FLTools
 */
 static XPropertySet getParent( Object aComponent 

[Libreoffice-commits] core.git: odk/examples

2013-04-17 Thread Noel Grandin
 odk/examples/java/Inspector/ProtocolHandlerAddon.java |   50 --
 1 file changed, 23 insertions(+), 27 deletions(-)

New commits:
commit bea18dd581ac9341a19e757a72662ab7a2e34b0a
Author: Noel Grandin n...@peralex.com
Date:   Wed Apr 17 12:57:16 2013 +0200

fix compile error in unused Java file.

exception not thrown in catch block

Change-Id: I13f8be9913f655ab1633b29e9fe686a41c2c0fcb

diff --git a/odk/examples/java/Inspector/ProtocolHandlerAddon.java 
b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
index 86d03ad..e20d3a2 100644
--- a/odk/examples/java/Inspector/ProtocolHandlerAddon.java
+++ b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
@@ -204,35 +204,31 @@ public class ProtocolHandlerAddon {
 }
 
 public void showMessageBox(String sTitle, String sMessage) {
-try {
-if ( null != m_xFrame  null != m_xToolkit ) {
-
-// describe window properties.
-WindowDescriptor aDescriptor = new WindowDescriptor();
-aDescriptor.Type  = WindowClass.MODALTOP;
-aDescriptor.WindowServiceName = new String( infobox );
-aDescriptor.ParentIndex   = -1;
-aDescriptor.Parent= 
(XWindowPeer)UnoRuntime.queryInterface(
-XWindowPeer.class, m_xFrame.getContainerWindow());
-aDescriptor.Bounds= new Rectangle(0,0,300,200);
-aDescriptor.WindowAttributes  = WindowAttribute.BORDER |
-WindowAttribute.MOVEABLE |
-WindowAttribute.CLOSEABLE;
-
-XWindowPeer xPeer = m_xToolkit.createWindow( aDescriptor );
-if ( null != xPeer ) {
-XMessageBox xMsgBox = 
(XMessageBox)UnoRuntime.queryInterface(
-XMessageBox.class, xPeer);
-if ( null != xMsgBox )
-{
-xMsgBox.setCaptionText( sTitle );
-xMsgBox.setMessageText( sMessage );
-xMsgBox.execute();
-}
+if ( null != m_xFrame  null != m_xToolkit ) {
+
+// describe window properties.
+WindowDescriptor aDescriptor = new WindowDescriptor();
+aDescriptor.Type  = WindowClass.MODALTOP;
+aDescriptor.WindowServiceName = new String( infobox );
+aDescriptor.ParentIndex   = -1;
+aDescriptor.Parent= 
(XWindowPeer)UnoRuntime.queryInterface(
+XWindowPeer.class, m_xFrame.getContainerWindow());
+aDescriptor.Bounds= new Rectangle(0,0,300,200);
+aDescriptor.WindowAttributes  = WindowAttribute.BORDER |
+WindowAttribute.MOVEABLE |
+WindowAttribute.CLOSEABLE;
+
+XWindowPeer xPeer = m_xToolkit.createWindow( aDescriptor );
+if ( null != xPeer ) {
+XMessageBox xMsgBox = 
(XMessageBox)UnoRuntime.queryInterface(
+XMessageBox.class, xPeer);
+if ( null != xMsgBox )
+{
+xMsgBox.setCaptionText( sTitle );
+xMsgBox.setMessageText( sMessage );
+xMsgBox.execute();
 }
 }
-} catch ( com.sun.star.uno.Exception e) {
-// do your error handling
 }
 }
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

2013-03-31 Thread Chr . Rossmanith
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
|6 +++---
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
|2 +-
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
  |6 ++
 odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx 
  |6 ++
 
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
 |8 
 odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx 
  |8 
 6 files changed, 16 insertions(+), 20 deletions(-)

New commits:
commit 4ec9f5d768455014a3c1a189b4168dd8a926a9bc
Author: Chr. Rossmanith chrrossman...@gmx.de
Date:   Sat Mar 30 21:28:56 2013 +0100

Remove RTL_CONSTASCII_(U)STRINGPARAM in odk(Developersguide)

Change-Id: Ic2a2cf04a691f628e862e81579d3d55d261fc492

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
index ce48345..a9d78f9 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
@@ -197,10 +197,10 @@ void SAL_CALL Addon::removeStatusListener( const 
Reference XStatusListener  x
 // Helper functions for the implementation of UNO component interfaces 
#
 
//##
 
-::rtl::OUString Addon_getImplementationName()
+OUString Addon_getImplementationName()
 throw (RuntimeException)
 {
-return ::rtl::OUString ( RTL_CONSTASCII_USTRINGPARAM ( IMPLEMENTATION_NAME 
) );
+return OUString ( IMPLEMENTATION_NAME );
 }
 
 sal_Bool SAL_CALL Addon_supportsService( const ::rtl::OUString ServiceName )
@@ -214,7 +214,7 @@ throw (RuntimeException)
 {
 Sequence  ::rtl::OUString  aRet(1);
 ::rtl::OUString* pArray = aRet.getArray();
-pArray[0] =  ::rtl::OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME 
) );
+pArray[0] =  OUString ( SERVICE_NAME );
 return aRet;
 }
 
diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
index 164cf64..d2eda76 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
@@ -112,7 +112,7 @@ extern C SAL_DLLPUBLIC_EXPORT void * SAL_CALL 
component_getFactory(const sal_C
 {
 Reference XSingleComponentFactory  xFactory( 
createSingleComponentFactory(
 Addon_createInstance,
-OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) ),
+OUString( IMPLEMENTATION_NAME ),
 Addon_getSupportedServiceNames() ) );
 
 if (xFactory.is())
diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index a43156a..a5cad0e 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -208,15 +208,13 @@ OUString MyService1Impl::methodOne( OUString const  str )
 throw (RuntimeException)
 {
 m_sData = str;
-return OUString( RTL_CONSTASCII_USTRINGPARAM(
-called methodOne() of MyService1 implementation: ) ) + m_sData;
+return OUString( called methodOne() of MyService1 implementation:  ) + 
m_sData;
 }
 
 OUString MyService1Impl::methodTwo( )
 throw (RuntimeException)
 {
-return OUString( RTL_CONSTASCII_USTRINGPARAM(
-called methodTwo() of MyService1 implementation: ) ) + m_sData;
+return OUString( called methodTwo() of MyService1 implementation:  ) + 
m_sData;
 }
 
 // XServiceInfo implementation
diff --git 
a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx 
b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
index ba6bf5d..ac86ea1 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
@@ -134,15 +134,13 @@ OUString MyService2Impl::methodOne( OUString const  str )
 throw (RuntimeException)
 {
 m_sData = str;
-return OUString( RTL_CONSTASCII_USTRINGPARAM(
-called methodOne() of MyService2 implementation: ) ) + m_sData;
+return OUString( called methodOne() of MyService2 implementation:  ) + 
m_sData;
 }
 
 OUString MyService2Impl::methodTwo( )
 throw (RuntimeException)
 {
-return OUString( RTL_CONSTASCII_USTRINGPARAM(
-

[Libreoffice-commits] core.git: odk/examples

2013-03-31 Thread Chr . Rossmanith
 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h |4 ++--
 odk/examples/cpp/counter/counter.cxx|6 +++---
 odk/examples/java/Inspector/SourceCodeGenerator.java|4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 14d909632e208fa1b3a27212633cf3607ccf1136
Author: Chr. Rossmanith chrrossman...@gmx.de
Date:   Sun Mar 31 16:56:55 2013 +0200

Remove RTL_CONSTASCII_(U)STRINGPARAM in odk

Change-Id: I97e5e650b7966d1ac3c6f9e45b495c21b529b768

diff --git a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h 
b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h
index 54c5b8a..dfcd295 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h
+++ b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.h
@@ -142,7 +142,7 @@ class WriterDispatch : public BaseDispatch
 public:
 WriterDispatch( const ::com::sun::star::uno::Reference 
::com::sun::star::uno::XComponentContext  rxContext,
 const ::com::sun::star::uno::Reference 
::com::sun::star::frame::XFrame  xFrame )
-: BaseDispatch( rxContext, xFrame, ::rtl::OUString( 
RTL_CONSTASCII_USTRINGPARAM(com.sun.star.text.TextDocument ) ) )
+: BaseDispatch( rxContext, xFrame, OUString( 
com.sun.star.text.TextDocument ) )
 {}
 };
 
@@ -151,7 +151,7 @@ class CalcDispatch : public BaseDispatch
 public:
 CalcDispatch( const ::com::sun::star::uno::Reference 
::com::sun::star::uno::XComponentContext  rxContext,
 const ::com::sun::star::uno::Reference 
::com::sun::star::frame::XFrame  xFrame )
-: BaseDispatch( rxContext, xFrame, ::rtl::OUString( 
RTL_CONSTASCII_USTRINGPARAM(com.sun.star.sheet.SpreadSheetDocument ) ) )
+: BaseDispatch( rxContext, xFrame, OUString( 
com.sun.star.sheet.SpreadSheetDocument ) )
 {}
 };
 
diff --git a/odk/examples/cpp/counter/counter.cxx 
b/odk/examples/cpp/counter/counter.cxx
index f8b32f2..572d9c1 100644
--- a/odk/examples/cpp/counter/counter.cxx
+++ b/odk/examples/cpp/counter/counter.cxx
@@ -117,7 +117,7 @@ public:
 OUString SAL_CALL MyCounterImpl::getImplementationName(  )
 throw(RuntimeException)
 {
-return OUString( RTL_CONSTASCII_USTRINGPARAM(IMPLNAME) );
+return OUString( IMPLNAME );
 }
 
 //*
@@ -142,7 +142,7 @@ SequenceOUString SAL_CALL 
MyCounterImpl::getSupportedServiceNames(  )
 //*
 SequenceOUString SAL_CALL MyCounterImpl::getSupportedServiceNames_Static(  )
 {
-OUString aName( RTL_CONSTASCII_USTRINGPARAM(SERVICENAME) );
+OUString aName( SERVICENAME );
 return Sequence OUString ( aName, 1 );
 }
 
@@ -216,7 +216,7 @@ extern C SAL_DLLPUBLIC_EXPORT void * SAL_CALL 
component_getFactory(const sal_C
 {
 Reference XSingleServiceFactory  xFactory( createSingleFactory(
 reinterpret_cast XMultiServiceFactory * ( pServiceManager ),
-OUString( RTL_CONSTASCII_USTRINGPARAM(IMPLNAME) ),
+OUString( IMPLNAME ),
 MyCounterImpl_create,
 MyCounterImpl::getSupportedServiceNames_Static() ) );
 
diff --git a/odk/examples/java/Inspector/SourceCodeGenerator.java 
b/odk/examples/java/Inspector/SourceCodeGenerator.java
index 279cfeb..ac7bdfa 100644
--- a/odk/examples/java/Inspector/SourceCodeGenerator.java
+++ b/odk/examples/java/Inspector/SourceCodeGenerator.java
@@ -1527,7 +1527,7 @@ class UnoObjectDefinition{
 public String getPropertyValueGetterSourceCode(String _sPropertyName, 
String _sReturnVariableName, String _sIncomingObjectName, TypeClass 
_aTypeClass, String _sTypeName){
 String sFirstLine = \t;
 String sReturnVariableName = _sReturnVariableName;
-// e.g. uno::Any a = xPropSet-getPropertyValue( rtl::OUString( 
RTL_CONSTASCII_USTRINGPARAM( DefaultContext )) );
+// e.g. uno::Any a = xPropSet-getPropertyValue( rtl::OUString( 
DefaultContext ) );
 String[] sVarDefinition = _sReturnVariableName.split(=);
 if (sVarDefinition.length  0){
 String sVariable = sVarDefinition[0];
@@ -1560,7 +1560,7 @@ class UnoObjectDefinition{
 
 public String getStringValue(String _sValue){
 bIncludeStringHeader = true;
-return OUString(RTL_CONSTASCII_USTRINGPARAM(\ + _sValue + 
\));
+return OUString(\ + _sValue + \);
 }
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples sysui/desktop

2013-03-02 Thread Thomas Arnhold
 odk/examples/cpp/complextoolbarcontrols/Makefile |2 +-
 sysui/desktop/mandriva/mandriva-menus.spec   |   12 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 934cdea97a052f82c87b4d87bd371a105d64e7ed
Author: Thomas Arnhold tho...@arnhold.org
Date:   Sat Mar 2 12:42:53 2013 +0100

-writer - --writer

Change-Id: I78bd922b33d237f36c62ab27e1e383b456797e3a

diff --git a/odk/examples/cpp/complextoolbarcontrols/Makefile 
b/odk/examples/cpp/complextoolbarcontrols/Makefile
index 06af1af..76658e2 100644
--- a/odk/examples/cpp/complextoolbarcontrols/Makefile
+++ b/odk/examples/cpp/complextoolbarcontrols/Makefile
@@ -171,7 +171,7 @@ Example : $(COMP_REGISTERFLAG)
@echo 

 
 run: $(COMP1_COMP_REGISTERFLAG)
-   $(OFFICE_PROGRAM_PATH)$(PS)soffice -writer
+   $(OFFICE_PROGRAM_PATH)$(PS)soffice --writer
 
 
 .PHONY: clean
diff --git a/sysui/desktop/mandriva/mandriva-menus.spec 
b/sysui/desktop/mandriva/mandriva-menus.spec
index 60312d7..00afc1a 100755
--- a/sysui/desktop/mandriva/mandriva-menus.spec
+++ b/sysui/desktop/mandriva/mandriva-menus.spec
@@ -257,7 +257,7 @@ EOF
 # FIXME: Office/Database request in the Cooker ML, leave in Spreadsheets
 # until new group will be created
 #
-GenerateMenu %unixfilename -base \
+GenerateMenu %unixfilename --base \
More Applications/Databases \
base \
%productname %{menuversion} Base \
@@ -265,7 +265,7 @@ GenerateMenu %unixfilename -base \
core01 \

application/vnd.oasis.opendocument.database,application/vnd.sun.xml.base
 
-GenerateMenu %unixfilename -calc \
+GenerateMenu %unixfilename --calc \
Office/Spreadsheets \
calc \
%productname %{menuversion} Calc \
@@ -273,7 +273,7 @@ GenerateMenu %unixfilename -calc \
calc \

application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.sun.xml.calc,application/vnd.sun.xml.calc.template,application/vnd.stardivision.calc,application/vnd.stardivision.chart,application/msexcel,application/vnd.ms-excel
 
-GenerateMenu %unixfilename -draw \
+GenerateMenu %unixfilename --draw \
Office/Drawing \
draw \
%productname %{menuversion} Draw \
@@ -281,7 +281,7 @@ GenerateMenu %unixfilename -draw \
draw \

application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.sun.xml.draw,application/vnd.sun.xml.draw.template,application/vnd.stardivision.draw
 
-GenerateMenu %unixfilename -impress \
+GenerateMenu %unixfilename --impress \
Office/Presentations \
impress \
%productname %{menuversion} Impress \
@@ -289,7 +289,7 @@ GenerateMenu %unixfilename -impress \
impress \

application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.presentation-template,application/vnd.sun.xml.impress,application/vnd.sun.xml.impress.template,application/vnd.stardivision.impress,application/mspowerpoint
 
-GenerateMenu %unixfilename -writer \
+GenerateMenu %unixfilename --writer \
Office/Wordprocessors \
writer \
%productname %{menuversion} Writer \
@@ -297,7 +297,7 @@ GenerateMenu %unixfilename -writer \
writer \

application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.text-web,application/vnd.oasis.opendocument.text-master,application/vnd.sun.xml.writer,application/vnd.sun.xml.writer.template,application/vnd.sun.xml.writer.global,application/vnd.stardivision.writer,application/msword,application/vnd.ms-word,application/x-doc,application/rtf
 
-GenerateMenu %unixfilename -math \
+GenerateMenu %unixfilename --math \
Office/Wordprocessors \
math \
%productname %{menuversion} Math \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits