summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Forms/SalesFilter.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:20:20 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:20:20 +0200
commit4dc9c2aaf6a6b07c7afbc3620e2f34085a838294 (patch)
treec9977bbeaa286c1c906376b3f836d05eb43adea3 /odk/examples/DevelopersGuide/Forms/SalesFilter.java
parentc7eab7eed6263bdc62f91a2336cc60fdc3d69a49 (diff)
recreated tag libreoffice-3.3.3.1 which had these commits:
commit 1d0f0ac667d24a5e2584e81a20cf8aa52e784aa7 (tag: refs/tags/libreoffice-3.3.3.1) Author: Petr Mladek <pmladek@suse.cz> Date: Tue May 31 17:39:08 2011 +0200 Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes: split repo tag: sdk_libreoffice-3.3.3.1 split repo tag: sdk_libreoffice-3.3.4.1
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/SalesFilter.java')
-rw-r--r--odk/examples/DevelopersGuide/Forms/SalesFilter.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
index fa6e9d19abc7..c461d5cac007 100644
--- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java
+++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
@@ -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.
- *
+ *
*************************************************************************/
import com.sun.star.uno.*;
@@ -51,18 +51,18 @@ import java.util.GregorianCalendar;
*/
class SalesFilter implements XActionListener, XPropertyChangeListener, XResetListener
{
- private DocumentHelper m_aDocument;
- private XPropertySet m_xSalesForm;
+ private DocumentHelper m_aDocument;
+ private XPropertySet m_xSalesForm;
- private XPropertySet m_xFilterList;
- private XPropertySet m_xManualFilter;
- private XPropertySet m_xApplyFilter;
+ private XPropertySet m_xFilterList;
+ private XPropertySet m_xManualFilter;
+ private XPropertySet m_xApplyFilter;
- private boolean m_bSettingsDirty;
- private boolean m_bSettingDate;
- private boolean m_bAdjustingFilterList;
- private short m_nPreviousFilterIndex;
- private java.util.Vector m_aFilterDates;
+ private boolean m_bSettingsDirty;
+ private boolean m_bSettingDate;
+ private boolean m_bAdjustingFilterList;
+ private short m_nPreviousFilterIndex;
+ private java.util.Vector m_aFilterDates;
/* ------------------------------------------------------------------ */
public SalesFilter( DocumentHelper aDocument, XPropertySet xSalesForm,
@@ -298,7 +298,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
try
{
if ( isManualFilter( m_nPreviousFilterIndex ) )
- { // previously, the "custom" filter date was selected
+ { // previously, the "custom" filter date was selected
// -> remember the date entered
Object aDate = translateDate( m_xManualFilter.getPropertyValue( "Date" ) );
m_aFilterDates.set( m_nPreviousFilterIndex, aDate );
@@ -351,9 +351,9 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
// both are null
return true;
- return ( aLHS.get( Calendar.YEAR ) == aRHS.get( Calendar.YEAR ) )
- && ( aLHS.get( Calendar.MONTH ) == aRHS.get( Calendar.MONTH ) )
- && ( aLHS.get( Calendar.DAY_OF_MONTH ) == aRHS.get( Calendar.DAY_OF_MONTH ) );
+ return ( aLHS.get( Calendar.YEAR ) == aRHS.get( Calendar.YEAR ) )
+ && ( aLHS.get( Calendar.MONTH ) == aRHS.get( Calendar.MONTH ) )
+ && ( aLHS.get( Calendar.DAY_OF_MONTH ) == aRHS.get( Calendar.DAY_OF_MONTH ) );
}
/* ------------------------------------------------------------------ */
@@ -377,7 +377,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
// check if this date is already present in the list of user defined dates
for ( int i=0; i<m_aFilterDates.size(); ++i )
{
- if ( !isManualFilter( (short)i ) ) // do not compare with the manual filter
+ if ( !isManualFilter( (short)i ) ) // do not compare with the manual filter
{
GregorianCalendar aCheckCal = getCalendarObject( (java.util.Date)m_aFilterDates.elementAt( i ) );
if ( equalDate( aDateCal, aCheckCal ) )
@@ -386,7 +386,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
}
System.out.println( );
- if ( aFilterItems.size() > 10 ) // (6 standard items + 5 user defined items)
+ if ( aFilterItems.size() > 10 ) // (6 standard items + 5 user defined items)
{
// the first (and thus oldes) user defined item
aFilterItems.removeElementAt( 6 );
@@ -442,7 +442,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
XLoadable.class, m_xSalesForm );
xLoad.reload();
- m_aDocument.getCurrentView().grabControlFocus( m_xFilterList );
+ m_aDocument.getCurrentView().grabControlFocus( m_xFilterList );
}
catch ( java.lang.Exception e )
{