diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 16:26:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 17:37:13 +0000 |
commit | 610e3d3e947727dad61a3797029b546878c062ed (patch) | |
tree | fc02587694010354a9520a1289137235769265ea /odk | |
parent | 67f4a9d73fbff816a90f26b76441f0e8cd6a1cca (diff) |
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
(cherry picked from commit d119e3a986a82ce94018c5ac021996ff221f3772)
Reviewed-on: https://gerrit.libreoffice.org/33591
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java index 830cefa07bef..6b10da93c324 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 ); |