diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:04:08 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:04:08 +0200 |
commit | 258f905e8c6b1853884f730ab0e36a544bfd7b76 (patch) | |
tree | 812254806beb1a7af7271469e7148b667b2d96de /sc/source/ui/inc | |
parent | bc212c565cdc252d2a01e5221a75868b3f01d230 (diff) |
recreated tag OOO_BUILD_3_2_98_1 which had these commits:
commit aa08e6374f2a8f11105d84c3d651696be34ef78b (tag: refs/tags/OOO_BUILD_3_2_98_1)
Author: Petr Mladek <pmladek@walk.suse.cz>
Date: Wed Sep 15 19:03:24 2010 +0200
Release ooo-build-3.2.98.1, tag OOO_BUILD_3_2_98_1 (3.3-alpha1)
commit eb4914f043304ba7d164733509794104c7ea5b33
Merge: 5ada805 0815e6f
Author: Jan Holesovsky <kendy@suse.cz>
Date: Tue Sep 7 09:33:00 2010 +0200
Merge commit 'ooo/OOO330_m6'
commit 0815e6f3086d4513fb1dfed2a0ff8e83a3589afc (tag: refs/tags/ooo/OOO330_m7, tag: refs/tags/ooo/OOO330_m6)
Merge: 51cfacc 1d0dc69
Author: Ivo Hinkelmann <ihi@openoffice.org>
Date: Thu Aug 26 13:52:56 2010 +0200
CWS-TOOLING: integrate CWS calc58
commit 51cfacc73ee6162c82dbb735448f5321a2a57269
Merge: 1f33e95 8676b47
Author: Ivo Hinkelmann <ihi@openoffice.org>
Date: Wed Aug 25 12:49:35 2010 +0200
CWS-TOOLING: integrate CWS mib18
commit 1d0dc690de7aa8ef1fd93d26578251248fd66d9a
Author: Thomas Benisch <tbe@openoffice.org>
Date: Fri Aug 20 13:23:46 2010 +0200
calc58: #i113948# office crashes after resizing chart
chart2/source/model/main/ChartModel.cxx | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit db48b114e54b6ceaebd4d77fbb0de1d41a0d69ca
Author: Thomas Benisch <tbe@openoffice.org>
Date: Fri Aug 20 13:03:55 2010 +0200
calc58: #i113946# undo does not work for deleting shapes
.../controller/main/ChartController_Tools.cxx | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
commit 3fa83707418cb221c94dcbe32864e5555b618159
Author: Eike Rathke [er] <eike.rathke@oracle.com>
Date: Thu Aug 19 17:12:37 2010 +0200
calc58: #i113879# add ScMatrix::CloneIfConst() and regard only temporary matrices created by the interpreter as mutable
sc/inc/scmatrix.hxx | 11 ++++++++++-
sc/source/core/tool/interpr4.cxx | 7 ++++++-
sc/source/core/tool/interpr5.cxx | 21 +++++++++++++--------
sc/source/core/tool/scmatrix.cxx | 5 +++++
4 files changed, 34 insertions(+), 10 deletions(-)
commit baac8ebc6989a5771b5d1903e5e8f4014ecafeac
Author: Eike Rathke [er] <eike.rathke@oracle.com>
Date: Wed Aug 18 18:56:10 2010 +0200
calc58: #i113739# make N return 0 for all strings again
sc/source/core/tool/interpr1.cxx | 23 +++++++----------------
sc/source/core/tool/interpr4.cxx | 6 ++++++
2 files changed, 13 insertions(+), 16 deletions(-)
commit ac9660fc7e47b2a7eecdb0c749ee46f592a70635
Author: Eike Rathke [er] <eike.rathke@oracle.com>
Date: Wed Aug 18 16:52:22 2010 +0200
calc58: #i113820# make TEXT treat string results and inline strings identical to referenced cell text
sc/source/core/tool/interpr1.cxx | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
commit 8676b47d16a1670a4d6ebbc610e8a00abd2367f7
Merge: 6423ab8 1f33e95
Author: Daniel Rentz <dr@openoffice.org>
Date: Fri Aug 13 11:29:46 2010 +0200
mib18: rebase to OOO330m4
commit 6423ab81e71f7090d61e81b8992878ce7de43f27
Merge: 6e0de89 772dd5e
Author: Andreas Bregas <ab@openoffice.org>
Date: Wed Aug 11 08:28:57 2010 +0200
mib18: Merge
commit 772dd5e59b0b28c3e24cac6ae52ea0141b39c240
Author: Daniel Rentz <dr@openoffice.org>
Date: Tue Aug 10 20:18:10 2010 +0200
mib18: adjusted service name to match VBA symbol
sc/source/ui/vba/vbaglobals.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 9725c306fd4502fc6de7d4acf5c302427310a20d
Author: Michael E. Bohn <mbn@openoffice.org>
Date: Tue Aug 10 18:14:58 2010 +0200
mib18: #163259# implementation of global symbol Excel
sc/source/ui/vba/vbaglobals.cxx | 9 +++++++++
sc/source/ui/vba/vbaglobals.hxx | 1 +
2 files changed, 10 insertions(+), 0 deletions(-)
commit ff7c55aff1293fb51c8ab268d0f478480b0c5685
Merge: 80722e0 6e0de89
Author: Michael E. Bohn <mbn@openoffice.org>
Date: Tue Aug 10 16:57:47 2010 +0200
heads merged
commit 80722e0f75ad7d3204f39a580df2f48412e001c3
Author: Michael E. Bohn <mbn@openoffice.org>
Date: Tue Aug 10 16:55:52 2010 +0200
mib18: #163120# adding the entrypoint for symbol Debug
sc/source/ui/vba/vbaglobals.cxx | 19 +++++++++++++++++++
sc/source/ui/vba/vbaglobals.hxx | 2 +-
2 files changed, 20 insertions(+), 1 deletions(-)
commit 6e0de8945fbfbee500e0fc9bfa26aaa67abeafa4
Author: Daniel Rentz <dr@openoffice.org>
Date: Tue Aug 10 11:52:54 2010 +0200
mib18: #163243# enable regular expressions in VBA symbol Range.Find
sc/source/ui/vba/vbarange.cxx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
commit d0093c4e1b54648d1e09c16b389519fdf2564f6e
Author: Daniel Rentz <dr@openoffice.org>
Date: Tue Aug 10 10:27:30 2010 +0200
mib18: #163246# add VBA symbol Worksheet.ProtectScenarios
sc/source/ui/vba/vbaworksheet.cxx | 10 ++++++++--
sc/source/ui/vba/vbaworksheet.hxx | 1 +
2 files changed, 9 insertions(+), 2 deletions(-)
commit b9876f93ddc6eaa0e5cf4aaf62cd19d3a08776c4
Author: Michael E. Bohn <mbn@openoffice.org>
Date: Tue Aug 10 06:57:53 2010 +0200
mib18: #163148# creation og basic modules in library Standard during Workbooks.add
sc/source/ui/vba/vbaworkbooks.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 80e4fe02a80b90182180c409d2f4f803562e02b8
Merge: 36f7091 81cec49
Author: Andreas Bregas <ab@openoffice.org>
Date: Fri Aug 6 09:39:35 2010 +0200
mib18: Merge
commit 81cec496df67c85bb1b64ef7d15c9f73987882a0
Author: Daniel Rentz <dr@openoffice.org>
Date: Thu Aug 5 15:43:06 2010 +0200
mib18: #162503# do not create a new Worksheet object in Workbook.ActiveSheet but return existing object supporting VBA module access
sc/source/ui/vba/vbaworkbook.cxx | 19 +++++++++++--------
sc/source/ui/vba/vbaworksheets.cxx | 2 +-
2 files changed, 12 insertions(+), 9 deletions(-)
commit 36f709143ffc8056ece58e93e155a6dab9831cd9
Author: Daniel Rentz <dr@openoffice.org>
Date: Wed Aug 4 18:13:02 2010 +0200
mib18: #162938# add VBA symbol Worksheet.AutoFilterMode
sc/source/ui/vba/vbaworksheet.cxx | 37 ++++++++++++++++++++++++++++++++++++-
sc/source/ui/vba/vbaworksheet.hxx | 5 +++++
2 files changed, 41 insertions(+), 1 deletions(-)
commit c650f967f769e4da07f669f60e1f7a636d7e9614
Author: Daniel Rentz <dr@openoffice.org>
Date: Wed Aug 4 16:00:21 2010 +0200
mib18: #163200# full rework of VBA symbols Application.Intersect and Application.Union
sc/source/ui/vba/makefile.mk | 92 +++---
sc/source/ui/vba/vbaapplication.cxx | 599 ++++++++++++++---------------------
2 files changed, 281 insertions(+), 410 deletions(-)
commit 5fa3d6e55b2ab5aac185c10293f8c6a1b7264e63
Author: Daniel Rentz <dr@openoffice.org>
Date: Wed Aug 4 09:59:00 2010 +0200
mib18: #163198# VBA Names collection must return VBA Name objects
sc/source/ui/vba/vbanames.cxx | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
commit 783c57ec2174b11b06ec29ecb1ae6b9b87996bf6
Author: Daniel Rentz <dr@openoffice.org>
Date: Wed Aug 4 09:58:00 2010 +0200
mib18: #163195# set correct parent for range returned by VBA ActiveCell symbol
sc/source/ui/vba/vbaapplication.cxx | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
commit 32876274fc8fae906bdb52e76059ddedadfa8572
Author: Daniel Rentz <dr@openoffice.org>
Date: Wed Aug 4 09:56:54 2010 +0200
mib18: #162937# extract all integer and floating values from an 'Any' for Boolean parameters
sc/source/ui/vba/vbarange.cxx | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
commit faa445a0730322e8522999ffb30fdde97bb9b9b9
Author: Daniel Rentz <dr@openoffice.org>
Date: Wed Aug 4 09:54:13 2010 +0200
mib18: #162039# clear covered cells when merging via VBA MergeCells symbol
sc/source/ui/vba/vbarange.cxx | 27 ++++++++++++++++++++++++---
1 files changed, 24 insertions(+), 3 deletions(-)
Notes
split repo tag: calc_OOO_BUILD_3_2_98_1
Diffstat (limited to 'sc/source/ui/inc')
246 files changed, 6872 insertions, 6872 deletions
diff --git a/sc/source/ui/inc/AccessibilityHints.hxx b/sc/source/ui/inc/AccessibilityHints.hxx index 8d966a78fa7f..f77e91efee3e 100644 --- a/sc/source/ui/inc/AccessibilityHints.hxx +++ b/sc/source/ui/inc/AccessibilityHints.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,10 +33,10 @@ #include <svl/smplhint.hxx> #include <svl/hint.hxx> -#define SC_HINT_ACC_SIMPLE_START SFX_HINT_USER00 -#define SC_HINT_ACC_TABLECHANGED SC_HINT_ACC_SIMPLE_START + 1 -#define SC_HINT_ACC_CURSORCHANGED SC_HINT_ACC_SIMPLE_START + 2 -#define SC_HINT_ACC_VISAREACHANGED SC_HINT_ACC_SIMPLE_START + 3 +#define SC_HINT_ACC_SIMPLE_START SFX_HINT_USER00 +#define SC_HINT_ACC_TABLECHANGED SC_HINT_ACC_SIMPLE_START + 1 +#define SC_HINT_ACC_CURSORCHANGED SC_HINT_ACC_SIMPLE_START + 2 +#define SC_HINT_ACC_VISAREACHANGED SC_HINT_ACC_SIMPLE_START + 3 #define SC_HINT_ACC_ENTEREDITMODE SC_HINT_ACC_SIMPLE_START + 4 #define SC_HINT_ACC_LEAVEEDITMODE SC_HINT_ACC_SIMPLE_START + 5 #define SC_HINT_ACC_MAKEDRAWLAYER SC_HINT_ACC_SIMPLE_START + 6 @@ -48,7 +48,7 @@ class ScAccWinFocusLostHint : public SfxHint xOldAccessible; public: TYPEINFO(); - ScAccWinFocusLostHint( + ScAccWinFocusLostHint( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld ); ~ScAccWinFocusLostHint(); @@ -62,7 +62,7 @@ class ScAccWinFocusGotHint : public SfxHint xNewAccessible; public: TYPEINFO(); - ScAccWinFocusGotHint( + ScAccWinFocusGotHint( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew ); ~ScAccWinFocusGotHint(); @@ -72,26 +72,26 @@ public: class ScAccGridWinFocusLostHint : public ScAccWinFocusLostHint { - ScSplitPos eOldGridWin; + ScSplitPos eOldGridWin; public: TYPEINFO(); - ScAccGridWinFocusLostHint( ScSplitPos eOldGridWin, + ScAccGridWinFocusLostHint( ScSplitPos eOldGridWin, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld ); ~ScAccGridWinFocusLostHint(); - ScSplitPos GetOldGridWin() const { return eOldGridWin; } + ScSplitPos GetOldGridWin() const { return eOldGridWin; } }; class ScAccGridWinFocusGotHint : public ScAccWinFocusGotHint { - ScSplitPos eNewGridWin; + ScSplitPos eNewGridWin; public: TYPEINFO(); ScAccGridWinFocusGotHint( ScSplitPos eNewGridWin, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew ); ~ScAccGridWinFocusGotHint(); - ScSplitPos GetNewGridWin() const { return eNewGridWin; } + ScSplitPos GetNewGridWin() const { return eNewGridWin; } }; #endif diff --git a/sc/source/ui/inc/AccessibleCell.hxx b/sc/source/ui/inc/AccessibleCell.hxx index 38dfdc483886..dc639994e240 100644 --- a/sc/source/ui/inc/AccessibleCell.hxx +++ b/sc/source/ui/inc/AccessibleCell.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,12 +40,12 @@ class ScTabViewShell; class ScAccessibleDocument; -/** @descr +/** @descr This base class provides an implementation of the <code>AccessibleCell</code> service. */ class ScAccessibleCell - : public ScAccessibleCellBase, + : public ScAccessibleCellBase, public accessibility::AccessibleStaticTextBase { public: @@ -89,31 +89,31 @@ public: throw (::com::sun::star::uno::RuntimeException); protected: - /// Return the object's current bounding box relative to the desktop. + /// Return the object's current bounding box relative to the desktop. virtual Rectangle GetBoundingBoxOnScreen(void) const throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the parent object. + /// Return the object's current bounding box relative to the parent object. virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); public: ///===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. // is overloaded to calculate this on demand virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. // is overloaded to calculate this on demand virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) @@ -126,7 +126,7 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) diff --git a/sc/source/ui/inc/AccessibleCellBase.hxx b/sc/source/ui/inc/AccessibleCellBase.hxx index 2bcef463480d..d0c82c0dfef7 100644 --- a/sc/source/ui/inc/AccessibleCellBase.hxx +++ b/sc/source/ui/inc/AccessibleCellBase.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,7 +41,7 @@ typedef cppu::ImplHelper1< ::com::sun::star::accessibility::XAccessibleValue> ScAccessibleCellBaseImpl; class ScAccessibleCellBase - : public ScAccessibleContextBase, + : public ScAccessibleContextBase, public ScAccessibleCellBaseImpl { public: @@ -58,12 +58,12 @@ public: ///===== XInterface ===================================================== - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( - ::com::sun::star::uno::Type const & rType ) + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( + ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL acquire() throw (); - + virtual void SAL_CALL release() throw (); ///===== XAccessibleComponent ============================================ @@ -71,26 +71,26 @@ public: virtual sal_Bool SAL_CALL isVisible( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getForeground( ) + virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getBackground( ) + virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException); ///===== XAccessibleContext ============================================== - /// Return this objects index among the parents children. - virtual sal_Int32 SAL_CALL + /// Return this objects index among the parents children. + virtual sal_Int32 SAL_CALL getAccessibleIndexInParent(void) throw (::com::sun::star::uno::RuntimeException); protected: - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); @@ -116,7 +116,7 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -125,11 +125,11 @@ public: ///===== XTypeProvider =================================================== /// returns the possible types - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL - getTypes() + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL + getTypes() throw (::com::sun::star::uno::RuntimeException); - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) @@ -147,7 +147,7 @@ private: const com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); }; - + #endif diff --git a/sc/source/ui/inc/AccessibleContextBase.hxx b/sc/source/ui/inc/AccessibleContextBase.hxx index ecfeff96af39..51313ba83788 100644 --- a/sc/source/ui/inc/AccessibleContextBase.hxx +++ b/sc/source/ui/inc/AccessibleContextBase.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -55,7 +55,7 @@ class Rectangle; -/** @descr +/** @descr This base class provides an implementation of the <code>AccessibleContext</code> service. */ @@ -73,7 +73,7 @@ typedef cppu::ImplHelper1< > ScAccessibleContextBaseImplEvent; class ScAccessibleContextBase - : public comphelper::OBaseMutex, + : public comphelper::OBaseMutex, public ScAccessibleContextBaseWeakImpl, public ScAccessibleContextBaseImplEvent, public SfxListener @@ -109,7 +109,7 @@ public: ///===== XAccessible ===================================================== - /// Return the XAccessibleContext. + /// Return the XAccessibleContext. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext> SAL_CALL getAccessibleContext(void) throw (::com::sun::star::uno::RuntimeException); @@ -145,62 +145,62 @@ public: virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getForeground( ) + virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getBackground( ) + virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException); ///===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException); - /// Return a reference to the parent. + /// Return a reference to the parent. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleParent(void) throw (::com::sun::star::uno::RuntimeException); - /// Return this objects index among the parents children. - virtual sal_Int32 SAL_CALL + /// Return this objects index among the parents children. + virtual sal_Int32 SAL_CALL getAccessibleIndexInParent(void) throw (::com::sun::star::uno::RuntimeException); - /// Return this object's role. + /// Return this object's role. virtual sal_Int16 SAL_CALL getAccessibleRole(void) throw (::com::sun::star::uno::RuntimeException); - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL getAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL getAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); - /// Return NULL to indicate that an empty relation set. + /// Return NULL to indicate that an empty relation set. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet> SAL_CALL getAccessibleRelationSet(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) throw (::com::sun::star::uno::RuntimeException); - /** Return the parents locale or throw exception if this object has no + /** Return the parents locale or throw exception if this object has no parent yet/anymore. */ virtual ::com::sun::star::lang::Locale SAL_CALL @@ -210,7 +210,7 @@ public: ///===== XAccessibleEventBroadcaster ===================================== - /** Add listener that is informed of future changes of name, + /** Add listener that is informed of future changes of name, description and so on events. */ virtual void SAL_CALL @@ -219,7 +219,7 @@ public: ::com::sun::star::accessibility::XAccessibleEventListener>& xListener) throw (com::sun::star::uno::RuntimeException); - // Remove an existing event listener. + // Remove an existing event listener. virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< @@ -239,13 +239,13 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw (::com::sun::star::uno::RuntimeException); - /** Return whether the specified service is supported by this class. + /** Return whether the specified service is supported by this class. */ virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& sServiceName) @@ -265,28 +265,28 @@ public: getTypes() throw (::com::sun::star::uno::RuntimeException); - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) throw (::com::sun::star::uno::RuntimeException); protected: - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the desktop. + /// Return the object's current bounding box relative to the desktop. virtual Rectangle GetBoundingBoxOnScreen(void) const throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the parent object. + /// Return the object's current bounding box relative to the parent object. virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); @@ -316,18 +316,18 @@ protected: /// Use this method to set initial Description without notification void SetDescription(const rtl::OUString& rDesc) { msDescription = rDesc; } - /// Reference to the parent object. + /// Reference to the parent object. ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> mxParent; private: - /** Description of this object. This is not a constant because it can + /** Description of this object. This is not a constant because it can be set from the outside. Furthermore, it changes according the the draw page's display mode. */ ::rtl::OUString msDescription; - /** Name of this object. It changes according the the draw page's + /** Name of this object. It changes according the the draw page's display mode. */ ::rtl::OUString msName; diff --git a/sc/source/ui/inc/AccessibleCsvControl.hxx b/sc/source/ui/inc/AccessibleCsvControl.hxx index 14f48b51efc1..051e1b11c0fb 100644 --- a/sc/source/ui/inc/AccessibleCsvControl.hxx +++ b/sc/source/ui/inc/AccessibleCsvControl.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/AccessibleDataPilotControl.hxx b/sc/source/ui/inc/AccessibleDataPilotControl.hxx index c86d598b6e9c..c3be6d4096a0 100644 --- a/sc/source/ui/inc/AccessibleDataPilotControl.hxx +++ b/sc/source/ui/inc/AccessibleDataPilotControl.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,7 +35,7 @@ class ScDPFieldWindow; class ScAccessibleDataPilotButton; class ScAccessibleDataPilotControl - : public ScAccessibleContextBase + : public ScAccessibleContextBase { public: //===== internal ======================================================== @@ -71,25 +71,25 @@ public: virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getForeground( ) + virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getBackground( ) + virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException); ///===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) @@ -97,7 +97,7 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -105,28 +105,28 @@ public: ///===== XTypeProvider =================================================== - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) throw (::com::sun::star::uno::RuntimeException); protected: - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the desktop. + /// Return the object's current bounding box relative to the desktop. virtual Rectangle GetBoundingBoxOnScreen(void) const throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the parent object. + /// Return the object's current bounding box relative to the parent object. virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); diff --git a/sc/source/ui/inc/AccessibleDocument.hxx b/sc/source/ui/inc/AccessibleDocument.hxx index 2ec612e0865b..ebb989b53ad0 100644 --- a/sc/source/ui/inc/AccessibleDocument.hxx +++ b/sc/source/ui/inc/AccessibleDocument.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,7 +50,7 @@ namespace utl class AccessibleRelationSetHelper; } -/** @descr +/** @descr This base class provides an implementation of the <code>AccessibleContext</code> service. */ @@ -60,7 +60,7 @@ typedef cppu::ImplHelper2< ::com::sun::star::accessibility::XAccessibleSelection ScAccessibleDocumentImpl; class ScAccessibleDocument - : public ScAccessibleDocumentBase, + : public ScAccessibleDocumentBase, public ScAccessibleDocumentImpl, public accessibility::IAccessibleViewForwarder { @@ -71,7 +71,7 @@ public: ::com::sun::star::accessibility::XAccessible>& rxParent, ScTabViewShell* pViewShell, ScSplitPos eSplitPos); - + virtual void Init(); @@ -91,12 +91,12 @@ public: ///===== XInterface ===================================================== - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( - ::com::sun::star::uno::Type const & rType ) + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( + ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL acquire() throw (); - + virtual void SAL_CALL release() throw (); ///===== XAccessibleComponent ============================================ @@ -111,18 +111,18 @@ public: ///===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) @@ -130,42 +130,42 @@ public: ///===== XAccessibleSelection =========================================== - virtual void SAL_CALL - selectAccessibleChild( sal_Int32 nChildIndex ) - throw (::com::sun::star::lang::IndexOutOfBoundsException, + virtual void SAL_CALL + selectAccessibleChild( sal_Int32 nChildIndex ) + throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL - isAccessibleChildSelected( sal_Int32 nChildIndex ) + virtual sal_Bool SAL_CALL + isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL - clearAccessibleSelection( ) + virtual void SAL_CALL + clearAccessibleSelection( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL - selectAllAccessibleChildren( ) + virtual void SAL_CALL + selectAllAccessibleChildren( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL - getSelectedAccessibleChildCount( ) + virtual sal_Int32 SAL_CALL + getSelectedAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > SAL_CALL - getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) + ::com::sun::star::accessibility::XAccessible > SAL_CALL + getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL - deselectAccessibleChild( sal_Int32 nChildIndex ) + virtual void SAL_CALL + deselectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); ///===== XSelectionListener ============================================= - virtual void SAL_CALL selectionChanged( const ::com::sun::star::lang::EventObject& aEvent ) + virtual void SAL_CALL selectionChanged( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) @@ -173,7 +173,7 @@ public: ///===== XServiceInfo =================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -188,11 +188,11 @@ public: ///===== XTypeProvider =================================================== /// returns the possible types - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL - getTypes() + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL + getTypes() throw (::com::sun::star::uno::RuntimeException); - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) @@ -211,7 +211,7 @@ public: /** Returns the area of the underlying document that is visible in the * corresponding window. - @return + @return The rectangle of the visible part of the document. The values are, contrary to the base class, in internal coordinates. */ @@ -223,7 +223,7 @@ public: @param rPoint Point in internal coordinates. - @return + @return The same point but in screen coordinates relative to the upper left corner of the (current) screen. */ @@ -235,7 +235,7 @@ public: @param rSize Size in internal coordinates. - @return + @return The same size but in screen coordinates. */ virtual Size LogicToPixel (const Size& rSize) const; @@ -247,7 +247,7 @@ public: Point in screen coordinates relative to the upper left corner of the (current) screen. - @return + @return The same point but in internal coordinates. */ virtual Point PixelToLogic (const Point& rPoint) const; @@ -264,7 +264,7 @@ public: virtual Size PixelToLogic (const Size& rSize) const; ///======== internal ===================================================== - + utl::AccessibleRelationSetHelper* GetRelationSet(const ScAddress* pAddress) const; ::com::sun::star::uno::Reference @@ -272,27 +272,27 @@ public: GetAccessibleSpreadsheet(); protected: - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the desktop. + /// Return the object's current bounding box relative to the desktop. virtual Rectangle GetBoundingBoxOnScreen(void) const throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the parent object. + /// Return the object's current bounding box relative to the parent object. virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); private: - ScTabViewShell* mpViewShell; - ScSplitPos meSplitPos; + ScTabViewShell* mpViewShell; + ScSplitPos meSplitPos; ScAccessibleSpreadsheet* mpAccessibleSpreadsheet; ScChildrenShapes* mpChildrenShapes; ScAccessibleEditObject* mpTempAccEdit; diff --git a/sc/source/ui/inc/AccessibleDocumentBase.hxx b/sc/source/ui/inc/AccessibleDocumentBase.hxx index fc76a8d771cf..a897485f0d46 100644 --- a/sc/source/ui/inc/AccessibleDocumentBase.hxx +++ b/sc/source/ui/inc/AccessibleDocumentBase.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,7 +34,7 @@ #endif class ScAccessibleDocumentBase - : public ScAccessibleContextBase + : public ScAccessibleContextBase { public: //===== internal ======================================================== @@ -42,7 +42,7 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible>& rxParent); protected: - virtual ~ScAccessibleDocumentBase (void); + virtual ~ScAccessibleDocumentBase (void); }; diff --git a/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx b/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx index 8ce9050c6094..eb7c5c32ddd5 100644 --- a/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx +++ b/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,7 +38,7 @@ class ScAccessiblePreviewTable; class ScAccessiblePageHeader; class ScAccessibleDocumentPagePreview - : public ScAccessibleDocumentBase + : public ScAccessibleDocumentBase { public: //===== internal ======================================================== @@ -72,18 +72,18 @@ public: ///===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) @@ -91,7 +91,7 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -105,7 +105,7 @@ public: ///===== XTypeProvider =================================================== - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) @@ -119,28 +119,28 @@ public: //UNUSED2009-05 void ChildCountChanged(); protected: - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); public: // needed in ScShapeChilds - /// Return the object's current bounding box relative to the desktop. + /// Return the object's current bounding box relative to the desktop. virtual Rectangle GetBoundingBoxOnScreen(void) const throw (::com::sun::star::uno::RuntimeException); protected: - /// Return the object's current bounding box relative to the parent object. + /// Return the object's current bounding box relative to the parent object. virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); private: - ScPreviewShell* mpViewShell; + ScPreviewShell* mpViewShell; ScNotesChilds* mpNotesChilds; ScShapeChilds* mpShapeChilds; ScAccessiblePreviewTable* mpTable; diff --git a/sc/source/ui/inc/AccessibleEditObject.hxx b/sc/source/ui/inc/AccessibleEditObject.hxx index 55bb92f13424..86fc05600b36 100644 --- a/sc/source/ui/inc/AccessibleEditObject.hxx +++ b/sc/source/ui/inc/AccessibleEditObject.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,19 +45,19 @@ enum EditObjectType EditControl }; -/** @descr +/** @descr This base class provides an implementation of the <code>AccessibleCell</code> service. */ class ScAccessibleEditObject - : public ScAccessibleContextBase + : public ScAccessibleContextBase { public: //===== internal ======================================================== ScAccessibleEditObject( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible>& rxParent, - EditView* pEditView, Window* pWin, const rtl::OUString& rName, + EditView* pEditView, Window* pWin, const rtl::OUString& rName, const rtl::OUString& rDescription, EditObjectType eObjectType); protected: @@ -84,43 +84,43 @@ public: throw (::com::sun::star::uno::RuntimeException); protected: - /// Return the object's current bounding box relative to the desktop. + /// Return the object's current bounding box relative to the desktop. virtual Rectangle GetBoundingBoxOnScreen(void) const throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the parent object. + /// Return the object's current bounding box relative to the parent object. virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); public: ///===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. // is overloaded to calculate this on demand virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. // is overloaded to calculate this on demand virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) throw (::com::sun::star::uno::RuntimeException); protected: - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); @@ -128,7 +128,7 @@ protected: public: ///===== XAccessibleEventBroadcaster ===================================== - /** Add listener that is informed of future changes of name, + /** Add listener that is informed of future changes of name, description and so on events. */ virtual void SAL_CALL @@ -137,7 +137,7 @@ public: ::com::sun::star::accessibility::XAccessibleEventListener>& xListener) throw (com::sun::star::uno::RuntimeException); - // Remove an existing event listener. + // Remove an existing event listener. virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< @@ -146,7 +146,7 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -154,7 +154,7 @@ public: ///===== XTypeProvider =================================================== - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) diff --git a/sc/source/ui/inc/AccessiblePageHeader.hxx b/sc/source/ui/inc/AccessiblePageHeader.hxx index 1e28670419a4..859ed4692331 100644 --- a/sc/source/ui/inc/AccessiblePageHeader.hxx +++ b/sc/source/ui/inc/AccessiblePageHeader.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -62,7 +62,7 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); //===== XAccessibleContext ============================================== @@ -93,9 +93,9 @@ protected: virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); private: - ScPreviewShell* mpViewShell; - sal_Int32 mnIndex; - sal_Bool mbHeader; + ScPreviewShell* mpViewShell; + sal_Int32 mnIndex; + sal_Bool mbHeader; typedef std::vector< ScAccessiblePageHeaderArea* > ScHFAreas; ScHFAreas maAreas; sal_Int32 mnChildCount; diff --git a/sc/source/ui/inc/AccessiblePageHeaderArea.hxx b/sc/source/ui/inc/AccessiblePageHeaderArea.hxx index dbf7c126b617..b40ad8d973f8 100644 --- a/sc/source/ui/inc/AccessiblePageHeaderArea.hxx +++ b/sc/source/ui/inc/AccessiblePageHeaderArea.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,7 +42,7 @@ namespace accessibility class ScPreviewShell; class ScAccessiblePageHeaderArea - : public ScAccessibleContextBase + : public ScAccessibleContextBase { public: //===== internal ======================================================== @@ -54,7 +54,7 @@ public: sal_Bool bHeader, SvxAdjust eAdjust); protected: - virtual ~ScAccessiblePageHeaderArea (void); + virtual ~ScAccessiblePageHeaderArea (void); public: const EditTextObject* GetEditTextObject() const { return mpEditObj; } @@ -74,20 +74,20 @@ public: ///===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. // is overloaded to calculate this on demand virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. // is overloaded to calculate this on demand virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) @@ -95,7 +95,7 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -110,7 +110,7 @@ public: ///===== XTypeProvider =================================================== - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) diff --git a/sc/source/ui/inc/AccessiblePreviewCell.hxx b/sc/source/ui/inc/AccessiblePreviewCell.hxx index 47a2be3b6713..10e234624b99 100644 --- a/sc/source/ui/inc/AccessiblePreviewCell.hxx +++ b/sc/source/ui/inc/AccessiblePreviewCell.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -65,7 +65,7 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); //===== XAccessibleContext ============================================== @@ -88,7 +88,7 @@ public: ///===== XTypeProvider =================================================== - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) diff --git a/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx b/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx index 520abe7c53c3..95032e335309 100644 --- a/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx +++ b/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -71,12 +71,12 @@ public: ///===== XInterface ===================================================== - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( - ::com::sun::star::uno::Type const & rType ) + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( + ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL acquire() throw (); - + virtual void SAL_CALL release() throw (); //===== XAccessibleValue ================================================ @@ -92,7 +92,7 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); //===== XAccessibleContext ============================================== @@ -114,11 +114,11 @@ public: ///===== XTypeProvider =================================================== - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL - getTypes() + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL + getTypes() throw (::com::sun::star::uno::RuntimeException); - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) @@ -132,20 +132,20 @@ protected: virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); private: - ScPreviewShell* mpViewShell; + ScPreviewShell* mpViewShell; accessibility::AccessibleTextHelper* mpTextHelper; - sal_Int32 mnIndex; - ScAddress maCellPos; - sal_Bool mbColumnHeader; - sal_Bool mbRowHeader; - mutable ScPreviewTableInfo* mpTableInfo; + sal_Int32 mnIndex; + ScAddress maCellPos; + sal_Bool mbColumnHeader; + sal_Bool mbRowHeader; + mutable ScPreviewTableInfo* mpTableInfo; sal_Bool IsDefunc( const com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); void CreateTextHelper(); - void FillTableInfo() const; + void FillTableInfo() const; }; diff --git a/sc/source/ui/inc/AccessiblePreviewTable.hxx b/sc/source/ui/inc/AccessiblePreviewTable.hxx index 6d9ae3c3025f..54627008cda4 100644 --- a/sc/source/ui/inc/AccessiblePreviewTable.hxx +++ b/sc/source/ui/inc/AccessiblePreviewTable.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -63,12 +63,12 @@ public: ///===== XInterface ===================================================== - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( - ::com::sun::star::uno::Type const & rType ) + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( + ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL acquire() throw (); - + virtual void SAL_CALL release() throw (); //===== XAccessibleTable ================================================ @@ -127,7 +127,7 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException); //===== XAccessibleContext ============================================== @@ -149,8 +149,8 @@ public: //===== XTypeProvider =================================================== - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL - getTypes() + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL + getTypes() throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() @@ -167,15 +167,15 @@ protected: virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); private: - ScPreviewShell* mpViewShell; - sal_Int32 mnIndex; - mutable ScPreviewTableInfo* mpTableInfo; + ScPreviewShell* mpViewShell; + sal_Int32 mnIndex; + mutable ScPreviewTableInfo* mpTableInfo; sal_Bool IsDefunc( const com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); - void FillTableInfo() const; + void FillTableInfo() const; }; diff --git a/sc/source/ui/inc/AccessibleSpreadsheet.hxx b/sc/source/ui/inc/AccessibleSpreadsheet.hxx index 87447285dea2..455685cb9dd8 100644 --- a/sc/source/ui/inc/AccessibleSpreadsheet.hxx +++ b/sc/source/ui/inc/AccessibleSpreadsheet.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,19 +54,19 @@ class ScTabViewShell; class ScAccessibleDocument; class ScAccessibleCell; -/** @descr +/** @descr This base class provides an implementation of the <code>AccessibleTable</code> service. */ class ScAccessibleSpreadsheet - : public ScAccessibleTableBase + : public ScAccessibleTableBase { public: //===== internal ======================================================== ScAccessibleSpreadsheet( ScAccessibleDocument* pAccDoc, ScTabViewShell* pViewShell, - SCTAB nTab, + SCTAB nTab, ScSplitPos eSplitPos); protected: ScAccessibleSpreadsheet( @@ -169,13 +169,13 @@ public: ///===== XAccessibleContext ============================================== - /// Return NULL to indicate that an empty relation set. + /// Return NULL to indicate that an empty relation set. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet> SAL_CALL getAccessibleRelationSet(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the set of current states. + /// Return the set of current states. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) @@ -213,7 +213,7 @@ public: ///===== XServiceInfo ==================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -227,7 +227,7 @@ public: ///===== XTypeProvider =================================================== - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) @@ -235,7 +235,7 @@ public: ///===== XAccessibleEventBroadcaster ===================================== - /** Add listener that is informed of future changes of name, + /** Add listener that is informed of future changes of name, description and so on events. */ virtual void SAL_CALL @@ -245,26 +245,26 @@ public: throw (com::sun::star::uno::RuntimeException); protected: - /// Return the object's current bounding box relative to the desktop. + /// Return the object's current bounding box relative to the desktop. virtual Rectangle GetBoundingBoxOnScreen(void) const throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current bounding box relative to the parent object. + /// Return the object's current bounding box relative to the parent object. virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); private: ScTabViewShell* mpViewShell; - ScRangeList* mpMarkedRanges; + ScRangeList* mpMarkedRanges; std::vector<ScMyAddress>* mpSortedMarkedCells; ScAccessibleDocument* mpAccDoc; ScAccessibleCell* mpAccCell; - Rectangle maVisCells; - ScSplitPos meSplitPos; - ScAddress maActiveCell; + Rectangle maVisCells; + ScSplitPos meSplitPos; + ScAddress maActiveCell; SCTAB mnTab; sal_Bool mbIsSpreadsheet; - sal_Bool mbHasSelection; - sal_Bool mbDelIns; + sal_Bool mbHasSelection; + sal_Bool mbDelIns; sal_Bool mbIsFocusSend; sal_Bool IsDefunc( @@ -281,8 +281,8 @@ private: void AddMarkedRange(const ScRange& rRange); ScDocument* GetDocument(ScTabViewShell* pViewShell); - Rectangle GetVisArea(ScTabViewShell* pViewShell, ScSplitPos eSplitPos); - Rectangle GetVisCells(const Rectangle& rVisArea); + Rectangle GetVisArea(ScTabViewShell* pViewShell, ScSplitPos eSplitPos); + Rectangle GetVisCells(const Rectangle& rVisArea); }; diff --git a/sc/source/ui/inc/AccessibleTableBase.hxx b/sc/source/ui/inc/AccessibleTableBase.hxx index 017ef4dfca3f..84f000f66b94 100644 --- a/sc/source/ui/inc/AccessibleTableBase.hxx +++ b/sc/source/ui/inc/AccessibleTableBase.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,7 +38,7 @@ class ScTabViewShell; -/** @descr +/** @descr This base class provides an implementation of the <code>AccessibleTable</code> service. */ @@ -191,13 +191,13 @@ public: //===== XAccessibleContext ============================================== - /// Return the number of currently visible children. + /// Return the number of currently visible children. // is overloaded to calculate this on demand virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the specified child or NULL if index is invalid. + /// Return the specified child or NULL if index is invalid. // is overloaded to calculate this on demand virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) @@ -205,24 +205,24 @@ public: ::com::sun::star::lang::IndexOutOfBoundsException); protected: - /// Return this object's description. + /// Return this object's description. virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the object's current name. + /// Return the object's current name. virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); public: - /// Return NULL to indicate that an empty relation set. + /// Return NULL to indicate that an empty relation set. virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet> SAL_CALL getAccessibleRelationSet(void) throw (::com::sun::star::uno::RuntimeException); - /// Return the set of current states. + /// Return the set of current states. // perhaps sometimes to be implemented virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL @@ -266,7 +266,7 @@ public: ///===== XServiceInfo =================================================== - /** Returns an identifier for the implementation of this object. + /** Returns an identifier for the implementation of this object. */ virtual ::rtl::OUString SAL_CALL getImplementationName(void) @@ -279,7 +279,7 @@ public: getTypes() throw (::com::sun::star::uno::RuntimeException); - /** Returns a implementation id. + /** Returns a implementation id. */ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(void) @@ -289,7 +289,7 @@ protected: /// contains the range of the table, because it could be a subrange of the complete table ScRange maRange; - ScDocument* mpDoc; + ScDocument* mpDoc; void CommitTableModelChange(sal_Int32 nStartRow, sal_Int32 nStartCol, sal_Int32 nEndRow, sal_Int32 nEndCol, sal_uInt16 nId); }; diff --git a/sc/source/ui/inc/AccessibleText.hxx b/sc/source/ui/inc/AccessibleText.hxx index 0a61280a574a..cc3d70af5cf7 100644 --- a/sc/source/ui/inc/AccessibleText.hxx +++ b/sc/source/ui/inc/AccessibleText.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -52,9 +52,9 @@ class ScAccessibleTextData : public SfxListener { public: ScAccessibleTextData() {} - virtual ~ScAccessibleTextData() {} + virtual ~ScAccessibleTextData() {} - virtual ScAccessibleTextData* Clone() const = 0; + virtual ScAccessibleTextData* Clone() const = 0; virtual void Notify( SfxBroadcaster& /* rBC */, const SfxHint& /* rHint */ ) {} @@ -63,15 +63,15 @@ public: virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate ) = 0; virtual SfxBroadcaster& GetBroadcaster() const { return maBroadcaster; } - virtual void UpdateData() = 0; - virtual void SetDoUpdate(sal_Bool bValue) = 0; - virtual sal_Bool IsDirty() const = 0; + virtual void UpdateData() = 0; + virtual void SetDoUpdate(sal_Bool bValue) = 0; + virtual sal_Bool IsDirty() const = 0; private: mutable SfxBroadcaster maBroadcaster; // prevent the using of this method of the base class - ScSharedCellEditSource* GetOriginalSource() { return NULL; } + ScSharedCellEditSource* GetOriginalSource() { return NULL; } }; @@ -85,28 +85,28 @@ public: const ScAddress& rP) : ScCellTextData(pDocShellP, rP) {} virtual ~ScAccessibleCellBaseTextData() {} - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { ScCellTextData::Notify(rBC, rHint); } + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { ScCellTextData::Notify(rBC, rHint); } - virtual void UpdateData() { ScCellTextData::UpdateData(); } - virtual void SetDoUpdate(sal_Bool bValue) { ScCellTextData::SetDoUpdate(bValue); } - virtual sal_Bool IsDirty() const { return ScCellTextData::IsDirty(); } + virtual void UpdateData() { ScCellTextData::UpdateData(); } + virtual void SetDoUpdate(sal_Bool bValue) { ScCellTextData::SetDoUpdate(bValue); } + virtual sal_Bool IsDirty() const { return ScCellTextData::IsDirty(); } }; // ============================================================================ -// ScAccessibleCellTextData: shared data between sub objects of a accessible cell text object +// ScAccessibleCellTextData: shared data between sub objects of a accessible cell text object class ScAccessibleCellTextData : public ScAccessibleCellBaseTextData { public: ScAccessibleCellTextData(ScTabViewShell* pViewShell, const ScAddress& rP, ScSplitPos eSplitPos, ScAccessibleCell* pAccCell); - virtual ~ScAccessibleCellTextData(); + virtual ~ScAccessibleCellTextData(); - virtual ScAccessibleTextData* Clone() const; + virtual ScAccessibleTextData* Clone() const; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual SvxTextForwarder* GetTextForwarder(); virtual SvxViewForwarder* GetViewForwarder(); @@ -118,13 +118,13 @@ protected: private: ScViewForwarder* mpViewForwarder; ScEditViewForwarder* mpEditViewForwarder; - ScTabViewShell* mpViewShell; + ScTabViewShell* mpViewShell; ScSplitPos meSplitPos; sal_Bool mbViewEditEngine; ScAccessibleCell* mpAccessibleCell; // prevent the using of this method of the base class - ScSharedCellEditSource* GetOriginalSource() { return NULL; } + ScSharedCellEditSource* GetOriginalSource() { return NULL; } using ScAccessibleCellBaseTextData::GetDocShell; ScDocShell* GetDocShell(ScTabViewShell* pViewShell); @@ -137,19 +137,19 @@ class ScAccessibleEditObjectTextData : public ScAccessibleTextData { public: ScAccessibleEditObjectTextData(EditView* pEditView, Window* pWin); - virtual ~ScAccessibleEditObjectTextData(); + virtual ~ScAccessibleEditObjectTextData(); - virtual ScAccessibleTextData* Clone() const; + virtual ScAccessibleTextData* Clone() const; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual SvxTextForwarder* GetTextForwarder(); virtual SvxViewForwarder* GetViewForwarder(); virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate ); - virtual void UpdateData() { } - virtual void SetDoUpdate(sal_Bool /* bValue */) { } - virtual sal_Bool IsDirty() const { return sal_False; } + virtual void UpdateData() { } + virtual void SetDoUpdate(sal_Bool /* bValue */) { } + virtual sal_Bool IsDirty() const { return sal_False; } DECL_LINK( NotifyHdl, EENotify* ); protected: @@ -157,7 +157,7 @@ protected: ScEditViewForwarder* mpEditViewForwarder; EditView* mpEditView; EditEngine* mpEditEngine; - SvxEditEngineForwarder* mpForwarder; + SvxEditEngineForwarder* mpForwarder; Window* mpWindow; }; @@ -193,11 +193,11 @@ class ScAccessiblePreviewCellTextData : public ScAccessibleCellBaseTextData public: ScAccessiblePreviewCellTextData(ScPreviewShell* pViewShell, const ScAddress& rP); - virtual ~ScAccessiblePreviewCellTextData(); + virtual ~ScAccessiblePreviewCellTextData(); - virtual ScAccessibleTextData* Clone() const; + virtual ScAccessibleTextData* Clone() const; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual SvxTextForwarder* GetTextForwarder(); virtual SvxViewForwarder* GetViewForwarder(); @@ -206,10 +206,10 @@ public: //UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* ); private: ScPreviewViewForwarder* mpViewForwarder; - ScPreviewShell* mpViewShell; + ScPreviewShell* mpViewShell; // prevent the using of this method of the base class - ScSharedCellEditSource* GetOriginalSource() { return NULL; } + ScSharedCellEditSource* GetOriginalSource() { return NULL; } using ScAccessibleCellBaseTextData::GetDocShell; ScDocShell* GetDocShell(ScPreviewShell* pViewShell); @@ -223,11 +223,11 @@ class ScAccessiblePreviewHeaderCellTextData : public ScAccessibleCellBaseTextDat public: ScAccessiblePreviewHeaderCellTextData(ScPreviewShell* pViewShell, const String& rText, const ScAddress& rP, sal_Bool bColHeader, sal_Bool bRowHeader); - virtual ~ScAccessiblePreviewHeaderCellTextData(); + virtual ~ScAccessiblePreviewHeaderCellTextData(); - virtual ScAccessibleTextData* Clone() const; + virtual ScAccessibleTextData* Clone() const; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual SvxTextForwarder* GetTextForwarder(); virtual SvxViewForwarder* GetViewForwarder(); @@ -236,13 +236,13 @@ public: //UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* ); private: ScPreviewViewForwarder* mpViewForwarder; - ScPreviewShell* mpViewShell; - String maText; - sal_Bool mbColHeader; - sal_Bool mbRowHeader; + ScPreviewShell* mpViewShell; + String maText; + sal_Bool mbColHeader; + sal_Bool mbRowHeader; // prevent the using of this method of the base class - ScSharedCellEditSource* GetOriginalSource() { return NULL; } + ScSharedCellEditSource* GetOriginalSource() { return NULL; } using ScAccessibleCellBaseTextData::GetDocShell; ScDocShell* GetDocShell(ScPreviewShell* pViewShell); @@ -260,20 +260,20 @@ public: virtual ScAccessibleTextData* Clone() const; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual SvxTextForwarder* GetTextForwarder(); virtual SvxViewForwarder* GetViewForwarder(); virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } - virtual void UpdateData() { } - virtual void SetDoUpdate(sal_Bool /* bValue */) { } - virtual sal_Bool IsDirty() const { return sal_False; } + virtual void UpdateData() { } + virtual void SetDoUpdate(sal_Bool /* bValue */) { } + virtual sal_Bool IsDirty() const { return sal_False; } private: ScPreviewViewForwarder* mpViewForwarder; ScPreviewShell* mpViewShell; - ScEditEngineDefaulter* mpEditEngine; - SvxEditEngineForwarder* mpForwarder; + ScEditEngineDefaulter* mpEditEngine; + SvxEditEngineForwarder* mpForwarder; ScDocShell* mpDocSh; const EditTextObject* mpEditObj; sal_Bool mbHeader; @@ -293,20 +293,20 @@ public: virtual ScAccessibleTextData* Clone() const; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual SvxTextForwarder* GetTextForwarder(); virtual SvxViewForwarder* GetViewForwarder(); virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } - virtual void UpdateData() { } - virtual void SetDoUpdate(sal_Bool /* bValue */) { } - virtual sal_Bool IsDirty() const { return sal_False; } + virtual void UpdateData() { } + virtual void SetDoUpdate(sal_Bool /* bValue */) { } + virtual sal_Bool IsDirty() const { return sal_False; } private: ScPreviewViewForwarder* mpViewForwarder; ScPreviewShell* mpViewShell; - ScEditEngineDefaulter* mpEditEngine; - SvxEditEngineForwarder* mpForwarder; + ScEditEngineDefaulter* mpEditEngine; + SvxEditEngineForwarder* mpForwarder; ScDocShell* mpDocSh; String msText; ScAddress maCellPos; diff --git a/sc/source/ui/inc/ChartRangeSelectionListener.hxx b/sc/source/ui/inc/ChartRangeSelectionListener.hxx index 65c725da5675..a5f010f3199d 100644 --- a/sc/source/ui/inc/ChartRangeSelectionListener.hxx +++ b/sc/source/ui/inc/ChartRangeSelectionListener.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/DrawModelBroadcaster.hxx b/sc/source/ui/inc/DrawModelBroadcaster.hxx index 045e9bc86f41..7930a9cb26e3 100644 --- a/sc/source/ui/inc/DrawModelBroadcaster.hxx +++ b/sc/source/ui/inc/DrawModelBroadcaster.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,15 +45,15 @@ class ScDrawModelBroadcaster : public SfxListener, public: - ScDrawModelBroadcaster( SdrModel *pDrawModel ); + ScDrawModelBroadcaster( SdrModel *pDrawModel ); virtual ~ScDrawModelBroadcaster(); - virtual void SAL_CALL addEventListener( const com::sun::star::uno::Reference< com::sun::star::document::XEventListener >& xListener ) + virtual void SAL_CALL addEventListener( const com::sun::star::uno::Reference< com::sun::star::document::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removeEventListener( const com::sun::star::uno::Reference< com::sun::star::document::XEventListener >& xListener ) + virtual void SAL_CALL removeEventListener( const com::sun::star::uno::Reference< com::sun::star::document::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); }; #endif diff --git a/sc/source/ui/inc/IAnyRefDialog.hxx b/sc/source/ui/inc/IAnyRefDialog.hxx index 70731ac8a1f7..05be4a01047d 100644 --- a/sc/source/ui/inc/IAnyRefDialog.hxx +++ b/sc/source/ui/inc/IAnyRefDialog.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,7 +42,7 @@ class SAL_NO_VTABLE IAnyRefDialog : public formula::IControlReferenceHandler { public: virtual ~IAnyRefDialog(){} - + //virtual void ShowReference(const String& _sRef) = 0; //virtual void HideReference( BOOL bDoneRefMode = TRUE ) = 0; //virtual void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ) = 0; @@ -54,7 +54,7 @@ public: virtual void RefInputDone( BOOL bForced = FALSE ) = 0; virtual BOOL IsTableLocked() const = 0; virtual BOOL IsRefInputMode() const = 0; - + virtual BOOL IsDocAllowed( SfxObjectShell* pDocSh ) const = 0; virtual void AddRefEntry() = 0; virtual void SetActive() = 0; diff --git a/sc/source/ui/inc/ScDevChart.hxx b/sc/source/ui/inc/ScDevChart.hxx index a08a89da0570..c7e65332768f 100644 --- a/sc/source/ui/inc/ScDevChart.hxx +++ b/sc/source/ui/inc/ScDevChart.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/acredlin.hrc b/sc/source/ui/inc/acredlin.hrc index b21676ee6ae9..468c57333780 100644 --- a/sc/source/ui/inc/acredlin.hrc +++ b/sc/source/ui/inc/acredlin.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,48 +28,48 @@ #include "sc.hrc" // -> RID_SCDLG_CHANGES #define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_HELP 5 +#define BTN_CANCEL 2 +#define BTN_HELP 5 // -#define CTR_REDLINING 10 -#define TP_FILTER 11 -#define TP_VIEW 12 +#define CTR_REDLINING 10 +#define TP_FILTER 11 +#define TP_VIEW 12 -#define FT_ASSIGN 14 -#define ED_ASSIGN 15 -#define RB_ASSIGN 16 +#define FT_ASSIGN 14 +#define ED_ASSIGN 15 +#define RB_ASSIGN 16 #define STR_INSERT_COLS 20 -#define STR_INSERT_ROWS 21 -#define STR_INSERT_TABS 22 -#define STR_DELETE_COLS 23 -#define STR_DELETE_ROWS 24 -#define STR_DELETE_TABS 25 -#define STR_MOVE 26 -#define STR_CONTENT 27 -#define STR_REJECT 28 -#define STR_ACCEPTED 29 -#define STR_REJECTED 30 -#define STR_NO_ENTRY 31 -#define STR_CONTENT_WITH_CHILD 32 -#define STR_CHILD_CONTENT 33 -#define STR_CHILD_ORGCONTENT 34 -#define STR_EMPTY 35 +#define STR_INSERT_ROWS 21 +#define STR_INSERT_TABS 22 +#define STR_DELETE_COLS 23 +#define STR_DELETE_ROWS 24 +#define STR_DELETE_TABS 25 +#define STR_MOVE 26 +#define STR_CONTENT 27 +#define STR_REJECT 28 +#define STR_ACCEPTED 29 +#define STR_REJECTED 30 +#define STR_NO_ENTRY 31 +#define STR_CONTENT_WITH_CHILD 32 +#define STR_CHILD_CONTENT 33 +#define STR_CHILD_ORGCONTENT 34 +#define STR_EMPTY 35 // Bitmaps -#define BMP_STR_CLOSE 41 -#define BMP_STR_OPEN 42 -#define BMP_STR_END 43 -#define BMP_STR_ERROR 44 +#define BMP_STR_CLOSE 41 +#define BMP_STR_OPEN 42 +#define BMP_STR_END 43 +#define BMP_STR_ERROR 44 -#define SC_CHANGES_COMMENT 49 -#define SC_SUB_SORT 50 -#define SC_SORT_ACTION 51 -#define SC_SORT_POSITION 52 -#define SC_SORT_AUTHOR 53 -#define SC_SORT_DATE 54 -#define SC_SORT_COMMENT 55 +#define SC_CHANGES_COMMENT 49 +#define SC_SUB_SORT 50 +#define SC_SORT_ACTION 51 +#define SC_SORT_POSITION 52 +#define SC_SORT_AUTHOR 53 +#define SC_SORT_DATE 54 +#define SC_SORT_COMMENT 55 // diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx index a077129c374c..6593dc5638b0 100644 --- a/sc/source/ui/inc/acredlin.hxx +++ b/sc/source/ui/inc/acredlin.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -61,39 +61,39 @@ class ScViewData; class ScDocument; -#define FLT_DATE_BEFORE 0 -#define FLT_DATE_SINCE 1 -#define FLT_DATE_EQUAL 2 -#define FLT_DATE_NOTEQUAL 3 -#define FLT_DATE_BETWEEN 4 -#define FLT_DATE_SAVE 5 +#define FLT_DATE_BEFORE 0 +#define FLT_DATE_SINCE 1 +#define FLT_DATE_EQUAL 2 +#define FLT_DATE_NOTEQUAL 3 +#define FLT_DATE_BETWEEN 4 +#define FLT_DATE_SAVE 5 class ScViewEntryPtr { private: - String* pAction; - String* pPos; - String* pAuthor; - String* pDate; - String* pComment; - void* pData; + String* pAction; + String* pPos; + String* pAuthor; + String* pDate; + String* pComment; + void* pData; public: - String* GetpAction() {return pAction; } - String* GetpPos() {return pPos; } - String* GetpAuthor() {return pAuthor; } - String* GetpDate() {return pDate; } - String* GetpComment() {return pComment;} - void* GetpData() {return pData; } - - void SetpAction (String* pString) {pAction= pString;} - void SetpPos (String* pString) {pPos = pString;} - void SetpAuthor (String* pString) {pAuthor= pString;} - void SetpDate (String* pString) {pDate = pString;} - void SetpComment(String* pString) {pComment=pString;} - void SetpData (void* pdata) {pData =pdata;} + String* GetpAction() {return pAction; } + String* GetpPos() {return pPos; } + String* GetpAuthor() {return pAuthor; } + String* GetpDate() {return pDate; } + String* GetpComment() {return pComment;} + void* GetpData() {return pData; } + + void SetpAction (String* pString) {pAction= pString;} + void SetpPos (String* pString) {pPos = pString;} + void SetpAuthor (String* pString) {pAuthor= pString;} + void SetpDate (String* pString) {pDate = pString;} + void SetpComment(String* pString) {pComment=pString;} + void SetpData (void* pdata) {pData =pdata;} }; class ScViewEntryPtrList @@ -101,7 +101,7 @@ class ScViewEntryPtrList ScViewEntryPtrList* pNext; ScViewEntryPtrList* pLast; - ScViewEntryPtr* pData; + ScViewEntryPtr* pData; }; @@ -111,16 +111,16 @@ public: ScRedlinData(); ~ScRedlinData(); - SCTAB nTable; - SCCOL nCol; - SCROW nRow; - ULONG nActionNo; - ULONG nInfo; - BOOL bIsRejectable; - BOOL bIsAcceptable; + SCTAB nTable; + SCCOL nCol; + SCROW nRow; + ULONG nActionNo; + ULONG nInfo; + BOOL bIsRejectable; + BOOL bIsAcceptable; }; -typedef long LExpNum; +typedef long LExpNum; //@ Expand-Entrys nicht eindeutig, daher gestrichen //DECLARE_TABLE( ScChgTrackExps, LExpNum) @@ -130,50 +130,50 @@ class ScAcceptChgDlg : public SfxModelessDialog { private: - Timer aSelectionTimer; - Timer aReOpenTimer; - SvxAcceptChgCtr aAcceptChgCtr; - ScViewData* pViewData; - ScDocument* pDoc; - ScRangeName aLocalRangeName; - Selection theCurSel; - SvxTPFilter* pTPFilter; - SvxTPView* pTPView; - SvxRedlinTable* pTheView; // PB 2006/02/02 #i48648 now SvHeaderTabListBox - Size MinSize; - ScRangeList aRangeList; - ScChangeViewSettings aChangeViewSet; - String aStrInsertCols; - String aStrInsertRows; - String aStrInsertTabs; - String aStrDeleteCols; - String aStrDeleteRows; - String aStrDeleteTabs; - String aStrMove; - String aStrContent; - String aStrReject; - String aUnknown; - String aStrAllAccepted; - String aStrAllRejected; - String aStrNoEntry; - String aStrContentWithChild; - String aStrChildContent; - String aStrChildOrgContent; - String aStrEmpty; - ULONG nAcceptCount; - ULONG nRejectCount; - BOOL bAcceptEnableFlag; - BOOL bRejectEnableFlag; - BOOL bNeedsUpdate; - BOOL bIgnoreMsg; - BOOL bNoSelection; - BOOL bHasFilterEntry; - BOOL bUseColor; - //ScChgTrackExps aExpandArray; - - void Init(); - void InitFilter(); -//UNUSED2008-05 void SetMyStaticData(); + Timer aSelectionTimer; + Timer aReOpenTimer; + SvxAcceptChgCtr aAcceptChgCtr; + ScViewData* pViewData; + ScDocument* pDoc; + ScRangeName aLocalRangeName; + Selection theCurSel; + SvxTPFilter* pTPFilter; + SvxTPView* pTPView; + SvxRedlinTable* pTheView; // PB 2006/02/02 #i48648 now SvHeaderTabListBox + Size MinSize; + ScRangeList aRangeList; + ScChangeViewSettings aChangeViewSet; + String aStrInsertCols; + String aStrInsertRows; + String aStrInsertTabs; + String aStrDeleteCols; + String aStrDeleteRows; + String aStrDeleteTabs; + String aStrMove; + String aStrContent; + String aStrReject; + String aUnknown; + String aStrAllAccepted; + String aStrAllRejected; + String aStrNoEntry; + String aStrContentWithChild; + String aStrChildContent; + String aStrChildOrgContent; + String aStrEmpty; + ULONG nAcceptCount; + ULONG nRejectCount; + BOOL bAcceptEnableFlag; + BOOL bRejectEnableFlag; + BOOL bNeedsUpdate; + BOOL bIgnoreMsg; + BOOL bNoSelection; + BOOL bHasFilterEntry; + BOOL bUseColor; + //ScChgTrackExps aExpandArray; + + void Init(); + void InitFilter(); +//UNUSED2008-05 void SetMyStaticData(); DECL_LINK( FilterHandle, SvxTPFilter* ); DECL_LINK( RefHandle, SvxTPFilter* ); @@ -197,64 +197,64 @@ private: protected: - virtual void Resize(); - virtual BOOL Close(); + virtual void Resize(); + virtual BOOL Close(); - void RejectFiltered(); - void AcceptFiltered(); + void RejectFiltered(); + void AcceptFiltered(); - BOOL IsValidAction(const ScChangeAction* pScChangeAction); + BOOL IsValidAction(const ScChangeAction* pScChangeAction); - String* MakeTypeString(ScChangeActionType eType); + String* MakeTypeString(ScChangeActionType eType); - SvLBoxEntry* InsertChangeAction(const ScChangeAction* pScChangeAction,ScChangeActionState eState, + SvLBoxEntry* InsertChangeAction(const ScChangeAction* pScChangeAction,ScChangeActionState eState, SvLBoxEntry* pParent=NULL,BOOL bDelMaster=FALSE, BOOL bDisabled=FALSE,ULONG nPos=LIST_APPEND); - SvLBoxEntry* InsertFilteredAction(const ScChangeAction* pScChangeAction,ScChangeActionState eState, + SvLBoxEntry* InsertFilteredAction(const ScChangeAction* pScChangeAction,ScChangeActionState eState, SvLBoxEntry* pParent=NULL,BOOL bDelMaster=FALSE, BOOL bDisabled=FALSE,ULONG nPos=LIST_APPEND); - SvLBoxEntry* InsertChangeActionContent(const ScChangeActionContent* pScChangeAction, + SvLBoxEntry* InsertChangeActionContent(const ScChangeActionContent* pScChangeAction, SvLBoxEntry* pParent,ULONG nSpecial); - void GetDependents( const ScChangeAction* pScChangeAction, + void GetDependents( const ScChangeAction* pScChangeAction, ScChangeActionTable& aActionTable, SvLBoxEntry* pEntry); - BOOL InsertContentChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent); + BOOL InsertContentChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent); - BOOL InsertAcceptedORejected(SvLBoxEntry* pParent); + BOOL InsertAcceptedORejected(SvLBoxEntry* pParent); - BOOL InsertDeletedChilds(const ScChangeAction *pChangeAction, ScChangeActionTable* pActionTable, + BOOL InsertDeletedChilds(const ScChangeAction *pChangeAction, ScChangeActionTable* pActionTable, SvLBoxEntry* pParent); - BOOL InsertChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent); + BOOL InsertChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent); - void AppendChanges(ScChangeTrack* pChanges,ULONG nStartAction, ULONG nEndAction, + void AppendChanges(ScChangeTrack* pChanges,ULONG nStartAction, ULONG nEndAction, ULONG nPos=LIST_APPEND); - void RemoveEntrys(ULONG nStartAction,ULONG nEndAction); - void UpdateEntrys(ScChangeTrack* pChgTrack, ULONG nStartAction,ULONG nEndAction); + void RemoveEntrys(ULONG nStartAction,ULONG nEndAction); + void UpdateEntrys(ScChangeTrack* pChgTrack, ULONG nStartAction,ULONG nEndAction); - void UpdateView(); - void ClearView(); + void UpdateView(); + void ClearView(); - BOOL Expand(ScChangeTrack* pChanges,const ScChangeAction* pScChangeAction, + BOOL Expand(ScChangeTrack* pChanges,const ScChangeAction* pScChangeAction, SvLBoxEntry* pEntry, BOOL bFilter=FALSE); public: ScAcceptChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScViewData* ptrViewData); + ScViewData* ptrViewData); ~ScAcceptChgDlg(); - void ReInit(ScViewData* ptrViewData); + void ReInit(ScViewData* ptrViewData); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual long PreNotify( NotifyEvent& rNEvt ); - void Initialize (SfxChildWinInfo* pInfo); + void Initialize (SfxChildWinInfo* pInfo); virtual void FillInfo(SfxChildWinInfo&) const; }; diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx index 0e7560fe0c50..a61add16b40e 100644 --- a/sc/source/ui/inc/anyrefdg.hxx +++ b/sc/source/ui/inc/anyrefdg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,8 +58,8 @@ class ScRangeList; class SfxShell; #include "scmod.hxx" -typedef formula::RefButton ScRefButton; -typedef formula::RefEdit ScRefEdit; +typedef formula::RefButton ScRefButton; +typedef formula::RefEdit ScRefEdit; //-->Added by PengYunQuan for Validity Cell Range Picker class ScFormulaReferenceHelper { @@ -70,7 +70,7 @@ class ScFormulaReferenceHelper formula::RefButton* pRefBtn; // Button dazu Window* m_pWindow; SfxBindings* m_pBindings; - ::std::auto_ptr<Accelerator> + ::std::auto_ptr<Accelerator> pAccel; // fuer Enter/Escape BOOL* pHiddenMarks; // Merkfeld fuer versteckte Controls SCTAB nRefTab; // used for ShowReference @@ -84,9 +84,9 @@ class ScFormulaReferenceHelper BOOL bEnableColorRef; BOOL bHighLightRef; BOOL bAccInserted; - + DECL_LINK( AccelSelectHdl, Accelerator* ); - + public: ScFormulaReferenceHelper(IAnyRefDialog* _pDlg,SfxBindings* _pBindings); ~ScFormulaReferenceHelper(); @@ -112,10 +112,10 @@ public: static void enableInput(BOOL _bInput); //<!--Added by PengYunQuan for Validity Cell Range Picker protected: - Window * GetWindow(){ return m_pWindow; } + Window * GetWindow(){ return m_pWindow; } public: - bool CanInputStart( const ScRefEdit *pEdit ){ return !!pEdit; } - bool CanInputDone( BOOL bForced ){ return pRefEdit && (bForced || !pRefBtn); } + bool CanInputStart( const ScRefEdit *pEdit ){ return !!pEdit; } + bool CanInputDone( BOOL bForced ){ return pRefEdit && (bForced || !pRefBtn); } //<!--Added by PengYunQuan for Validity Cell Range Picker }; //============================================================================ @@ -125,27 +125,27 @@ class SC_DLLPUBLIC ScRefHandler : //public SfxModelessDialog, public IAnyRefDialog { //<!--Added by PengYunQuan for Validity Cell Range Picker - Window & m_rWindow; - bool m_bInRefMode; + Window & m_rWindow; + bool m_bInRefMode; public: - operator Window *(){ return &m_rWindow; } - Window * operator ->() { return static_cast<Window *>(*this); } + operator Window *(){ return &m_rWindow; } + Window * operator ->() { return static_cast<Window *>(*this); } template<class,bool> friend class ScRefHdlrImplBase; //-->Added by PengYunQuan for Validity Cell Range Picker friend class formula::RefButton; friend class formula::RefEdit; private: - ScFormulaReferenceHelper + ScFormulaReferenceHelper m_aHelper; SfxBindings* pMyBindings; - + Window* pActiveWin; Timer aTimer; String aDocName; // document on which the dialog was opened DECL_LINK( UpdateFocusHdl, Timer* ); - + protected: virtual BOOL DoClose( USHORT nId ); @@ -193,8 +193,8 @@ public: public: bool EnterRefMode(); bool LeaveRefMode(); - inline bool CanInputStart( const ScRefEdit *pEdit ); - inline bool CanInputDone( BOOL bForced ); + inline bool CanInputStart( const ScRefEdit *pEdit ); + inline bool CanInputDone( BOOL bForced ); //-->Added by PengYunQuan for Validity Cell Range Picker }; @@ -265,7 +265,7 @@ inline bool ScRefHandler::CanInputStart( const ScRefEdit *pEdit ) return m_aHelper.CanInputStart( pEdit ); } -inline bool ScRefHandler::CanInputDone( BOOL bForced ) +inline bool ScRefHandler::CanInputDone( BOOL bForced ) { return m_aHelper.CanInputDone( bForced ); } diff --git a/sc/source/ui/inc/areasave.hxx b/sc/source/ui/inc/areasave.hxx index 608f95a3bb51..27305dcdc323 100644 --- a/sc/source/ui/inc/areasave.hxx +++ b/sc/source/ui/inc/areasave.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,24 +39,24 @@ class ScAreaLink; class ScAreaLinkSaver : public ScDataObject { private: - String aFileName; - String aFilterName; - String aOptions; - String aSourceArea; - ScRange aDestArea; + String aFileName; + String aFilterName; + String aOptions; + String aSourceArea; + ScRange aDestArea; ULONG nRefresh; public: ScAreaLinkSaver( const ScAreaLink& rSource ); ScAreaLinkSaver( const ScAreaLinkSaver& rCopy ); - virtual ~ScAreaLinkSaver(); + virtual ~ScAreaLinkSaver(); - virtual ScDataObject* Clone() const; + virtual ScDataObject* Clone() const; - BOOL IsEqual( const ScAreaLink& rCompare ) const; - BOOL IsEqualSource( const ScAreaLink& rCompare ) const; + BOOL IsEqual( const ScAreaLink& rCompare ) const; + BOOL IsEqualSource( const ScAreaLink& rCompare ) const; - void WriteToLink( ScAreaLink& rLink ) const; + void WriteToLink( ScAreaLink& rLink ) const; void InsertNewLink( ScDocument* pDoc ) const; }; @@ -66,14 +66,14 @@ class ScAreaLinkSaveCollection : public ScCollection public: ScAreaLinkSaveCollection(); ScAreaLinkSaveCollection( const ScAreaLinkSaveCollection& rCopy ); - virtual ~ScAreaLinkSaveCollection(); + virtual ~ScAreaLinkSaveCollection(); - virtual ScDataObject* Clone() const; + virtual ScDataObject* Clone() const; - ScAreaLinkSaver* operator[](USHORT nIndex) const {return (ScAreaLinkSaver*)At(nIndex);} + ScAreaLinkSaver* operator[](USHORT nIndex) const {return (ScAreaLinkSaver*)At(nIndex);} - BOOL IsEqual( const ScDocument* pDoc ) const; - void Restore( ScDocument* pDoc ) const; + BOOL IsEqual( const ScDocument* pDoc ) const; + void Restore( ScDocument* pDoc ) const; // returns NULL if empty static ScAreaLinkSaveCollection* CreateFromDoc( const ScDocument* pDoc ); diff --git a/sc/source/ui/inc/areasdlg.hxx b/sc/source/ui/inc/areasdlg.hxx index 08c6e3cf0a91..0d4597a1c37c 100644 --- a/sc/source/ui/inc/areasdlg.hxx +++ b/sc/source/ui/inc/areasdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -52,40 +52,40 @@ public: ScPrintAreasDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent ); ~ScPrintAreasDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual void AddRefEntry(); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void AddRefEntry(); - virtual BOOL IsTableLocked() const; + virtual BOOL IsTableLocked() const; - virtual void SetActive(); - virtual void Deactivate(); - virtual BOOL Close(); + virtual void SetActive(); + virtual void Deactivate(); + virtual BOOL Close(); private: - ListBox aLbPrintArea; + ListBox aLbPrintArea; FixedLine aFlPrintArea; - formula::RefEdit aEdPrintArea; - formula::RefButton aRbPrintArea; + formula::RefEdit aEdPrintArea; + formula::RefButton aRbPrintArea; - ListBox aLbRepeatRow; + ListBox aLbRepeatRow; FixedLine aFlRepeatRow; - formula::RefEdit aEdRepeatRow; - formula::RefButton aRbRepeatRow; + formula::RefEdit aEdRepeatRow; + formula::RefButton aRbRepeatRow; - ListBox aLbRepeatCol; + ListBox aLbRepeatCol; FixedLine aFlRepeatCol; - formula::RefEdit aEdRepeatCol; - formula::RefButton aRbRepeatCol; + formula::RefEdit aEdRepeatCol; + formula::RefButton aRbRepeatCol; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; - BOOL bDlgLostFocus; - formula::RefEdit* pRefInputEdit; - ScDocument* pDoc; - ScViewData* pViewData; - SCTAB nCurTab; + BOOL bDlgLostFocus; + formula::RefEdit* pRefInputEdit; + ScDocument* pDoc; + ScViewData* pViewData; + SCTAB nCurTab; #ifdef _AREASDLG_CXX private: @@ -95,10 +95,10 @@ private: BOOL Impl_GetItem( Edit* pEd, SfxStringItem& rItem ); // Handler: - DECL_LINK( Impl_SelectHdl, ListBox* ); - DECL_LINK( Impl_ModifyHdl, formula::RefEdit* ); - DECL_LINK( Impl_BtnHdl, PushButton* ); - DECL_LINK( Impl_GetFocusHdl, Control* ); + DECL_LINK( Impl_SelectHdl, ListBox* ); + DECL_LINK( Impl_ModifyHdl, formula::RefEdit* ); + DECL_LINK( Impl_BtnHdl, PushButton* ); + DECL_LINK( Impl_GetFocusHdl, Control* ); #endif }; diff --git a/sc/source/ui/inc/asciiopt.hxx b/sc/source/ui/inc/asciiopt.hxx index a5c7a2b554b4..0c6df4b39e44 100644 --- a/sc/source/ui/inc/asciiopt.hxx +++ b/sc/source/ui/inc/asciiopt.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,17 +59,17 @@ class ScAsciiOptions { private: - BOOL bFixedLen; - String aFieldSeps; - BOOL bMergeFieldSeps; + BOOL bFixedLen; + String aFieldSeps; + BOOL bMergeFieldSeps; bool bQuotedFieldAsText; bool bDetectSpecialNumber; - sal_Unicode cTextSep; - CharSet eCharSet; + sal_Unicode cTextSep; + CharSet eCharSet; LanguageType eLang; - BOOL bCharSetSystem; - long nStartRow; - USHORT nInfoCount; + BOOL bCharSetSystem; + long nStartRow; + USHORT nInfoCount; xub_StrLen* pColStart; //! TODO replace with vector BYTE* pColFormat; //! TODO replace with vector @@ -80,47 +80,47 @@ public: static const sal_Unicode cDefaultTextSep = '"'; - ScAsciiOptions& operator=( const ScAsciiOptions& rCpy ); + ScAsciiOptions& operator=( const ScAsciiOptions& rCpy ); - BOOL operator==( const ScAsciiOptions& rCmp ) const; + BOOL operator==( const ScAsciiOptions& rCmp ) const; - void ReadFromString( const String& rString ); - String WriteToString() const; + void ReadFromString( const String& rString ); + String WriteToString() const; - void InterpretColumnList( const String& rString ); + void InterpretColumnList( const String& rString ); - CharSet GetCharSet() const { return eCharSet; } - BOOL GetCharSetSystem() const { return bCharSetSystem; } - const String& GetFieldSeps() const { return aFieldSeps; } - BOOL IsMergeSeps() const { return bMergeFieldSeps; } + CharSet GetCharSet() const { return eCharSet; } + BOOL GetCharSetSystem() const { return bCharSetSystem; } + const String& GetFieldSeps() const { return aFieldSeps; } + BOOL IsMergeSeps() const { return bMergeFieldSeps; } bool IsQuotedAsText() const { return bQuotedFieldAsText; } bool IsDetectSpecialNumber() const { return bDetectSpecialNumber; } - sal_Unicode GetTextSep() const { return cTextSep; } - BOOL IsFixedLen() const { return bFixedLen; } - USHORT GetInfoCount() const { return nInfoCount; } - const xub_StrLen* GetColStart() const { return pColStart; } - const BYTE* GetColFormat() const { return pColFormat; } - long GetStartRow() const { return nStartRow; } + sal_Unicode GetTextSep() const { return cTextSep; } + BOOL IsFixedLen() const { return bFixedLen; } + USHORT GetInfoCount() const { return nInfoCount; } + const xub_StrLen* GetColStart() const { return pColStart; } + const BYTE* GetColFormat() const { return pColFormat; } + long GetStartRow() const { return nStartRow; } LanguageType GetLanguage() const { return eLang; } - void SetCharSet( CharSet eNew ) { eCharSet = eNew; } - void SetCharSetSystem( BOOL bSet ) { bCharSetSystem = bSet; } - void SetFixedLen( BOOL bSet ) { bFixedLen = bSet; } - void SetFieldSeps( const String& rStr ) { aFieldSeps = rStr; } - void SetMergeSeps( BOOL bSet ) { bMergeFieldSeps = bSet; } + void SetCharSet( CharSet eNew ) { eCharSet = eNew; } + void SetCharSetSystem( BOOL bSet ) { bCharSetSystem = bSet; } + void SetFixedLen( BOOL bSet ) { bFixedLen = bSet; } + void SetFieldSeps( const String& rStr ) { aFieldSeps = rStr; } + void SetMergeSeps( BOOL bSet ) { bMergeFieldSeps = bSet; } void SetQuotedAsText(bool bSet) { bQuotedFieldAsText = bSet; } void SetDetectSpecialNumber(bool bSet) { bDetectSpecialNumber = bSet; } - void SetTextSep( sal_Unicode c ) { cTextSep = c; } - void SetStartRow( long nRow) { nStartRow= nRow; } + void SetTextSep( sal_Unicode c ) { cTextSep = c; } + void SetStartRow( long nRow) { nStartRow= nRow; } void SetLanguage(LanguageType e) { eLang = e; } - void SetColInfo( USHORT nCount, const xub_StrLen* pStart, const BYTE* pFormat ); + void SetColInfo( USHORT nCount, const xub_StrLen* pStart, const BYTE* pFormat ); void SetColumnInfo( const ScCsvExpDataVec& rDataVec ); }; //CHINA001 // ============================================================================ -//CHINA001 +//CHINA001 //CHINA001 class ScImportAsciiDlg : public ModalDialog //CHINA001 { //CHINA001 SvStream* pDatStream; @@ -131,18 +131,18 @@ public: //CHINA001 ULONG nStreamPos; //CHINA001 ULONG nStreamPosUnicode; //CHINA001 BOOL bVFlag; -//CHINA001 +//CHINA001 //CHINA001 FixedLine aFlFieldOpt; //CHINA001 FixedText aFtCharSet; //CHINA001 SvxTextEncodingBox aLbCharSet; -//CHINA001 +//CHINA001 //CHINA001 FixedText aFtRow; //CHINA001 NumericField aNfRow; -//CHINA001 +//CHINA001 //CHINA001 FixedLine aFlSepOpt; //CHINA001 RadioButton aRbFixed; //CHINA001 RadioButton aRbSeparated; -//CHINA001 +//CHINA001 //CHINA001 CheckBox aCkbTab; //CHINA001 CheckBox aCkbSemicolon; //CHINA001 CheckBox aCkbComma; @@ -152,49 +152,49 @@ public: //CHINA001 CheckBox aCkbAsOnce; //CHINA001 FixedText aFtTextSep; //CHINA001 ComboBox aCbTextSep; -//CHINA001 +//CHINA001 //CHINA001 FixedLine aFlWidth; //CHINA001 FixedText aFtType; //CHINA001 ListBox aLbType; -//CHINA001 +//CHINA001 //CHINA001 ScCsvTableBox maTableBox; -//CHINA001 +//CHINA001 //CHINA001 OKButton aBtnOk; //CHINA001 CancelButton aBtnCancel; //CHINA001 HelpButton aBtnHelp; -//CHINA001 +//CHINA001 //CHINA001 String aCharSetUser; //CHINA001 String aColumnUser; //CHINA001 String aFldSepList; //CHINA001 String aTextSepList; -//CHINA001 +//CHINA001 //CHINA001 // aPreviewLine contains the byte string as read from the file //CHINA001 ByteString aPreviewLine[ CSV_PREVIEW_LINES ]; //CHINA001 // same for Unicode //CHINA001 String aPreviewLineUnicode[ CSV_PREVIEW_LINES ]; -//CHINA001 +//CHINA001 //CHINA001 CharSet meCharSet; /// Selected char set. //CHINA001 bool mbCharSetSystem; /// Is System char set selected? -//CHINA001 +//CHINA001 //CHINA001 public: //CHINA001 ScImportAsciiDlg( //CHINA001 Window* pParent, String aDatName, //CHINA001 SvStream* pInStream, sal_Unicode cSep = '\t' ); //CHINA001 ~ScImportAsciiDlg(); -//CHINA001 +//CHINA001 //CHINA001 void GetOptions( ScAsciiOptions& rOpt ); -//CHINA001 +//CHINA001 //CHINA001 private: //CHINA001 /** Sets the selected char set data to meCharSet and mbCharSetSystem. */ //CHINA001 void SetSelectedCharSet(); //CHINA001 /** Returns all separator characters in a string. */ //CHINA001 String GetSeparators() const; -//CHINA001 +//CHINA001 //CHINA001 /** Enables or disables all separator checkboxes and edit fields. */ //CHINA001 void SetupSeparatorCtrls(); -//CHINA001 +//CHINA001 //CHINA001 void UpdateVertical( bool bSwitchToFromUnicode = false ); -//CHINA001 +//CHINA001 //CHINA001 DECL_LINK( CharSetHdl, SvxTextEncodingBox* ); //CHINA001 DECL_LINK( FirstRowHdl, NumericField* ); //CHINA001 DECL_LINK( RbSepFixHdl, RadioButton* ); @@ -203,8 +203,8 @@ public: //CHINA001 DECL_LINK( UpdateTextHdl, ScCsvTableBox* ); //CHINA001 DECL_LINK( ColTypeHdl, ScCsvTableBox* ); //CHINA001 }; -//CHINA001 -//CHINA001 +//CHINA001 +//CHINA001 // ============================================================================ #endif diff --git a/sc/source/ui/inc/attrdlg.hrc b/sc/source/ui/inc/attrdlg.hrc index f43c1cb30b86..5a2cb3af502c 100644 --- a/sc/source/ui/inc/attrdlg.hrc +++ b/sc/source/ui/inc/attrdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -25,23 +25,23 @@ * ************************************************************************/ -#include "sc.hrc" // -> SC_DLG_ATTR +#include "sc.hrc" // -> SC_DLG_ATTR -#define TP_NUMBER 1 -#define TP_FONT 2 -#define TP_ALIGNMENT 3 -#define TP_BORDER 4 -#define TP_BACKGROUND 5 -#define TP_PROTECTION 6 -#define TP_FONTEFF 7 -#define TP_ASIAN 8 +#define TP_NUMBER 1 +#define TP_FONT 2 +#define TP_ALIGNMENT 3 +#define TP_BORDER 4 +#define TP_BACKGROUND 5 +#define TP_PROTECTION 6 +#define TP_FONTEFF 7 +#define TP_ASIAN 8 //================================================ // Zellschutz-TabPage: -#define BTN_PROTECTED 1 -#define BTN_HIDE_FORMULAR 2 -#define BTN_HIDE_ALL 3 +#define BTN_PROTECTED 1 +#define BTN_HIDE_FORMULAR 2 +#define BTN_HIDE_ALL 3 #define FT_HINT 4 #define FL_PROTECTION 5 #define BTN_HIDE_PRINT 6 diff --git a/sc/source/ui/inc/attrdlg.hxx b/sc/source/ui/inc/attrdlg.hxx index 752ee01ddd62..a450329a5091 100644 --- a/sc/source/ui/inc/attrdlg.hxx +++ b/sc/source/ui/inc/attrdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -48,13 +48,13 @@ class SfxItemSet; class ScAttrDlg : public SfxTabDialog { public: - ScAttrDlg( SfxViewFrame* pFrame, - Window* pParent, + ScAttrDlg( SfxViewFrame* pFrame, + Window* pParent, const SfxItemSet* pCellAttrs ); ~ScAttrDlg(); protected: - virtual void PageCreated( USHORT nPageId, SfxTabPage& rTabPage ); + virtual void PageCreated( USHORT nPageId, SfxTabPage& rTabPage ); private: DECL_LINK( OkHandler, void* ); // fuer DoppelClick-Beenden in TabPages diff --git a/sc/source/ui/inc/auditsh.hxx b/sc/source/ui/inc/auditsh.hxx index 75059f4f88cc..4e3e7956eaf5 100644 --- a/sc/source/ui/inc/auditsh.hxx +++ b/sc/source/ui/inc/auditsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,8 +38,8 @@ class ScViewData; class ScAuditingShell : public SfxShell { private: - ScViewData* pViewData; - USHORT nFunction; + ScViewData* pViewData; + USHORT nFunction; public: TYPEINFO(); @@ -48,8 +48,8 @@ public: ScAuditingShell(ScViewData* pData); ~ScAuditingShell(); - void Execute(SfxRequest& rReq); - void GetState(SfxItemSet& rSet); + void Execute(SfxRequest& rReq); + void GetState(SfxItemSet& rSet); }; diff --git a/sc/source/ui/inc/autofmt.hxx b/sc/source/ui/inc/autofmt.hxx index 52a033c202b2..b6eb80112644 100644 --- a/sc/source/ui/inc/autofmt.hxx +++ b/sc/source/ui/inc/autofmt.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -69,8 +69,8 @@ enum AutoFmtLine { TOP_LINE, BOTTOM_LINE, LEFT_LINE, RIGHT_LINE }; //CHINA001 class ScAutoFormatDlg : public ModalDialog //CHINA001 { //CHINA001 public: -//CHINA001 ScAutoFormatDlg( Window* pParent, -//CHINA001 ScAutoFormat* pAutoFormat, +//CHINA001 ScAutoFormatDlg( Window* pParent, +//CHINA001 ScAutoFormat* pAutoFormat, //CHINA001 const ScAutoFormatData* pSelFormatData, //CHINA001 ScDocument* pDoc ); //CHINA001 ~ScAutoFormatDlg(); @@ -80,38 +80,38 @@ enum AutoFmtLine { TOP_LINE, BOTTOM_LINE, LEFT_LINE, RIGHT_LINE }; //CHINA001 //CHINA001 private: //CHINA001 FixedLine aFlFormat; -//CHINA001 ListBox aLbFormat; -//CHINA001 ScAutoFmtPreview* pWndPreview; -//CHINA001 OKButton aBtnOk; -//CHINA001 CancelButton aBtnCancel; -//CHINA001 HelpButton aBtnHelp; -//CHINA001 PushButton aBtnAdd; -//CHINA001 PushButton aBtnRemove; -//CHINA001 MoreButton aBtnMore; +//CHINA001 ListBox aLbFormat; +//CHINA001 ScAutoFmtPreview* pWndPreview; +//CHINA001 OKButton aBtnOk; +//CHINA001 CancelButton aBtnCancel; +//CHINA001 HelpButton aBtnHelp; +//CHINA001 PushButton aBtnAdd; +//CHINA001 PushButton aBtnRemove; +//CHINA001 MoreButton aBtnMore; //CHINA001 FixedLine aFlFormatting; -//CHINA001 CheckBox aBtnNumFormat; -//CHINA001 CheckBox aBtnBorder; -//CHINA001 CheckBox aBtnFont; -//CHINA001 CheckBox aBtnPattern; -//CHINA001 CheckBox aBtnAlignment; -//CHINA001 CheckBox aBtnAdjust; -//CHINA001 PushButton aBtnRename; -//CHINA001 String aStrTitle; -//CHINA001 String aStrLabel; -//CHINA001 String aStrClose; -//CHINA001 String aStrDelTitle; -//CHINA001 String aStrDelMsg; -//CHINA001 String aStrRename; +//CHINA001 CheckBox aBtnNumFormat; +//CHINA001 CheckBox aBtnBorder; +//CHINA001 CheckBox aBtnFont; +//CHINA001 CheckBox aBtnPattern; +//CHINA001 CheckBox aBtnAlignment; +//CHINA001 CheckBox aBtnAdjust; +//CHINA001 PushButton aBtnRename; +//CHINA001 String aStrTitle; +//CHINA001 String aStrLabel; +//CHINA001 String aStrClose; +//CHINA001 String aStrDelTitle; +//CHINA001 String aStrDelMsg; +//CHINA001 String aStrRename; //CHINA001 //CHINA001 //------------------------ -//CHINA001 ScAutoFormat* pFormat; -//CHINA001 const ScAutoFormatData* pSelFmtData; -//CHINA001 USHORT nIndex; -//CHINA001 BOOL bCoreDataChanged; -//CHINA001 BOOL bFmtInserted; +//CHINA001 ScAutoFormat* pFormat; +//CHINA001 const ScAutoFormatData* pSelFmtData; +//CHINA001 USHORT nIndex; +//CHINA001 BOOL bCoreDataChanged; +//CHINA001 BOOL bFmtInserted; //CHINA001 -//CHINA001 void Init (); -//CHINA001 void UpdateChecks (); +//CHINA001 void Init (); +//CHINA001 void UpdateChecks (); //CHINA001 //------------------------ //CHINA001 DECL_LINK( CheckHdl, Button * ); //CHINA001 DECL_LINK( AddHdl, void * ); @@ -158,11 +158,11 @@ private: const String aStrSum; SvNumberFormatter* pNumFmt; //------------------------------------------- - SC_DLLPRIVATE void Init (); - SC_DLLPRIVATE void DoPaint ( const Rectangle& rRect ); - SC_DLLPRIVATE void CalcCellArray ( BOOL bFitWidth ); - SC_DLLPRIVATE void CalcLineMap (); - SC_DLLPRIVATE void PaintCells (); + SC_DLLPRIVATE void Init (); + SC_DLLPRIVATE void DoPaint ( const Rectangle& rRect ); + SC_DLLPRIVATE void CalcCellArray ( BOOL bFitWidth ); + SC_DLLPRIVATE void CalcLineMap (); + SC_DLLPRIVATE void PaintCells (); /* Usage of type size_t instead of SCCOL/SCROW is correct here - used in conjunction with class svx::frame::Array (svx/framelinkarray.hxx), which @@ -181,28 +181,28 @@ private: Font& rCJKFont, Font& rCTLFont ); - SC_DLLPRIVATE String MakeNumberString( String cellString, BOOL bAddDec ); - SC_DLLPRIVATE void DrawFrameLine ( const SvxBorderLine& rLineD, - Point from, - Point to, - BOOL bHorizontal, - const SvxBorderLine& rLineLT, - const SvxBorderLine& rLineL, - const SvxBorderLine& rLineLB, - const SvxBorderLine& rLineRT, - const SvxBorderLine& rLineR, - const SvxBorderLine& rLineRB ); - SC_DLLPRIVATE void CheckPriority ( USHORT nCurLine, - AutoFmtLine eLine, - SvxBorderLine& rLine ); - SC_DLLPRIVATE void GetLines ( USHORT nIndex, AutoFmtLine eLine, - SvxBorderLine& rLineD, - SvxBorderLine& rLineLT, - SvxBorderLine& rLineL, - SvxBorderLine& rLineLB, - SvxBorderLine& rLineRT, - SvxBorderLine& rLineR, - SvxBorderLine& rLineRB ); + SC_DLLPRIVATE String MakeNumberString( String cellString, BOOL bAddDec ); + SC_DLLPRIVATE void DrawFrameLine ( const SvxBorderLine& rLineD, + Point from, + Point to, + BOOL bHorizontal, + const SvxBorderLine& rLineLT, + const SvxBorderLine& rLineL, + const SvxBorderLine& rLineLB, + const SvxBorderLine& rLineRT, + const SvxBorderLine& rLineR, + const SvxBorderLine& rLineRB ); + SC_DLLPRIVATE void CheckPriority ( USHORT nCurLine, + AutoFmtLine eLine, + SvxBorderLine& rLine ); + SC_DLLPRIVATE void GetLines ( USHORT nIndex, AutoFmtLine eLine, + SvxBorderLine& rLineD, + SvxBorderLine& rLineLT, + SvxBorderLine& rLineL, + SvxBorderLine& rLineLB, + SvxBorderLine& rLineRT, + SvxBorderLine& rLineR, + SvxBorderLine& rLineRB ); }; #endif // SC_AUTOFMT_HXX diff --git a/sc/source/ui/inc/autostyl.hxx b/sc/source/ui/inc/autostyl.hxx index 5540ecf87aac..f33f311142b1 100644 --- a/sc/source/ui/inc/autostyl.hxx +++ b/sc/source/ui/inc/autostyl.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,16 +38,16 @@ class ScRange; class ScAutoStyleList { private: - ScDocShell* pDocSh; - Timer aTimer; - Timer aInitTimer; - ULONG nTimerStart; - List aEntries; - List aInitials; + ScDocShell* pDocSh; + Timer aTimer; + Timer aInitTimer; + ULONG nTimerStart; + List aEntries; + List aInitials; - void ExecuteEntries(); - void AdjustEntries(ULONG nDiff); - void StartTimer(ULONG nNow); + void ExecuteEntries(); + void AdjustEntries(ULONG nDiff); + void StartTimer(ULONG nNow); DECL_LINK( TimerHdl, Timer* ); DECL_LINK( InitHdl, Timer* ); @@ -55,11 +55,11 @@ public: ScAutoStyleList(ScDocShell* pShell); ~ScAutoStyleList(); - void AddInitial( const ScRange& rRange, const String& rStyle1, + void AddInitial( const ScRange& rRange, const String& rStyle1, ULONG nTimeout, const String& rStyle2 ); - void AddEntry( ULONG nTimeout, const ScRange& rRange, const String& rStyle ); + void AddEntry( ULONG nTimeout, const ScRange& rRange, const String& rStyle ); - void ExecuteAllNow(); + void ExecuteAllNow(); }; diff --git a/sc/source/ui/inc/cbutton.hxx b/sc/source/ui/inc/cbutton.hxx index 8de5dafe7768..c9f2936d99b3 100644 --- a/sc/source/ui/inc/cbutton.hxx +++ b/sc/source/ui/inc/cbutton.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,36 +46,36 @@ public: void SetOutputDevice( OutputDevice* pOutputDevice ); - void Draw( const Point& rAt, - const Size& rSize, + void Draw( const Point& rAt, + const Size& rSize, BOOL bState, - BOOL bBtnIn = FALSE ); + BOOL bBtnIn = FALSE ); - void Draw( const Point& rAt, + void Draw( const Point& rAt, BOOL bState, - BOOL bBtnIn = FALSE ) + BOOL bBtnIn = FALSE ) { Draw( rAt, aBtnSize, bState, bBtnIn ); } void Draw( BOOL bState, BOOL bBtnIn = FALSE ) { Draw( aBtnPos, aBtnSize, bState, bBtnIn ); } - void SetOptSizePixel(); + void SetOptSizePixel(); - void SetPosPixel( const Point& rNewPos ) { aBtnPos = rNewPos; } - Point GetPosPixel() const { return aBtnPos; } + void SetPosPixel( const Point& rNewPos ) { aBtnPos = rNewPos; } + Point GetPosPixel() const { return aBtnPos; } - void SetSizePixel( const Size& rNewSize ) { aBtnSize = rNewSize; } - Size GetSizePixel() const { return aBtnSize; } + void SetSizePixel( const Size& rNewSize ) { aBtnSize = rNewSize; } + Size GetSizePixel() const { return aBtnSize; } private: - void ImpDrawArrow( const Rectangle& rRect, + void ImpDrawArrow( const Rectangle& rRect, BOOL bState ); protected: OutputDevice* pOut; - Point aBtnPos; - Size aBtnSize; + Point aBtnPos; + Size aBtnSize; }; diff --git a/sc/source/ui/inc/cellsh.hxx b/sc/source/ui/inc/cellsh.hxx index 563e18d96656..9202c39e461d 100644 --- a/sc/source/ui/inc/cellsh.hxx +++ b/sc/source/ui/inc/cellsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,7 +59,7 @@ private: CellShell_Impl* pImpl; BOOL bPastePossible; - void GetPossibleClipboardFormats( SvxClipboardFmtItem& rFormats ); + void GetPossibleClipboardFormats( SvxClipboardFmtItem& rFormats ); void ExecuteExternalSource( const String& _rFile, const String& _rFilter, const String& _rOptions, const String& _rSource, ULONG _nRefresh, SfxRequest& _rRequest ); @@ -73,32 +73,32 @@ public: SFX_DECL_INTERFACE(SCID_CELL_SHELL) ScCellShell(ScViewData* pData); - virtual ~ScCellShell(); + virtual ~ScCellShell(); - void Execute(SfxRequest &); - void GetState(SfxItemSet &); + void Execute(SfxRequest &); + void GetState(SfxItemSet &); - void ExecuteEdit( SfxRequest& rReq ); - void ExecuteTrans( SfxRequest& rReq ); + void ExecuteEdit( SfxRequest& rReq ); + void ExecuteTrans( SfxRequest& rReq ); - void GetBlockState( SfxItemSet& rSet ); - void GetCellState( SfxItemSet& rSet ); + void GetBlockState( SfxItemSet& rSet ); + void GetCellState( SfxItemSet& rSet ); - void ExecuteDB( SfxRequest& rReq ); - void GetDBState( SfxItemSet& rSet ); + void ExecuteDB( SfxRequest& rReq ); + void GetDBState( SfxItemSet& rSet ); - void ExecImageMap(SfxRequest& rReq); // ImageMap - void GetImageMapState(SfxItemSet& rSet); + void ExecImageMap(SfxRequest& rReq); // ImageMap + void GetImageMapState(SfxItemSet& rSet); - void GetClipState( SfxItemSet& rSet ); - void GetHLinkState( SfxItemSet& rSet ); + void GetClipState( SfxItemSet& rSet ); + void GetHLinkState( SfxItemSet& rSet ); - void ExecuteCursor( SfxRequest& rReq ); - void ExecuteCursorSel( SfxRequest& rReq ); - void ExecutePage( SfxRequest& rReq ); - void ExecutePageSel( SfxRequest& rReq ); - void ExecuteMove( SfxRequest& rReq ); - void GetStateCursor( SfxItemSet& rSet ); + void ExecuteCursor( SfxRequest& rReq ); + void ExecuteCursorSel( SfxRequest& rReq ); + void ExecutePage( SfxRequest& rReq ); + void ExecutePageSel( SfxRequest& rReq ); + void ExecuteMove( SfxRequest& rReq ); + void GetStateCursor( SfxItemSet& rSet ); static void PasteFromClipboard( ScViewData* pViewData, ScTabViewShell* pTabViewShell, bool bShowDialog ); }; diff --git a/sc/source/ui/inc/chartsh.hxx b/sc/source/ui/inc/chartsh.hxx index 95efd03f3b76..e9aaf0787eea 100644 --- a/sc/source/ui/inc/chartsh.hxx +++ b/sc/source/ui/inc/chartsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,7 +45,7 @@ public: SFX_DECL_INTERFACE(SCID_CHART_SHELL) ScChartShell(ScViewData* pData); - virtual ~ScChartShell(); + virtual ~ScChartShell(); }; diff --git a/sc/source/ui/inc/client.hxx b/sc/source/ui/inc/client.hxx index 1b13ee224d77..012ce4d0b36d 100644 --- a/sc/source/ui/inc/client.hxx +++ b/sc/source/ui/inc/client.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,21 +41,21 @@ class SdrModel; class ScClient : public SfxInPlaceClient { private: - SdrModel* pModel; - SdrGrafObj* pGrafEdit; + SdrModel* pModel; + SdrGrafObj* pGrafEdit; virtual void ObjectAreaChanged(); virtual void RequestNewObjectArea( Rectangle& ); virtual void ViewChanged(); - virtual void MakeVisible(); + virtual void MakeVisible(); public: ScClient( ScTabViewShell* pViewShell, Window* pDraw, SdrModel* pSdrModel, SdrOle2Obj* pObj ); - virtual ~ScClient(); + virtual ~ScClient(); - SdrGrafObj* GetGrafEdit() const { return pGrafEdit; } - void SetGrafEdit(SdrGrafObj* pNew) { pGrafEdit = pNew; } - SdrOle2Obj* GetDrawObj(); + SdrGrafObj* GetGrafEdit() const { return pGrafEdit; } + void SetGrafEdit(SdrGrafObj* pNew) { pGrafEdit = pNew; } + SdrOle2Obj* GetDrawObj(); }; diff --git a/sc/source/ui/inc/colrowba.hxx b/sc/source/ui/inc/colrowba.hxx index 587412defea2..28d5a6d3f285 100644 --- a/sc/source/ui/inc/colrowba.hxx +++ b/sc/source/ui/inc/colrowba.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,9 +39,9 @@ class ScHeaderSelectionEngine; class ScColBar : public ScHeaderControl { - ScViewData* pViewData; - ScHSplitPos eWhich; - ScHeaderFunctionSet* pFuncSet; + ScViewData* pViewData; + ScHSplitPos eWhich; + ScHeaderFunctionSet* pFuncSet; ScHeaderSelectionEngine* pSelEngine; public: @@ -49,33 +49,33 @@ public: ScHeaderFunctionSet* pFunc, ScHeaderSelectionEngine* pEng ); ~ScColBar(); - virtual SCCOLROW GetPos(); - virtual USHORT GetEntrySize( SCCOLROW nEntryNo ); - virtual String GetEntryText( SCCOLROW nEntryNo ); + virtual SCCOLROW GetPos(); + virtual USHORT GetEntrySize( SCCOLROW nEntryNo ); + virtual String GetEntryText( SCCOLROW nEntryNo ); - virtual BOOL IsLayoutRTL(); // only for columns + virtual BOOL IsLayoutRTL(); // only for columns - virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewSize ); - virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ); + virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewSize ); + virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ); - virtual void SetMarking( BOOL bSet ); - virtual void SelectWindow(); - virtual BOOL IsDisabled(); - virtual BOOL ResizeAllowed(); + virtual void SetMarking( BOOL bSet ); + virtual void SelectWindow(); + virtual BOOL IsDisabled(); + virtual BOOL ResizeAllowed(); - virtual void DrawInvert( long nDragPos ); + virtual void DrawInvert( long nDragPos ); - virtual String GetDragHelp( long nVal ); + virtual String GetDragHelp( long nVal ); - BOOL UseNumericHeader() const; + BOOL UseNumericHeader() const; }; class ScRowBar : public ScHeaderControl { - ScViewData* pViewData; - ScVSplitPos eWhich; - ScHeaderFunctionSet* pFuncSet; + ScViewData* pViewData; + ScVSplitPos eWhich; + ScHeaderFunctionSet* pFuncSet; ScHeaderSelectionEngine* pSelEngine; public: @@ -83,24 +83,24 @@ public: ScHeaderFunctionSet* pFunc, ScHeaderSelectionEngine* pEng ); ~ScRowBar(); - virtual SCCOLROW GetPos(); - virtual USHORT GetEntrySize( SCCOLROW nEntryNo ); - virtual String GetEntryText( SCCOLROW nEntryNo ); + virtual SCCOLROW GetPos(); + virtual USHORT GetEntrySize( SCCOLROW nEntryNo ); + virtual String GetEntryText( SCCOLROW nEntryNo ); - virtual BOOL IsMirrored(); // only for columns - virtual SCROW GetHiddenCount( SCROW nEntryNo ); // only for columns + virtual BOOL IsMirrored(); // only for columns + virtual SCROW GetHiddenCount( SCROW nEntryNo ); // only for columns - virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewSize ); - virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ); + virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewSize ); + virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ); - virtual void SetMarking( BOOL bSet ); - virtual void SelectWindow(); - virtual BOOL IsDisabled(); - virtual BOOL ResizeAllowed(); + virtual void SetMarking( BOOL bSet ); + virtual void SelectWindow(); + virtual BOOL IsDisabled(); + virtual BOOL ResizeAllowed(); - virtual void DrawInvert( long nDragPos ); + virtual void DrawInvert( long nDragPos ); - virtual String GetDragHelp( long nVal ); + virtual String GetDragHelp( long nVal ); }; diff --git a/sc/source/ui/inc/condfrmt.hrc b/sc/source/ui/inc/condfrmt.hrc index 099d82b2fa85..67d587cf8ec9 100644 --- a/sc/source/ui/inc/condfrmt.hrc +++ b/sc/source/ui/inc/condfrmt.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -27,45 +27,45 @@ #include "sc.hrc" // ->RID_SCDLG_SOLVER -#define CBX_COND1 1 -#define LB_COND1_1 2 -#define LB_COND1_2 3 -#define EDT_COND1_1 4 -#define RB_COND1_1 5 -#define FT_COND1_AND 6 -#define EDT_COND1_2 7 -#define RB_COND1_2 8 -#define FT_COND1_TEMPLATE 9 -#define LB_COND1_TEMPLATE 10 +#define CBX_COND1 1 +#define LB_COND1_1 2 +#define LB_COND1_2 3 +#define EDT_COND1_1 4 +#define RB_COND1_1 5 +#define FT_COND1_AND 6 +#define EDT_COND1_2 7 +#define RB_COND1_2 8 +#define FT_COND1_TEMPLATE 9 +#define LB_COND1_TEMPLATE 10 -#define CBX_COND2 11 -#define LB_COND2_1 12 -#define LB_COND2_2 13 -#define EDT_COND2_1 14 -#define RB_COND2_1 15 -#define FT_COND2_AND 16 -#define EDT_COND2_2 17 -#define RB_COND2_2 18 -#define FT_COND2_TEMPLATE 19 -#define LB_COND2_TEMPLATE 20 +#define CBX_COND2 11 +#define LB_COND2_1 12 +#define LB_COND2_2 13 +#define EDT_COND2_1 14 +#define RB_COND2_1 15 +#define FT_COND2_AND 16 +#define EDT_COND2_2 17 +#define RB_COND2_2 18 +#define FT_COND2_TEMPLATE 19 +#define LB_COND2_TEMPLATE 20 -#define CBX_COND3 21 -#define LB_COND3_1 22 -#define LB_COND3_2 23 -#define EDT_COND3_1 24 -#define RB_COND3_1 25 -#define FT_COND3_AND 26 -#define EDT_COND3_2 27 -#define RB_COND3_2 28 -#define FT_COND3_TEMPLATE 29 -#define LB_COND3_TEMPLATE 30 +#define CBX_COND3 21 +#define LB_COND3_1 22 +#define LB_COND3_2 23 +#define EDT_COND3_1 24 +#define RB_COND3_1 25 +#define FT_COND3_AND 26 +#define EDT_COND3_2 27 +#define RB_COND3_2 28 +#define FT_COND3_TEMPLATE 29 +#define LB_COND3_TEMPLATE 30 #define FL_SEP1 41 #define FL_SEP2 42 #define BTN_OK 31 -#define BTN_CANCEL 32 -#define BTN_HELP 33 +#define BTN_CANCEL 32 +#define BTN_HELP 33 #define BTN_COND1_NEW 34 #define BTN_COND2_NEW 35 diff --git a/sc/source/ui/inc/condfrmt.hxx b/sc/source/ui/inc/condfrmt.hxx index ecd4c529d57a..fe4f38d4a264 100644 --- a/sc/source/ui/inc/condfrmt.hxx +++ b/sc/source/ui/inc/condfrmt.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,7 +39,7 @@ class ScConditionalFormat; //============================================================================ -// class ScConditionalFormat +// class ScConditionalFormat // // Dialog zum Festlegen von bedingten Formaten @@ -51,85 +51,85 @@ public: const ScConditionalFormat* pCurrentFormat ); ~ScConditionalFormatDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual void AddRefEntry(); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void AddRefEntry(); virtual BOOL IsRefInputMode() const; - virtual void SetActive(); - virtual BOOL Close(); + virtual void SetActive(); + virtual BOOL Close(); private: - CheckBox aCbxCond1; - ListBox aLbCond11; - ListBox aLbCond12; - formula::RefEdit aEdtCond11; - formula::RefButton aRbCond11; - FixedText aFtCond1And; - formula::RefEdit aEdtCond12; - formula::RefButton aRbCond12; - FixedText aFtCond1Template; - ListBox aLbCond1Template; + CheckBox aCbxCond1; + ListBox aLbCond11; + ListBox aLbCond12; + formula::RefEdit aEdtCond11; + formula::RefButton aRbCond11; + FixedText aFtCond1And; + formula::RefEdit aEdtCond12; + formula::RefButton aRbCond12; + FixedText aFtCond1Template; + ListBox aLbCond1Template; PushButton aBtnNew1; FixedLine aFlSep1; CheckBox aCbxCond2; - ListBox aLbCond21; - ListBox aLbCond22; - formula::RefEdit aEdtCond21; - formula::RefButton aRbCond21; - FixedText aFtCond2And; - formula::RefEdit aEdtCond22; - formula::RefButton aRbCond22; - FixedText aFtCond2Template; - ListBox aLbCond2Template; + ListBox aLbCond21; + ListBox aLbCond22; + formula::RefEdit aEdtCond21; + formula::RefButton aRbCond21; + FixedText aFtCond2And; + formula::RefEdit aEdtCond22; + formula::RefButton aRbCond22; + FixedText aFtCond2Template; + ListBox aLbCond2Template; PushButton aBtnNew2; FixedLine aFlSep2; - CheckBox aCbxCond3; - ListBox aLbCond31; - ListBox aLbCond32; - formula::RefEdit aEdtCond31; - formula::RefButton aRbCond31; - FixedText aFtCond3And; - formula::RefEdit aEdtCond32; - formula::RefButton aRbCond32; - FixedText aFtCond3Template; - ListBox aLbCond3Template; + CheckBox aCbxCond3; + ListBox aLbCond31; + ListBox aLbCond32; + formula::RefEdit aEdtCond31; + formula::RefButton aRbCond31; + FixedText aFtCond3And; + formula::RefEdit aEdtCond32; + formula::RefButton aRbCond32; + FixedText aFtCond3Template; + ListBox aLbCond3Template; PushButton aBtnNew3; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - - Point aCond1Pos1; - Point aCond1Pos2; - Point aRBtn1Pos1; - Point aRBtn1Pos2; - Size aCond1Size1; - Size aCond1Size2; - Size aCond1Size3; - - Point aCond2Pos1; - Point aCond2Pos2; - Point aRBtn2Pos1; - Point aRBtn2Pos2; - Size aCond2Size1; - Size aCond2Size2; - Size aCond2Size3; - - Point aCond3Pos1; - Point aCond3Pos2; - Point aRBtn3Pos1; - Point aRBtn3Pos2; - Size aCond3Size1; - Size aCond3Size2; - Size aCond3Size3; - - formula::RefEdit* pEdActive; - BOOL bDlgLostFocus; - ScDocument* pDoc; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + + Point aCond1Pos1; + Point aCond1Pos2; + Point aRBtn1Pos1; + Point aRBtn1Pos2; + Size aCond1Size1; + Size aCond1Size2; + Size aCond1Size3; + + Point aCond2Pos1; + Point aCond2Pos2; + Point aRBtn2Pos1; + Point aRBtn2Pos2; + Size aCond2Size1; + Size aCond2Size2; + Size aCond2Size3; + + Point aCond3Pos1; + Point aCond3Pos2; + Point aRBtn3Pos1; + Point aRBtn3Pos2; + Size aCond3Size1; + Size aCond3Size2; + Size aCond3Size3; + + formula::RefEdit* pEdActive; + BOOL bDlgLostFocus; + ScDocument* pDoc; #ifdef _CONDFRMT_CXX - void GetConditionalFormat( ScConditionalFormat& rCndFmt ); + void GetConditionalFormat( ScConditionalFormat& rCndFmt ); DECL_LINK( ClickCond1Hdl, void * ); DECL_LINK( ChangeCond11Hdl, void * ); diff --git a/sc/source/ui/inc/conflictsdlg.hrc b/sc/source/ui/inc/conflictsdlg.hrc index 7935a6ee21d7..cfd864d5ec0a 100644 --- a/sc/source/ui/inc/conflictsdlg.hrc +++ b/sc/source/ui/inc/conflictsdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/conflictsdlg.hxx b/sc/source/ui/inc/conflictsdlg.hxx index faeecb370c78..454ef702809d 100644 --- a/sc/source/ui/inc/conflictsdlg.hxx +++ b/sc/source/ui/inc/conflictsdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/consdlg.hxx b/sc/source/ui/inc/consdlg.hxx index e82e2619cce0..9048a03bac58 100644 --- a/sc/source/ui/inc/consdlg.hxx +++ b/sc/source/ui/inc/consdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -55,78 +55,78 @@ class ScConsolidateDlg : public ScAnyRefDlg { public: ScConsolidateDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - const SfxItemSet& rArgSet ); + const SfxItemSet& rArgSet ); ~ScConsolidateDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const { return TRUE; } - virtual void SetActive(); + virtual BOOL IsRefInputMode() const { return TRUE; } + virtual void SetActive(); - virtual BOOL Close(); + virtual BOOL Close(); protected: - virtual void Deactivate(); + virtual void Deactivate(); private: - FixedText aFtFunc; - ListBox aLbFunc; + FixedText aFtFunc; + ListBox aLbFunc; - FixedText aFtConsAreas; - MultiListBox aLbConsAreas; + FixedText aFtConsAreas; + MultiListBox aLbConsAreas; - ListBox aLbDataArea; - FixedText aFtDataArea; - formula::RefEdit aEdDataArea; - formula::RefButton aRbDataArea; + ListBox aLbDataArea; + FixedText aFtDataArea; + formula::RefEdit aEdDataArea; + formula::RefButton aRbDataArea; - ListBox aLbDestArea; - FixedText aFtDestArea; - formula::RefEdit aEdDestArea; - formula::RefButton aRbDestArea; + ListBox aLbDestArea; + FixedText aFtDestArea; + formula::RefEdit aEdDestArea; + formula::RefButton aRbDestArea; FixedLine aFlConsBy; - CheckBox aBtnByRow; - CheckBox aBtnByCol; + CheckBox aBtnByRow; + CheckBox aBtnByCol; FixedLine aFlSep; FixedLine aFlOptions; - CheckBox aBtnRefs; + CheckBox aBtnRefs; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - PushButton aBtnAdd; - PushButton aBtnRemove; - MoreButton aBtnMore; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + PushButton aBtnAdd; + PushButton aBtnRemove; + MoreButton aBtnMore; - String aStrUndefined; + String aStrUndefined; - ScConsolidateParam theConsData; - ScViewData* pViewData; - ScDocument* pDoc; - ScRangeUtil* pRangeUtil; - ScAreaData* pAreaData; - USHORT nAreaDataCount; - USHORT nWhichCons; + ScConsolidateParam theConsData; + ScViewData* pViewData; + ScDocument* pDoc; + ScRangeUtil* pRangeUtil; + ScAreaData* pAreaData; + USHORT nAreaDataCount; + USHORT nWhichCons; - formula::RefEdit* pRefInputEdit; - BOOL bDlgLostFocus; + formula::RefEdit* pRefInputEdit; + BOOL bDlgLostFocus; #ifdef _CONSDLG_CXX private: - void Init (); - void FillAreaLists (); - BOOL VerifyEdit ( formula::RefEdit* pEd ); + void Init (); + void FillAreaLists (); + BOOL VerifyEdit ( formula::RefEdit* pEd ); - DECL_LINK( OkHdl, void* ); - DECL_LINK( ClickHdl, PushButton* ); + DECL_LINK( OkHdl, void* ); + DECL_LINK( ClickHdl, PushButton* ); DECL_LINK( GetFocusHdl, Control* ); - DECL_LINK( ModifyHdl, formula::RefEdit* ); - DECL_LINK( SelectHdl, ListBox* ); + DECL_LINK( ModifyHdl, formula::RefEdit* ); + DECL_LINK( SelectHdl, ListBox* ); - ScSubTotalFunc LbPosToFunc( USHORT nPos ); - USHORT FuncToLbPos( ScSubTotalFunc eFunc ); + ScSubTotalFunc LbPosToFunc( USHORT nPos ); + USHORT FuncToLbPos( ScSubTotalFunc eFunc ); #endif // _CONSDLG_CXX }; diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx index b7d4d292c406..929df0f9861a 100644 --- a/sc/source/ui/inc/content.hxx +++ b/sc/source/ui/inc/content.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,61 +39,61 @@ class ScDocument; class ScDocShell; class ScAreaLink; -#define SC_CONTENT_ROOT 0 -#define SC_CONTENT_TABLE 1 -#define SC_CONTENT_RANGENAME 2 -#define SC_CONTENT_DBAREA 3 -#define SC_CONTENT_GRAPHIC 4 -#define SC_CONTENT_OLEOBJECT 5 -#define SC_CONTENT_NOTE 6 -#define SC_CONTENT_AREALINK 7 -#define SC_CONTENT_DRAWING 8 -#define SC_CONTENT_COUNT 9 +#define SC_CONTENT_ROOT 0 +#define SC_CONTENT_TABLE 1 +#define SC_CONTENT_RANGENAME 2 +#define SC_CONTENT_DBAREA 3 +#define SC_CONTENT_GRAPHIC 4 +#define SC_CONTENT_OLEOBJECT 5 +#define SC_CONTENT_NOTE 6 +#define SC_CONTENT_AREALINK 7 +#define SC_CONTENT_DRAWING 8 +#define SC_CONTENT_COUNT 9 const ULONG SC_CONTENT_NOCHILD = ~0UL; // -// TreeListBox fuer Inhalte +// TreeListBox fuer Inhalte // class ScContentTree : public SvTreeListBox { - ScNavigatorDlg* pParentWindow; - ImageList aEntryImages; - ImageList aHCEntryImages; - SvLBoxEntry* pRootNodes[SC_CONTENT_COUNT]; - USHORT nRootType; // als Root eingestellt - String aManualDoc; // im Navigator umgeschaltet (Title) - BOOL bHiddenDoc; // verstecktes aktiv? - String aHiddenName; // URL zum Laden - String aHiddenTitle; // fuer Anzeige - ScDocument* pHiddenDocument; // temporaer + ScNavigatorDlg* pParentWindow; + ImageList aEntryImages; + ImageList aHCEntryImages; + SvLBoxEntry* pRootNodes[SC_CONTENT_COUNT]; + USHORT nRootType; // als Root eingestellt + String aManualDoc; // im Navigator umgeschaltet (Title) + BOOL bHiddenDoc; // verstecktes aktiv? + String aHiddenName; // URL zum Laden + String aHiddenTitle; // fuer Anzeige + ScDocument* pHiddenDocument; // temporaer - USHORT pPosList[SC_CONTENT_COUNT]; // fuer die Reihenfolge + USHORT pPosList[SC_CONTENT_COUNT]; // fuer die Reihenfolge - static BOOL bIsInDrag; // static, falls der Navigator im ExecuteDrag geloescht wird + static BOOL bIsInDrag; // static, falls der Navigator im ExecuteDrag geloescht wird ScDocShell* GetManualOrCurrent(); - void InitRoot(USHORT nType); - void ClearType(USHORT nType); - void ClearAll(); - void InsertContent( USHORT nType, const String& rValue ); + void InitRoot(USHORT nType); + void ClearType(USHORT nType); + void ClearAll(); + void InsertContent( USHORT nType, const String& rValue ); void GetDrawNames( USHORT nType ); - void GetTableNames(); - void GetAreaNames(); - void GetDbNames(); - void GetLinkNames(); - void GetGraphicNames(); - void GetOleNames(); - void GetDrawingNames(); - void GetNoteStrings(); + void GetTableNames(); + void GetAreaNames(); + void GetDbNames(); + void GetLinkNames(); + void GetGraphicNames(); + void GetOleNames(); + void GetDrawingNames(); + void GetNoteStrings(); static bool IsPartOfType( USHORT nContentType, USHORT nObjIdentifier ); - BOOL DrawNamesChanged( USHORT nType ); - BOOL NoteStringsChanged(); + BOOL DrawNamesChanged( USHORT nType ); + BOOL NoteStringsChanged(); ScAddress GetNotePos( ULONG nIndex ); const ScAreaLink* GetLink( ULONG nIndex ); @@ -109,8 +109,8 @@ class ScContentTree : public SvTreeListBox @return Index of the entry inside its root or SC_CONTENT_NOCHILD if entry is root. */ ULONG GetChildIndex( SvLBoxEntry* pEntry ) const; - void DoDrag(); -//UNUSED2008-05 void AdjustTitle(); + void DoDrag(); +//UNUSED2008-05 void AdjustTitle(); ScDocument* GetSourceDocument(); @@ -118,18 +118,18 @@ class ScContentTree : public SvTreeListBox DECL_STATIC_LINK( ScContentTree, ExecDragHdl, void* ); protected: -// virtual BOOL Drop( const DropEvent& rEvt ); -// virtual BOOL QueryDrop( DropEvent& rEvt ); +// virtual BOOL Drop( const DropEvent& rEvt ); +// virtual BOOL QueryDrop( DropEvent& rEvt ); using SvTreeListBox::ExecuteDrop; - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); + virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); - virtual void DragFinished( sal_Int8 nAction ); + virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); + virtual void DragFinished( sal_Int8 nAction ); - virtual void Command( const CommandEvent& rCEvt ); - virtual void RequestHelp( const HelpEvent& rHEvt ); + virtual void Command( const CommandEvent& rCEvt ); + virtual void RequestHelp( const HelpEvent& rHEvt ); public: ScContentTree( Window* pParent, const ResId& rResId ); @@ -138,28 +138,28 @@ public: virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void KeyInput( const KeyEvent& rKEvt ); - void InitWindowBits( BOOL bButtons ); + void InitWindowBits( BOOL bButtons ); void Refresh( USHORT nType = 0 ); - void ToggleRoot(); - void SetRootType( USHORT nNew ); - USHORT GetRootType() const { return nRootType; } + void ToggleRoot(); + void SetRootType( USHORT nNew ); + USHORT GetRootType() const { return nRootType; } - void ActiveDocChanged(); - void ResetManualDoc(); - void SetManualDoc(const String& rName); - BOOL LoadFile(const String& rUrl); - void SelectDoc(const String& rName); + void ActiveDocChanged(); + void ResetManualDoc(); + void SetManualDoc(const String& rName); + BOOL LoadFile(const String& rUrl); + void SelectDoc(const String& rName); - const String& GetHiddenTitle() const { return aHiddenTitle; } + const String& GetHiddenTitle() const { return aHiddenTitle; } /** Applies the navigator settings to the listbox. */ void ApplySettings(); /** Stores the current listbox state in the navigator settings. */ void StoreSettings() const; - static BOOL IsInDrag() { return bIsInDrag; } + static BOOL IsInDrag() { return bIsInDrag; } }; diff --git a/sc/source/ui/inc/corodlg.hxx b/sc/source/ui/inc/corodlg.hxx index 424326565619..36d1e123600f 100644 --- a/sc/source/ui/inc/corodlg.hxx +++ b/sc/source/ui/inc/corodlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,9 +51,9 @@ public: BOOL bRow = FALSE ) : ModalDialog( pParent, ScResId( RID_SCDLG_CHARTCOLROW ) ), aFlColRow ( this, ScResId(6) ), - aBtnRow ( this, ScResId(2) ), - aBtnCol ( this, ScResId(1) ), - aBtnOk ( this, ScResId(3) ), + aBtnRow ( this, ScResId(2) ), + aBtnCol ( this, ScResId(1) ), + aBtnOk ( this, ScResId(3) ), aBtnCancel ( this, ScResId(4) ), aBtnHelp ( this, ScResId(5) ) { @@ -67,11 +67,11 @@ public: private: FixedLine aFlColRow; - CheckBox aBtnRow; - CheckBox aBtnCol; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + CheckBox aBtnRow; + CheckBox aBtnCol; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; }; diff --git a/sc/source/ui/inc/crdlg.hxx b/sc/source/ui/inc/crdlg.hxx index 20dd79f359ad..a19d7b41a841 100644 --- a/sc/source/ui/inc/crdlg.hxx +++ b/sc/source/ui/inc/crdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,7 +32,7 @@ #include <vcl/dialog.hxx> #include <vcl/imagebtn.hxx> #include <vcl/fixed.hxx> -#include "scui_def.hxx" //CHINA001 +#include "scui_def.hxx" //CHINA001 //CHINA001 #define SCRET_COLS 0x42 //CHINA001 #define SCRET_ROWS 0x43 @@ -42,19 +42,19 @@ class ScColOrRowDlg : public ModalDialog { public: - ScColOrRowDlg( Window* pParent, - const String& rStrTitle, - const String& rStrLabel, - BOOL bColDefault = TRUE ); + ScColOrRowDlg( Window* pParent, + const String& rStrTitle, + const String& rStrLabel, + BOOL bColDefault = TRUE ); ~ScColOrRowDlg(); private: FixedLine aFlFrame; - RadioButton aBtnRows; - RadioButton aBtnCols; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + RadioButton aBtnRows; + RadioButton aBtnCols; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; DECL_LINK( OkHdl, OKButton * ); }; diff --git a/sc/source/ui/inc/crnrdlg.hrc b/sc/source/ui/inc/crnrdlg.hrc index 1d27531f9bc1..8e8de3fe32bd 100644 --- a/sc/source/ui/inc/crnrdlg.hrc +++ b/sc/source/ui/inc/crnrdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,19 +28,19 @@ #include "sc.hrc" // -> RID_SCDLG_COLROWNAMERANGES #define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_ADD 3 -#define BTN_REMOVE 4 -#define BTN_HELP 5 +#define BTN_CANCEL 2 +#define BTN_ADD 3 +#define BTN_REMOVE 4 +#define BTN_HELP 5 // -#define LB_RANGE 11 +#define LB_RANGE 11 // #define FL_ASSIGN 12 -#define ED_AREA 13 -#define RB_AREA 14 -#define BTN_COLHEAD 15 -#define BTN_ROWHEAD 16 -#define ED_DATA 17 -#define RB_DATA 18 -#define FT_DATA_LABEL 19 +#define ED_AREA 13 +#define RB_AREA 14 +#define BTN_COLHEAD 15 +#define BTN_ROWHEAD 16 +#define ED_DATA 17 +#define RB_DATA 18 +#define FT_DATA_LABEL 19 // diff --git a/sc/source/ui/inc/crnrdlg.hxx b/sc/source/ui/inc/crnrdlg.hxx index e45ff4403633..5cee52d5a516 100644 --- a/sc/source/ui/inc/crnrdlg.hxx +++ b/sc/source/ui/inc/crnrdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,51 +45,51 @@ class ScColRowNameRangesDlg : public ScAnyRefDlg { public: ScColRowNameRangesDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScViewData* ptrViewData ); + ScViewData* ptrViewData ); ~ScColRowNameRangesDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const; - virtual void SetActive(); - virtual BOOL Close(); + virtual BOOL IsRefInputMode() const; + virtual void SetActive(); + virtual BOOL Close(); private: FixedLine aFlAssign; - ListBox aLbRange; + ListBox aLbRange; - formula::RefEdit aEdAssign; - formula::RefButton aRbAssign; - RadioButton aBtnColHead; - RadioButton aBtnRowHead; - FixedText aFtAssign2; - formula::RefEdit aEdAssign2; - formula::RefButton aRbAssign2; + formula::RefEdit aEdAssign; + formula::RefButton aRbAssign; + RadioButton aBtnColHead; + RadioButton aBtnRowHead; + FixedText aFtAssign2; + formula::RefEdit aEdAssign2; + formula::RefButton aRbAssign2; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - PushButton aBtnAdd; - PushButton aBtnRemove; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + PushButton aBtnAdd; + PushButton aBtnRemove; - ScRange theCurArea; - ScRange theCurData; + ScRange theCurArea; + ScRange theCurData; - ScRangePairListRef xColNameRanges; - ScRangePairListRef xRowNameRanges; + ScRangePairListRef xColNameRanges; + ScRangePairListRef xRowNameRanges; typedef ::std::hash_map< String, ScRange, ScStringHashCode, ::std::equal_to<String> > NameRangeMap; NameRangeMap aRangeMap; - ScViewData* pViewData; - ScDocument* pDoc; - formula::RefEdit* pEdActive; - BOOL bDlgLostFocus; + ScViewData* pViewData; + ScDocument* pDoc; + formula::RefEdit* pEdActive; + BOOL bDlgLostFocus; #ifdef _CRNRDLG_CXX private: - void Init (); - void UpdateNames (); - void UpdateRangeData ( const ScRange& rRange, BOOL bColName ); + void Init (); + void UpdateNames (); + void UpdateRangeData ( const ScRange& rRange, BOOL bColName ); void SetColRowData( const ScRange& rLabelRange,BOOL bRef=FALSE); void AdjustColRowData( const ScRange& rDataRange,BOOL bRef=FALSE); DECL_LINK( CancelBtnHdl, void * ); diff --git a/sc/source/ui/inc/csvcontrol.hxx b/sc/source/ui/inc/csvcontrol.hxx index c38abfb83598..a4c98ce64cd4 100644 --- a/sc/source/ui/inc/csvcontrol.hxx +++ b/sc/source/ui/inc/csvcontrol.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx index fb6d687533e6..816b772e81c9 100644 --- a/sc/source/ui/inc/csvgrid.hxx +++ b/sc/source/ui/inc/csvgrid.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/csvruler.hxx b/sc/source/ui/inc/csvruler.hxx index 52be4b4ebd8c..33af9f9d24a9 100644 --- a/sc/source/ui/inc/csvruler.hxx +++ b/sc/source/ui/inc/csvruler.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/csvsplits.hxx b/sc/source/ui/inc/csvsplits.hxx index 4685269936d5..2a009f23cd5c 100644 --- a/sc/source/ui/inc/csvsplits.hxx +++ b/sc/source/ui/inc/csvsplits.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/csvtablebox.hxx b/sc/source/ui/inc/csvtablebox.hxx index 205e8b50cad1..a0a1e206a22c 100644 --- a/sc/source/ui/inc/csvtablebox.hxx +++ b/sc/source/ui/inc/csvtablebox.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/dapidata.hxx b/sc/source/ui/inc/dapidata.hxx index 13d7e91bdceb..a4379bb70a03 100644 --- a/sc/source/ui/inc/dapidata.hxx +++ b/sc/source/ui/inc/dapidata.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,17 +45,17 @@ class ScDataPilotDatabaseDlg : public ModalDialog { private: FixedLine aFlFrame; - FixedText aFtDatabase; - ListBox aLbDatabase; - FixedText aFtObject; - ComboBox aCbObject; - FixedText aFtType; - ListBox aLbType; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + FixedText aFtDatabase; + ListBox aLbDatabase; + FixedText aFtObject; + ComboBox aCbObject; + FixedText aFtType; + ListBox aLbType; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; - void FillObjects(); + void FillObjects(); DECL_LINK( SelectHdl, ListBox* ); @@ -63,7 +63,7 @@ public: ScDataPilotDatabaseDlg( Window* pParent ); ~ScDataPilotDatabaseDlg(); - void GetValues( ScImportSourceDesc& rDesc ); + void GetValues( ScImportSourceDesc& rDesc ); }; diff --git a/sc/source/ui/inc/dapitype.hxx b/sc/source/ui/inc/dapitype.hxx index 07659b1dbc59..2962df9fdcc1 100644 --- a/sc/source/ui/inc/dapitype.hxx +++ b/sc/source/ui/inc/dapitype.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,19 +43,19 @@ class ScDataPilotSourceTypeDlg : public ModalDialog { private: FixedLine aFlFrame; - RadioButton aBtnSelection; - RadioButton aBtnDatabase; - RadioButton aBtnExternal; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + RadioButton aBtnSelection; + RadioButton aBtnDatabase; + RadioButton aBtnExternal; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; public: ScDataPilotSourceTypeDlg( Window* pParent, BOOL bEnableExternal ); ~ScDataPilotSourceTypeDlg(); - BOOL IsDatabase() const; - BOOL IsExternal() const; + BOOL IsDatabase() const; + BOOL IsExternal() const; }; @@ -63,30 +63,30 @@ class ScDataPilotServiceDlg : public ModalDialog { private: FixedLine aFlFrame; - FixedText aFtService; - ListBox aLbService; - FixedText aFtSource; - Edit aEdSource; - FixedText aFtName; - Edit aEdName; - FixedText aFtUser; - Edit aEdUser; - FixedText aFtPasswd; - Edit aEdPasswd; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + FixedText aFtService; + ListBox aLbService; + FixedText aFtSource; + Edit aEdSource; + FixedText aFtName; + Edit aEdName; + FixedText aFtUser; + Edit aEdUser; + FixedText aFtPasswd; + Edit aEdPasswd; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; public: ScDataPilotServiceDlg( Window* pParent, const com::sun::star::uno::Sequence<rtl::OUString>& rServices ); ~ScDataPilotServiceDlg(); - String GetServiceName() const; - String GetParSource() const; - String GetParName() const; - String GetParUser() const; - String GetParPass() const; + String GetServiceName() const; + String GetParSource() const; + String GetParName() const; + String GetParUser() const; + String GetParPass() const; }; diff --git a/sc/source/ui/inc/dbdocfun.hxx b/sc/source/ui/inc/dbdocfun.hxx index efdd29b44738..4346d2a85bab 100644 --- a/sc/source/ui/inc/dbdocfun.hxx +++ b/sc/source/ui/inc/dbdocfun.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -73,49 +73,49 @@ class ScDBDocFunc friend class ScDBFunc; private: - ScDocShell& rDocShell; + ScDocShell& rDocShell; public: ScDBDocFunc( ScDocShell& rDocSh ): rDocShell(rDocSh) {} ~ScDBDocFunc() {} - void UpdateImport( const String& rTarget, const String& rDBName, + void UpdateImport( const String& rTarget, const String& rDBName, const String& rTableName, const String& rStatement, BOOL bNative, BYTE nType, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet >& xResultSet, const SbaSelectionList* pSelection ); - BOOL DoImport( SCTAB nTab, const ScImportParam& rParam, + BOOL DoImport( SCTAB nTab, const ScImportParam& rParam, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet >& xResultSet, const SbaSelectionList* pSelection, BOOL bRecord, BOOL bAddrInsert = FALSE ); - BOOL DoImportUno( const ScAddress& rPos, + BOOL DoImportUno( const ScAddress& rPos, const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue>& aArgs ); - static void ShowInBeamer( const ScImportParam& rParam, SfxViewFrame* pFrame ); + static void ShowInBeamer( const ScImportParam& rParam, SfxViewFrame* pFrame ); - BOOL Sort( SCTAB nTab, const ScSortParam& rSortParam, + BOOL Sort( SCTAB nTab, const ScSortParam& rSortParam, BOOL bRecord, BOOL bPaint, BOOL bApi ); - SC_DLLPUBLIC BOOL Query( SCTAB nTab, const ScQueryParam& rQueryParam, + SC_DLLPUBLIC BOOL Query( SCTAB nTab, const ScQueryParam& rQueryParam, const ScRange* pAdvSource, BOOL bRecord, BOOL bApi ); - BOOL DoSubTotals( SCTAB nTab, const ScSubTotalParam& rParam, + BOOL DoSubTotals( SCTAB nTab, const ScSubTotalParam& rParam, const ScSortParam* pForceNewSort, BOOL bRecord, BOOL bApi ); - BOOL AddDBRange( const String& rName, const ScRange& rRange, BOOL bApi ); - BOOL DeleteDBRange( const String& rName, BOOL bApi ); - BOOL RenameDBRange( const String& rOld, const String& rNew, BOOL bApi ); - BOOL ModifyDBData( const ScDBData& rNewData, BOOL bApi ); // Name unveraendert + BOOL AddDBRange( const String& rName, const ScRange& rRange, BOOL bApi ); + BOOL DeleteDBRange( const String& rName, BOOL bApi ); + BOOL RenameDBRange( const String& rOld, const String& rNew, BOOL bApi ); + BOOL ModifyDBData( const ScDBData& rNewData, BOOL bApi ); // Name unveraendert - BOOL RepeatDB( const String& rDBName, BOOL bRecord, BOOL bApi ); + BOOL RepeatDB( const String& rDBName, BOOL bRecord, BOOL bApi ); - BOOL DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewObj, + BOOL DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewObj, BOOL bRecord, BOOL bApi, BOOL bAllowMove = FALSE ); }; diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx index baadae0a64dc..65805c84f68a 100644 --- a/sc/source/ui/inc/dbfunc.hxx +++ b/sc/source/ui/inc/dbfunc.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,39 +53,39 @@ private: public: ScDBFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ); //UNUSED2008-05 ScDBFunc( Window* pParent, const ScDBFunc& rDBFunc, ScTabViewShell* pViewShell ); - virtual ~ScDBFunc(); + virtual ~ScDBFunc(); - // nur UISort wiederholt bei Bedarf die Teilergebnisse + // nur UISort wiederholt bei Bedarf die Teilergebnisse - void UISort( const ScSortParam& rSortParam, + void UISort( const ScSortParam& rSortParam, BOOL bRecord = TRUE ); - void Sort( const ScSortParam& rSortParam, + void Sort( const ScSortParam& rSortParam, BOOL bRecord = TRUE, BOOL bPaint = TRUE ); - SC_DLLPUBLIC void Query( const ScQueryParam& rQueryParam, + SC_DLLPUBLIC void Query( const ScQueryParam& rQueryParam, const ScRange* pAdvSource, BOOL bRecord ); - void DoSubTotals( const ScSubTotalParam& rParam, BOOL bRecord = TRUE, + void DoSubTotals( const ScSubTotalParam& rParam, BOOL bRecord = TRUE, const ScSortParam* pForceNewSort = NULL ); - void ToggleAutoFilter(); - void HideAutoFilter(); + void ToggleAutoFilter(); + void HideAutoFilter(); - void RepeatDB( BOOL bRecord = TRUE ); + void RepeatDB( BOOL bRecord = TRUE ); - BOOL ImportData( const ScImportParam& rParam, BOOL bRecord = TRUE ); + BOOL ImportData( const ScImportParam& rParam, BOOL bRecord = TRUE ); - void GotoDBArea( const String& rDBName ); + void GotoDBArea( const String& rDBName ); // DB-Bereich vom Cursor - ScDBData* GetDBData( BOOL bMarkArea = TRUE, ScGetDBMode eMode = SC_DB_MAKE, ScGetDBSelection eSel = SC_DBSEL_KEEP ); + ScDBData* GetDBData( BOOL bMarkArea = TRUE, ScGetDBMode eMode = SC_DB_MAKE, ScGetDBSelection eSel = SC_DBSEL_KEEP ); - void NotifyCloseDbNameDlg( const ScDBCollection& rNewColl, const List& rDelAreaList ); + void NotifyCloseDbNameDlg( const ScDBCollection& rNewColl, const List& rDelAreaList ); - void Consolidate( const ScConsolidateParam& rParam, BOOL bRecord = TRUE ); + void Consolidate( const ScConsolidateParam& rParam, BOOL bRecord = TRUE ); bool MakePivotTable( const ScDPSaveData& rData, const ScRange& rDest, BOOL bNewTable, const ScDPObject& rSource, BOOL bApi = FALSE ); - void DeletePivotTable(); + void DeletePivotTable(); // Wang Xu Ming -- 2009-6-17 // DataPilot Migration ULONG RecalcPivotTable(); @@ -107,25 +107,25 @@ public: void ShowDataPilotSourceData( ScDPObject& rDPObj, const ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::DataPilotFieldFilter >& rFilters ); - void MakeOutline( BOOL bColumns, BOOL bRecord = TRUE ); - void RemoveOutline( BOOL bColumns, BOOL bRecord = TRUE ); - void RemoveAllOutlines( BOOL bRecord = TRUE ); - void TestRemoveOutline( BOOL& rCol, BOOL& rRow ); + void MakeOutline( BOOL bColumns, BOOL bRecord = TRUE ); + void RemoveOutline( BOOL bColumns, BOOL bRecord = TRUE ); + void RemoveAllOutlines( BOOL bRecord = TRUE ); + void TestRemoveOutline( BOOL& rCol, BOOL& rRow ); - void AutoOutline( BOOL bRecord = TRUE ); + void AutoOutline( BOOL bRecord = TRUE ); - void SelectLevel( BOOL bColumns, USHORT nLevel, + void SelectLevel( BOOL bColumns, USHORT nLevel, BOOL bRecord = TRUE, BOOL bPaint = TRUE ); - void ShowOutline( BOOL bColumns, USHORT nLevel, USHORT nEntry, + void ShowOutline( BOOL bColumns, USHORT nLevel, USHORT nEntry, BOOL bRecord = TRUE, BOOL bPaint = TRUE ); - void HideOutline( BOOL bColumns, USHORT nLevel, USHORT nEntry, + void HideOutline( BOOL bColumns, USHORT nLevel, USHORT nEntry, BOOL bRecord = TRUE, BOOL bPaint = TRUE ); - void ShowMarkedOutlines( BOOL bRecord = TRUE ); - void HideMarkedOutlines( BOOL bRecord = TRUE ); - BOOL OutlinePossible(BOOL bHide); + void ShowMarkedOutlines( BOOL bRecord = TRUE ); + void HideMarkedOutlines( BOOL bRecord = TRUE ); + BOOL OutlinePossible(BOOL bHide); - void UpdateCharts(BOOL bAllCharts = FALSE); // Default: am Cursor + void UpdateCharts(BOOL bAllCharts = FALSE); // Default: am Cursor static USHORT DoUpdateCharts( const ScAddress& rPos, ScDocument* pDoc, BOOL bAllCharts ); }; diff --git a/sc/source/ui/inc/dbnamdlg.hrc b/sc/source/ui/inc/dbnamdlg.hrc index fd0205e3bbed..8062656a10c5 100644 --- a/sc/source/ui/inc/dbnamdlg.hrc +++ b/sc/source/ui/inc/dbnamdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,15 +28,15 @@ #include "sc.hrc" // -> RID_SCDLG_DBNAMES #define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_ADD 3 -#define BTN_REMOVE 4 -#define BTN_HELP 5 +#define BTN_CANCEL 2 +#define BTN_ADD 3 +#define BTN_REMOVE 4 +#define BTN_HELP 5 #define FL_NAME 10 -#define ED_NAME 11 +#define ED_NAME 11 #define FL_ASSIGN 12 -#define ED_DBAREA 13 -#define RB_DBAREA 14 +#define ED_DBAREA 13 +#define RB_DBAREA 14 #define FL_OPTIONS 20 #define BTN_HEADER 21 #define BTN_SIZE 22 diff --git a/sc/source/ui/inc/dbnamdlg.hxx b/sc/source/ui/inc/dbnamdlg.hxx index cd878c651d6c..4e72c12d3791 100644 --- a/sc/source/ui/inc/dbnamdlg.hxx +++ b/sc/source/ui/inc/dbnamdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,64 +53,64 @@ class ScDbNameDlg : public ScAnyRefDlg { public: ScDbNameDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScViewData* ptrViewData ); + ScViewData* ptrViewData ); ~ScDbNameDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const; - virtual void SetActive(); - virtual BOOL Close(); + virtual BOOL IsRefInputMode() const; + virtual void SetActive(); + virtual BOOL Close(); private: FixedLine aFlName; - ComboBox aEdName; + ComboBox aEdName; FixedLine aFlAssign; - formula::RefEdit aEdAssign; - formula::RefButton aRbAssign; + formula::RefEdit aEdAssign; + formula::RefButton aRbAssign; FixedLine aFlOptions; - CheckBox aBtnHeader; - CheckBox aBtnDoSize; - CheckBox aBtnKeepFmt; - CheckBox aBtnStripData; - ScExpandedFixedText aFTSource; //@18.09.97 erweiterter FixedText - FixedText aFTOperations; - - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - PushButton aBtnAdd; - PushButton aBtnRemove; - MoreButton aBtnMore; - - BOOL bSaved; - - - const String aStrAdd; // "Hinzufuegen" - const String aStrModify; // "Aendern" - const String aStrNoName; // "unbenannt" - const String aStrInvalid; - - String aStrSource; - String aStrOperations; - - ScViewData* pViewData; - ScDocument* pDoc; - BOOL bRefInputMode; + CheckBox aBtnHeader; + CheckBox aBtnDoSize; + CheckBox aBtnKeepFmt; + CheckBox aBtnStripData; + ScExpandedFixedText aFTSource; //@18.09.97 erweiterter FixedText + FixedText aFTOperations; + + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + PushButton aBtnAdd; + PushButton aBtnRemove; + MoreButton aBtnMore; + + BOOL bSaved; + + + const String aStrAdd; // "Hinzufuegen" + const String aStrModify; // "Aendern" + const String aStrNoName; // "unbenannt" + const String aStrInvalid; + + String aStrSource; + String aStrOperations; + + ScViewData* pViewData; + ScDocument* pDoc; + BOOL bRefInputMode; ScAddress::Details aAddrDetails; - ScDBCollection aLocalDbCol; - ScRange theCurArea; - List aRemoveList; + ScDBCollection aLocalDbCol; + ScRange theCurArea; + List aRemoveList; #ifdef _DBNAMDLG_CXX private: - void Init(); - void UpdateNames(); - void UpdateDBData( const String& rStrName ); - void SetInfoStrings( const ScDBData* pDBData ); + void Init(); + void UpdateNames(); + void UpdateDBData( const String& rStrName ); + void SetInfoStrings( const ScDBData* pDBData ); DECL_LINK( CancelBtnHdl, void * ); DECL_LINK( OkBtnHdl, void * ); diff --git a/sc/source/ui/inc/delcldlg.hxx b/sc/source/ui/inc/delcldlg.hxx index e1a816e78c0f..e9775fc8ce36 100644 --- a/sc/source/ui/inc/delcldlg.hxx +++ b/sc/source/ui/inc/delcldlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,13 +42,13 @@ class ScDeleteCellDlg : public ModalDialog { private: FixedLine aFlFrame; - RadioButton aBtnCellsUp; - RadioButton aBtnCellsLeft; - RadioButton aBtnDelRows; - RadioButton aBtnDelCols; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + RadioButton aBtnCellsUp; + RadioButton aBtnCellsLeft; + RadioButton aBtnDelRows; + RadioButton aBtnDelCols; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; public: diff --git a/sc/source/ui/inc/delcodlg.hxx b/sc/source/ui/inc/delcodlg.hxx index 8773b9c78f3a..64428e538905 100644 --- a/sc/source/ui/inc/delcodlg.hxx +++ b/sc/source/ui/inc/delcodlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,22 +39,22 @@ class ScDeleteContentsDlg : public ModalDialog { private: FixedLine aFlFrame; - CheckBox aBtnDelAll; - CheckBox aBtnDelStrings; - CheckBox aBtnDelNumbers; - CheckBox aBtnDelDateTime; - CheckBox aBtnDelFormulas; - CheckBox aBtnDelNotes; - CheckBox aBtnDelAttrs; - CheckBox aBtnDelObjects; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + CheckBox aBtnDelAll; + CheckBox aBtnDelStrings; + CheckBox aBtnDelNumbers; + CheckBox aBtnDelDateTime; + CheckBox aBtnDelFormulas; + CheckBox aBtnDelNotes; + CheckBox aBtnDelAttrs; + CheckBox aBtnDelObjects; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; - BOOL bObjectsDisabled; + BOOL bObjectsDisabled; - static BOOL bPreviousAllCheck; - static USHORT nPreviousChecks; + static BOOL bPreviousAllCheck; + static USHORT nPreviousChecks; void DisableChecks( BOOL bDelAllChecked = TRUE ); DECL_LINK( DelAllHdl, void * ); @@ -63,9 +63,9 @@ public: ScDeleteContentsDlg( Window* pParent, USHORT nCheckDefaults = 0 ); ~ScDeleteContentsDlg(); - void DisableObjects(); + void DisableObjects(); - USHORT GetDelContentsCmdBits() const; + USHORT GetDelContentsCmdBits() const; }; diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx index c92cc082986d..8158707f24d4 100644 --- a/sc/source/ui/inc/docfunc.hxx +++ b/sc/source/ui/inc/docfunc.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,14 +51,14 @@ class ScTableProtection; class ScDocFunc { private: - ScDocShell& rDocShell; + ScDocShell& rDocShell; - BOOL AdjustRowHeight( const ScRange& rRange, BOOL bPaint = TRUE ); - void CreateOneName( ScRangeName& rList, + BOOL AdjustRowHeight( const ScRange& rRange, BOOL bPaint = TRUE ); + void CreateOneName( ScRangeName& rList, SCCOL nPosX, SCROW nPosY, SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, BOOL& rCancel, BOOL bApi ); - void NotifyInputHandler( const ScAddress& rPos ); + void NotifyInputHandler( const ScAddress& rPos ); public: ScDocFunc( ScDocShell& rDocSh ): rDocShell(rDocSh) {} @@ -66,118 +66,118 @@ public: DECL_LINK( NotifyDrawUndo, SdrUndoAction* ); - BOOL DetectiveAddPred(const ScAddress& rPos); - BOOL DetectiveDelPred(const ScAddress& rPos); - BOOL DetectiveAddSucc(const ScAddress& rPos); - BOOL DetectiveDelSucc(const ScAddress& rPos); - BOOL DetectiveAddError(const ScAddress& rPos); - BOOL DetectiveMarkInvalid(SCTAB nTab); - BOOL DetectiveDelAll(SCTAB nTab); - BOOL DetectiveRefresh(BOOL bAutomatic = FALSE); + BOOL DetectiveAddPred(const ScAddress& rPos); + BOOL DetectiveDelPred(const ScAddress& rPos); + BOOL DetectiveAddSucc(const ScAddress& rPos); + BOOL DetectiveDelSucc(const ScAddress& rPos); + BOOL DetectiveAddError(const ScAddress& rPos); + BOOL DetectiveMarkInvalid(SCTAB nTab); + BOOL DetectiveDelAll(SCTAB nTab); + BOOL DetectiveRefresh(BOOL bAutomatic = FALSE); - BOOL DeleteContents( const ScMarkData& rMark, USHORT nFlags, + BOOL DeleteContents( const ScMarkData& rMark, USHORT nFlags, BOOL bRecord, BOOL bApi ); - BOOL TransliterateText( const ScMarkData& rMark, sal_Int32 nType, + BOOL TransliterateText( const ScMarkData& rMark, sal_Int32 nType, BOOL bRecord, BOOL bApi ); - BOOL SetNormalString( const ScAddress& rPos, const String& rText, BOOL bApi ); - BOOL PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, BOOL bApi ); - BOOL PutData( const ScAddress& rPos, ScEditEngineDefaulter& rEngine, + BOOL SetNormalString( const ScAddress& rPos, const String& rText, BOOL bApi ); + BOOL PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, BOOL bApi ); + BOOL PutData( const ScAddress& rPos, ScEditEngineDefaulter& rEngine, BOOL bInterpret, BOOL bApi ); - BOOL SetCellText( const ScAddress& rPos, const String& rText, + BOOL SetCellText( const ScAddress& rPos, const String& rText, BOOL bInterpret, BOOL bEnglish, BOOL bApi, const String& rFormulaNmsp, const formula::FormulaGrammar::Grammar eGrammar ); // creates a new cell for use with PutCell - ScBaseCell* InterpretEnglishString( const ScAddress& rPos, const String& rText, + ScBaseCell* InterpretEnglishString( const ScAddress& rPos, const String& rText, const String& rFormulaNmsp, const formula::FormulaGrammar::Grammar eGrammar ); - bool ShowNote( const ScAddress& rPos, bool bShow = true ); - inline bool HideNote( const ScAddress& rPos ) { return ShowNote( rPos, false ); } + bool ShowNote( const ScAddress& rPos, bool bShow = true ); + inline bool HideNote( const ScAddress& rPos ) { return ShowNote( rPos, false ); } bool SetNoteText( const ScAddress& rPos, const String& rNoteText, BOOL bApi ); bool ReplaceNote( const ScAddress& rPos, const String& rNoteText, const String* pAuthor, const String* pDate, BOOL bApi ); - BOOL ApplyAttributes( const ScMarkData& rMark, const ScPatternAttr& rPattern, + BOOL ApplyAttributes( const ScMarkData& rMark, const ScPatternAttr& rPattern, BOOL bRecord, BOOL bApi ); - BOOL ApplyStyle( const ScMarkData& rMark, const String& rStyleName, + BOOL ApplyStyle( const ScMarkData& rMark, const String& rStyleName, BOOL bRecord, BOOL bApi ); - BOOL InsertCells( const ScRange& rRange,const ScMarkData* pTabMark, + BOOL InsertCells( const ScRange& rRange,const ScMarkData* pTabMark, InsCellCmd eCmd, BOOL bRecord, BOOL bApi, BOOL bPartOfPaste = FALSE ); - BOOL DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark, + BOOL DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark, DelCellCmd eCmd, BOOL bRecord, BOOL bApi ); - BOOL MoveBlock( const ScRange& rSource, const ScAddress& rDestPos, + BOOL MoveBlock( const ScRange& rSource, const ScAddress& rDestPos, BOOL bCut, BOOL bRecord, BOOL bPaint, BOOL bApi ); - BOOL InsertTable( SCTAB nTab, const String& rName, BOOL bRecord, BOOL bApi ); - BOOL RenameTable( SCTAB nTab, const String& rName, BOOL bRecord, BOOL bApi ); - BOOL DeleteTable( SCTAB nTab, BOOL bRecord, BOOL bApi ); + BOOL InsertTable( SCTAB nTab, const String& rName, BOOL bRecord, BOOL bApi ); + BOOL RenameTable( SCTAB nTab, const String& rName, BOOL bRecord, BOOL bApi ); + BOOL DeleteTable( SCTAB nTab, BOOL bRecord, BOOL bApi ); bool SetTabBgColor( SCTAB nTab, const Color& rColor, bool bRecord, bool bApi ); bool SetTabBgColor( ScUndoTabColorInfo::List& rUndoTabColorList, bool bRecord, bool bApi ); - BOOL SetTableVisible( SCTAB nTab, BOOL bVisible, BOOL bApi ); + BOOL SetTableVisible( SCTAB nTab, BOOL bVisible, BOOL bApi ); - BOOL SetLayoutRTL( SCTAB nTab, BOOL bRTL, BOOL bApi ); + BOOL SetLayoutRTL( SCTAB nTab, BOOL bRTL, BOOL bApi ); -//UNUSED2009-05 BOOL SetGrammar( formula::FormulaGrammar::Grammar eGrammar ); +//UNUSED2009-05 BOOL SetGrammar( formula::FormulaGrammar::Grammar eGrammar ); - SC_DLLPUBLIC BOOL SetWidthOrHeight( BOOL bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges, + SC_DLLPUBLIC BOOL SetWidthOrHeight( BOOL bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges, SCTAB nTab, ScSizeMode eMode, USHORT nSizeTwips, BOOL bRecord, BOOL bApi ); - BOOL InsertPageBreak( BOOL bColumn, const ScAddress& rPos, + BOOL InsertPageBreak( BOOL bColumn, const ScAddress& rPos, BOOL bRecord, BOOL bSetModified, BOOL bApi ); - BOOL RemovePageBreak( BOOL bColumn, const ScAddress& rPos, + BOOL RemovePageBreak( BOOL bColumn, const ScAddress& rPos, BOOL bRecord, BOOL bSetModified, BOOL bApi ); void ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect ); - BOOL Protect( SCTAB nTab, const String& rPassword, BOOL bApi ); - BOOL Unprotect( SCTAB nTab, const String& rPassword, BOOL bApi ); + BOOL Protect( SCTAB nTab, const String& rPassword, BOOL bApi ); + BOOL Unprotect( SCTAB nTab, const String& rPassword, BOOL bApi ); - BOOL ClearItems( const ScMarkData& rMark, const USHORT* pWhich, BOOL bApi ); - BOOL ChangeIndent( const ScMarkData& rMark, BOOL bIncrement, BOOL bApi ); - BOOL AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark, + BOOL ClearItems( const ScMarkData& rMark, const USHORT* pWhich, BOOL bApi ); + BOOL ChangeIndent( const ScMarkData& rMark, BOOL bIncrement, BOOL bApi ); + BOOL AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark, USHORT nFormatNo, BOOL bRecord, BOOL bApi ); - BOOL EnterMatrix( const ScRange& rRange, const ScMarkData* pTabMark, + BOOL EnterMatrix( const ScRange& rRange, const ScMarkData* pTabMark, const ScTokenArray* pTokenArray, const String& rString, BOOL bApi, BOOL bEnglish, const String& rFormulaNmsp, const formula::FormulaGrammar::Grammar ); - BOOL TabOp( const ScRange& rRange, const ScMarkData* pTabMark, + BOOL TabOp( const ScRange& rRange, const ScMarkData* pTabMark, const ScTabOpParam& rParam, BOOL bRecord, BOOL bApi ); - BOOL FillSimple( const ScRange& rRange, const ScMarkData* pTabMark, + BOOL FillSimple( const ScRange& rRange, const ScMarkData* pTabMark, FillDir eDir, BOOL bRecord, BOOL bApi ); - BOOL FillSeries( const ScRange& rRange, const ScMarkData* pTabMark, - FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, + BOOL FillSeries( const ScRange& rRange, const ScMarkData* pTabMark, + FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, double fStart, double fStep, double fMax, BOOL bRecord, BOOL bApi ); // FillAuto: rRange wird von Source-Range auf Dest-Range angepasst - BOOL FillAuto( ScRange& rRange, const ScMarkData* pTabMark, + BOOL FillAuto( ScRange& rRange, const ScMarkData* pTabMark, FillDir eDir, ULONG nCount, BOOL bRecord, BOOL bApi ); - BOOL ResizeMatrix( const ScRange& rOldRange, const ScAddress& rNewEnd, BOOL bApi ); + BOOL ResizeMatrix( const ScRange& rOldRange, const ScAddress& rNewEnd, BOOL bApi ); - BOOL MergeCells( const ScRange& rRange, BOOL bContents, + BOOL MergeCells( const ScRange& rRange, BOOL bContents, BOOL bRecord, BOOL bApi ); - BOOL UnmergeCells( const ScRange& rRange, BOOL bRecord, BOOL bApi ); + BOOL UnmergeCells( const ScRange& rRange, BOOL bRecord, BOOL bApi ); BOOL SetNewRangeNames( ScRangeName* pNewRanges, BOOL bApi ); // takes ownership of pNewRanges - BOOL ModifyRangeNames( const ScRangeName& rNewRanges, BOOL bApi ); + BOOL ModifyRangeNames( const ScRangeName& rNewRanges, BOOL bApi ); - BOOL CreateNames( const ScRange& rRange, USHORT nFlags, BOOL bApi ); - BOOL InsertNameList( const ScAddress& rStartPos, BOOL bApi ); + BOOL CreateNames( const ScRange& rRange, USHORT nFlags, BOOL bApi ); + BOOL InsertNameList( const ScAddress& rStartPos, BOOL bApi ); - BOOL InsertAreaLink( const String& rFile, const String& rFilter, + BOOL InsertAreaLink( const String& rFile, const String& rFilter, const String& rOptions, const String& rSource, const ScRange& rDestRange, ULONG nRefresh, BOOL bFitBlock, BOOL bApi ); diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index 19147cfaf61f..b1b1b0b8bfcb 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -90,49 +90,49 @@ class SC_DLLPUBLIC ScDocShell: public SfxObjectShell, public SfxListener ScDocument aDocument; - String aDdeTextFmt; - String aConvFilterName; //@ #BugId 54198 + String aDdeTextFmt; + String aConvFilterName; //@ #BugId 54198 - double nPrtToScreenFactor; + double nPrtToScreenFactor; //! FontList* pFontList; DocShell_Impl* pImpl; - ScDocFunc* pDocFunc; - - //SfxObjectCreateMode eShellMode; - - BOOL bIsInplace; // wird von der View gesetzt - BOOL bHeaderOn; - BOOL bFooterOn; - BOOL bNoInformLost; - BOOL bIsEmpty; - BOOL bIsInUndo; - BOOL bDocumentModifiedPending; - USHORT nDocumentLock; + ScDocFunc* pDocFunc; + + //SfxObjectCreateMode eShellMode; + + BOOL bIsInplace; // wird von der View gesetzt + BOOL bHeaderOn; + BOOL bFooterOn; + BOOL bNoInformLost; + BOOL bIsEmpty; + BOOL bIsInUndo; + BOOL bDocumentModifiedPending; + USHORT nDocumentLock; sal_Int16 nCanUpdate; // stores the UpdateDocMode from loading a document till update links BOOL bUpdateEnabled; ScDBData* pOldAutoDBRange; - ScSbxDocHelper* pDocHelper; + ScSbxDocHelper* pDocHelper; - ScAutoStyleList* pAutoStyleList; - ScPaintLockData* pPaintLockData; - ScJobSetup* pOldJobSetup; + ScAutoStyleList* pAutoStyleList; + ScPaintLockData* pPaintLockData; + ScJobSetup* pOldJobSetup; ScOptSolverSave* pSolverSaveData; ScSheetSaveData* pSheetSaveData; ScDocShellModificator* pModificator; // #109979#; is used to load XML (created in BeforeXMLLoading and destroyed in AfterXMLLoading) - SC_DLLPRIVATE void InitItems(); - SC_DLLPRIVATE void DoEnterHandler(); + SC_DLLPRIVATE void InitItems(); + SC_DLLPRIVATE void DoEnterHandler(); SC_DLLPRIVATE void InitOptions(bool bForLoading); - SC_DLLPRIVATE void ResetDrawObjectShell(); + SC_DLLPRIVATE void ResetDrawObjectShell(); // SUNWS needs a forward declared friend, otherwise types and members // of the outer class are not accessible. class PrepareSaveGuard; friend class ScDocShell::PrepareSaveGuard; - /** Do things that need to be done before saving to our own format and + /** Do things that need to be done before saving to our own format and necessary clean ups in dtor. */ class PrepareSaveGuard { @@ -145,21 +145,21 @@ class SC_DLLPUBLIC ScDocShell: public SfxObjectShell, public SfxListener SC_DLLPRIVATE BOOL LoadXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& ); SC_DLLPRIVATE BOOL SaveXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& ); - SC_DLLPRIVATE SCTAB GetSaveTab(); + SC_DLLPRIVATE SCTAB GetSaveTab(); - SC_DLLPRIVATE ULONG DBaseImport( const String& rFullFileName, CharSet eCharSet, + SC_DLLPRIVATE ULONG DBaseImport( const String& rFullFileName, CharSet eCharSet, BOOL bSimpleColWidth[MAXCOLCOUNT] ); - SC_DLLPRIVATE ULONG DBaseExport( const String& rFullFileName, CharSet eCharSet, + SC_DLLPRIVATE ULONG DBaseExport( const String& rFullFileName, CharSet eCharSet, BOOL& bHasMemo ); - SC_DLLPRIVATE static BOOL MoveFile( const INetURLObject& rSource, const INetURLObject& rDest ); - SC_DLLPRIVATE static BOOL KillFile( const INetURLObject& rURL ); - SC_DLLPRIVATE static BOOL IsDocument( const INetURLObject& rURL ); + SC_DLLPRIVATE static BOOL MoveFile( const INetURLObject& rSource, const INetURLObject& rDest ); + SC_DLLPRIVATE static BOOL KillFile( const INetURLObject& rURL ); + SC_DLLPRIVATE static BOOL IsDocument( const INetURLObject& rURL ); - SC_DLLPRIVATE void LockPaint_Impl(BOOL bDoc); - SC_DLLPRIVATE void UnlockPaint_Impl(BOOL bDoc); - SC_DLLPRIVATE void LockDocument_Impl(USHORT nNew); - SC_DLLPRIVATE void UnlockDocument_Impl(USHORT nNew); + SC_DLLPRIVATE void LockPaint_Impl(BOOL bDoc); + SC_DLLPRIVATE void UnlockPaint_Impl(BOOL bDoc); + SC_DLLPRIVATE void LockDocument_Impl(USHORT nNew); + SC_DLLPRIVATE void UnlockDocument_Impl(USHORT nNew); SC_DLLPRIVATE void EnableSharedSettings( bool bEnable ); SC_DLLPRIVATE ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > LoadSharedDocument(); @@ -190,7 +190,7 @@ public: virtual SfxUndoManager* GetUndoManager(); - virtual void FillClass( SvGlobalName * pClassName, + virtual void FillClass( SvGlobalName * pClassName, sal_uInt32 * pFormat, String * pAppName, String * pFullTypeName, @@ -205,19 +205,19 @@ public: virtual BOOL Save(); virtual BOOL SaveAs( SfxMedium& rMedium ); virtual BOOL ConvertTo( SfxMedium &rMedium ); - virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE ); - virtual void PrepareReload(); - virtual BOOL IsInformationLost(); - virtual void LoadStyles( SfxObjectShell &rSource ); - virtual BOOL Insert( SfxObjectShell &rSource, + virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE ); + virtual void PrepareReload(); + virtual BOOL IsInformationLost(); + virtual void LoadStyles( SfxObjectShell &rSource ); + virtual BOOL Insert( SfxObjectShell &rSource, USHORT nSourceIdx1, USHORT nSourceIdx2, USHORT nSourceIdx3, USHORT &nIdx1, USHORT &nIdx2, USHORT &nIdx3, USHORT &rIdxDeleted ); virtual BOOL SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& ); // SfxInPlaceObject - virtual BOOL DoSaveCompleted( SfxMedium * pNewStor); // SfxObjectShell + virtual BOOL DoSaveCompleted( SfxMedium * pNewStor); // SfxObjectShell virtual sal_Bool QuerySlotExecutable( USHORT nSlotId ); - virtual void Draw( OutputDevice *, const JobSetup & rSetup, + virtual void Draw( OutputDevice *, const JobSetup & rSetup, USHORT nAspect = ASPECT_CONTENT ); virtual void SetVisArea( const Rectangle & rVisArea ); @@ -227,44 +227,44 @@ public: virtual Printer* GetDocumentPrinter(); - virtual void SetModified( BOOL = TRUE ); + virtual void SetModified( BOOL = TRUE ); - void SetVisAreaOrSize( const Rectangle& rVisArea, BOOL bModifyStart ); + void SetVisAreaOrSize( const Rectangle& rVisArea, BOOL bModifyStart ); virtual SfxDocumentInfoDialog* CreateDocumentInfoDialog( Window *pParent, const SfxItemSet &rSet ); - void GetDocStat( ScDocStat& rDocStat ); + void GetDocStat( ScDocStat& rDocStat ); - ScDocument* GetDocument() { return &aDocument; } - ScDocFunc& GetDocFunc() { return *pDocFunc; } + ScDocument* GetDocument() { return &aDocument; } + ScDocFunc& GetDocFunc() { return *pDocFunc; } - SfxPrinter* GetPrinter( BOOL bCreateIfNotExist = TRUE ); - USHORT SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL ); + SfxPrinter* GetPrinter( BOOL bCreateIfNotExist = TRUE ); + USHORT SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL ); - void UpdateFontList(); + void UpdateFontList(); - String CreateObjectName( const String& rPrefix ); + String CreateObjectName( const String& rPrefix ); - ScDrawLayer* MakeDrawLayer(); + ScDrawLayer* MakeDrawLayer(); - void AsciiSave( SvStream& rStream, const ScImportOptions& rOpt ); + void AsciiSave( SvStream& rStream, const ScImportOptions& rOpt ); - void GetSbxState( SfxItemSet &rSet ); - void GetDrawObjState( SfxItemSet &rSet ); + void GetSbxState( SfxItemSet &rSet ); + void GetDrawObjState( SfxItemSet &rSet ); void Execute( SfxRequest& rReq ); void GetState( SfxItemSet &rSet ); - void ExecutePageStyle ( SfxViewShell& rCaller, SfxRequest& rReq, SCTAB nCurTab ); - void GetStatePageStyle( SfxViewShell& rCaller, SfxItemSet& rSet, SCTAB nCurTab ); + void ExecutePageStyle ( SfxViewShell& rCaller, SfxRequest& rReq, SCTAB nCurTab ); + void GetStatePageStyle( SfxViewShell& rCaller, SfxItemSet& rSet, SCTAB nCurTab ); - void CompareDocument( ScDocument& rOtherDoc ); + void CompareDocument( ScDocument& rOtherDoc ); void MergeDocument( ScDocument& rOtherDoc, bool bShared = false, bool bCheckDuplicates = false, ULONG nOffset = 0, ScChangeActionMergeMap* pMergeMap = NULL, bool bInverseMap = false ); bool MergeSharedDocument( ScDocShell* pSharedDocShell ); - ScChangeAction* GetChangeAction( const ScAddress& rPos ); - void SetChangeComment( ScChangeAction* pAction, const String& rComment ); - void ExecuteChangeCommentDialog( ScChangeAction* pAction, Window* pParent,BOOL bPrevNext=TRUE ); + ScChangeAction* GetChangeAction( const ScAddress& rPos ); + void SetChangeComment( ScChangeAction* pAction, const String& rComment ); + void ExecuteChangeCommentDialog( ScChangeAction* pAction, Window* pParent,BOOL bPrevNext=TRUE ); /// Protect/unprotect ChangeTrack and return <TRUE/> if /// protection was successfully changed. /// If bJustQueryIfProtected==TRUE protection is not @@ -272,54 +272,54 @@ public: /// password was entered correctly. BOOL ExecuteChangeProtectionDialog( Window* _pParent, BOOL bJustQueryIfProtected = FALSE ); - void SetPrintZoom( SCTAB nTab, USHORT nScale, USHORT nPages ); - BOOL AdjustPrintZoom( const ScRange& rRange ); + void SetPrintZoom( SCTAB nTab, USHORT nScale, USHORT nPages ); + BOOL AdjustPrintZoom( const ScRange& rRange ); - void LoadStylesArgs( ScDocShell& rSource, BOOL bReplace, BOOL bCellStyles, BOOL bPageStyles ); + void LoadStylesArgs( ScDocShell& rSource, BOOL bReplace, BOOL bCellStyles, BOOL bPageStyles ); - void PageStyleModified( const String& rStyleName, BOOL bApi ); + void PageStyleModified( const String& rStyleName, BOOL bApi ); - void NotifyStyle( const SfxStyleSheetHint& rHint ); - void DoAutoStyle( const ScRange& rRange, const String& rStyle ); + void NotifyStyle( const SfxStyleSheetHint& rHint ); + void DoAutoStyle( const ScRange& rRange, const String& rStyle ); - Window* GetActiveDialogParent(); - void ErrorMessage( USHORT nGlobStrId ); - BOOL IsEditable() const; + Window* GetActiveDialogParent(); + void ErrorMessage( USHORT nGlobStrId ); + BOOL IsEditable() const; - BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab ); + BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab ); void UpdateAllRowHeights( const ScMarkData* pTabMark = NULL ); void UpdatePendingRowHeights( SCTAB nUpdateTab, bool bBefore = false ); - void RefreshPivotTables( const ScRange& rSource ); - void DoConsolidate( const ScConsolidateParam& rParam, BOOL bRecord = TRUE ); - void UseScenario( SCTAB nTab, const String& rName, BOOL bRecord = TRUE ); - SCTAB MakeScenario( SCTAB nTab, const String& rName, const String& rComment, + void RefreshPivotTables( const ScRange& rSource ); + void DoConsolidate( const ScConsolidateParam& rParam, BOOL bRecord = TRUE ); + void UseScenario( SCTAB nTab, const String& rName, BOOL bRecord = TRUE ); + SCTAB MakeScenario( SCTAB nTab, const String& rName, const String& rComment, const Color& rColor, USHORT nFlags, ScMarkData& rMark, BOOL bRecord = TRUE ); - void ModifyScenario( SCTAB nTab, const String& rName, const String& rComment, + void ModifyScenario( SCTAB nTab, const String& rName, const String& rComment, const Color& rColor, USHORT nFlags ); - BOOL MoveTable( SCTAB nSrcTab, SCTAB nDestTab, BOOL bCopy, BOOL bRecord ); + BOOL MoveTable( SCTAB nSrcTab, SCTAB nDestTab, BOOL bCopy, BOOL bRecord ); - void DoRecalc( BOOL bApi ); - void DoHardRecalc( BOOL bApi ); + void DoRecalc( BOOL bApi ); + void DoHardRecalc( BOOL bApi ); bool CheckPrint( PrintDialog* pPrintDialog, ScMarkData* pMarkData, bool bForceSelected, bool bIsAPI ); - void PreparePrint( PrintDialog* pPrintDialog, ScMarkData* pMarkData ); - void Print( SfxProgress& rProgress, PrintDialog* pPrintDialog, + void PreparePrint( PrintDialog* pPrintDialog, ScMarkData* pMarkData ); + void Print( SfxProgress& rProgress, PrintDialog* pPrintDialog, ScMarkData* pMarkData, Window* pDialogParent, BOOL bForceSelected, BOOL bIsAPI ); - void UpdateOle( const ScViewData* pViewData, BOOL bSnapSize = FALSE ); - BOOL IsOle(); + void UpdateOle( const ScViewData* pViewData, BOOL bSnapSize = FALSE ); + BOOL IsOle(); - void DBAreaDeleted( SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); - ScDBData* GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGetDBSelection eSel ); + void DBAreaDeleted( SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); + ScDBData* GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGetDBSelection eSel ); ScDBData* GetOldAutoDBRange(); // has to be deleted by caller! void CancelAutoDBRange(); // called when dialog is cancelled - void UpdateLinks(); // Link-Eintraege aktuallisieren - BOOL ReloadTabLinks(); // Links ausfuehren (Inhalt aktualisieren) + void UpdateLinks(); // Link-Eintraege aktuallisieren + BOOL ReloadTabLinks(); // Links ausfuehren (Inhalt aktualisieren) void PostEditView( ScEditEngineDefaulter* pEditEngine, const ScAddress& rCursorPos ); @@ -335,38 +335,38 @@ public: void PostDataChanged(); - void UpdatePaintExt( USHORT& rExtFlags, SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, + void UpdatePaintExt( USHORT& rExtFlags, SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab ); - void UpdatePaintExt( USHORT& rExtFlags, const ScRange& rRange ); + void UpdatePaintExt( USHORT& rExtFlags, const ScRange& rRange ); - void SetDocumentModified( BOOL bIsModified = TRUE ); - void SetDrawModified( BOOL bIsModified = TRUE ); + void SetDocumentModified( BOOL bIsModified = TRUE ); + void SetDrawModified( BOOL bIsModified = TRUE ); - void LockPaint(); - void UnlockPaint(); - USHORT GetLockCount() const; - void SetLockCount(USHORT nNew); + void LockPaint(); + void UnlockPaint(); + USHORT GetLockCount() const; + void SetLockCount(USHORT nNew); - void LockDocument(); - void UnlockDocument(); + void LockDocument(); + void UnlockDocument(); DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper* ); - virtual SfxStyleSheetBasePool* GetStyleSheetPool(); + virtual SfxStyleSheetBasePool* GetStyleSheetPool(); - void SetInplace( BOOL bInplace ); - BOOL IsEmpty() const; - void SetEmpty(BOOL bSet); + void SetInplace( BOOL bInplace ); + BOOL IsEmpty() const; + void SetEmpty(BOOL bSet); - BOOL IsInUndo() const { return bIsInUndo; } - void SetInUndo(BOOL bSet); + BOOL IsInUndo() const { return bIsInUndo; } + void SetInUndo(BOOL bSet); - void CalcOutputFactor(); - double GetOutputFactor() const; - void GetPageOnFromPageStyleSet( const SfxItemSet* pStyleSet, - SCTAB nCurTab, - BOOL& rbHeader, - BOOL& rbFooter ); + void CalcOutputFactor(); + double GetOutputFactor() const; + void GetPageOnFromPageStyleSet( const SfxItemSet* pStyleSet, + SCTAB nCurTab, + BOOL& rbHeader, + BOOL& rbFooter ); virtual long DdeGetData( const String& rItem, const String& rMimeType, ::com::sun::star::uno::Any & rValue ); @@ -376,14 +376,14 @@ public: const String& GetDdeTextFmt() const { return aDdeTextFmt; } - SfxBindings* GetViewBindings(); + SfxBindings* GetViewBindings(); ScTabViewShell* GetBestViewShell( BOOL bOnlyVisible = TRUE ); ScSbxDocHelper* GetDocHelperObject() { return pDocHelper; } - void SetDocumentModifiedPending( BOOL bVal ) + void SetDocumentModifiedPending( BOOL bVal ) { bDocumentModifiedPending = bVal; } - BOOL IsDocumentModifiedPending() const + BOOL IsDocumentModifiedPending() const { return bDocumentModifiedPending; } BOOL IsUpdateEnabled() const @@ -391,20 +391,20 @@ public: void SetUpdateEnabled(BOOL bValue) { bUpdateEnabled = bValue; } - OutputDevice* GetRefDevice(); // WYSIWYG: Printer, otherwise VirtualDevice... + OutputDevice* GetRefDevice(); // WYSIWYG: Printer, otherwise VirtualDevice... static ScViewData* GetViewData(); - static SCTAB GetCurTab(); + static SCTAB GetCurTab(); static ScDocShell* GetShellByNum( USHORT nDocNo ); - static String GetOwnFilterName(); + static String GetOwnFilterName(); static String GetHtmlFilterName(); - static String GetWebQueryFilterName(); - static String GetAsciiFilterName(); - static String GetLotusFilterName(); - static String GetDBaseFilterName(); - static String GetDifFilterName(); - static BOOL HasAutomaticTableName( const String& rFilter ); + static String GetWebQueryFilterName(); + static String GetAsciiFilterName(); + static String GetLotusFilterName(); + static String GetDBaseFilterName(); + static String GetDifFilterName(); + static BOOL HasAutomaticTableName( const String& rFilter ); DECL_LINK( RefreshDBDataHdl, ScRefreshTimer* ); @@ -416,7 +416,7 @@ public: const ScOptSolverSave* GetSolverSaveData() const { return pSolverSaveData; } // may be null void SetSolverSaveData( const ScOptSolverSave& rData ); //<!--Added by PengYunQuan for Validity Cell Range Picker - sal_Bool AcceptStateUpdate() const; + sal_Bool AcceptStateUpdate() const; //-->Added by PengYunQuan for Validity Cell Range Picker ScSheetSaveData* GetSheetSaveData(); @@ -446,19 +446,19 @@ SO2_IMPL_REF(ScDocShell) // bAutoCalcShellDisabled nicht gesetzt ist ein SetDocumentModified gerufen. class SC_DLLPUBLIC ScDocShellModificator { - ScDocShell& rDocShell; - ScRefreshTimerProtector aProtector; - BOOL bAutoCalcShellDisabled; - BOOL bIdleDisabled; + ScDocShell& rDocShell; + ScRefreshTimerProtector aProtector; + BOOL bAutoCalcShellDisabled; + BOOL bIdleDisabled; // not implemented ScDocShellModificator( const ScDocShellModificator& ); - ScDocShellModificator& operator=( const ScDocShellModificator& ); + ScDocShellModificator& operator=( const ScDocShellModificator& ); public: ScDocShellModificator( ScDocShell& ); ~ScDocShellModificator(); - void SetDocumentModified(); + void SetDocumentModified(); }; diff --git a/sc/source/ui/inc/dpcontrol.hrc b/sc/source/ui/inc/dpcontrol.hrc index 687f999970ad..9cea30e99d4f 100644 --- a/sc/source/ui/inc/dpcontrol.hrc +++ b/sc/source/ui/inc/dpcontrol.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/dpcontrol.hxx b/sc/source/ui/inc/dpcontrol.hxx index 45badf0c88fd..f44155a964c4 100644 --- a/sc/source/ui/inc/dpcontrol.hxx +++ b/sc/source/ui/inc/dpcontrol.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -57,9 +57,9 @@ class Window; class ScDocument; class ScAccessibleFilterMenu; -/** - * This class takes care of physically drawing field button controls inside - * data pilot tables. +/** + * This class takes care of physically drawing field button controls inside + * data pilot tables. */ class ScDPFieldButton { @@ -102,9 +102,9 @@ class ScMenuFloatingWindow : public PopupMenuFloatingWindow { public: static size_t MENU_NOT_SELECTED; - /** - * Action to perform when an event takes place. Create a sub-class of - * this to implement the desired action. + /** + * Action to perform when an event takes place. Create a sub-class of + * this to implement the desired action. */ class Action { @@ -167,34 +167,34 @@ private: size_t getEnclosingMenuItem(const Point& rPos) const; size_t getSubMenuPos(ScMenuFloatingWindow* pSubMenu); - /** - * Fire a menu highlight event since the accessibility framework needs - * this to track focus on menu items. + /** + * Fire a menu highlight event since the accessibility framework needs + * this to track focus on menu items. */ - void fireMenuHighlightedEvent(); + void fireMenuHighlightedEvent(); - /** - * Make sure that the specified submenu is permanently up, the submenu - * close timer is not active, and the correct menu item associated with + /** + * Make sure that the specified submenu is permanently up, the submenu + * close timer is not active, and the correct menu item associated with * the submenu is highlighted. */ void setSubMenuFocused(ScMenuFloatingWindow* pSubMenu); - /** - * When a menu item of an invisible submenu is selected, we need to make - * sure that all its parent menu(s) are visible, with the right menu item - * highlighted in each of the parents. Calling this method ensures it. + /** + * When a menu item of an invisible submenu is selected, we need to make + * sure that all its parent menu(s) are visible, with the right menu item + * highlighted in each of the parents. Calling this method ensures it. */ void ensureSubMenuVisible(ScMenuFloatingWindow* pSubMenu); - /** - * Dismiss any visible child submenus when a menu item of a parent menu is + /** + * Dismiss any visible child submenus when a menu item of a parent menu is * selected. */ void ensureSubMenuNotVisible(); - /** - * Dismiss all visible popup menus and set focus back to the application + /** + * Dismiss all visible popup menus and set focus back to the application * window. This method is called e.g. when a menu action is fired. */ void terminateAllPopupMenus(); @@ -251,17 +251,17 @@ private: // ============================================================================ -/** - * This class implements a popup window for field button, for quick access - * of hide-item list, and possibly more stuff related to field options. +/** + * This class implements a popup window for field button, for quick access + * of hide-item list, and possibly more stuff related to field options. */ class ScDPFieldPopupWindow : public ScMenuFloatingWindow { public: - /** - * Extended data that the client code may need to store. Create a - * sub-class of this and store data there. - */ + /** + * Extended data that the client code may need to store. Create a + * sub-class of this and store data there. + */ struct ExtendedData {}; explicit ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc); @@ -282,14 +282,14 @@ public: void getResult(::std::hash_map< ::rtl::OUString, bool, ::rtl::OUStringHash>& rResult); void close(bool bOK); - /** - * Set auxiliary data that the client code might need. Note that this - * popup window class manages its life time; no explicit deletion of the + /** + * Set auxiliary data that the client code might need. Note that this + * popup window class manages its life time; no explicit deletion of the * instance is needed in the client code. */ void setExtendedData(ExtendedData* p); - /** + /** * Get the store auxiliary data, or NULL if no such data is stored. */ ExtendedData* getExtendedData(); diff --git a/sc/source/ui/inc/dpgroupdlg.hxx b/sc/source/ui/inc/dpgroupdlg.hxx index 52f2e7c8f592..5afc2452c469 100644 --- a/sc/source/ui/inc/dpgroupdlg.hxx +++ b/sc/source/ui/inc/dpgroupdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/drawsh.hxx b/sc/source/ui/inc/drawsh.hxx index d417d1427dda..47ea4ce1c892 100644 --- a/sc/source/ui/inc/drawsh.hxx +++ b/sc/source/ui/inc/drawsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,7 +40,7 @@ class ScDrawView; class ScDrawShell : public SfxShell { - ScViewData* pViewData; + ScViewData* pViewData; DECL_LINK( NameObjectHdl, AbstractSvxNameDialog* ); @@ -49,7 +49,7 @@ class ScDrawShell : public SfxShell #endif protected: - ScViewData* GetViewData() { return pViewData; } + ScViewData* GetViewData() { return pViewData; } public: TYPEINFO(); @@ -58,33 +58,33 @@ public: ScDrawShell(ScViewData* pData); ~ScDrawShell(); - void StateDisableItems( SfxItemSet &rSet ); + void StateDisableItems( SfxItemSet &rSet ); - void ExecDrawAttr(SfxRequest& rReq); - void GetDrawAttrState(SfxItemSet &rSet); - void GetAttrFuncState(SfxItemSet &rSet); + void ExecDrawAttr(SfxRequest& rReq); + void GetDrawAttrState(SfxItemSet &rSet); + void GetAttrFuncState(SfxItemSet &rSet); - void ExecDrawFunc(SfxRequest& rReq); - void GetDrawFuncState(SfxItemSet &rSet); - void GetState(SfxItemSet &rSet); + void ExecDrawFunc(SfxRequest& rReq); + void GetDrawFuncState(SfxItemSet &rSet); + void GetState(SfxItemSet &rSet); - void ExecFormText(SfxRequest& rReq); // StarFontWork - void GetFormTextState(SfxItemSet& rSet); + void ExecFormText(SfxRequest& rReq); // StarFontWork + void GetFormTextState(SfxItemSet& rSet); - void ExecuteHLink(SfxRequest& rReq); // Hyperlink - void GetHLinkState(SfxItemSet& rSet); + void ExecuteHLink(SfxRequest& rReq); // Hyperlink + void GetHLinkState(SfxItemSet& rSet); void ExecFormatPaintbrush(SfxRequest& rReq); void StateFormatPaintbrush(SfxItemSet& rSet); void ExecuteMacroAssign( SdrObject* pObj, Window* pWin ); - void ExecuteLineDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff ); - void ExecuteAreaDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff ); - void ExecuteTextAttrDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff ); + void ExecuteLineDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff ); + void ExecuteAreaDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff ); + void ExecuteTextAttrDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff ); ScDrawView* GetDrawView(); - BOOL AreAllObjectsOnLayer(USHORT nLayerNo,const SdrMarkList& rMark); + BOOL AreAllObjectsOnLayer(USHORT nLayerNo,const SdrMarkList& rMark); }; diff --git a/sc/source/ui/inc/drawutil.hxx b/sc/source/ui/inc/drawutil.hxx index 67e1c0ba836f..9f493491e0b1 100644 --- a/sc/source/ui/inc/drawutil.hxx +++ b/sc/source/ui/inc/drawutil.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,7 +38,7 @@ class ScDocument; class ScDrawUtil { public: - static void CalcScale( ScDocument* pDoc, SCTAB nTab, + static void CalcScale( ScDocument* pDoc, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, OutputDevice* pDev, const Fraction& rZoomX, const Fraction& rZoomY, double nPPTX, double nPPTY, diff --git a/sc/source/ui/inc/drawview.hxx b/sc/source/ui/inc/drawview.hxx index fa6b03638551..b86c8d178b32 100644 --- a/sc/source/ui/inc/drawview.hxx +++ b/sc/source/ui/inc/drawview.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,22 +40,22 @@ class ScDrawObjData; class ScDrawView: public FmFormView { - ScViewData* pViewData; - OutputDevice* pDev; //! noetig ? - ScDocument* pDoc; - SCTAB nTab; - Fraction aScaleX; // Faktor fuer Drawing-MapMode - Fraction aScaleY; - SdrDropMarkerOverlay* pDropMarker; - SdrObject* pDropMarkObj; - BOOL bInConstruct; - //HMHBOOL bDisableHdl; - - void Construct(); - void UpdateBrowser(); + ScViewData* pViewData; + OutputDevice* pDev; //! noetig ? + ScDocument* pDoc; + SCTAB nTab; + Fraction aScaleX; // Faktor fuer Drawing-MapMode + Fraction aScaleY; + SdrDropMarkerOverlay* pDropMarker; + SdrObject* pDropMarkObj; + BOOL bInConstruct; + //HMHBOOL bDisableHdl; + + void Construct(); + void UpdateBrowser(); protected: - virtual void ModelHasChanged(); + virtual void ModelHasChanged(); // add custom handles (used by other apps, e.g. AnchorPos) virtual void AddCustomHdl(); @@ -64,58 +64,58 @@ protected: public: ScDrawView( OutputDevice* pOut, ScViewData* pData ); - virtual ~ScDrawView(); + virtual ~ScDrawView(); - virtual void MarkListHasChanged(); - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void MarkListHasChanged(); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual void DoConnect(SdrOle2Obj* pOleObj); - virtual void MakeVisible( const Rectangle& rRect, Window& rWin ); + virtual void MakeVisible( const Rectangle& rRect, Window& rWin ); virtual void DeleteMarked(); - void DrawMarks( OutputDevice* pOut ) const; + void DrawMarks( OutputDevice* pOut ) const; - void MarkDropObj( SdrObject* pObj ); + void MarkDropObj( SdrObject* pObj ); - //HMHBOOL IsDisableHdl() const { return bDisableHdl; } + //HMHBOOL IsDisableHdl() const { return bDisableHdl; } - void SetMarkedToLayer( BYTE nLayerNo ); + void SetMarkedToLayer( BYTE nLayerNo ); - void InvalidateAttribs(); - void InvalidateDrawTextAttrs(); + void InvalidateAttribs(); + void InvalidateDrawTextAttrs(); - BOOL BeginDrag( Window* pWindow, const Point& rStartPos ); - void DoCut(); - void DoCopy(); + BOOL BeginDrag( Window* pWindow, const Point& rStartPos ); + void DoCut(); + void DoCopy(); - void GetScale( Fraction& rFractX, Fraction& rFractY ) const; - void RecalcScale(); - void UpdateWorkArea(); - SCTAB GetTab() const { return nTab; } + void GetScale( Fraction& rFractX, Fraction& rFractY ) const; + void RecalcScale(); + void UpdateWorkArea(); + SCTAB GetTab() const { return nTab; } - void CalcNormScale( Fraction& rFractX, Fraction& rFractY ) const; + void CalcNormScale( Fraction& rFractX, Fraction& rFractY ) const; - void SetAnchor( ScAnchorType ); - ScAnchorType GetAnchor() const; + void SetAnchor( ScAnchorType ); + ScAnchorType GetAnchor() const; - void VCAddWin( Window* pWin ); - void VCRemoveWin( Window* pWin ); + void VCAddWin( Window* pWin ); + void VCRemoveWin( Window* pWin ); - void UpdateIMap( SdrObject* pObj ); + void UpdateIMap( SdrObject* pObj ); - USHORT GetPopupMenuId(); - void UpdateUserViewOptions(); + USHORT GetPopupMenuId(); + void UpdateUserViewOptions(); - void SetMarkedOriginalSize(); + void SetMarkedOriginalSize(); - BOOL SelectObject( const String& rName ); -//UNUSED2008-05 String GetSelectedChartName() const; + BOOL SelectObject( const String& rName ); +//UNUSED2008-05 String GetSelectedChartName() const; bool HasMarkedControl() const; bool HasMarkedInternal() const; - FASTBOOL InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, ULONG nOptions=0); + FASTBOOL InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, ULONG nOptions=0); /** Returns the selected object, if it is the caption object of a cell note. @param ppCaptData (out-param) If not null, returns the pointer to the caption object data. */ @@ -139,7 +139,7 @@ public: /** Unlocks the internal layer that contains caption objects of cell notes. */ inline void UnlockInternalLayer() { LockInternalLayer( false ); } - SdrEndTextEditKind ScEndTextEdit(); // ruft SetDrawTextUndo(0) + SdrEndTextEditKind ScEndTextEdit(); // ruft SetDrawTextUndo(0) //UNUSED2009-05 void CaptionTextDirection(USHORT nSlot); ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > CopyToTransferable(); }; diff --git a/sc/source/ui/inc/drformsh.hxx b/sc/source/ui/inc/drformsh.hxx index 7f7473eb7519..1e53792fdff4 100644 --- a/sc/source/ui/inc/drformsh.hxx +++ b/sc/source/ui/inc/drformsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,10 +46,10 @@ public: SFX_DECL_INTERFACE(SCID_FORM_SHELL) ScDrawFormShell(ScViewData* pData); - virtual ~ScDrawFormShell(); + virtual ~ScDrawFormShell(); -// void Execute(SfxRequest &); -// void GetState(SfxItemSet &); +// void Execute(SfxRequest &); +// void GetState(SfxItemSet &); }; #endif diff --git a/sc/source/ui/inc/drtxtob.hxx b/sc/source/ui/inc/drtxtob.hxx index 5c493df2f769..49c2f93a5810 100644 --- a/sc/source/ui/inc/drtxtob.hxx +++ b/sc/source/ui/inc/drtxtob.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,7 +37,7 @@ #include "shellids.hxx" -USHORT ScGetFontWorkId(); // statt SvxFontWorkChildWindow::GetChildWindowId() +USHORT ScGetFontWorkId(); // statt SvxFontWorkChildWindow::GetChildWindowId() class ScViewData; class TransferableDataHelper; @@ -45,9 +45,9 @@ class TransferableClipboardListener; class ScDrawTextObjectBar : public SfxShell { - ScViewData* pViewData; + ScViewData* pViewData; TransferableClipboardListener* pClipEvtLstnr; - BOOL bPastePossible; + BOOL bPastePossible; DECL_LINK( ClipboardChanged, TransferableDataHelper* ); @@ -73,11 +73,11 @@ public: BOOL ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet ); void ExecuteExtra( SfxRequest &rReq ); - void ExecFormText(SfxRequest& rReq); // StarFontWork + void ExecFormText(SfxRequest& rReq); // StarFontWork void GetFormTextState(SfxItemSet& rSet); private: - void ExecuteGlobal( SfxRequest &rReq ); // von Execute gerufen fuer ganze Objekte + void ExecuteGlobal( SfxRequest &rReq ); // von Execute gerufen fuer ganze Objekte void GetGlobalClipState( SfxItemSet& rSet ); void ExecutePasteContents( SfxRequest &rReq ); BOOL IsNoteEdit(); diff --git a/sc/source/ui/inc/drwtrans.hxx b/sc/source/ui/inc/drwtrans.hxx index 9a1175d3310d..bccbce553693 100644 --- a/sc/source/ui/inc/drwtrans.hxx +++ b/sc/source/ui/inc/drwtrans.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,31 +47,31 @@ class SdrOle2Obj; class ScDrawTransferObj : public TransferableHelper { private: - SdrModel* pModel; - TransferableDataHelper aOleData; - TransferableObjectDescriptor aObjDesc; -//REMOVE SvEmbeddedObjectRef aDocShellRef; -//REMOVE SvEmbeddedObjectRef aDrawPersistRef; - SfxObjectShellRef aDocShellRef; - SfxObjectShellRef aDrawPersistRef; + SdrModel* pModel; + TransferableDataHelper aOleData; + TransferableObjectDescriptor aObjDesc; +//REMOVE SvEmbeddedObjectRef aDocShellRef; +//REMOVE SvEmbeddedObjectRef aDrawPersistRef; + SfxObjectShellRef aDocShellRef; + SfxObjectShellRef aDrawPersistRef; // extracted from model in ctor: - Size aSrcSize; - INetBookmark* pBookmark; - BOOL bGraphic; - BOOL bGrIsBit; - BOOL bOleObj; + Size aSrcSize; + INetBookmark* pBookmark; + BOOL bGraphic; + BOOL bGrIsBit; + BOOL bOleObj; // source information for drag&drop: // (view is needed to handle drawing obejcts) - SdrView* pDragSourceView; - USHORT nDragSourceFlags; - BOOL bDragWasInternal; + SdrView* pDragSourceView; + USHORT nDragSourceFlags; + BOOL bDragWasInternal; sal_uInt32 nSourceDocID; - void InitDocShell(); -//REMOVE SvInPlaceObjectRef GetSingleObject(); + void InitDocShell(); +//REMOVE SvInPlaceObjectRef GetSingleObject(); SdrOle2Obj* GetSingleObject(); public: @@ -79,23 +79,23 @@ public: const TransferableObjectDescriptor& rDesc ); virtual ~ScDrawTransferObj(); - virtual void AddSupportedFormats(); - virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); - virtual sal_Bool WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId, + virtual void AddSupportedFormats(); + virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); + virtual sal_Bool WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); - virtual void ObjectReleased(); - virtual void DragFinished( sal_Int8 nDropAction ); + virtual void ObjectReleased(); + virtual void DragFinished( sal_Int8 nDropAction ); - SdrModel* GetModel() { return pModel; } + SdrModel* GetModel() { return pModel; } - void SetDrawPersist( const SfxObjectShellRef& rRef ); - void SetDragSource( ScDrawView* pView ); - void SetDragSourceObj( SdrObject* pObj, SCTAB nTab ); - void SetDragSourceFlags( USHORT nFlags ); - void SetDragWasInternal(); + void SetDrawPersist( const SfxObjectShellRef& rRef ); + void SetDragSource( ScDrawView* pView ); + void SetDragSourceObj( SdrObject* pObj, SCTAB nTab ); + void SetDragSourceFlags( USHORT nFlags ); + void SetDragWasInternal(); - SdrView* GetDragSourceView() { return pDragSourceView; } - USHORT GetDragSourceFlags() const { return nDragSourceFlags; } + SdrView* GetDragSourceView() { return pDragSourceView; } + USHORT GetDragSourceFlags() const { return nDragSourceFlags; } void SetSourceDocID( sal_uInt32 nVal ) { nSourceDocID = nVal; } diff --git a/sc/source/ui/inc/dwfunctr.hxx b/sc/source/ui/inc/dwfunctr.hxx index 800696970fbd..1e9b34d7abae 100644 --- a/sc/source/ui/inc/dwfunctr.hxx +++ b/sc/source/ui/inc/dwfunctr.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,11 +44,11 @@ #include <vcl/combobox.hxx> #endif #include "anyrefdg.hxx" -#include "global.hxx" // ScAddress +#include "global.hxx" // ScAddress #include "privsplt.hxx" #include "funcdesc.hxx" -#ifndef LRU_MAX +#ifndef LRU_MAX #define LRU_MAX 10 #endif /************************************************************************* @@ -76,44 +76,44 @@ class ScFunctionDockWin : public SfxDockingWindow, public SfxListener { private: - Timer aTimer; - ScPrivatSplit aPrivatSplit; - ListBox aCatBox; - ListBox aFuncList; - ListBox aDDFuncList; - ListBox* pAllFuncList; - - SfxChildAlignment eSfxNewAlignment; - SfxChildAlignment eSfxOldAlignment; - ImageButton aInsertButton; - FixedText aFiFuncDesc; - USHORT nLeftSlot; - USHORT nRightSlot; - ULONG nMinWidth; - ULONG nMinHeight; - Size aOldSize; - BOOL bSizeFlag; - BOOL bInit; - short nDockMode; - Point aSplitterInitPos; - const ScFuncDesc* pFuncDesc; - USHORT nArgs; - String** pArgArr; + Timer aTimer; + ScPrivatSplit aPrivatSplit; + ListBox aCatBox; + ListBox aFuncList; + ListBox aDDFuncList; + ListBox* pAllFuncList; + + SfxChildAlignment eSfxNewAlignment; + SfxChildAlignment eSfxOldAlignment; + ImageButton aInsertButton; + FixedText aFiFuncDesc; + USHORT nLeftSlot; + USHORT nRightSlot; + ULONG nMinWidth; + ULONG nMinHeight; + Size aOldSize; + BOOL bSizeFlag; + BOOL bInit; + short nDockMode; + Point aSplitterInitPos; + const ScFuncDesc* pFuncDesc; + USHORT nArgs; + String** pArgArr; const ScFuncDesc* aLRUList[LRU_MAX]; - void UpdateFunctionList(); - void UpdateLRUList(); - void DoEnter(BOOL bOk); //@@ ??? - void SetDescription(); - void SetLeftRightSize(); - void SetTopBottonSize(); - void SetMyWidthLeRi(Size &aNewSize); - void SetMyHeightLeRi(Size &aNewSize); - void SetMyWidthToBo(Size &aNewSize); - void SetMyHeightToBo(Size &aNewSize); - void UseSplitterInitPos(); + void UpdateFunctionList(); + void UpdateLRUList(); + void DoEnter(BOOL bOk); //@@ ??? + void SetDescription(); + void SetLeftRightSize(); + void SetTopBottonSize(); + void SetMyWidthLeRi(Size &aNewSize); + void SetMyHeightLeRi(Size &aNewSize); + void SetMyWidthToBo(Size &aNewSize); + void SetMyHeightToBo(Size &aNewSize); + void UseSplitterInitPos(); DECL_LINK( SetSelectionHdl, void* ); DECL_LINK( SelHdl, ListBox* ); @@ -122,19 +122,19 @@ private: protected: - virtual BOOL Close(); - virtual void Resize(); - virtual void Resizing( Size& rSize ); - virtual void SetSize(); - virtual void ToggleFloatingMode(); - virtual void StateChanged( StateChangedType nStateChange ); + virtual BOOL Close(); + virtual void Resize(); + virtual void Resizing( Size& rSize ); + virtual void SetSize(); + virtual void ToggleFloatingMode(); + virtual void StateChanged( StateChangedType nStateChange ); virtual SfxChildAlignment CheckAlignment(SfxChildAlignment, SfxChildAlignment eAlign); public: - ScFunctionDockWin( SfxBindings* pBindings, + ScFunctionDockWin( SfxBindings* pBindings, SfxChildWindow *pCW, Window* pParent, const ResId& rResId ); @@ -142,14 +142,14 @@ public: ~ScFunctionDockWin(); using SfxDockingWindow::Notify; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - void SetSlotIDs( USHORT nLeft, USHORT nRight ) + void SetSlotIDs( USHORT nLeft, USHORT nRight ) { nLeftSlot = nLeft; nRightSlot = nRight; } - void InitLRUList(); - - void Initialize (SfxChildWinInfo* pInfo); + void InitLRUList(); + + void Initialize (SfxChildWinInfo* pInfo); virtual void FillInfo(SfxChildWinInfo&) const; }; diff --git a/sc/source/ui/inc/editable.hxx b/sc/source/ui/inc/editable.hxx index 4b6e8d0596bc..025ffff4ed4a 100644 --- a/sc/source/ui/inc/editable.hxx +++ b/sc/source/ui/inc/editable.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,8 +39,8 @@ class ScRange; class ScEditableTester { - BOOL bIsEditable; - BOOL bOnlyMatrix; + BOOL bIsEditable; + BOOL bOnlyMatrix; public: // no test in ctor @@ -51,7 +51,7 @@ public: SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ); // calls TestSelectedBlock - ScEditableTester( ScDocument* pDoc, + ScEditableTester( ScDocument* pDoc, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData& rMark ); @@ -68,18 +68,18 @@ public: // Several calls to the Test... methods check if *all* of the ranges // are editable. For several independent checks, Reset() has to be used. - void TestBlock( ScDocument* pDoc, SCTAB nTab, + void TestBlock( ScDocument* pDoc, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ); - void TestSelectedBlock( ScDocument* pDoc, + void TestSelectedBlock( ScDocument* pDoc, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScMarkData& rMark ); - void TestRange( ScDocument* pDoc, const ScRange& rRange ); - void TestSelection( ScDocument* pDoc, const ScMarkData& rMark ); - void TestView( ScViewFunc* pView ); + void TestRange( ScDocument* pDoc, const ScRange& rRange ); + void TestSelection( ScDocument* pDoc, const ScMarkData& rMark ); + void TestView( ScViewFunc* pView ); - BOOL IsEditable() const { return bIsEditable; } - BOOL IsFormatEditable() const { return bIsEditable || bOnlyMatrix; } - USHORT GetMessageId() const; + BOOL IsEditable() const { return bIsEditable; } + BOOL IsFormatEditable() const { return bIsEditable || bOnlyMatrix; } + USHORT GetMessageId() const; }; #endif diff --git a/sc/source/ui/inc/editfield.hxx b/sc/source/ui/inc/editfield.hxx index 9836e94aa215..f42e46705cc9 100644 --- a/sc/source/ui/inc/editfield.hxx +++ b/sc/source/ui/inc/editfield.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/editsh.hxx b/sc/source/ui/inc/editsh.hxx index ebada82a32fb..ce08dea6391a 100644 --- a/sc/source/ui/inc/editsh.hxx +++ b/sc/source/ui/inc/editsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,11 +45,11 @@ class TransferableClipboardListener; class ScEditShell : public SfxShell { private: - EditView* pEditView; - ScViewData* pViewData; + EditView* pEditView; + ScViewData* pViewData; TransferableClipboardListener* pClipEvtLstnr; - BOOL bPastePossible; - BOOL bIsInsertMode; + BOOL bPastePossible; + BOOL bIsInsertMode; const SvxURLField* GetURLField(); ScInputHandler* GetMyInputHdl(); @@ -63,19 +63,19 @@ public: ScEditShell(EditView* pView, ScViewData* pData); ~ScEditShell(); - void SetEditView(EditView* pView); + void SetEditView(EditView* pView); EditView* GetEditView() {return pEditView;} - void Execute(SfxRequest& rReq); - void ExecuteTrans(SfxRequest& rReq); - void GetState(SfxItemSet &rSet); - void GetClipState(SfxItemSet& rSet); + void Execute(SfxRequest& rReq); + void ExecuteTrans(SfxRequest& rReq); + void GetState(SfxItemSet &rSet); + void GetClipState(SfxItemSet& rSet); - void ExecuteAttr(SfxRequest& rReq); - void GetAttrState(SfxItemSet &rSet); + void ExecuteAttr(SfxRequest& rReq); + void GetAttrState(SfxItemSet &rSet); - void ExecuteUndo(SfxRequest& rReq); - void GetUndoState(SfxItemSet &rSet); + void ExecuteUndo(SfxRequest& rReq); + void GetUndoState(SfxItemSet &rSet); String GetSelectionText( BOOL bWholeWord ); }; diff --git a/sc/source/ui/inc/expftext.hxx b/sc/source/ui/inc/expftext.hxx index 170deba5b403..0bd2413cea51 100644 --- a/sc/source/ui/inc/expftext.hxx +++ b/sc/source/ui/inc/expftext.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -26,7 +26,7 @@ ************************************************************************/ #ifndef _SC_EXPFTEXT_HXX -#define _SC_EXPFTEXT_HXX +#define _SC_EXPFTEXT_HXX #include <vcl/fixed.hxx> #include "scdllapi.h" diff --git a/sc/source/ui/inc/fieldwnd.hxx b/sc/source/ui/inc/fieldwnd.hxx index 539dbe54e275..4fe56d6f15de 100755 --- a/sc/source/ui/inc/fieldwnd.hxx +++ b/sc/source/ui/inc/fieldwnd.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/filldlg.hxx b/sc/source/ui/inc/filldlg.hxx index 7f2fb046093c..e270b341a50d 100644 --- a/sc/source/ui/inc/filldlg.hxx +++ b/sc/source/ui/inc/filldlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,85 +46,85 @@ class ScDocument; //---------------------------------------------------------------------------- -//CHINA001 #define FDS_OPT_NONE 0 -//CHINA001 #define FDS_OPT_HORZ 1 -//CHINA001 #define FDS_OPT_VERT 2 -//CHINA001 -#include "scui_def.hxx" //CHINA001 +//CHINA001 #define FDS_OPT_NONE 0 +//CHINA001 #define FDS_OPT_HORZ 1 +//CHINA001 #define FDS_OPT_VERT 2 +//CHINA001 +#include "scui_def.hxx" //CHINA001 //============================================================================ class ScFillSeriesDlg : public ModalDialog { public: - ScFillSeriesDlg( Window* pParent, - ScDocument& rDocument, - FillDir eFillDir, - FillCmd eFillCmd, - FillDateCmd eFillDateCmd, - String aStartStr, - double fStep, - double fMax, - USHORT nPossDir ); + ScFillSeriesDlg( Window* pParent, + ScDocument& rDocument, + FillDir eFillDir, + FillCmd eFillCmd, + FillDateCmd eFillDateCmd, + String aStartStr, + double fStep, + double fMax, + USHORT nPossDir ); ~ScFillSeriesDlg(); - FillDir GetFillDir() const { return theFillDir; } - FillCmd GetFillCmd() const { return theFillCmd; } - FillDateCmd GetFillDateCmd() const { return theFillDateCmd; } - double GetStart() const { return fStartVal; } - double GetStep() const { return fIncrement; } - double GetMax() const { return fEndVal; } + FillDir GetFillDir() const { return theFillDir; } + FillCmd GetFillCmd() const { return theFillCmd; } + FillDateCmd GetFillDateCmd() const { return theFillDateCmd; } + double GetStart() const { return fStartVal; } + double GetStep() const { return fIncrement; } + double GetMax() const { return fEndVal; } - String GetStartStr() const { return aEdStartVal.GetText(); } + String GetStartStr() const { return aEdStartVal.GetText(); } - void SetEdStartValEnabled(BOOL bFlag=FALSE); + void SetEdStartValEnabled(BOOL bFlag=FALSE); private: FixedLine aFlDirection; - RadioButton aBtnDown; - RadioButton aBtnRight; - RadioButton aBtnUp; - RadioButton aBtnLeft; + RadioButton aBtnDown; + RadioButton aBtnRight; + RadioButton aBtnUp; + RadioButton aBtnLeft; FixedLine aFlSep1; FixedLine aFlType; - RadioButton aBtnArithmetic; - RadioButton aBtnGeometric; - RadioButton aBtnDate; - RadioButton aBtnAutoFill; + RadioButton aBtnArithmetic; + RadioButton aBtnGeometric; + RadioButton aBtnDate; + RadioButton aBtnAutoFill; FixedLine aFlSep2; FixedLine aFlTimeUnit; - RadioButton aBtnDay; - RadioButton aBtnDayOfWeek; - RadioButton aBtnMonth; - RadioButton aBtnYear; + RadioButton aBtnDay; + RadioButton aBtnDayOfWeek; + RadioButton aBtnMonth; + RadioButton aBtnYear; - BOOL bStartValFlag; - FixedText aFtStartVal; - Edit aEdStartVal; - String aStartStrVal; + BOOL bStartValFlag; + FixedText aFtStartVal; + Edit aEdStartVal; + String aStartStrVal; - FixedText aFtEndVal; - Edit aEdEndVal; + FixedText aFtEndVal; + Edit aEdEndVal; - FixedText aFtIncrement; - Edit aEdIncrement; + FixedText aFtIncrement; + Edit aEdIncrement; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; - const String errMsgInvalidVal; + const String errMsgInvalidVal; //---------------------------------------------------------- - ScDocument& rDoc; - FillDir theFillDir; - FillCmd theFillCmd; - FillDateCmd theFillDateCmd; - double fStartVal; - double fIncrement; - double fEndVal; + ScDocument& rDoc; + FillDir theFillDir; + FillCmd theFillCmd; + FillDateCmd theFillDateCmd; + double fStartVal; + double fIncrement; + double fEndVal; #ifdef _FILLDLG_CXX private: diff --git a/sc/source/ui/inc/filtdlg.hxx b/sc/source/ui/inc/filtdlg.hxx index 31e0e3a5d4b1..2e5cd9762e03 100644 --- a/sc/source/ui/inc/filtdlg.hxx +++ b/sc/source/ui/inc/filtdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -56,37 +56,37 @@ class TypedScStrCollection; // Gemeinsame Resource-Objekte: #define _COMMON_FILTER_RSCOBJS \ - CheckBox aBtnCase; \ - CheckBox aBtnRegExp; \ - CheckBox aBtnHeader; \ - CheckBox aBtnUnique; \ - CheckBox aBtnCopyResult; \ - ListBox aLbCopyArea; \ - formula::RefEdit aEdCopyArea; \ - formula::RefButton aRbCopyArea; \ - CheckBox aBtnDestPers; \ - FixedText aFtDbAreaLabel; \ - FixedInfo aFtDbArea; \ - const String aStrUndefined; \ - const String aStrNoName; \ - const String aStrNone; + CheckBox aBtnCase; \ + CheckBox aBtnRegExp; \ + CheckBox aBtnHeader; \ + CheckBox aBtnUnique; \ + CheckBox aBtnCopyResult; \ + ListBox aLbCopyArea; \ + formula::RefEdit aEdCopyArea; \ + formula::RefButton aRbCopyArea; \ + CheckBox aBtnDestPers; \ + FixedText aFtDbAreaLabel; \ + FixedInfo aFtDbArea; \ + const String aStrUndefined; \ + const String aStrNoName; \ + const String aStrNone; #define _INIT_COMMON_FILTER_RSCOBJS \ - aBtnCase ( this, ScResId( BTN_CASE ) ), \ - aBtnRegExp ( this, ScResId( BTN_REGEXP ) ), \ - aBtnHeader ( this, ScResId( BTN_HEADER ) ), \ - aBtnUnique ( this, ScResId( BTN_UNIQUE ) ), \ - aBtnCopyResult ( this, ScResId( BTN_COPY_RESULT ) ), \ - aLbCopyArea ( this, ScResId( LB_COPY_AREA ) ), \ + aBtnCase ( this, ScResId( BTN_CASE ) ), \ + aBtnRegExp ( this, ScResId( BTN_REGEXP ) ), \ + aBtnHeader ( this, ScResId( BTN_HEADER ) ), \ + aBtnUnique ( this, ScResId( BTN_UNIQUE ) ), \ + aBtnCopyResult ( this, ScResId( BTN_COPY_RESULT ) ), \ + aLbCopyArea ( this, ScResId( LB_COPY_AREA ) ), \ aEdCopyArea ( this, this, ScResId( ED_COPY_AREA ) ), \ - aRbCopyArea ( this, ScResId( RB_COPY_AREA ), &aEdCopyArea, this ), \ - aBtnDestPers ( this, ScResId( BTN_DEST_PERS ) ), \ - aFtDbAreaLabel ( this, ScResId( FT_DBAREA_LABEL ) ), \ - aFtDbArea ( this, ScResId( FT_DBAREA ) ), \ - aStrUndefined ( ScResId( SCSTR_UNDEFINED ) ), \ - aStrNoName ( ScGlobal::GetRscString(STR_DB_NONAME) ), \ - aStrNone ( ScResId( SCSTR_NONE ) ), + aRbCopyArea ( this, ScResId( RB_COPY_AREA ), &aEdCopyArea, this ), \ + aBtnDestPers ( this, ScResId( BTN_DEST_PERS ) ), \ + aFtDbAreaLabel ( this, ScResId( FT_DBAREA_LABEL ) ), \ + aFtDbArea ( this, ScResId( FT_DBAREA ) ), \ + aStrUndefined ( ScResId( SCSTR_UNDEFINED ) ), \ + aStrNoName ( ScGlobal::GetRscString(STR_DB_NONAME) ), \ + aStrNone ( ScResId( SCSTR_NONE ) ), //============================================================================ @@ -94,46 +94,46 @@ class ScFilterDlg : public ScAnyRefDlg { public: ScFilterDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - const SfxItemSet& rArgSet ); + const SfxItemSet& rArgSet ); ~ScFilterDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const; - virtual void SetActive(); + virtual BOOL IsRefInputMode() const; + virtual void SetActive(); - virtual BOOL Close(); - void SliderMoved(); - USHORT GetSliderPos(); - void RefreshEditRow( USHORT nOffset ); + virtual BOOL Close(); + void SliderMoved(); + USHORT GetSliderPos(); + void RefreshEditRow( USHORT nOffset ); private: FixedLine aFlCriteria; //---------------------------- - ListBox aLbConnect1; - ListBox aLbField1; - ListBox aLbCond1; - ComboBox aEdVal1; + ListBox aLbConnect1; + ListBox aLbField1; + ListBox aLbCond1; + ComboBox aEdVal1; //---------------------------- - ListBox aLbConnect2; - ListBox aLbField2; - ListBox aLbCond2; - ComboBox aEdVal2; + ListBox aLbConnect2; + ListBox aLbField2; + ListBox aLbCond2; + ComboBox aEdVal2; //---------------------------- - ListBox aLbConnect3; - ListBox aLbField3; - ListBox aLbCond3; - ComboBox aEdVal3; + ListBox aLbConnect3; + ListBox aLbField3; + ListBox aLbCond3; + ComboBox aEdVal3; //---------------------------- - ListBox aLbConnect4; - ListBox aLbField4; - ListBox aLbCond4; - ComboBox aEdVal4; + ListBox aLbConnect4; + ListBox aLbField4; + ListBox aLbCond4; + ComboBox aEdVal4; //---------------------------- - FixedText aFtConnect; - FixedText aFtField; - FixedText aFtCond; - FixedText aFtVal; + FixedText aFtConnect; + FixedText aFtField; + FixedText aFtCond; + FixedText aFtVal; FixedLine aFlSeparator; ScrollBar aScrollBar; @@ -146,56 +146,56 @@ private: _COMMON_FILTER_RSCOBJS - const String aStrEmpty; - const String aStrNotEmpty; - const String aStrRow; - const String aStrColumn; + const String aStrEmpty; + const String aStrNotEmpty; + const String aStrRow; + const String aStrColumn; - ScFilterOptionsMgr* pOptionsMgr; + ScFilterOptionsMgr* pOptionsMgr; - const USHORT nWhichQuery; - const ScQueryParam theQueryData; - ScQueryItem* pOutItem; - ScViewData* pViewData; - ScDocument* pDoc; - SCTAB nSrcTab; + const USHORT nWhichQuery; + const ScQueryParam theQueryData; + ScQueryItem* pOutItem; + ScViewData* pViewData; + ScDocument* pDoc; + SCTAB nSrcTab; - ComboBox* aValueEdArr[4]; - ListBox* aFieldLbArr[4]; - ListBox* aCondLbArr[4]; - ListBox* aConnLbArr[4]; + ComboBox* aValueEdArr[4]; + ListBox* aFieldLbArr[4]; + ListBox* aCondLbArr[4]; + ListBox* aConnLbArr[4]; bool mbHasDates[MAXQUERY]; BOOL bRefreshExceptQuery[MAXQUERY]; - USHORT nFieldCount; - BOOL bRefInputMode; + USHORT nFieldCount; + BOOL bRefInputMode; - TypedScStrCollection* pEntryLists[MAXCOLCOUNT]; - USHORT nHeaderPos[MAXCOLCOUNT]; + TypedScStrCollection* pEntryLists[MAXCOLCOUNT]; + USHORT nHeaderPos[MAXCOLCOUNT]; // Hack: RefInput-Kontrolle - Timer* pTimer; + Timer* pTimer; #ifdef _FILTDLG_CXX private: - void Init ( const SfxItemSet& rArgSet ); - void FillFieldLists (); - void FillAreaList (); - void UpdateValueList ( USHORT nList ); - void UpdateHdrInValueList( USHORT nList ); - void ClearValueList ( USHORT nList ); - USHORT GetFieldSelPos ( SCCOL nField ); - ScQueryItem* GetOutputItem (); + void Init ( const SfxItemSet& rArgSet ); + void FillFieldLists (); + void FillAreaList (); + void UpdateValueList ( USHORT nList ); + void UpdateHdrInValueList( USHORT nList ); + void ClearValueList ( USHORT nList ); + USHORT GetFieldSelPos ( SCCOL nField ); + ScQueryItem* GetOutputItem (); // Handler: - DECL_LINK( LbSelectHdl, ListBox* ); + DECL_LINK( LbSelectHdl, ListBox* ); DECL_LINK( ValModifyHdl, ComboBox* ); - DECL_LINK( CheckBoxHdl, CheckBox* ); - DECL_LINK( EndDlgHdl, Button* ); + DECL_LINK( CheckBoxHdl, CheckBox* ); + DECL_LINK( EndDlgHdl, Button* ); DECL_LINK( MoreClickHdl, MoreButton* ); DECL_LINK( ScrollHdl, ScrollBar* ); // Hack: RefInput-Kontrolle - DECL_LINK( TimeOutHdl, Timer* ); + DECL_LINK( TimeOutHdl, Timer* ); #endif }; @@ -205,21 +205,21 @@ class ScSpecialFilterDlg : public ScAnyRefDlg { public: ScSpecialFilterDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - const SfxItemSet& rArgSet ); + const SfxItemSet& rArgSet ); ~ScSpecialFilterDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const; - virtual void SetActive(); + virtual BOOL IsRefInputMode() const; + virtual void SetActive(); - virtual BOOL Close(); + virtual BOOL Close(); private: - ListBox aLbFilterArea; - FixedText aFtFilterArea; - formula::RefEdit aEdFilterArea; - formula::RefButton aRbFilterArea; + ListBox aLbFilterArea; + FixedText aFtFilterArea; + formula::RefEdit aEdFilterArea; + formula::RefButton aRbFilterArea; FixedLine aFlOptions; @@ -230,34 +230,34 @@ private: HelpButton aBtnHelp; MoreButton aBtnMore; - ScFilterOptionsMgr* pOptionsMgr; + ScFilterOptionsMgr* pOptionsMgr; - const USHORT nWhichQuery; - const ScQueryParam theQueryData; - ScQueryItem* pOutItem; - ScViewData* pViewData; - ScDocument* pDoc; + const USHORT nWhichQuery; + const ScQueryParam theQueryData; + ScQueryItem* pOutItem; + ScViewData* pViewData; + ScDocument* pDoc; - formula::RefEdit* pRefInputEdit; - BOOL bRefInputMode; + formula::RefEdit* pRefInputEdit; + BOOL bRefInputMode; // Hack: RefInput-Kontrolle - Timer* pTimer; + Timer* pTimer; #ifdef _SFILTDLG_CXX private: - void Init( const SfxItemSet& rArgSet ); - ScQueryItem* GetOutputItem( const ScQueryParam& rParam, + void Init( const SfxItemSet& rArgSet ); + ScQueryItem* GetOutputItem( const ScQueryParam& rParam, const ScRange& rSource ); // Handler DECL_LINK( FilterAreaSelHdl, ListBox* ); DECL_LINK( FilterAreaModHdl, formula::RefEdit* ); - DECL_LINK( EndDlgHdl, Button* ); + DECL_LINK( EndDlgHdl, Button* ); DECL_LINK( ScrollHdl, ScrollBar* ); // Hack: RefInput-Kontrolle - DECL_LINK( TimeOutHdl, Timer* ); + DECL_LINK( TimeOutHdl, Timer* ); #endif }; diff --git a/sc/source/ui/inc/filter.hrc b/sc/source/ui/inc/filter.hrc index 508c5af9aab5..9d708c9799c5 100644 --- a/sc/source/ui/inc/filter.hrc +++ b/sc/source/ui/inc/filter.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -24,59 +24,59 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ -#include "sc.hrc" // -> RID_SCDLG_FILTER +#include "sc.hrc" // -> RID_SCDLG_FILTER // -> RID_SCDLG_SPEC_FILTER // -> RID_SCDLG_PIVOTFILTER // allgemein -#define BTN_OK 1 -#define BTN_CANCEL 1 -#define BTN_HELP 1 +#define BTN_OK 1 +#define BTN_CANCEL 1 +#define BTN_HELP 1 #define BTN_MORE 1 -#define BTN_UNIQUE 1 -#define BTN_CASE 2 -#define BTN_REGEXP 3 -#define BTN_HEADER 4 -#define BTN_COPY_RESULT 5 -#define LB_COPY_AREA 6 -#define ED_COPY_AREA 7 -#define RB_COPY_AREA 8 +#define BTN_UNIQUE 1 +#define BTN_CASE 2 +#define BTN_REGEXP 3 +#define BTN_HEADER 4 +#define BTN_COPY_RESULT 5 +#define LB_COPY_AREA 6 +#define ED_COPY_AREA 7 +#define RB_COPY_AREA 8 #define FL_OPTIONS 9 -#define FT_DBAREA_LABEL 10 -#define FT_DBAREA 11 -#define BTN_DEST_PERS 12 +#define FT_DBAREA_LABEL 10 +#define FT_DBAREA 11 +#define BTN_DEST_PERS 12 // Filter: -#define FT_OP 20 -#define FT_FIELD 21 -#define FT_COND 22 -#define FT_VAL 23 -#define LB_FIELD1 24 -#define LB_FIELD2 25 -#define LB_FIELD3 26 -#define LB_OP1 27 -#define LB_OP2 28 -#define LB_COND1 29 -#define LB_COND2 30 -#define LB_COND3 31 -#define ED_VAL1 32 -#define ED_VAL2 33 -#define ED_VAL3 34 +#define FT_OP 20 +#define FT_FIELD 21 +#define FT_COND 22 +#define FT_VAL 23 +#define LB_FIELD1 24 +#define LB_FIELD2 25 +#define LB_FIELD3 26 +#define LB_OP1 27 +#define LB_OP2 28 +#define LB_COND1 29 +#define LB_COND2 30 +#define LB_COND3 31 +#define ED_VAL1 32 +#define ED_VAL2 33 +#define ED_VAL3 34 #define FL_CRITERIA 35 #define FL_SEPARATOR 36 -#define LB_OP3 37 -#define LB_FIELD4 38 -#define LB_COND4 39 -#define ED_VAL4 40 +#define LB_OP3 37 +#define LB_FIELD4 38 +#define LB_COND4 39 +#define ED_VAL4 40 #define LB_SCROLL 41 -#define LB_OP4 42 +#define LB_OP4 42 // Spezialfilter -#define FT_CRITERIA_AREA 50 -#define LB_CRITERIA_AREA 51 -#define ED_CRITERIA_AREA 52 -#define RB_CRITERIA_AREA 53 +#define FT_CRITERIA_AREA 50 +#define LB_CRITERIA_AREA 51 +#define ED_CRITERIA_AREA 52 +#define RB_CRITERIA_AREA 53 diff --git a/sc/source/ui/inc/foptmgr.hxx b/sc/source/ui/inc/foptmgr.hxx index 92e3833dff7d..9e1129f265f7 100644 --- a/sc/source/ui/inc/foptmgr.hxx +++ b/sc/source/ui/inc/foptmgr.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,60 +59,60 @@ class ScViewData; class ScFilterOptionsMgr { public: - ScFilterOptionsMgr( Dialog* ptrDlg, - ScViewData* ptrViewData, - const ScQueryParam& refQueryData, - MoreButton& refBtnMore, - CheckBox& refBtnCase, - CheckBox& refBtnRegExp, - CheckBox& refBtnHeader, - CheckBox& refBtnUnique, - CheckBox& refBtnCopyResult, - CheckBox& refBtnDestPers, - ListBox& refLbCopyArea, - Edit& refEdCopyArea, - formula::RefButton& refRbCopyArea, - FixedText& refFtDbAreaLabel, - FixedInfo& refFtDbArea, + ScFilterOptionsMgr( Dialog* ptrDlg, + ScViewData* ptrViewData, + const ScQueryParam& refQueryData, + MoreButton& refBtnMore, + CheckBox& refBtnCase, + CheckBox& refBtnRegExp, + CheckBox& refBtnHeader, + CheckBox& refBtnUnique, + CheckBox& refBtnCopyResult, + CheckBox& refBtnDestPers, + ListBox& refLbCopyArea, + Edit& refEdCopyArea, + formula::RefButton& refRbCopyArea, + FixedText& refFtDbAreaLabel, + FixedInfo& refFtDbArea, FixedLine& refFlOptions, - const String& refStrNoName, - const String& refStrUndefined ); + const String& refStrNoName, + const String& refStrUndefined ); ~ScFilterOptionsMgr(); - BOOL VerifyPosStr ( const String& rPosStr ) const; + BOOL VerifyPosStr ( const String& rPosStr ) const; private: - Dialog* pDlg; - ScViewData* pViewData; - ScDocument* pDoc; - - MoreButton& rBtnMore; - CheckBox& rBtnCase; - CheckBox& rBtnRegExp; - CheckBox& rBtnHeader; - CheckBox& rBtnUnique; - CheckBox& rBtnCopyResult; - CheckBox& rBtnDestPers; - ListBox& rLbCopyPos; - Edit& rEdCopyPos; - formula::RefButton& rRbCopyPos; - FixedText& rFtDbAreaLabel; - FixedInfo& rFtDbArea; + Dialog* pDlg; + ScViewData* pViewData; + ScDocument* pDoc; + + MoreButton& rBtnMore; + CheckBox& rBtnCase; + CheckBox& rBtnRegExp; + CheckBox& rBtnHeader; + CheckBox& rBtnUnique; + CheckBox& rBtnCopyResult; + CheckBox& rBtnDestPers; + ListBox& rLbCopyPos; + Edit& rEdCopyPos; + formula::RefButton& rRbCopyPos; + FixedText& rFtDbAreaLabel; + FixedInfo& rFtDbArea; FixedLine& rFlOptions; - const String& rStrNoName; - const String& rStrUndefined; + const String& rStrNoName; + const String& rStrUndefined; - const ScQueryParam& rQueryData; + const ScQueryParam& rQueryData; #ifdef _FOPTMGR_CXX private: void Init(); // Handler: - DECL_LINK( EdPosModifyHdl, Edit* ); - DECL_LINK( LbPosSelHdl, ListBox* ); - DECL_LINK( BtnCopyResultHdl, CheckBox* ); + DECL_LINK( EdPosModifyHdl, Edit* ); + DECL_LINK( LbPosSelHdl, ListBox* ); + DECL_LINK( BtnCopyResultHdl, CheckBox* ); #endif }; diff --git a/sc/source/ui/inc/formatsh.hxx b/sc/source/ui/inc/formatsh.hxx index e45fb99c54ef..e22d492da0ea 100644 --- a/sc/source/ui/inc/formatsh.hxx +++ b/sc/source/ui/inc/formatsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,7 +41,7 @@ class ScFormatShell: public SfxShell protected: - ScViewData* GetViewData(){return pViewData;} + ScViewData* GetViewData(){return pViewData;} const ScViewData* GetViewData() const {return pViewData;} public: @@ -50,24 +50,24 @@ public: SFX_DECL_INTERFACE(SCID_FORMAT_SHELL) ScFormatShell(ScViewData* pData); - virtual ~ScFormatShell(); + virtual ~ScFormatShell(); - void ExecuteNumFormat( SfxRequest& rReq ); - void GetNumFormatState( SfxItemSet& rSet ); + void ExecuteNumFormat( SfxRequest& rReq ); + void GetNumFormatState( SfxItemSet& rSet ); - void ExecuteAttr( SfxRequest& rReq ); - void GetAttrState( SfxItemSet& rSet ); + void ExecuteAttr( SfxRequest& rReq ); + void GetAttrState( SfxItemSet& rSet ); - void ExecuteAlignment( SfxRequest& rReq ); + void ExecuteAlignment( SfxRequest& rReq ); - void ExecuteTextAttr( SfxRequest& rReq ); - void GetTextAttrState( SfxItemSet& rSet ); + void ExecuteTextAttr( SfxRequest& rReq ); + void GetTextAttrState( SfxItemSet& rSet ); - void GetAlignState( SfxItemSet& rSet ); - void GetBorderState( SfxItemSet& rSet ); + void GetAlignState( SfxItemSet& rSet ); + void GetBorderState( SfxItemSet& rSet ); - void ExecuteStyle( SfxRequest& rReq ); - void GetStyleState( SfxItemSet& rSet ); + void ExecuteStyle( SfxRequest& rReq ); + void GetStyleState( SfxItemSet& rSet ); void ExecuteTextDirection( SfxRequest& rReq ); void GetTextDirectionState( SfxItemSet& rSet ); diff --git a/sc/source/ui/inc/formdata.hxx b/sc/source/ui/inc/formdata.hxx index 72c7862a007b..6da17c3bc591 100644 --- a/sc/source/ui/inc/formdata.hxx +++ b/sc/source/ui/inc/formdata.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,22 +42,22 @@ public: ScFormEditData(); virtual ~ScFormEditData(); - ScInputHandler* GetInputHandler() { return pInputHandler;} - ScDocShell* GetDocShell() { return pScDocShell;} + ScInputHandler* GetInputHandler() { return pInputHandler;} + ScDocShell* GetDocShell() { return pScDocShell;} - void SetInputHandler(ScInputHandler* pHdl) { pInputHandler=pHdl;} - void SetDocShell(ScDocShell* pSds) { pScDocShell=pSds;} + void SetInputHandler(ScInputHandler* pHdl) { pInputHandler=pHdl;} + void SetDocShell(ScDocShell* pSds) { pScDocShell=pSds;} - virtual void SaveValues(); + virtual void SaveValues(); private: ScFormEditData( const ScFormEditData& ); -// const ScFormEditData& operator=( const ScFormEditData& r ); +// const ScFormEditData& operator=( const ScFormEditData& r ); - ScInputHandler* pInputHandler; - ScDocShell* pScDocShell; + ScInputHandler* pInputHandler; + ScDocShell* pScDocShell; }; diff --git a/sc/source/ui/inc/formula.hxx b/sc/source/ui/inc/formula.hxx index f863662f7cd0..9896dd0a2aa4 100644 --- a/sc/source/ui/inc/formula.hxx +++ b/sc/source/ui/inc/formula.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,7 +29,7 @@ #define SC_FORMULA_HXX #include "anyrefdg.hxx" -#include "global.hxx" // ScAddress +#include "global.hxx" // ScAddress #include <svtools/stdctrl.hxx> #ifndef _LSTBOX_HXX //autogen #include <vcl/lstbox.hxx> @@ -68,12 +68,12 @@ class ScFormulaDlg : public formula::FormulaDlg, public formula::IFormulaEditorHelper { ScFormulaReferenceHelper m_aHelper; - ScFormulaCell* pCell; + ScFormulaCell* pCell; ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XFormulaParser> m_xParser; ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XFormulaOpCodeMapper> m_xOpCodeMapper; - static ScDocument* pDoc; - static ScAddress aCursorPos; + static ScDocument* pDoc; + static ScAddress aCursorPos; public: ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, ScViewData* pViewData ,formula::IFunctionManager* _pFunctionMgr); @@ -84,7 +84,7 @@ public: virtual void fill(); virtual bool calculateValue(const String& _sExpression,String& _rResult); virtual void doClose(BOOL _bOk); - virtual void insertEntryToLRUList(const formula::IFunctionDescription* pDesc); + virtual void insertEntryToLRUList(const formula::IFunctionDescription* pDesc); virtual void showReference(const String& _sFormula); virtual void dispatch(BOOL _bOK,BOOL _bMartixChecked); virtual void setDispatcherLock( BOOL bLock ); @@ -104,7 +104,7 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XFormulaOpCodeMapper> getFormulaOpCodeMapper() const; virtual ::com::sun::star::table::CellAddress getReferencePosition() const; - virtual BOOL Close(); + virtual BOOL Close(); // sc::IAnyRefDialog virtual void ShowReference(const String& _sRef); @@ -124,9 +124,9 @@ public: protected: virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ); - ULONG FindFocusWin(Window *pWin); - void SaveLRUEntry(const ScFuncDesc* pFuncDesc); - void HighlightFunctionParas(const String& aFormula); + ULONG FindFocusWin(Window *pWin); + void SaveLRUEntry(const ScFuncDesc* pFuncDesc); + void HighlightFunctionParas(const String& aFormula); BOOL IsInputHdl(ScInputHandler* pHdl); ScInputHandler* GetNextInputHandler(ScDocShell* pDocShell,PtrTabViewShell* ppViewSh); diff --git a/sc/source/ui/inc/fuconarc.hxx b/sc/source/ui/inc/fuconarc.hxx index 686f2a00ae5b..de0918618c45 100644 --- a/sc/source/ui/inc/fuconarc.hxx +++ b/sc/source/ui/inc/fuconarc.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,8 +49,8 @@ class FuConstArc : public FuConstruct virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren // #98185# Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle); @@ -58,5 +58,5 @@ class FuConstArc : public FuConstruct -#endif // _SD_FUCONARC_HXX +#endif // _SD_FUCONARC_HXX diff --git a/sc/source/ui/inc/fuconcustomshape.hxx b/sc/source/ui/inc/fuconcustomshape.hxx index e6ecbfb2e2c3..b20043a91ec8 100644 --- a/sc/source/ui/inc/fuconcustomshape.hxx +++ b/sc/source/ui/inc/fuconcustomshape.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,8 +47,8 @@ public: virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren // #98185# Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject( const sal_uInt16 nID, const Rectangle& rRectangle ); diff --git a/sc/source/ui/inc/fuconpol.hxx b/sc/source/ui/inc/fuconpol.hxx index 3a27ffcc2f69..b96c20562233 100644 --- a/sc/source/ui/inc/fuconpol.hxx +++ b/sc/source/ui/inc/fuconpol.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,13 +51,13 @@ class FuConstPolygon : public FuConstruct virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren // #98185# Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle); }; -#endif // _FUCONPOL_HXX +#endif // _FUCONPOL_HXX diff --git a/sc/source/ui/inc/fuconrec.hxx b/sc/source/ui/inc/fuconrec.hxx index fb609e4a7681..ab8770ab079b 100644 --- a/sc/source/ui/inc/fuconrec.hxx +++ b/sc/source/ui/inc/fuconrec.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,8 +49,8 @@ class FuConstRectangle : public FuConstruct virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren // #98185# Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle); @@ -58,5 +58,5 @@ class FuConstRectangle : public FuConstruct -#endif // _SD_FUCONREC_HXX +#endif // _SD_FUCONREC_HXX diff --git a/sc/source/ui/inc/fuconstr.hxx b/sc/source/ui/inc/fuconstr.hxx index 28b20c7a94df..b0cca7238546 100644 --- a/sc/source/ui/inc/fuconstr.hxx +++ b/sc/source/ui/inc/fuconstr.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,7 +33,7 @@ /************************************************************************/ -#define MIN_FREEHAND_DISTANCE 10 +#define MIN_FREEHAND_DISTANCE 10 /************************************************************************* @@ -58,10 +58,10 @@ class FuConstruct : public FuDraw BOOL SimpleMouseButtonUp(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren }; -#endif // _SD_FUCONSTR_HXX +#endif // _SD_FUCONSTR_HXX diff --git a/sc/source/ui/inc/fuconuno.hxx b/sc/source/ui/inc/fuconuno.hxx index ffe2c1e9722b..b9f148f2f1c5 100644 --- a/sc/source/ui/inc/fuconuno.hxx +++ b/sc/source/ui/inc/fuconuno.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,8 +54,8 @@ public: virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren // #98185# Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle); @@ -63,5 +63,5 @@ public: -#endif // _SD_FUCONCTL_HXX +#endif // _SD_FUCONCTL_HXX diff --git a/sc/source/ui/inc/fudraw.hxx b/sc/source/ui/inc/fudraw.hxx index 2344ca629c2f..5333b0d13ce0 100644 --- a/sc/source/ui/inc/fudraw.hxx +++ b/sc/source/ui/inc/fudraw.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -68,10 +68,10 @@ class FuDraw : public FuPoor BOOL IsSizingOrMovingNote( const MouseEvent& rMEvt ) const; private: - void DoModifiers(const MouseEvent& rMEvt); - void ResetModifiers(); + void DoModifiers(const MouseEvent& rMEvt); + void ResetModifiers(); }; -#endif // _SD_FUDRAW_HXX +#endif // _SD_FUDRAW_HXX diff --git a/sc/source/ui/inc/fuedipo.hxx b/sc/source/ui/inc/fuedipo.hxx index 5138a134cc2e..49acc7cd40dd 100644 --- a/sc/source/ui/inc/fuedipo.hxx +++ b/sc/source/ui/inc/fuedipo.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,11 +50,11 @@ class FuEditPoints : public FuDraw virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren }; -#endif // _SD_FUEDIPO_HXX +#endif // _SD_FUEDIPO_HXX diff --git a/sc/source/ui/inc/fuinsert.hxx b/sc/source/ui/inc/fuinsert.hxx index 4dda7cb2b5ba..9580ef400a25 100644 --- a/sc/source/ui/inc/fuinsert.hxx +++ b/sc/source/ui/inc/fuinsert.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,8 +38,8 @@ class FuInsertGraphic : public FuPoor SdrModel* pDoc, SfxRequest& rReq); virtual ~FuInsertGraphic(); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren }; /************************************************************************/ @@ -51,8 +51,8 @@ class FuInsertOLE : public FuPoor SdrModel* pDoc, SfxRequest& rReq); virtual ~FuInsertOLE(); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren }; /************************************************************************/ @@ -64,8 +64,8 @@ class FuInsertChart : public FuPoor SdrModel* pDoc, SfxRequest& rReq); virtual ~FuInsertChart(); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren }; /************************************************************************/ @@ -77,9 +77,9 @@ class FuInsertMedia : public FuPoor SdrModel* pDoc, SfxRequest& rReq); virtual ~FuInsertMedia(); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren }; -#endif // _SD_FUINSERT_HXX +#endif // _SD_FUINSERT_HXX diff --git a/sc/source/ui/inc/fumark.hxx b/sc/source/ui/inc/fumark.hxx index fcadc54768e8..0bfa32631e60 100644 --- a/sc/source/ui/inc/fumark.hxx +++ b/sc/source/ui/inc/fumark.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,7 +29,7 @@ #define SC_FUMARK_HXX #include "fupoor.hxx" -#include "rangelst.hxx" // ScRangeListRef +#include "rangelst.hxx" // ScRangeListRef /************************************************************************* @@ -41,11 +41,11 @@ class FuMarkRect : public FuPoor { protected: - Point aBeginPos; - Rectangle aZoomRect; - BOOL bVisible; - BOOL bStartDrag; - ScRangeListRef aSourceRange; + Point aBeginPos; + Rectangle aZoomRect; + BOOL bVisible; + BOOL bStartDrag; + ScRangeListRef aSourceRange; public: FuMarkRect(ScTabViewShell* pViewSh, Window* pWin, ScDrawView* pView, diff --git a/sc/source/ui/inc/funcpage.hxx b/sc/source/ui/inc/funcpage.hxx index d8b5c7796971..f9a24438aced 100644 --- a/sc/source/ui/inc/funcpage.hxx +++ b/sc/source/ui/inc/funcpage.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,7 +29,7 @@ #define SC_FUNCPAGE_HXX #include "funcutl.hxx" -#include "global.hxx" // ScAddress +#include "global.hxx" // ScAddress #include <svtools/stdctrl.hxx> #ifndef _LSTBOX_HXX //autogen #include <vcl/lstbox.hxx> @@ -65,8 +65,8 @@ class ScListBox : public ListBox { protected: - virtual void KeyInput( const KeyEvent& rKEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual void KeyInput( const KeyEvent& rKEvt ); + virtual long PreNotify( NotifyEvent& rNEvt ); public: ScListBox( Window* pParent, const ResId& rResId ); @@ -80,15 +80,15 @@ class ScFuncPage : public TabPage { private: - Link aDoubleClickLink; - Link aSelectionLink; - FixedText aFtCategory; - ListBox aLbCategory; - FixedText aFtFunction; - ScListBox aLbFunction; - ImageButton aIBFunction; + Link aDoubleClickLink; + Link aSelectionLink; + FixedText aFtCategory; + ListBox aLbCategory; + FixedText aFtFunction; + ScListBox aLbFunction; + ImageButton aIBFunction; - const ScFuncDesc* aLRUList[LRU_MAX]; + const ScFuncDesc* aLRUList[LRU_MAX]; DECL_LINK( SelHdl, ListBox* ); @@ -96,24 +96,24 @@ private: protected: - void UpdateFunctionList(); - void InitLRUList(); + void UpdateFunctionList(); + void InitLRUList(); public: ScFuncPage( Window* pParent); - void SetCategory(USHORT nCat); - void SetFunction(USHORT nFunc); - void SetFocus(); - USHORT GetCategory(); - USHORT GetFunction(); - USHORT GetFunctionEntryCount(); + void SetCategory(USHORT nCat); + void SetFunction(USHORT nFunc); + void SetFocus(); + USHORT GetCategory(); + USHORT GetFunction(); + USHORT GetFunctionEntryCount(); - USHORT GetFuncPos(const ScFuncDesc*); - const ScFuncDesc* GetFuncDesc( USHORT nPos ) const; - String GetSelFunctionName() const; + USHORT GetFuncPos(const ScFuncDesc*); + const ScFuncDesc* GetFuncDesc( USHORT nPos ) const; + String GetSelFunctionName() const; void SetDoubleClickHdl( const Link& rLink ) { aDoubleClickLink = rLink; } const Link& GetDoubleClickHdl() const { return aDoubleClickLink; } diff --git a/sc/source/ui/inc/funcutl.hxx b/sc/source/ui/inc/funcutl.hxx index 715c9d36a101..b5fd76f55628 100644 --- a/sc/source/ui/inc/funcutl.hxx +++ b/sc/source/ui/inc/funcutl.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,7 +35,7 @@ #include <vcl/fixed.hxx> #endif #include <svtools/svmedit.hxx> -#include "anyrefdg.hxx" // formula::RefButton +#include "anyrefdg.hxx" // formula::RefButton //============================================================================ @@ -46,14 +46,14 @@ class ValWnd : public Window public: ValWnd( Window* pParent, const ResId& rId ); - void SetValue( const String& rStrVal ); + void SetValue( const String& rStrVal ); protected: - virtual void Paint( const Rectangle& rRect ); + virtual void Paint( const Rectangle& rRect ); private: - String aStrValue; - Rectangle aRectOut; + String aStrValue; + Rectangle aRectOut; }; @@ -64,18 +64,18 @@ class ScEditBox : public Control { private: - MultiLineEdit* pMEdit; - Link aSelChangedLink; - Selection aOldSel; - BOOL bMouseFlag; + MultiLineEdit* pMEdit; + Link aSelChangedLink; + Selection aOldSel; + BOOL bMouseFlag; DECL_LINK( ChangedHdl, ScEditBox* ); protected: - virtual long PreNotify( NotifyEvent& rNEvt ); - virtual void SelectionChanged(); - virtual void Resize(); - virtual void GetFocus(); + virtual long PreNotify( NotifyEvent& rNEvt ); + virtual void SelectionChanged(); + virtual void Resize(); + virtual void GetFocus(); public: @@ -83,12 +83,12 @@ public: ~ScEditBox(); - MultiLineEdit* GetEdit() {return pMEdit;} + MultiLineEdit* GetEdit() {return pMEdit;} void SetSelChangedHdl( const Link& rLink ) { aSelChangedLink = rLink; } const Link& GetSelChangedHdl() const { return aSelChangedLink; } - void UpdateOldSel(); + void UpdateOldSel(); }; @@ -101,17 +101,17 @@ class ArgEdit : public formula::RefEdit public: ArgEdit( Window* pParent, const ResId& rResId ); - void Init( ArgEdit* pPrevEdit, ArgEdit* pNextEdit, + void Init( ArgEdit* pPrevEdit, ArgEdit* pNextEdit, ScrollBar& rArgSlider, USHORT nArgCount ); protected: - virtual void KeyInput( const KeyEvent& rKEvt ); + virtual void KeyInput( const KeyEvent& rKEvt ); private: - ArgEdit* pEdPrev; - ArgEdit* pEdNext; - ScrollBar* pSlider; - USHORT nArgs; + ArgEdit* pEdPrev; + ArgEdit* pEdNext; + ScrollBar* pSlider; + USHORT nArgs; }; @@ -122,53 +122,53 @@ class ArgInput { private: - Link aFxClickLink; - Link aRefClickLink; - Link aFxFocusLink; - Link aRefFocusLink; - Link aEdFocusLink; - Link aEdModifyLink; - - FixedText* pFtArg; - ImageButton* pBtnFx; - ArgEdit* pEdArg; - formula::RefButton* pRefBtn; - - DECL_LINK( FxBtnClickHdl, ImageButton* ); - DECL_LINK( RefBtnClickHdl,formula::RefButton* ); - DECL_LINK( FxBtnFocusHdl, ImageButton* ); - DECL_LINK( RefBtnFocusHdl,formula::RefButton* ); - DECL_LINK( EdFocusHdl, ArgEdit* ); - DECL_LINK( EdModifyHdl,ArgEdit* ); + Link aFxClickLink; + Link aRefClickLink; + Link aFxFocusLink; + Link aRefFocusLink; + Link aEdFocusLink; + Link aEdModifyLink; + + FixedText* pFtArg; + ImageButton* pBtnFx; + ArgEdit* pEdArg; + formula::RefButton* pRefBtn; + + DECL_LINK( FxBtnClickHdl, ImageButton* ); + DECL_LINK( RefBtnClickHdl,formula::RefButton* ); + DECL_LINK( FxBtnFocusHdl, ImageButton* ); + DECL_LINK( RefBtnFocusHdl,formula::RefButton* ); + DECL_LINK( EdFocusHdl, ArgEdit* ); + DECL_LINK( EdModifyHdl,ArgEdit* ); protected: - virtual void FxClick(); - virtual void RefClick(); - virtual void FxFocus(); - virtual void RefFocus(); - virtual void EdFocus(); - virtual void EdModify(); + virtual void FxClick(); + virtual void RefClick(); + virtual void FxFocus(); + virtual void RefFocus(); + virtual void EdFocus(); + virtual void EdModify(); public: ArgInput(); - void InitArgInput ( FixedText* pftArg, - ImageButton* pbtnFx, - ArgEdit* pedArg, - formula::RefButton* prefBtn); + void InitArgInput ( FixedText* pftArg, + ImageButton* pbtnFx, + ArgEdit* pedArg, + formula::RefButton* prefBtn); - void SetArgName(const String &aArg); - String GetArgName(); - void SetArgNameFont(const Font&); + void SetArgName(const String &aArg); + String GetArgName(); + void SetArgNameFont(const Font&); - void SetArgVal(const String &aVal); - String GetArgVal(); + void SetArgVal(const String &aVal); + String GetArgVal(); - void SetArgSelection (const Selection& rSel ); + void SetArgSelection (const Selection& rSel ); - ArgEdit* GetArgEdPtr() {return pEdArg;} + ArgEdit* GetArgEdPtr() {return pEdArg;} void SetFxClickHdl( const Link& rLink ) { aFxClickLink = rLink; } diff --git a/sc/source/ui/inc/fupoor.hxx b/sc/source/ui/inc/fupoor.hxx index 6d9b7ae2af5a..96d27913fae5 100644 --- a/sc/source/ui/inc/fupoor.hxx +++ b/sc/source/ui/inc/fupoor.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,10 +41,10 @@ class Dialog; // #98185# Create default drawing objects via keyboard class SdrObject; -// Return-Werte fuer Command -#define SC_CMD_NONE 0 -#define SC_CMD_USED 1 -#define SC_CMD_IGNORE 2 +// Return-Werte fuer Command +#define SC_CMD_NONE 0 +#define SC_CMD_USED 1 +#define SC_CMD_IGNORE 2 /************************************************************************* |* @@ -55,28 +55,28 @@ class SdrObject; class FuPoor { protected: - ScDrawView* pView; - ScTabViewShell* pViewShell; - Window* pWindow; - SdrModel* pDrDoc; + ScDrawView* pView; + ScTabViewShell* pViewShell; + Window* pWindow; + SdrModel* pDrDoc; - SfxRequest aSfxRequest; - Dialog* pDialog; + SfxRequest aSfxRequest; + Dialog* pDialog; - Timer aScrollTimer; // fuer Autoscrolling + Timer aScrollTimer; // fuer Autoscrolling DECL_LINK( ScrollHdl, Timer * ); void ForceScroll(const Point& aPixPos); - Timer aDragTimer; // fuer Drag&Drop + Timer aDragTimer; // fuer Drag&Drop DECL_LINK( DragTimerHdl, Timer * ); DECL_LINK( DragHdl, void * ); - BOOL bIsInDragMode; - Point aMDPos; // Position von MouseButtonDown + BOOL bIsInDragMode; + Point aMDPos; // Position von MouseButtonDown // #95491# member to hold state of the mouse buttons for creation // of own MouseEvents (like in ScrollHdl) private: - sal_uInt16 mnCode; + sal_uInt16 mnCode; public: FuPoor(ScTabViewShell* pViewSh, Window* pWin, ScDrawView* pView, @@ -105,19 +105,19 @@ public: virtual BYTE Command(const CommandEvent& rCEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren - virtual void ScrollStart() {} // diese Funktionen werden von - virtual void ScrollEnd() {} // ForceScroll aufgerufen + virtual void ScrollStart() {} // diese Funktionen werden von + virtual void ScrollEnd() {} // ForceScroll aufgerufen void SetWindow(Window* pWin) { pWindow = pWin; } USHORT GetSlotID() const { return( aSfxRequest.GetSlot() ); } - BOOL IsDetectiveHit( const Point& rLogicPos ); + BOOL IsDetectiveHit( const Point& rLogicPos ); - void StopDragTimer(); + void StopDragTimer(); // #98185# Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle); @@ -132,5 +132,5 @@ public: -#endif // _SD_FUPOOR_HXX +#endif // _SD_FUPOOR_HXX diff --git a/sc/source/ui/inc/fusel.hxx b/sc/source/ui/inc/fusel.hxx index c12b5739d61c..c168d025e383 100644 --- a/sc/source/ui/inc/fusel.hxx +++ b/sc/source/ui/inc/fusel.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,18 +58,18 @@ public: virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); virtual BYTE Command(const CommandEvent& rCEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren void ActivateNoteHandles(SdrObject* pObj); protected: -// Outliner* pOutliner; -// OutlinerView* pOutlinerView; - BOOL bVCAction; +// Outliner* pOutliner; +// OutlinerView* pOutlinerView; + BOOL bVCAction; private: - BOOL TestDetective( SdrPageView* pPV, const Point& rPos ); // -> fusel2 + BOOL TestDetective( SdrPageView* pPV, const Point& rPos ); // -> fusel2 bool IsNoteCaptionMarked() const; bool IsNoteCaptionClicked( const Point& rPos ) const; @@ -77,5 +77,5 @@ private: -#endif // _SD_FUSEL_HXX +#endif // _SD_FUSEL_HXX diff --git a/sc/source/ui/inc/futext.hxx b/sc/source/ui/inc/futext.hxx index 41a41b054554..1a01abcf59f6 100644 --- a/sc/source/ui/inc/futext.hxx +++ b/sc/source/ui/inc/futext.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,8 +42,8 @@ class SdrOutliner; class FuText : public FuConstruct { protected: -// USHORT nOldObjectBar; - SdrTextObj* pTextObj; +// USHORT nOldObjectBar; + SdrTextObj* pTextObj; public: FuText(ScTabViewShell* pViewSh, Window* pWin, ScDrawView* pView, @@ -56,17 +56,17 @@ public: virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); - virtual void Activate(); // Function aktivieren - virtual void Deactivate(); // Function deaktivieren + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren virtual void ForcePointer(const MouseEvent* pMEvt); virtual void SelectionHasChanged(); - void SetInEditMode( SdrObject* pObj = NULL, const Point* pMousePixel = NULL, + void SetInEditMode( SdrObject* pObj = NULL, const Point* pMousePixel = NULL, BOOL bCursorToEnd = FALSE, const KeyEvent* pInitialKey = NULL ); - void StopEditMode(BOOL bTextDirection = FALSE); - void StopDragMode(SdrObject* pObject); + void StopEditMode(BOOL bTextDirection = FALSE); + void StopDragMode(SdrObject* pObject); // #98185# Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle); diff --git a/sc/source/ui/inc/graphsh.hxx b/sc/source/ui/inc/graphsh.hxx index db9d04096142..5886eee44931 100644 --- a/sc/source/ui/inc/graphsh.hxx +++ b/sc/source/ui/inc/graphsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,13 +45,13 @@ public: SFX_DECL_INTERFACE(SCID_GRAPHIC_SHELL) ScGraphicShell(ScViewData* pData); - virtual ~ScGraphicShell(); + virtual ~ScGraphicShell(); - void Execute(SfxRequest& rReq); - void GetAttrState(SfxItemSet &rSet); + void Execute(SfxRequest& rReq); + void GetAttrState(SfxItemSet &rSet); - void ExecuteFilter(SfxRequest& rReq); - void GetFilterState(SfxItemSet &rSet); + void ExecuteFilter(SfxRequest& rReq); + void GetFilterState(SfxItemSet &rSet); }; #endif diff --git a/sc/source/ui/inc/gridmerg.hxx b/sc/source/ui/inc/gridmerg.hxx index dd656b948a6b..c18532e265ff 100644 --- a/sc/source/ui/inc/gridmerg.hxx +++ b/sc/source/ui/inc/gridmerg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,26 +35,26 @@ class OutputDevice; class ScGridMerger { private: - OutputDevice* pDev; - long nOneX; - long nOneY; - long nFixStart; - long nFixEnd; - long nVarStart; - long nVarDiff; - long nCount; - BOOL bVertical; - BOOL bOptimize; + OutputDevice* pDev; + long nOneX; + long nOneY; + long nFixStart; + long nFixEnd; + long nVarStart; + long nVarDiff; + long nCount; + BOOL bVertical; + BOOL bOptimize; - void AddLine( long nStart, long nEnd, long nPos ); + void AddLine( long nStart, long nEnd, long nPos ); public: ScGridMerger( OutputDevice* pOutDev, long nOnePixelX, long nOnePixelY ); ~ScGridMerger(); - void AddHorLine( long nX1, long nX2, long nY ); - void AddVerLine( long nX, long nY1, long nY2 ); - void Flush(); + void AddHorLine( long nX1, long nX2, long nY ); + void AddVerLine( long nX, long nY1, long nY2 ); + void Flush(); }; diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index a2283bf2b7de..368db6bbf78f 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,36 +59,36 @@ class SdrHdlList; class ScTransferObj; struct SpellCallbackInfo; - // Maus-Status (nMouseStatus) + // Maus-Status (nMouseStatus) -#define SC_GM_NONE 0 -#define SC_GM_TABDOWN 1 -#define SC_GM_DBLDOWN 2 -#define SC_GM_FILTER 3 -#define SC_GM_IGNORE 4 -#define SC_GM_WATERUNDO 5 -#define SC_GM_URLDOWN 6 +#define SC_GM_NONE 0 +#define SC_GM_TABDOWN 1 +#define SC_GM_DBLDOWN 2 +#define SC_GM_FILTER 3 +#define SC_GM_IGNORE 4 +#define SC_GM_WATERUNDO 5 +#define SC_GM_URLDOWN 6 - // Page-Drag-Modus + // Page-Drag-Modus -#define SC_PD_NONE 0 -#define SC_PD_RANGE_L 1 -#define SC_PD_RANGE_R 2 -#define SC_PD_RANGE_T 4 -#define SC_PD_RANGE_B 8 -#define SC_PD_RANGE_TL (SC_PD_RANGE_T|SC_PD_RANGE_L) -#define SC_PD_RANGE_TR (SC_PD_RANGE_T|SC_PD_RANGE_R) -#define SC_PD_RANGE_BL (SC_PD_RANGE_B|SC_PD_RANGE_L) -#define SC_PD_RANGE_BR (SC_PD_RANGE_B|SC_PD_RANGE_R) -#define SC_PD_BREAK_H 16 -#define SC_PD_BREAK_V 32 +#define SC_PD_NONE 0 +#define SC_PD_RANGE_L 1 +#define SC_PD_RANGE_R 2 +#define SC_PD_RANGE_T 4 +#define SC_PD_RANGE_B 8 +#define SC_PD_RANGE_TL (SC_PD_RANGE_T|SC_PD_RANGE_L) +#define SC_PD_RANGE_TR (SC_PD_RANGE_T|SC_PD_RANGE_R) +#define SC_PD_RANGE_BL (SC_PD_RANGE_B|SC_PD_RANGE_L) +#define SC_PD_RANGE_BR (SC_PD_RANGE_B|SC_PD_RANGE_R) +#define SC_PD_BREAK_H 16 +#define SC_PD_BREAK_V 32 class ScHideTextCursor { private: - ScViewData* pViewData; - ScSplitPos eWhich; + ScViewData* pViewData; + ScSplitPos eWhich; public: ScHideTextCursor( ScViewData* pData, ScSplitPos eW ); @@ -101,12 +101,12 @@ namespace sdr { namespace overlay { class OverlayObjectList; }} class ScGridWindow : public Window, public DropTargetHelper, public DragSourceHelper { - // ScFilterListBox wird immer fuer Auswahlliste benutzt + // ScFilterListBox wird immer fuer Auswahlliste benutzt friend class ScFilterListBox; private: // #114409# - ::sdr::overlay::OverlayObjectList* mpOOCursors; + ::sdr::overlay::OverlayObjectList* mpOOCursors; ::sdr::overlay::OverlayObjectList* mpOOSelection; ::sdr::overlay::OverlayObjectList* mpOOAutoFill; ::sdr::overlay::OverlayObjectList* mpOODragRect; @@ -115,9 +115,9 @@ private: ::boost::shared_ptr<Rectangle> mpAutoFillRect; - /** - * Stores current visible column and row ranges, used to avoid expensive - * operations on objects that are outside visible area. + /** + * Stores current visible column and row ranges, used to avoid expensive + * operations on objects that are outside visible area. */ struct VisibleRange { @@ -133,185 +133,185 @@ private: VisibleRange maVisibleRange; private: - ScViewData* pViewData; - ScSplitPos eWhich; - ScHSplitPos eHWhich; - ScVSplitPos eVWhich; + ScViewData* pViewData; + ScSplitPos eWhich; + ScHSplitPos eHWhich; + ScVSplitPos eVWhich; - ScNoteMarker* pNoteMarker; + ScNoteMarker* pNoteMarker; - ScFilterListBox* pFilterBox; - FloatingWindow* pFilterFloat; + ScFilterListBox* pFilterBox; + FloatingWindow* pFilterFloat; ::std::auto_ptr<ScDPFieldPopupWindow> mpDPFieldPopup; ::std::auto_ptr<ScDPFieldButton> mpFilterButton; - USHORT nCursorHideCount; + USHORT nCursorHideCount; - BOOL bMarking; + BOOL bMarking; - USHORT nButtonDown; - BOOL bEEMouse; // Edit-Engine hat Maus - BYTE nMouseStatus; + USHORT nButtonDown; + BOOL bEEMouse; // Edit-Engine hat Maus + BYTE nMouseStatus; BYTE nNestedButtonState; // track nested button up/down calls - BOOL bDPMouse; // DataPilot-D&D (neue Pivottabellen) - long nDPField; - ScDPObject* pDragDPObj; //! name? - - BOOL bRFMouse; // RangeFinder-Drag - BOOL bRFSize; - USHORT nRFIndex; - SCsCOL nRFAddX; - SCsROW nRFAddY; - - USHORT nPagebreakMouse; // Pagebreak-Modus Drag - SCCOLROW nPagebreakBreak; - SCCOLROW nPagebreakPrev; - ScRange aPagebreakSource; - ScRange aPagebreakDrag; - BOOL bPagebreakDrawn; - - BYTE nPageScript; - - long nLastClickX; - long nLastClickY; - - BOOL bDragRect; - SCCOL nDragStartX; - SCROW nDragStartY; - SCCOL nDragEndX; - SCROW nDragEndY; + BOOL bDPMouse; // DataPilot-D&D (neue Pivottabellen) + long nDPField; + ScDPObject* pDragDPObj; //! name? + + BOOL bRFMouse; // RangeFinder-Drag + BOOL bRFSize; + USHORT nRFIndex; + SCsCOL nRFAddX; + SCsROW nRFAddY; + + USHORT nPagebreakMouse; // Pagebreak-Modus Drag + SCCOLROW nPagebreakBreak; + SCCOLROW nPagebreakPrev; + ScRange aPagebreakSource; + ScRange aPagebreakDrag; + BOOL bPagebreakDrawn; + + BYTE nPageScript; + + long nLastClickX; + long nLastClickY; + + BOOL bDragRect; + SCCOL nDragStartX; + SCROW nDragStartY; + SCCOL nDragEndX; + SCROW nDragEndY; InsCellCmd meDragInsertMode; - USHORT nCurrentPointer; + USHORT nCurrentPointer; - BOOL bIsInScroll; - BOOL bIsInPaint; + BOOL bIsInScroll; + BOOL bIsInPaint; - ScDDComboBoxButton aComboButton; + ScDDComboBoxButton aComboButton; - Point aCurMousePos; + Point aCurMousePos; - USHORT nPaintCount; - Rectangle aRepaintPixel; - BOOL bNeedsRepaint; + USHORT nPaintCount; + Rectangle aRepaintPixel; + BOOL bNeedsRepaint; - BOOL bAutoMarkVisible; - ScAddress aAutoMarkPos; + BOOL bAutoMarkVisible; + ScAddress aAutoMarkPos; - BOOL bListValButton; - ScAddress aListValPos; + BOOL bListValButton; + ScAddress aListValPos; - Rectangle aInvertRect; + Rectangle aInvertRect; DECL_LINK( PopupModeEndHdl, FloatingWindow* ); DECL_LINK( PopupSpellingHdl, SpellCallbackInfo* ); - BOOL TestMouse( const MouseEvent& rMEvt, BOOL bAction ); + BOOL TestMouse( const MouseEvent& rMEvt, BOOL bAction ); - BOOL DoPageFieldSelection( SCCOL nCol, SCROW nRow ); + BOOL DoPageFieldSelection( SCCOL nCol, SCROW nRow ); bool DoAutoFilterButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt ); - void DoPushButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt ); + void DoPushButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt ); - void DPMouseMove( const MouseEvent& rMEvt ); - void DPMouseButtonUp( const MouseEvent& rMEvt ); - void DPTestMouse( const MouseEvent& rMEvt, BOOL bMove ); + void DPMouseMove( const MouseEvent& rMEvt ); + void DPMouseButtonUp( const MouseEvent& rMEvt ); + void DPTestMouse( const MouseEvent& rMEvt, BOOL bMove ); - /** - * Check if the mouse click is on a field popup button. - * - * @return bool true if the field popup menu has been launched and no + /** + * Check if the mouse click is on a field popup button. + * + * @return bool true if the field popup menu has been launched and no * further mouse event handling is necessary, false otherwise. */ bool DPTestFieldPopupArrow(const MouseEvent& rMEvt, const ScAddress& rPos, ScDPObject* pDPObj); void DPLaunchFieldPopupMenu( const Point& rScrPos, const Size& rScrSize, const ScAddress& rPos, ScDPObject* pDPObj); - void RFMouseMove( const MouseEvent& rMEvt, BOOL bUp ); + void RFMouseMove( const MouseEvent& rMEvt, BOOL bUp ); - void PagebreakMove( const MouseEvent& rMEvt, BOOL bUp ); + void PagebreakMove( const MouseEvent& rMEvt, BOOL bUp ); - void UpdateDragRect( BOOL bShowRange, const Rectangle& rPosRect ); + void UpdateDragRect( BOOL bShowRange, const Rectangle& rPosRect ); - BOOL IsAutoFilterActive( SCCOL nCol, SCROW nRow, SCTAB nTab ); - void ExecFilter( ULONG nSel, SCCOL nCol, SCROW nRow, + BOOL IsAutoFilterActive( SCCOL nCol, SCROW nRow, SCTAB nTab ); + void ExecFilter( ULONG nSel, SCCOL nCol, SCROW nRow, const String& aValue, bool bCheckForDates ); - void FilterSelect( ULONG nSel ); + void FilterSelect( ULONG nSel ); - void ExecDataSelect( SCCOL nCol, SCROW nRow, const String& rStr ); + void ExecDataSelect( SCCOL nCol, SCROW nRow, const String& rStr ); - void ExecPageFieldSelect( SCCOL nCol, SCROW nRow, BOOL bHasSelection, const String& rStr ); + void ExecPageFieldSelect( SCCOL nCol, SCROW nRow, BOOL bHasSelection, const String& rStr ); - BOOL HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange ); + BOOL HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange ); - BOOL DropScroll( const Point& rMousePos ); + BOOL DropScroll( const Point& rMousePos ); - sal_Int8 AcceptPrivateDrop( const AcceptDropEvent& rEvt ); - sal_Int8 ExecutePrivateDrop( const ExecuteDropEvent& rEvt ); - sal_Int8 DropTransferObj( ScTransferObj* pTransObj, SCCOL nDestPosX, SCROW nDestPosY, + sal_Int8 AcceptPrivateDrop( const AcceptDropEvent& rEvt ); + sal_Int8 ExecutePrivateDrop( const ExecuteDropEvent& rEvt ); + sal_Int8 DropTransferObj( ScTransferObj* pTransObj, SCCOL nDestPosX, SCROW nDestPosY, const Point& rLogicPos, sal_Int8 nDndAction ); void HandleMouseButtonDown( const MouseEvent& rMEvt ); - BOOL DrawMouseButtonDown(const MouseEvent& rMEvt); - BOOL DrawMouseButtonUp(const MouseEvent& rMEvt); - BOOL DrawMouseMove(const MouseEvent& rMEvt); - BOOL DrawKeyInput(const KeyEvent& rKEvt); - BOOL DrawCommand(const CommandEvent& rCEvt); - BOOL DrawHasMarkedObj(); - void DrawEndAction(); - void DrawMarkDropObj( SdrObject* pObj ); - SdrObject* GetEditObject(); - BOOL IsMyModel(SdrEditView* pSdrView); - //void DrawStartTimer(); - - void DrawRedraw( ScOutputData& rOutputData, ScUpdateMode eMode, ULONG nLayer ); + BOOL DrawMouseButtonDown(const MouseEvent& rMEvt); + BOOL DrawMouseButtonUp(const MouseEvent& rMEvt); + BOOL DrawMouseMove(const MouseEvent& rMEvt); + BOOL DrawKeyInput(const KeyEvent& rKEvt); + BOOL DrawCommand(const CommandEvent& rCEvt); + BOOL DrawHasMarkedObj(); + void DrawEndAction(); + void DrawMarkDropObj( SdrObject* pObj ); + SdrObject* GetEditObject(); + BOOL IsMyModel(SdrEditView* pSdrView); + //void DrawStartTimer(); + + void DrawRedraw( ScOutputData& rOutputData, ScUpdateMode eMode, ULONG nLayer ); void DrawSdrGrid( const Rectangle& rDrawingRect, OutputDevice* pContentDev ); - //BOOL DrawBeforeScroll(); - void DrawAfterScroll(/*BOOL bVal*/); - //void DrawMarks(); - //BOOL NeedDrawMarks(); - void DrawComboButton( const Point& rCellPos, - long nCellSizeX, - long nCellSizeY, + //BOOL DrawBeforeScroll(); + void DrawAfterScroll(/*BOOL bVal*/); + //void DrawMarks(); + //BOOL NeedDrawMarks(); + void DrawComboButton( const Point& rCellPos, + long nCellSizeX, + long nCellSizeY, BOOL bArrowState, - BOOL bBtnIn = FALSE ); - Rectangle GetListValButtonRect( const ScAddress& rButtonPos ); + BOOL bBtnIn = FALSE ); + Rectangle GetListValButtonRect( const ScAddress& rButtonPos ); void DrawPagePreview( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, OutputDevice* pContentDev ); - BOOL GetEditUrl( const Point& rPos, + BOOL GetEditUrl( const Point& rPos, String* pName=0, String* pUrl=0, String* pTarget=0 ); - BOOL GetEditUrlOrError( BOOL bSpellErr, const Point& rPos, + BOOL GetEditUrlOrError( BOOL bSpellErr, const Point& rPos, String* pName=0, String* pUrl=0, String* pTarget=0 ); - BOOL HitRangeFinder( const Point& rMouse, BOOL& rCorner, USHORT* pIndex = NULL, + BOOL HitRangeFinder( const Point& rMouse, BOOL& rCorner, USHORT* pIndex = NULL, SCsCOL* pAddX = NULL, SCsROW* pAddY = NULL ); - USHORT HitPageBreak( const Point& rMouse, ScRange* pSource = NULL, + USHORT HitPageBreak( const Point& rMouse, ScRange* pSource = NULL, SCCOLROW* pBreak = NULL, SCCOLROW* pPrev = NULL ); - void PasteSelection( const Point& rPosPixel ); + void PasteSelection( const Point& rPosPixel ); - void SelectForContextMenu( const Point& rPosPixel, SCsCOL nCellX, SCsROW nCellY ); + void SelectForContextMenu( const Point& rPosPixel, SCsCOL nCellX, SCsROW nCellY ); void GetSelectionRects( ::std::vector< Rectangle >& rPixelRects ); protected: using Window::Resize; - virtual void Resize( const Size& rSize ); - virtual void PrePaint(); - virtual void Paint( const Rectangle& rRect ); - virtual void KeyInput(const KeyEvent& rKEvt); - virtual void GetFocus(); - virtual void LoseFocus(); + virtual void Resize( const Size& rSize ); + virtual void PrePaint(); + virtual void Paint( const Rectangle& rRect ); + virtual void KeyInput(const KeyEvent& rKEvt); + virtual void GetFocus(); + virtual void LoseFocus(); - virtual void RequestHelp( const HelpEvent& rEvt ); - virtual void Command( const CommandEvent& rCEvt ); + virtual void RequestHelp( const HelpEvent& rEvt ); + virtual void Command( const CommandEvent& rCEvt ); virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); + virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); public: ScGridWindow( Window* pParent, ScViewData* pData, ScSplitPos eWhichPos ); @@ -321,77 +321,77 @@ public: ::sdr::overlay::OverlayManager* getOverlayManager(); void flushOverlayManager(); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void MouseMove( const MouseEvent& rMEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void MouseMove( const MouseEvent& rMEvt ); virtual long PreNotify( NotifyEvent& rNEvt ); - virtual void Tracking( const TrackingEvent& rTEvt ); + virtual void Tracking( const TrackingEvent& rTEvt ); virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible(); - void FakeButtonUp(); + void FakeButtonUp(); - Point GetMousePosPixel() const; - void UpdateStatusPosSize(); + Point GetMousePosPixel() const; + void UpdateStatusPosSize(); - void ClickExtern(); + void ClickExtern(); - void SetPointer( const Pointer& rPointer ); + void SetPointer( const Pointer& rPointer ); - void MoveMouseStatus( ScGridWindow &rDestWin ); + void MoveMouseStatus( ScGridWindow &rDestWin ); - void ScrollPixel( long nDifX, long nDifY ); - void UpdateEditViewPos(); + void ScrollPixel( long nDifX, long nDifY ); + void UpdateEditViewPos(); - void UpdateFormulas(); + void UpdateFormulas(); - void DoAutoFilterMenue( SCCOL nCol, SCROW nRow, BOOL bDataSelect ); - void DoScenarioMenue( const ScRange& rScenRange ); + void DoAutoFilterMenue( SCCOL nCol, SCROW nRow, BOOL bDataSelect ); + void DoScenarioMenue( const ScRange& rScenRange ); void LaunchPageFieldMenu( SCCOL nCol, SCROW nRow ); void LaunchDPFieldMenu( SCCOL nCol, SCROW nRow ); ::com::sun::star::sheet::DataPilotFieldOrientation GetDPFieldOrientation( SCCOL nCol, SCROW nRow ) const; - void DrawButtons( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, + void DrawButtons( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScTableInfo& rTabInfo, OutputDevice* pContentDev ); using Window::Draw; - void Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, + void Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMode eMode = SC_UPDATE_ALL ); - void InvertSimple( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, + void InvertSimple( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, BOOL bTestMerge = FALSE, BOOL bRepeat = FALSE ); -//UNUSED2008-05 void DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); +//UNUSED2008-05 void DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); - void CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddress); + void CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddress); - void HideCursor(); - void ShowCursor(); - void DrawCursor(); - void DrawAutoFillMark(); - void UpdateAutoFillMark(BOOL bMarked, const ScRange& rMarkRange); + void HideCursor(); + void ShowCursor(); + void DrawCursor(); + void DrawAutoFillMark(); + void UpdateAutoFillMark(BOOL bMarked, const ScRange& rMarkRange); - void UpdateListValPos( BOOL bVisible, const ScAddress& rPos ); + void UpdateListValPos( BOOL bVisible, const ScAddress& rPos ); - BOOL ShowNoteMarker( SCsCOL nPosX, SCsROW nPosY, BOOL bKeyboard ); - void HideNoteMarker(); + BOOL ShowNoteMarker( SCsCOL nPosX, SCsROW nPosY, BOOL bKeyboard ); + void HideNoteMarker(); - MapMode GetDrawMapMode( BOOL bForce = FALSE ); + MapMode GetDrawMapMode( BOOL bForce = FALSE ); - void ContinueDrag(); + void ContinueDrag(); - void StopMarking(); - void UpdateInputContext(); + void StopMarking(); + void UpdateInputContext(); - void CheckInverted() { if (nPaintCount) bNeedsRepaint = TRUE; } + void CheckInverted() { if (nPaintCount) bNeedsRepaint = TRUE; } - void DoInvertRect( const Rectangle& rPixel ); + void DoInvertRect( const Rectangle& rPixel ); - void CheckNeedsRepaint(); + void CheckNeedsRepaint(); void UpdateDPFromFieldPopupMenu(); diff --git a/sc/source/ui/inc/groupdlg.hxx b/sc/source/ui/inc/groupdlg.hxx index 38b96f21e90e..63697683d94b 100644 --- a/sc/source/ui/inc/groupdlg.hxx +++ b/sc/source/ui/inc/groupdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,20 +39,20 @@ class ScGroupDlg : public ModalDialog { public: ScGroupDlg( Window* pParent, - USHORT nResId, - BOOL bUnGroup = FALSE, - BOOL bRows = TRUE ); + USHORT nResId, + BOOL bUnGroup = FALSE, + BOOL bRows = TRUE ); ~ScGroupDlg(); BOOL GetColsChecked() const; private: FixedLine aFlFrame; - RadioButton aBtnRows; - RadioButton aBtnCols; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + RadioButton aBtnRows; + RadioButton aBtnCols; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; }; diff --git a/sc/source/ui/inc/hdrcont.hxx b/sc/source/ui/inc/hdrcont.hxx index ec4dd49705d1..502b036e5c7c 100644 --- a/sc/source/ui/inc/hdrcont.hxx +++ b/sc/source/ui/inc/hdrcont.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,102 +37,102 @@ // --------------------------------------------------------------------------- -#define HDR_HORIZONTAL 0 -#define HDR_VERTICAL 1 +#define HDR_HORIZONTAL 0 +#define HDR_VERTICAL 1 -#define HDR_SIZE_OPTIMUM 0xFFFF +#define HDR_SIZE_OPTIMUM 0xFFFF // Groesse des Sliders -#define HDR_SLIDERSIZE 2 +#define HDR_SLIDERSIZE 2 class ScHeaderControl : public Window { private: - SelectionEngine* pSelEngine; - Font aNormFont; - Font aBoldFont; - BOOL bBoldSet; + SelectionEngine* pSelEngine; + Font aNormFont; + Font aBoldFont; + BOOL bBoldSet; - USHORT nFlags; - BOOL bVertical; // Vertikal = Zeilenheader + USHORT nFlags; + BOOL bVertical; // Vertikal = Zeilenheader - long nWidth; - long nSmallWidth; - long nBigWidth; + long nWidth; + long nSmallWidth; + long nBigWidth; - SCCOLROW nSize; + SCCOLROW nSize; - SCCOLROW nMarkStart; - SCCOLROW nMarkEnd; - BOOL bMarkRange; + SCCOLROW nMarkStart; + SCCOLROW nMarkEnd; + BOOL bMarkRange; - BOOL bDragging; // Groessen aendern - SCCOLROW nDragNo; - long nDragStart; - long nDragPos; - BOOL bDragMoved; + BOOL bDragging; // Groessen aendern + SCCOLROW nDragNo; + long nDragStart; + long nDragPos; + BOOL bDragMoved; - BOOL bIgnoreMove; + BOOL bIgnoreMove; - long GetScrPos( SCCOLROW nEntryNo ); - SCCOLROW GetMousePos( const MouseEvent& rMEvt, BOOL& rBorder ); + long GetScrPos( SCCOLROW nEntryNo ); + SCCOLROW GetMousePos( const MouseEvent& rMEvt, BOOL& rBorder ); bool IsSelectionAllowed(SCCOLROW nPos) const; - void ShowDragHelp(); + void ShowDragHelp(); - void DoPaint( SCCOLROW nStart, SCCOLROW nEnd ); + void DoPaint( SCCOLROW nStart, SCCOLROW nEnd ); void DrawShadedRect( long nStart, long nEnd, const Color& rBaseColor ); protected: - // von Window ueberladen + // von Window ueberladen - virtual void Paint( const Rectangle& rRect ); + virtual void Paint( const Rectangle& rRect ); - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void Tracking( const TrackingEvent& rTEvt ); + virtual void MouseMove( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void Tracking( const TrackingEvent& rTEvt ); - virtual void RequestHelp( const HelpEvent& rHEvt ); + virtual void RequestHelp( const HelpEvent& rHEvt ); - // neue Methoden + // neue Methoden - virtual SCCOLROW GetPos() = 0; // aktuelle Position (Scrolling) - virtual USHORT GetEntrySize( SCCOLROW nEntryNo ) = 0; // Breite / Hoehe (Pixel) - virtual String GetEntryText( SCCOLROW nEntryNo ) = 0; + virtual SCCOLROW GetPos() = 0; // aktuelle Position (Scrolling) + virtual USHORT GetEntrySize( SCCOLROW nEntryNo ) = 0; // Breite / Hoehe (Pixel) + virtual String GetEntryText( SCCOLROW nEntryNo ) = 0; virtual SCCOLROW GetHiddenCount( SCCOLROW nEntryNo ); - virtual BOOL IsLayoutRTL(); - virtual BOOL IsMirrored(); + virtual BOOL IsLayoutRTL(); + virtual BOOL IsMirrored(); - virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewWidth ) = 0; - virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) = 0; + virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewWidth ) = 0; + virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) = 0; - virtual void SetMarking( BOOL bSet ); - virtual void SelectWindow(); - virtual BOOL IsDisabled(); - virtual BOOL ResizeAllowed(); - virtual String GetDragHelp( long nVal ); + virtual void SetMarking( BOOL bSet ); + virtual void SelectWindow(); + virtual BOOL IsDisabled(); + virtual BOOL ResizeAllowed(); + virtual String GetDragHelp( long nVal ); - virtual void DrawInvert( long nDragPos ); - virtual void Command( const CommandEvent& rCEvt ); + virtual void DrawInvert( long nDragPos ); + virtual void Command( const CommandEvent& rCEvt ); public: ScHeaderControl( Window* pParent, SelectionEngine* pSelectionEngine, SCCOLROW nNewSize, USHORT nNewFlags ); ~ScHeaderControl(); - void SetIgnoreMove(BOOL bSet) { bIgnoreMove = bSet; } + void SetIgnoreMove(BOOL bSet) { bIgnoreMove = bSet; } - void StopMarking(); + void StopMarking(); - void SetMark( BOOL bNewSet, SCCOLROW nNewStart, SCCOLROW nNewEnd ); + void SetMark( BOOL bNewSet, SCCOLROW nNewStart, SCCOLROW nNewEnd ); - long GetWidth() const { return nWidth; } - long GetSmallWidth() const { return nSmallWidth; } - long GetBigWidth() const { return nBigWidth; } - void SetWidth( long nNew ); + long GetWidth() const { return nWidth; } + long GetSmallWidth() const { return nSmallWidth; } + long GetBigWidth() const { return nBigWidth; } + void SetWidth( long nNew ); }; diff --git a/sc/source/ui/inc/hfedtdlg.hxx b/sc/source/ui/inc/hfedtdlg.hxx index 1f1ea7242b17..b690d03f0057 100644 --- a/sc/source/ui/inc/hfedtdlg.hxx +++ b/sc/source/ui/inc/hfedtdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,11 +41,11 @@ class ScHFEditDlg : public SfxTabDialog { SvxNumType eNumType; public: - ScHFEditDlg( SfxViewFrame* pFrame, - Window* pParent, - const SfxItemSet& rCoreSet, - const String& rPageStyle, - USHORT nResId = RID_SCDLG_HFEDIT ); + ScHFEditDlg( SfxViewFrame* pFrame, + Window* pParent, + const SfxItemSet& rCoreSet, + const String& rPageStyle, + USHORT nResId = RID_SCDLG_HFEDIT ); ~ScHFEditDlg(); diff --git a/sc/source/ui/inc/highred.hrc b/sc/source/ui/inc/highred.hrc index 426c9ba29ee2..726c9a870fb8 100644 --- a/sc/source/ui/inc/highred.hrc +++ b/sc/source/ui/inc/highred.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -27,22 +27,22 @@ #include "sc.hrc" // -> RID_SCDLG_CHANGES -#define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_HELP 5 +#define BTN_OK 1 +#define BTN_CANCEL 2 +#define BTN_HELP 5 -#define CB_HIGHLIGHT_ACCEPT 6 -#define CB_HIGHLIGHT_REJECT 7 +#define CB_HIGHLIGHT_ACCEPT 6 +#define CB_HIGHLIGHT_REJECT 7 // #define FL_FILTER 10 -#define TP_FILTER 11 -#define TP_VIEW 12 -#define CB_HIGHLIGHT 13 +#define TP_FILTER 11 +#define TP_VIEW 12 +#define CB_HIGHLIGHT 13 -#define FT_ASSIGN 14 -#define ED_ASSIGN 15 -#define RB_ASSIGN 16 +#define FT_ASSIGN 14 +#define ED_ASSIGN 15 +#define RB_ASSIGN 16 @@ -51,20 +51,20 @@ #define STR_INSERT_COLS 20 -#define STR_INSERT_ROWS 21 -#define STR_INSERT_TABS 22 -#define STR_DELETE_COLS 23 -#define STR_DELETE_ROWS 24 -#define STR_DELETE_TABS 25 -#define STR_MOVE 26 -#define STR_CONTENT 27 -#define STR_REJECT 28 +#define STR_INSERT_ROWS 21 +#define STR_INSERT_TABS 22 +#define STR_DELETE_COLS 23 +#define STR_DELETE_ROWS 24 +#define STR_DELETE_TABS 25 +#define STR_MOVE 26 +#define STR_CONTENT 27 +#define STR_REJECT 28 // Bitmaps -#define BMP_STR_CLOSE 31 -#define BMP_STR_OPEN 32 -#define BMP_STR_END 33 -#define BMP_STR_ERROR 34 +#define BMP_STR_CLOSE 31 +#define BMP_STR_OPEN 32 +#define BMP_STR_END 33 +#define BMP_STR_ERROR 34 // diff --git a/sc/source/ui/inc/highred.hxx b/sc/source/ui/inc/highred.hxx index b500473b2071..cd406ddd2310 100644 --- a/sc/source/ui/inc/highred.hxx +++ b/sc/source/ui/inc/highred.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,13 +59,13 @@ class ScViewData; class ScDocument; -#ifndef FLT_DATE_BEFORE -#define FLT_DATE_BEFORE 0 -#define FLT_DATE_SINCE 1 -#define FLT_DATE_EQUAL 2 -#define FLT_DATE_NOTEQUAL 3 -#define FLT_DATE_BETWEEN 4 -#define FLT_DATE_SAVE 5 +#ifndef FLT_DATE_BEFORE +#define FLT_DATE_BEFORE 0 +#define FLT_DATE_SINCE 1 +#define FLT_DATE_EQUAL 2 +#define FLT_DATE_NOTEQUAL 3 +#define FLT_DATE_BETWEEN 4 +#define FLT_DATE_SAVE 5 #endif //================================================================== @@ -74,28 +74,28 @@ class ScHighlightChgDlg : public ScAnyRefDlg { private: - CheckBox aHighlightBox; + CheckBox aHighlightBox; FixedLine aFlFilter; - SvxTPFilter aFilterCtr; - CheckBox aCbAccept; - CheckBox aCbReject; + SvxTPFilter aFilterCtr; + CheckBox aCbAccept; + CheckBox aCbReject; - OKButton aOkButton; - CancelButton aCancelButton; - HelpButton aHelpButton; + OKButton aOkButton; + CancelButton aCancelButton; + HelpButton aHelpButton; - formula::RefEdit aEdAssign; - formula::RefButton aRbAssign; + formula::RefEdit aEdAssign; + formula::RefButton aRbAssign; - ScViewData* pViewData; - ScDocument* pDoc; - ScRangeName aLocalRangeName; - Selection theCurSel; - Size MinSize; - ScRangeList aRangeList; - ScChangeViewSettings aChangeViewSet; + ScViewData* pViewData; + ScDocument* pDoc; + ScRangeName aLocalRangeName; + Selection theCurSel; + Size MinSize; + ScRangeList aRangeList; + ScChangeViewSettings aChangeViewSet; - void Init(); + void Init(); DECL_LINK( RefHandle, SvxTPFilter* ); DECL_LINK(HighLightHandle, CheckBox*); @@ -104,18 +104,18 @@ private: protected: - virtual void RefInputDone( BOOL bForced = FALSE ); + virtual void RefInputDone( BOOL bForced = FALSE ); public: ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScViewData* ptrViewData); + ScViewData* ptrViewData); ~ScHighlightChgDlg(); - virtual void SetActive(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL Close(); - virtual BOOL IsRefInputMode() const; + virtual void SetActive(); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual BOOL Close(); + virtual BOOL IsRefInputMode() const; }; diff --git a/sc/source/ui/inc/hintwin.hxx b/sc/source/ui/inc/hintwin.hxx index 2fd9e7897ab6..737ac780273d 100644 --- a/sc/source/ui/inc/hintwin.hxx +++ b/sc/source/ui/inc/hintwin.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,15 +33,15 @@ class ScHintWindow : public Window { private: - String aTitle; - String aMessage; - Point aTextStart; - long nTextHeight; - Font aTextFont; - Font aHeadFont; + String aTitle; + String aMessage; + Point aTextStart; + long nTextHeight; + Font aTextFont; + Font aHeadFont; protected: - virtual void Paint( const Rectangle& rRect ); + virtual void Paint( const Rectangle& rRect ); public: ScHintWindow( Window* pParent, const String& rTit, const String& rMsg ); diff --git a/sc/source/ui/inc/hiranges.hxx b/sc/source/ui/inc/hiranges.hxx index 6182d30dc96e..30861388712a 100644 --- a/sc/source/ui/inc/hiranges.hxx +++ b/sc/source/ui/inc/hiranges.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,8 +36,8 @@ struct ScHighlightEntry { - ScRange aRef; - Color aColor; + ScRange aRef; + Color aColor; ScHighlightEntry( const ScRange& rR, const Color& rC ) : aRef(rR), aColor(rC) {} @@ -45,14 +45,14 @@ struct ScHighlightEntry class ScHighlightRanges { - List aEntries; + List aEntries; public: ScHighlightRanges(); ~ScHighlightRanges(); - ULONG Count() const { return aEntries.Count(); } - void Insert( ScHighlightEntry* pNew ) { aEntries.Insert(pNew, LIST_APPEND); } + ULONG Count() const { return aEntries.Count(); } + void Insert( ScHighlightEntry* pNew ) { aEntries.Insert(pNew, LIST_APPEND); } ScHighlightEntry* GetObject( ULONG nIndex ) const { return (ScHighlightEntry*)aEntries.GetObject(nIndex); } }; diff --git a/sc/source/ui/inc/imoptdlg.hxx b/sc/source/ui/inc/imoptdlg.hxx index 01e10f9a3983..4d4bd25271f5 100644 --- a/sc/source/ui/inc/imoptdlg.hxx +++ b/sc/source/ui/inc/imoptdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -60,38 +60,38 @@ public: { SetTextEncoding( nEnc ); } ScImportOptions( const ScImportOptions& rCpy ) - : nFieldSepCode (rCpy.nFieldSepCode), - nTextSepCode (rCpy.nTextSepCode), - aStrFont (rCpy.aStrFont), - eCharSet (rCpy.eCharSet), - bFixedWidth (rCpy.bFixedWidth), - bSaveAsShown (rCpy.bSaveAsShown) + : nFieldSepCode (rCpy.nFieldSepCode), + nTextSepCode (rCpy.nTextSepCode), + aStrFont (rCpy.aStrFont), + eCharSet (rCpy.eCharSet), + bFixedWidth (rCpy.bFixedWidth), + bSaveAsShown (rCpy.bSaveAsShown) {} ScImportOptions& operator=( const ScImportOptions& rCpy ) { - nFieldSepCode = rCpy.nFieldSepCode; - nTextSepCode = rCpy.nTextSepCode; - aStrFont = rCpy.aStrFont; - eCharSet = rCpy.eCharSet; - bFixedWidth = rCpy.bFixedWidth; + nFieldSepCode = rCpy.nFieldSepCode; + nTextSepCode = rCpy.nTextSepCode; + aStrFont = rCpy.aStrFont; + eCharSet = rCpy.eCharSet; + bFixedWidth = rCpy.bFixedWidth; bSaveAsShown = rCpy.bSaveAsShown; return *this; } - BOOL operator==( const ScImportOptions& rCmp ) + BOOL operator==( const ScImportOptions& rCmp ) { return - nFieldSepCode == rCmp.nFieldSepCode - && nTextSepCode == rCmp.nTextSepCode - && eCharSet == rCmp.eCharSet - && aStrFont == rCmp.aStrFont - && bFixedWidth == rCmp.bFixedWidth + nFieldSepCode == rCmp.nFieldSepCode + && nTextSepCode == rCmp.nTextSepCode + && eCharSet == rCmp.eCharSet + && aStrFont == rCmp.aStrFont + && bFixedWidth == rCmp.bFixedWidth && bSaveAsShown == rCmp.bSaveAsShown; } - String BuildString() const; + String BuildString() const; - void SetTextEncoding( rtl_TextEncoding nEnc ); + void SetTextEncoding( rtl_TextEncoding nEnc ); sal_Unicode nFieldSepCode; sal_Unicode nTextSepCode; diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx index 86a91216edcc..e28b34e89681 100644 --- a/sc/source/ui/inc/impex.hxx +++ b/sc/source/ui/inc/impex.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,7 +42,7 @@ class ScAsciiOptions; struct ScExportTextOptions { enum NewlineConversion { ToSystem, ToSpace, None }; - ScExportTextOptions( NewlineConversion eNewlineConversion = ToSystem, sal_Unicode cSeparatorConvertTo = 0, bool bAddQuotes = false ) : + ScExportTextOptions( NewlineConversion eNewlineConversion = ToSystem, sal_Unicode cSeparatorConvertTo = 0, bool bAddQuotes = false ) : meNewlineConversion( eNewlineConversion ), mcSeparatorConvertTo( cSeparatorConvertTo ), mbAddQuotes( bAddQuotes ) {} NewlineConversion meNewlineConversion; @@ -56,24 +56,24 @@ class ScImportExport ScDocument* pDoc; ScDocument* pUndoDoc; ScRange aRange; - String aStreamPath; + String aStreamPath; String aNonConvertibleChars; - ULONG nSizeLimit; - sal_Unicode cSep; // Separator - sal_Unicode cStr; // String Delimiter - BOOL bFormulas; // Formeln im Text? - BOOL bIncludeFiltered; // include filtered rows? (default true) - BOOL bAll; // keine Selektion - BOOL bSingle; // Einfachselektion - BOOL bUndo; // Mit Undo? - BOOL bOverflow; // zuviele Zeilen/Spalten + ULONG nSizeLimit; + sal_Unicode cSep; // Separator + sal_Unicode cStr; // String Delimiter + BOOL bFormulas; // Formeln im Text? + BOOL bIncludeFiltered; // include filtered rows? (default true) + BOOL bAll; // keine Selektion + BOOL bSingle; // Einfachselektion + BOOL bUndo; // Mit Undo? + BOOL bOverflow; // zuviele Zeilen/Spalten bool mbApi; ScExportTextOptions mExportTextOptions; - ScAsciiOptions* pExtOptions; // erweiterte Optionen + ScAsciiOptions* pExtOptions; // erweiterte Optionen - BOOL StartPaste(); // Protect-Check, Undo einrichten - void EndPaste(); // Undo/Redo-Aktionen, Repaint + BOOL StartPaste(); // Protect-Check, Undo einrichten + void EndPaste(); // Undo/Redo-Aktionen, Repaint BOOL Doc2Text( SvStream& ); BOOL Text2Doc( SvStream& ); BOOL Doc2Sylk( SvStream& ); @@ -82,13 +82,13 @@ class ScImportExport BOOL Doc2RTF( SvStream& ); BOOL Doc2Dif( SvStream& ); BOOL Dif2Doc( SvStream& ); - BOOL ExtText2Doc( SvStream& ); // mit pExtOptions + BOOL ExtText2Doc( SvStream& ); // mit pExtOptions BOOL RTF2Doc( SvStream&, const String& rBaseURL ); BOOL HTML2Doc( SvStream&, const String& rBaseURL ); public: - ScImportExport( ScDocument* ); // Gesamtdokument - ScImportExport( ScDocument*, const String& ); // Bereichs/Zellangabe + ScImportExport( ScDocument* ); // Gesamtdokument + ScImportExport( ScDocument*, const String& ); // Bereichs/Zellangabe ScImportExport( ScDocument*, const ScAddress& ); ScImportExport( ScDocument*, const ScRange& ); ~ScImportExport(); @@ -97,20 +97,20 @@ public: BOOL IsDoubleRef() const { return BOOL( !( bAll || bSingle ) ); } BOOL IsSingleRef() const { return bSingle; } - BOOL IsNoRef() const { return bAll; } - BOOL IsRef() const { return BOOL( !bAll ); } + BOOL IsNoRef() const { return bAll; } + BOOL IsRef() const { return BOOL( !bAll ); } const ScRange& GetRange() const { return aRange; } - BOOL IsUndo() const { return bUndo; } - void SetUndo( BOOL b ) { bUndo = b; } + BOOL IsUndo() const { return bUndo; } + void SetUndo( BOOL b ) { bUndo = b; } static BOOL IsFormatSupported( ULONG nFormat ); static const sal_Unicode* ScanNextFieldFromString( const sal_Unicode* p, String& rField, sal_Unicode cStr, const sal_Unicode* pSeps, bool bMergeSeps, bool& rbIsQuoted ); - static void WriteUnicodeOrByteString( SvStream& rStrm, const String& rString, BOOL bZero = FALSE ); - static void WriteUnicodeOrByteEndl( SvStream& rStrm ); - static inline BOOL IsEndianSwap( const SvStream& rStrm ); + static void WriteUnicodeOrByteString( SvStream& rStrm, const String& rString, BOOL bZero = FALSE ); + static void WriteUnicodeOrByteEndl( SvStream& rStrm ); + static inline BOOL IsEndianSwap( const SvStream& rStrm ); //! only if stream is only used in own (!) memory static inline void SetNoEndianSwap( SvStream& rStrm ); @@ -124,10 +124,10 @@ public: BOOL IsIncludeFiltered() const { return bIncludeFiltered; } void SetIncludeFiltered( BOOL b ) { bIncludeFiltered = b; } - void SetSizeLimit( ULONG nNew ) { nSizeLimit = nNew; } // momentan nur fuer Ascii + void SetSizeLimit( ULONG nNew ) { nSizeLimit = nNew; } // momentan nur fuer Ascii - void SetStreamPath( const String& rPath ) { aStreamPath = rPath; } - const String& GetStreamPath() const { return aStreamPath; } + void SetStreamPath( const String& rPath ) { aStreamPath = rPath; } + const String& GetStreamPath() const { return aStreamPath; } BOOL ImportString( const ::rtl::OUString&, ULONG=FORMAT_STRING ); BOOL ExportString( ::rtl::OUString&, ULONG=FORMAT_STRING ); @@ -141,7 +141,7 @@ public: BOOL ExportData( const String& rMimeType, ::com::sun::star::uno::Any & rValue ); - BOOL IsOverflow() const { return bOverflow; } // nach dem Importieren + BOOL IsOverflow() const { return bOverflow; } // nach dem Importieren const String& GetNonConvertibleChars() const { return aNonConvertibleChars; } diff --git a/sc/source/ui/inc/inputhdl.hxx b/sc/source/ui/inc/inputhdl.hxx index 61974cf7464d..d90a3d71690b 100644 --- a/sc/source/ui/inc/inputhdl.hxx +++ b/sc/source/ui/inc/inputhdl.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,103 +53,103 @@ class CommandEvent; struct ESelection; //======================================================================== -// ScInputHandler +// ScInputHandler //======================================================================== class ScInputHandler { private: - ScInputWindow* pInputWin; - - ScEditEngineDefaulter* pEngine; // editierte Daten in der Tabelle - EditView* pTableView; // aktive EditView dazu - EditView* pTopView; // EditView in der Eingabezeile - - TypedScStrCollection* pColumnData; - TypedScStrCollection* pFormulaData; - TypedScStrCollection* pFormulaDataPara; - Window* pTipVisibleParent; - ULONG nTipVisible; - Window* pTipVisibleSecParent; + ScInputWindow* pInputWin; + + ScEditEngineDefaulter* pEngine; // editierte Daten in der Tabelle + EditView* pTableView; // aktive EditView dazu + EditView* pTopView; // EditView in der Eingabezeile + + TypedScStrCollection* pColumnData; + TypedScStrCollection* pFormulaData; + TypedScStrCollection* pFormulaDataPara; + Window* pTipVisibleParent; + ULONG nTipVisible; + Window* pTipVisibleSecParent; ULONG nTipVisibleSec; - String aManualTip; - String aAutoSearch; - USHORT nAutoPos; - BOOL bUseTab; // Blaettern moeglich - - BOOL bTextValid; // Text noch nicht in Edit-Engine - String aCurrentText; - - String aFormText; // fuer Funktions-Autopilot - xub_StrLen nFormSelStart; // Selektion fuer Funktions-Autopilot - xub_StrLen nFormSelEnd; - - USHORT nAutoPar; // autom.parentheses than can be overwritten - - ScAddress aCursorPos; - ScInputMode eMode; - BOOL bModified; - BOOL bSelIsRef; - BOOL bFormulaMode; - BOOL bInRangeUpdate; - BOOL bParenthesisShown; - BOOL bCreatingFuncView; - BOOL bInEnterHandler; - BOOL bCommandErrorShown; - BOOL bInOwnChange; - - BOOL bProtected; - BOOL bCellHasPercentFormat; - ULONG nValidation; + String aManualTip; + String aAutoSearch; + USHORT nAutoPos; + BOOL bUseTab; // Blaettern moeglich + + BOOL bTextValid; // Text noch nicht in Edit-Engine + String aCurrentText; + + String aFormText; // fuer Funktions-Autopilot + xub_StrLen nFormSelStart; // Selektion fuer Funktions-Autopilot + xub_StrLen nFormSelEnd; + + USHORT nAutoPar; // autom.parentheses than can be overwritten + + ScAddress aCursorPos; + ScInputMode eMode; + BOOL bModified; + BOOL bSelIsRef; + BOOL bFormulaMode; + BOOL bInRangeUpdate; + BOOL bParenthesisShown; + BOOL bCreatingFuncView; + BOOL bInEnterHandler; + BOOL bCommandErrorShown; + BOOL bInOwnChange; + + BOOL bProtected; + BOOL bCellHasPercentFormat; + ULONG nValidation; SvxCellHorJustify eAttrAdjust; - Fraction aScaleX; // fuer Ref-MapMode - Fraction aScaleY; + Fraction aScaleX; // fuer Ref-MapMode + Fraction aScaleY; - ScTabViewShell* pRefViewSh; - ScTabViewShell* pActiveViewSh; + ScTabViewShell* pRefViewSh; + ScTabViewShell* pActiveViewSh; - const ScPatternAttr* pLastPattern; - SfxItemSet* pEditDefaults; - BOOL bLastIsSymbol; + const ScPatternAttr* pLastPattern; + SfxItemSet* pEditDefaults; + BOOL bLastIsSymbol; - ScInputHdlState* pLastState; - Timer* pDelayTimer; + ScInputHdlState* pLastState; + Timer* pDelayTimer; - ScRangeFindList* pRangeFindList; + ScRangeFindList* pRangeFindList; - static BOOL bAutoComplete; // aus App-Optionen - static BOOL bOptLoaded; + static BOOL bAutoComplete; // aus App-Optionen + static BOOL bOptLoaded; #ifdef _INPUTHDL_CXX private: - void UpdateActiveView(); - void SyncViews( EditView* pSourceView = NULL ); - BOOL StartTable( sal_Unicode cTyped, BOOL bFromCommand ); - void RemoveSelection(); - void UpdateFormulaMode(); - void InvalidateAttribs(); - void ImplCreateEditEngine(); - DECL_LINK( DelayTimer, Timer* ); - void GetColData(); - void UseColData(); - void NextAutoEntry( BOOL bBack ); - void UpdateAdjust( sal_Unicode cTyped ); - void GetFormulaData(); - void UseFormulaData(); - void NextFormulaEntry( BOOL bBack ); - void PasteFunctionData(); - void PasteManualTip(); - EditView* GetFuncEditView(); - void RemoveAdjust(); - void RemoveRangeFinder(); - void DeleteRangeFinder(); - void UpdateParenthesis(); - void UpdateAutoCorrFlag(); - void ResetAutoPar(); - void AutoParAdded(); - BOOL CursorAtClosingPar(); - void SkipClosingPar(); + void UpdateActiveView(); + void SyncViews( EditView* pSourceView = NULL ); + BOOL StartTable( sal_Unicode cTyped, BOOL bFromCommand ); + void RemoveSelection(); + void UpdateFormulaMode(); + void InvalidateAttribs(); + void ImplCreateEditEngine(); + DECL_LINK( DelayTimer, Timer* ); + void GetColData(); + void UseColData(); + void NextAutoEntry( BOOL bBack ); + void UpdateAdjust( sal_Unicode cTyped ); + void GetFormulaData(); + void UseFormulaData(); + void NextFormulaEntry( BOOL bBack ); + void PasteFunctionData(); + void PasteManualTip(); + EditView* GetFuncEditView(); + void RemoveAdjust(); + void RemoveRangeFinder(); + void DeleteRangeFinder(); + void UpdateParenthesis(); + void UpdateAutoCorrFlag(); + void ResetAutoPar(); + void AutoParAdded(); + BOOL CursorAtClosingPar(); + void SkipClosingPar(); DECL_LINK( ModifyHdl, void* ); DECL_LINK( ShowHideTipVisibleParentListener, VclWindowEvent* ); DECL_LINK( ShowHideTipVisibleSecParentListener, VclWindowEvent* ); @@ -157,105 +157,105 @@ private: public: ScInputHandler(); - virtual ~ScInputHandler(); + virtual ~ScInputHandler(); - void SetMode( ScInputMode eNewMode ); - BOOL IsInputMode() const { return (eMode != SC_INPUT_NONE); } - BOOL IsEditMode() const { return (eMode != SC_INPUT_NONE && + void SetMode( ScInputMode eNewMode ); + BOOL IsInputMode() const { return (eMode != SC_INPUT_NONE); } + BOOL IsEditMode() const { return (eMode != SC_INPUT_NONE && eMode != SC_INPUT_TYPE); } - BOOL IsTopMode() const { return (eMode == SC_INPUT_TOP); } + BOOL IsTopMode() const { return (eMode == SC_INPUT_TOP); } - const String& GetEditString(); - const String& GetFormString() const { return aFormText; } + const String& GetEditString(); + const String& GetFormString() const { return aFormText; } - BOOL GetTextAndFields( ScEditEngineDefaulter& rDestEngine ); + BOOL GetTextAndFields( ScEditEngineDefaulter& rDestEngine ); - BOOL KeyInput( const KeyEvent& rKEvt, BOOL bStartEdit = FALSE ); - void EnterHandler( BYTE nBlockMode = 0 ); - void CancelHandler(); - void SetReference( const ScRange& rRef, ScDocument* pDoc ); - void AddRefEntry(); + BOOL KeyInput( const KeyEvent& rKEvt, BOOL bStartEdit = FALSE ); + void EnterHandler( BYTE nBlockMode = 0 ); + void CancelHandler(); + void SetReference( const ScRange& rRef, ScDocument* pDoc ); + void AddRefEntry(); - BOOL InputCommand( const CommandEvent& rCEvt, BOOL bForce ); + BOOL InputCommand( const CommandEvent& rCEvt, BOOL bForce ); - void InsertFunction( const String& rFuncName, BOOL bAddPar = TRUE ); - void ClearText(); + void InsertFunction( const String& rFuncName, BOOL bAddPar = TRUE ); + void ClearText(); - void InputSelection( EditView* pView ); - void InputChanged( EditView* pView, BOOL bFromNotify = FALSE ); + void InputSelection( EditView* pView ); + void InputChanged( EditView* pView, BOOL bFromNotify = FALSE ); - void ViewShellGone(ScTabViewShell* pViewSh); - void SetRefViewShell(ScTabViewShell* pRefVsh) {pRefViewSh=pRefVsh;} + void ViewShellGone(ScTabViewShell* pViewSh); + void SetRefViewShell(ScTabViewShell* pRefVsh) {pRefViewSh=pRefVsh;} - void NotifyChange( const ScInputHdlState* pState, BOOL bForce = FALSE, + void NotifyChange( const ScInputHdlState* pState, BOOL bForce = FALSE, ScTabViewShell* pSourceSh = NULL, BOOL bStopEditing = TRUE); void UpdateCellAdjust( SvxCellHorJustify eJust ); - void ResetDelayTimer(); //BugId 54702 + void ResetDelayTimer(); //BugId 54702 - void HideTip(); + void HideTip(); void HideTipBelow(); void ShowTipCursor(); - void ShowTip( const String& rText ); // am Cursor - void ShowTipBelow( const String& rText ); + void ShowTip( const String& rText ); // am Cursor + void ShowTipBelow( const String& rText ); - void SetRefScale( const Fraction& rX, const Fraction& rY ); - void UpdateRefDevice(); + void SetRefScale( const Fraction& rX, const Fraction& rY ); + void UpdateRefDevice(); - EditView* GetActiveView(); - EditView* GetTableView() { return pTableView; } - EditView* GetTopView() { return pTopView; } + EditView* GetActiveView(); + EditView* GetTableView() { return pTableView; } + EditView* GetTopView() { return pTopView; } - BOOL DataChanging( sal_Unicode cTyped = 0, BOOL bFromCommand = FALSE ); - void DataChanged( BOOL bFromTopNotify = FALSE ); + BOOL DataChanging( sal_Unicode cTyped = 0, BOOL bFromCommand = FALSE ); + void DataChanged( BOOL bFromTopNotify = FALSE ); - BOOL TakesReturn() const { return ( nTipVisible != 0 ); } + BOOL TakesReturn() const { return ( nTipVisible != 0 ); } - void SetModified() { bModified = TRUE; } + void SetModified() { bModified = TRUE; } - BOOL GetSelIsRef() const { return bSelIsRef; } - void SetSelIsRef(BOOL bSet) { bSelIsRef = bSet; } + BOOL GetSelIsRef() const { return bSelIsRef; } + void SetSelIsRef(BOOL bSet) { bSelIsRef = bSet; } - void ShowRefFrame(); + void ShowRefFrame(); - ScRangeFindList* GetRangeFindList() { return pRangeFindList; } + ScRangeFindList* GetRangeFindList() { return pRangeFindList; } - void UpdateRange( USHORT nIndex, const ScRange& rNew ); + void UpdateRange( USHORT nIndex, const ScRange& rNew ); // Kommunikation mit Funktionsautopilot - void InputGetSelection ( xub_StrLen& rStart, xub_StrLen& rEnd ); - void InputSetSelection ( xub_StrLen nStart, xub_StrLen nEnd ); - void InputReplaceSelection ( const String& rStr ); - String InputGetFormulaStr (); + void InputGetSelection ( xub_StrLen& rStart, xub_StrLen& rEnd ); + void InputSetSelection ( xub_StrLen nStart, xub_StrLen nEnd ); + void InputReplaceSelection ( const String& rStr ); + String InputGetFormulaStr (); - BOOL IsFormulaMode() const { return bFormulaMode; } - ScInputWindow* GetInputWindow() { return pInputWin; } - void SetInputWindow( ScInputWindow* pNew ) { pInputWin = pNew; } - void StopInputWinEngine( BOOL bAll ); + BOOL IsFormulaMode() const { return bFormulaMode; } + ScInputWindow* GetInputWindow() { return pInputWin; } + void SetInputWindow( ScInputWindow* pNew ) { pInputWin = pNew; } + void StopInputWinEngine( BOOL bAll ); - BOOL IsInEnterHandler() const { return bInEnterHandler; } - BOOL IsInOwnChange() const { return bInOwnChange; } + BOOL IsInEnterHandler() const { return bInEnterHandler; } + BOOL IsInOwnChange() const { return bInOwnChange; } - BOOL IsModalMode( SfxObjectShell* pDocSh ); + BOOL IsModalMode( SfxObjectShell* pDocSh ); - void ForgetLastPattern(); + void ForgetLastPattern(); - void UpdateSpellSettings( BOOL bFromStartTab = FALSE ); + void UpdateSpellSettings( BOOL bFromStartTab = FALSE ); - void FormulaPreview(); + void FormulaPreview(); - Size GetTextSize(); // in 1/100mm + Size GetTextSize(); // in 1/100mm // eigentlich private, fuer SID_INPUT_SUM public - void InitRangeFinder( const String& rFormula ); + void InitRangeFinder( const String& rFormula ); - static void SetAutoComplete(BOOL bSet) { bAutoComplete = bSet; } + static void SetAutoComplete(BOOL bSet) { bAutoComplete = bSet; } }; //======================================================================== -// ScInputHdlState +// ScInputHdlState //======================================================================== class ScInputHdlState { @@ -270,22 +270,22 @@ public: ScInputHdlState( const ScInputHdlState& rCpy ); ~ScInputHdlState(); - ScInputHdlState& operator= ( const ScInputHdlState& r ); - int operator==( const ScInputHdlState& r ) const; - int operator!=( const ScInputHdlState& r ) const + ScInputHdlState& operator= ( const ScInputHdlState& r ); + int operator==( const ScInputHdlState& r ) const; + int operator!=( const ScInputHdlState& r ) const { return !operator==( r ); } - const ScAddress& GetPos() const { return aCursorPos; } - const ScAddress& GetStartPos() const { return aStartPos; } - const ScAddress& GetEndPos() const { return aEndPos; } - const String& GetString() const { return aString; } - const EditTextObject* GetEditData() const { return pEditData; } + const ScAddress& GetPos() const { return aCursorPos; } + const ScAddress& GetStartPos() const { return aStartPos; } + const ScAddress& GetEndPos() const { return aEndPos; } + const String& GetString() const { return aString; } + const EditTextObject* GetEditData() const { return pEditData; } private: - ScAddress aCursorPos; - ScAddress aStartPos; - ScAddress aEndPos; - String aString; + ScAddress aCursorPos; + ScAddress aStartPos; + ScAddress aEndPos; + String aString; EditTextObject* pEditData; }; diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx index 236d34a8254f..856a97250bae 100644 --- a/sc/source/ui/inc/inputwin.hxx +++ b/sc/source/ui/inc/inputwin.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,27 +46,27 @@ class ScRangeList; //======================================================================== -class ScTextWnd : public Window, public DragSourceHelper // edit window +class ScTextWnd : public Window, public DragSourceHelper // edit window { public: ScTextWnd( Window* pParent ); - virtual ~ScTextWnd(); + virtual ~ScTextWnd(); - void SetTextString( const String& rString ); - const String& GetTextString() const; + void SetTextString( const String& rString ); + const String& GetTextString() const; - BOOL IsInputActive(); - EditView* GetEditView(); + BOOL IsInputActive(); + EditView* GetEditView(); // fuer FunktionsAutopiloten - void MakeDialogEditView(); + void MakeDialogEditView(); - void StartEditEngine(); - void StopEditEngine( BOOL bAll ); + void StartEditEngine(); + void StopEditEngine( BOOL bAll ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); - void SetFormulaMode( BOOL bSet ); + void SetFormulaMode( BOOL bSet ); virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible(); @@ -76,36 +76,36 @@ public: DECL_LINK( NotifyHdl, EENotify* ); protected: - virtual void Paint( const Rectangle& rRec ); - virtual void Resize(); + virtual void Paint( const Rectangle& rRec ); + virtual void Resize(); - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void Command( const CommandEvent& rCEvt ); - virtual void KeyInput(const KeyEvent& rKEvt); - virtual void GetFocus(); - virtual void LoseFocus(); + virtual void MouseMove( const MouseEvent& rMEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void Command( const CommandEvent& rCEvt ); + virtual void KeyInput(const KeyEvent& rKEvt); + virtual void GetFocus(); + virtual void LoseFocus(); - virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); + virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); - virtual String GetText() const; + virtual String GetText() const; private: - void ImplInitSettings(); - void UpdateAutoCorrFlag(); + void ImplInitSettings(); + void UpdateAutoCorrFlag(); private: typedef ::std::vector< ScAccessibleEditLineTextData* > AccTextDataVector; - String aString; - Font aTextFont; - ScEditEngineDefaulter* pEditEngine; // erst bei Bedarf angelegt - EditView* pEditView; + String aString; + Font aTextFont; + ScEditEngineDefaulter* pEditEngine; // erst bei Bedarf angelegt + EditView* pEditView; AccTextDataVector maAccTextDatas; // #i105267# text datas may be cloned, remember all copies - BOOL bIsRTL; - BOOL bIsInsertMode; - BOOL bFormulaMode; + BOOL bIsRTL; + BOOL bIsInsertMode; + BOOL bFormulaMode; // #102710#; this flag should be true if a key input or a command is handled // it prevents the call of InputChanged in the ModifyHandler of the EditEngine @@ -114,100 +114,100 @@ private: //======================================================================== -class ScPosWnd : public ComboBox, public SfxListener // Positionsanzeige +class ScPosWnd : public ComboBox, public SfxListener // Positionsanzeige { private: - String aPosStr; - Accelerator* pAccel; + String aPosStr; + Accelerator* pAccel; ULONG nTipVisible; - BOOL bFormulaMode; - BOOL bTopHadFocus; + BOOL bFormulaMode; + BOOL bTopHadFocus; public: ScPosWnd( Window* pParent ); - virtual ~ScPosWnd(); + virtual ~ScPosWnd(); - void SetPos( const String& rPosStr ); // angezeigter Text - void SetFormulaMode( BOOL bSet ); + void SetPos( const String& rPosStr ); // angezeigter Text + void SetFormulaMode( BOOL bSet ); protected: - virtual void Select(); + virtual void Select(); virtual void Modify(); - virtual long Notify( NotifyEvent& rNEvt ); + virtual long Notify( NotifyEvent& rNEvt ); - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); private: - void FillRangeNames(); - void FillFunctions(); - void DoEnter(); + void FillRangeNames(); + void FillFunctions(); + void DoEnter(); void HideTip(); - void ReleaseFocus_Impl(); + void ReleaseFocus_Impl(); }; //======================================================================== -class ScInputWindow : public ToolBox // Parent-Toolbox +class ScInputWindow : public ToolBox // Parent-Toolbox { public: ScInputWindow( Window* pParent, SfxBindings* pBind ); - virtual ~ScInputWindow(); + virtual ~ScInputWindow(); - virtual void Resize(); + virtual void Resize(); virtual void Select(); - void SetFuncString( const String& rString, BOOL bDoEdit = TRUE ); - void SetPosString( const String& rStr ); - void SetTextString( const String& rString ); + void SetFuncString( const String& rString, BOOL bDoEdit = TRUE ); + void SetPosString( const String& rStr ); + void SetTextString( const String& rString ); - void SetOkCancelMode(); - void SetSumAssignMode(); - void EnableButtons( BOOL bEnable = TRUE ); + void SetOkCancelMode(); + void SetSumAssignMode(); + void EnableButtons( BOOL bEnable = TRUE ); - void SetFormulaMode( BOOL bSet ); + void SetFormulaMode( BOOL bSet ); - BOOL IsInputActive(); - EditView* GetEditView(); -//UNUSED2008-05 EditView* ActivateEdit( const String& rText, + BOOL IsInputActive(); + EditView* GetEditView(); +//UNUSED2008-05 EditView* ActivateEdit( const String& rText, //UNUSED2008-05 const ESelection& rSel ); - void TextGrabFocus(); - void TextInvalidate(); - void SwitchToTextWin(); + void TextGrabFocus(); + void TextInvalidate(); + void SwitchToTextWin(); - void PosGrabFocus(); + void PosGrabFocus(); // Fuer FunktionsAutopiloten - void MakeDialogEditView(); + void MakeDialogEditView(); - void StopEditEngine( BOOL bAll ); + void StopEditEngine( BOOL bAll ); - void SetInputHandler( ScInputHandler* pNew ); + void SetInputHandler( ScInputHandler* pNew ); - ScInputHandler* GetInputHandler(){ return pInputHdl;} + ScInputHandler* GetInputHandler(){ return pInputHdl;} - void StateChanged( StateChangedType nType ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); + void StateChanged( StateChangedType nType ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); protected: - virtual void SetText( const String& rString ); - virtual String GetText() const; + virtual void SetText( const String& rString ); + virtual String GetText() const; sal_Bool UseSubTotal( ScRangeList* pRangeList ) const; private: - ScPosWnd aWndPos; - ScTextWnd aTextWindow; - ScInputHandler* pInputHdl; + ScPosWnd aWndPos; + ScTextWnd aTextWindow; + ScInputHandler* pInputHdl; SfxBindings* pBindings; - String aTextOk; - String aTextCancel; - String aTextSum; - String aTextEqual; - BOOL bIsOkCancelMode; + String aTextOk; + String aTextCancel; + String aTextSum; + String aTextEqual; + BOOL bIsOkCancelMode; }; //================================================================== @@ -215,10 +215,10 @@ private: class ScInputWindowWrapper : public SfxChildWindow { public: - ScInputWindowWrapper( Window* pParent, - USHORT nId, - SfxBindings* pBindings, - SfxChildWinInfo* pInfo ); + ScInputWindowWrapper( Window* pParent, + USHORT nId, + SfxBindings* pBindings, + SfxChildWinInfo* pInfo ); SFX_DECL_CHILDWINDOW(ScInputWindowWrapper); }; diff --git a/sc/source/ui/inc/inscldlg.hxx b/sc/source/ui/inc/inscldlg.hxx index fd8c090cfd33..55480d22db74 100644 --- a/sc/source/ui/inc/inscldlg.hxx +++ b/sc/source/ui/inc/inscldlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,13 +41,13 @@ class ScInsertCellDlg : public ModalDialog { private: FixedLine aFlFrame; - RadioButton aBtnCellsDown; - RadioButton aBtnCellsRight; - RadioButton aBtnInsRows; - RadioButton aBtnInsCols; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + RadioButton aBtnCellsDown; + RadioButton aBtnCellsRight; + RadioButton aBtnInsRows; + RadioButton aBtnInsCols; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; public: ScInsertCellDlg( Window* pParent,BOOL bDisallowCellMove = FALSE ); diff --git a/sc/source/ui/inc/inscodlg.hxx b/sc/source/ui/inc/inscodlg.hxx index ffdccaba6a10..90f3ecb3d65b 100644 --- a/sc/source/ui/inc/inscodlg.hxx +++ b/sc/source/ui/inc/inscodlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,79 +34,79 @@ #include "global.hxx" //------------------------------------------------------------------------ -//CHINA001 #define INS_CONT_NOEMPTY 0x0100 -//CHINA001 #define INS_CONT_TRANS 0x0200 -//CHINA001 #define INS_CONT_LINK 0x0400 -//CHINA001 -//CHINA001 #define SC_CELL_SHIFT_DISABLE_DOWN 0x01 -//CHINA001 #define SC_CELL_SHIFT_DISABLE_RIGHT 0x02 +//CHINA001 #define INS_CONT_NOEMPTY 0x0100 +//CHINA001 #define INS_CONT_TRANS 0x0200 +//CHINA001 #define INS_CONT_LINK 0x0400 +//CHINA001 +//CHINA001 #define SC_CELL_SHIFT_DISABLE_DOWN 0x01 +//CHINA001 #define SC_CELL_SHIFT_DISABLE_RIGHT 0x02 #include "scui_def.hxx" class ScInsertContentsDlg : public ModalDialog { public: - ScInsertContentsDlg( Window* pParent, - USHORT nCheckDefaults = 0, - const String* pStrTitle = NULL ); + ScInsertContentsDlg( Window* pParent, + USHORT nCheckDefaults = 0, + const String* pStrTitle = NULL ); ~ScInsertContentsDlg(); - USHORT GetInsContentsCmdBits() const; - USHORT GetFormulaCmdBits() const; - BOOL IsSkipEmptyCells() const {return aBtnSkipEmptyCells.IsChecked();} - BOOL IsTranspose() const {return aBtnTranspose.IsChecked();} - BOOL IsLink() const {return aBtnLink.IsChecked();} - InsCellCmd GetMoveMode(); + USHORT GetInsContentsCmdBits() const; + USHORT GetFormulaCmdBits() const; + BOOL IsSkipEmptyCells() const {return aBtnSkipEmptyCells.IsChecked();} + BOOL IsTranspose() const {return aBtnTranspose.IsChecked();} + BOOL IsLink() const {return aBtnLink.IsChecked();} + InsCellCmd GetMoveMode(); - void SetOtherDoc( BOOL bSet ); - void SetFillMode( BOOL bSet ); - void SetChangeTrack( BOOL bSet ); - void SetCellShiftDisabled( int nDisable ); + void SetOtherDoc( BOOL bSet ); + void SetFillMode( BOOL bSet ); + void SetChangeTrack( BOOL bSet ); + void SetCellShiftDisabled( int nDisable ); private: FixedLine aFlFrame; - CheckBox aBtnInsAll; - CheckBox aBtnInsStrings; - CheckBox aBtnInsNumbers; - CheckBox aBtnInsDateTime; - CheckBox aBtnInsFormulas; - CheckBox aBtnInsNotes; - CheckBox aBtnInsAttrs; - CheckBox aBtnInsObjects; + CheckBox aBtnInsAll; + CheckBox aBtnInsStrings; + CheckBox aBtnInsNumbers; + CheckBox aBtnInsDateTime; + CheckBox aBtnInsFormulas; + CheckBox aBtnInsNotes; + CheckBox aBtnInsAttrs; + CheckBox aBtnInsObjects; FixedLine aFlSep1; FixedLine aFlOptions; - CheckBox aBtnSkipEmptyCells; - CheckBox aBtnTranspose; - CheckBox aBtnLink; + CheckBox aBtnSkipEmptyCells; + CheckBox aBtnTranspose; + CheckBox aBtnLink; FixedLine aFlOperation; - RadioButton aRbNoOp; - RadioButton aRbAdd; - RadioButton aRbSub; - RadioButton aRbMul; - RadioButton aRbDiv; + RadioButton aRbNoOp; + RadioButton aRbAdd; + RadioButton aRbSub; + RadioButton aRbMul; + RadioButton aRbDiv; FixedLine aFlSep2; FixedLine aFlMove; - RadioButton aRbMoveNone; - RadioButton aRbMoveDown; - RadioButton aRbMoveRight; - - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - - BOOL bOtherDoc; - BOOL bFillMode; - BOOL bChangeTrack; - BOOL bMoveDownDisabled; - BOOL bMoveRightDisabled; - - static BOOL bPreviousAllCheck; - static USHORT nPreviousChecks; - static USHORT nPreviousChecks2; - static USHORT nPreviousFormulaChecks; - static USHORT nPreviousMoveMode; // enum InsCellCmd + RadioButton aRbMoveNone; + RadioButton aRbMoveDown; + RadioButton aRbMoveRight; + + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + + BOOL bOtherDoc; + BOOL bFillMode; + BOOL bChangeTrack; + BOOL bMoveDownDisabled; + BOOL bMoveRightDisabled; + + static BOOL bPreviousAllCheck; + static USHORT nPreviousChecks; + static USHORT nPreviousChecks2; + static USHORT nPreviousFormulaChecks; + static USHORT nPreviousMoveMode; // enum InsCellCmd void DisableChecks( BOOL bInsAllChecked = TRUE ); void TestModes(); diff --git a/sc/source/ui/inc/instbdlg.hrc b/sc/source/ui/inc/instbdlg.hrc index 08bff85388dd..1b3388761029 100644 --- a/sc/source/ui/inc/instbdlg.hrc +++ b/sc/source/ui/inc/instbdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,24 +29,24 @@ //#define RID_SCDLG_INSERT_TABLE 300 -#define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_HELP 3 +#define BTN_OK 1 +#define BTN_CANCEL 2 +#define BTN_HELP 3 -#define FL_POSITION 10 -#define RB_BEFORE 11 -#define RB_BEHIND 12 +#define FL_POSITION 10 +#define RB_BEFORE 11 +#define RB_BEHIND 12 -#define FL_TABLE 20 -#define RB_NEW 21 -#define FT_COUNT 22 -#define NF_COUNT 23 -#define FT_NAME 24 -#define ED_TABNAME 25 -#define RB_FROMFILE 26 -#define LB_TABLES 27 -#define BTN_BROWSE 28 -#define CB_LINK 29 -#define FT_PATH 30 +#define FL_TABLE 20 +#define RB_NEW 21 +#define FT_COUNT 22 +#define NF_COUNT 23 +#define FT_NAME 24 +#define ED_TABNAME 25 +#define RB_FROMFILE 26 +#define LB_TABLES 27 +#define BTN_BROWSE 28 +#define CB_LINK 29 +#define FT_PATH 30 diff --git a/sc/source/ui/inc/instbdlg.hxx b/sc/source/ui/inc/instbdlg.hxx index 660d16b62cca..814fd23443cd 100644 --- a/sc/source/ui/inc/instbdlg.hxx +++ b/sc/source/ui/inc/instbdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -71,35 +71,35 @@ public: ScInsertTableDlg( Window* pParent, ScViewData& rViewData, SCTAB nTabCount, bool bFromFile ); ~ScInsertTableDlg(); - virtual short Execute(); // ueberladen, um Dialog-Parent zu setzen + virtual short Execute(); // ueberladen, um Dialog-Parent zu setzen - BOOL GetTablesFromFile() { return aBtnFromFile.IsChecked(); } - BOOL GetTablesAsLink() { return aBtnLink.IsChecked(); } + BOOL GetTablesFromFile() { return aBtnFromFile.IsChecked(); } + BOOL GetTablesAsLink() { return aBtnLink.IsChecked(); } - const String* GetFirstTable( USHORT* pN = NULL ); - const String* GetNextTable( USHORT* pN = NULL ); - ScDocShell* GetDocShellTables() { return pDocShTables; } - BOOL IsTableBefore() { return aBtnBefore.IsChecked(); } - SCTAB GetTableCount() { return nTableCount;} + const String* GetFirstTable( USHORT* pN = NULL ); + const String* GetNextTable( USHORT* pN = NULL ); + ScDocShell* GetDocShellTables() { return pDocShTables; } + BOOL IsTableBefore() { return aBtnBefore.IsChecked(); } + SCTAB GetTableCount() { return nTableCount;} private: - RadioButton aBtnBefore; - RadioButton aBtnBehind; - FixedLine aFlPos; - RadioButton aBtnNew; - RadioButton aBtnFromFile; - FixedText aFtCount; - NumericField aNfCount; - FixedText aFtName; - Edit aEdName; - MultiListBox aLbTables; - ScExpandedFixedText aFtPath; - PushButton aBtnBrowse; - CheckBox aBtnLink; - FixedLine aFlTable; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + RadioButton aBtnBefore; + RadioButton aBtnBehind; + FixedLine aFlPos; + RadioButton aBtnNew; + RadioButton aBtnFromFile; + FixedText aFtCount; + NumericField aNfCount; + FixedText aFtName; + Edit aEdName; + MultiListBox aLbTables; + ScExpandedFixedText aFtPath; + PushButton aBtnBrowse; + CheckBox aBtnLink; + FixedLine aFlTable; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; Timer aBrowseTimer; ScViewData& rViewData; @@ -109,16 +109,16 @@ private: SfxObjectShellRef aDocShTablesRef; bool bMustClose; - USHORT nSelTabIndex; // fuer GetFirstTable() / GetNextTable() - String aStrCurSelTable; - SCTAB nTableCount; + USHORT nSelTabIndex; // fuer GetFirstTable() / GetNextTable() + String aStrCurSelTable; + SCTAB nTableCount; #ifdef SC_INSTBDLG_CXX void Init_Impl( bool bFromFile ); - void SetNewTable_Impl(); - void SetFromTo_Impl(); - void FillTables_Impl( ScDocument* pSrcDoc ); - void DoEnable_Impl(); + void SetNewTable_Impl(); + void SetFromTo_Impl(); + void FillTables_Impl( ScDocument* pSrcDoc ); + void DoEnable_Impl(); DECL_LINK( BrowseHdl_Impl, PushButton* ); DECL_LINK( ChoiceHdl_Impl, RadioButton* ); diff --git a/sc/source/ui/inc/invmerge.hxx b/sc/source/ui/inc/invmerge.hxx index 49dfbc730fee..5c6c9adf632e 100644 --- a/sc/source/ui/inc/invmerge.hxx +++ b/sc/source/ui/inc/invmerge.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,21 +37,21 @@ class Window; class ScInvertMerger { private: - Window* pWin; + Window* pWin; ::std::vector< Rectangle >* pRects; - Rectangle aTotalRect; - Rectangle aLineRect; + Rectangle aTotalRect; + Rectangle aLineRect; - void FlushLine(); - void FlushTotal(); + void FlushLine(); + void FlushTotal(); public: ScInvertMerger( Window* pWindow ); ScInvertMerger( ::std::vector< Rectangle >* pRectangles ); ~ScInvertMerger(); - void AddRect( const Rectangle& rRect ); - void Flush(); + void AddRect( const Rectangle& rRect ); + void Flush(); }; diff --git a/sc/source/ui/inc/lbseldlg.hxx b/sc/source/ui/inc/lbseldlg.hxx index fa288c609070..6b420430ce17 100644 --- a/sc/source/ui/inc/lbseldlg.hxx +++ b/sc/source/ui/inc/lbseldlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,19 +45,19 @@ class ScSelEntryDlg : public ModalDialog { private: FixedLine aFlLbTitle; - ListBox aLb; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + ListBox aLb; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; DECL_LINK( DblClkHdl, void * ); public: - ScSelEntryDlg( Window* pParent, - USHORT nResId, + ScSelEntryDlg( Window* pParent, + USHORT nResId, const String& aTitle, const String& aLbTitle, - List& aEntryList ); + List& aEntryList ); ~ScSelEntryDlg(); String GetSelectEntry() const; diff --git a/sc/source/ui/inc/linkarea.hrc b/sc/source/ui/inc/linkarea.hrc index bc906fdb14ad..f0e9ae7120f2 100644 --- a/sc/source/ui/inc/linkarea.hrc +++ b/sc/source/ui/inc/linkarea.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -27,16 +27,16 @@ #include <sc.hrc> -#define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_HELP 3 -#define FL_LOCATION 4 -#define CB_URL 5 -#define BTN_BROWSE 6 -#define FT_HINT 7 -#define FT_RANGES 8 -#define LB_RANGES 9 -#define BTN_RELOAD 10 -#define NF_DELAY 11 -#define FT_SECONDS 12 +#define BTN_OK 1 +#define BTN_CANCEL 2 +#define BTN_HELP 3 +#define FL_LOCATION 4 +#define CB_URL 5 +#define BTN_BROWSE 6 +#define FT_HINT 7 +#define FT_RANGES 8 +#define LB_RANGES 9 +#define BTN_RELOAD 10 +#define NF_DELAY 11 +#define FT_SECONDS 12 diff --git a/sc/source/ui/inc/linkarea.hxx b/sc/source/ui/inc/linkarea.hxx index c90e1ea47e94..cbcba4f8af8f 100644 --- a/sc/source/ui/inc/linkarea.hxx +++ b/sc/source/ui/inc/linkarea.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,10 +40,10 @@ #include <svtools/stdctrl.hxx> #include <svtools/inettbc.hxx> -//REMOVE #ifndef SO2_DECL_SVEMBEDDEDOBJECT_DEFINED -//REMOVE #define SO2_DECL_SVEMBEDDEDOBJECT_DEFINED -//REMOVE SO2_DECL_REF(SvEmbeddedObject) -//REMOVE #endif +//REMOVE #ifndef SO2_DECL_SVEMBEDDEDOBJECT_DEFINED +//REMOVE #define SO2_DECL_SVEMBEDDEDOBJECT_DEFINED +//REMOVE SO2_DECL_REF(SvEmbeddedObject) +//REMOVE #endif namespace sfx2 { class DocumentInserter; } namespace sfx2 { class FileDialogHelper; } @@ -55,18 +55,18 @@ class ScDocShell; class ScLinkedAreaDlg : public ModalDialog { private: - FixedLine aFlLocation; - SvtURLBox aCbUrl; - PushButton aBtnBrowse; - FixedInfo aTxtHint; - FixedText aFtRanges; - MultiListBox aLbRanges; - CheckBox aBtnReload; - NumericField aNfDelay; - FixedText aFtSeconds; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + FixedLine aFlLocation; + SvtURLBox aCbUrl; + PushButton aBtnBrowse; + FixedInfo aTxtHint; + FixedText aFtRanges; + MultiListBox aLbRanges; + CheckBox aBtnReload; + NumericField aNfDelay; + FixedText aFtSeconds; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; ScDocShell* pSourceShell; sfx2::DocumentInserter* pDocInserter; @@ -80,26 +80,26 @@ private: DECL_LINK( ReloadHdl, CheckBox* ); DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper* ); - void UpdateSourceRanges(); - void UpdateEnable(); - void LoadDocument( const String& rFile, const String& rFilter, + void UpdateSourceRanges(); + void UpdateEnable(); + void LoadDocument( const String& rFile, const String& rFilter, const String& rOptions ); public: ScLinkedAreaDlg( Window* pParent ); ~ScLinkedAreaDlg(); - void InitFromOldLink( const String& rFile, const String& rFilter, + void InitFromOldLink( const String& rFile, const String& rFilter, const String& rOptions, const String& rSource, ULONG nRefresh ); - virtual short Execute(); // overwritten to set dialog parent + virtual short Execute(); // overwritten to set dialog parent - String GetURL(); - String GetFilter(); // may be empty - String GetOptions(); // filter options - String GetSource(); // separated by ";" - ULONG GetRefresh(); // 0 if disabled + String GetURL(); + String GetFilter(); // may be empty + String GetOptions(); // filter options + String GetSource(); // separated by ";" + ULONG GetRefresh(); // 0 if disabled }; #endif diff --git a/sc/source/ui/inc/lnktrans.hxx b/sc/source/ui/inc/lnktrans.hxx index 7e37c6cce554..e21973d48839 100644 --- a/sc/source/ui/inc/lnktrans.hxx +++ b/sc/source/ui/inc/lnktrans.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,19 +34,19 @@ class ScLinkTransferObj : public TransferableHelper { private: - String aLinkURL; - String aLinkText; + String aLinkURL; + String aLinkText; public: ScLinkTransferObj(); virtual ~ScLinkTransferObj(); - void SetLinkURL( const String& rURL, const String& rText ); + void SetLinkURL( const String& rURL, const String& rText ); - virtual void AddSupportedFormats(); - virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); - virtual void ObjectReleased(); - virtual void DragFinished( sal_Int8 nDropAction ); + virtual void AddSupportedFormats(); + virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); + virtual void ObjectReleased(); + virtual void DragFinished( sal_Int8 nDropAction ); }; #endif diff --git a/sc/source/ui/inc/mediash.hxx b/sc/source/ui/inc/mediash.hxx index e297dc11777a..a94e1558fbc9 100644 --- a/sc/source/ui/inc/mediash.hxx +++ b/sc/source/ui/inc/mediash.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,10 +45,10 @@ public: SFX_DECL_INTERFACE(SCID_MEDIA_SHELL) ScMediaShell(ScViewData* pData); - virtual ~ScMediaShell(); + virtual ~ScMediaShell(); - void ExecuteMedia(SfxRequest& rReq); - void GetMediaState(SfxItemSet &rSet); + void ExecuteMedia(SfxRequest& rReq); + void GetMediaState(SfxItemSet &rSet); }; #endif diff --git a/sc/source/ui/inc/miscdlgs.hrc b/sc/source/ui/inc/miscdlgs.hrc index 00b1658849d6..160c7b026ec1 100644 --- a/sc/source/ui/inc/miscdlgs.hrc +++ b/sc/source/ui/inc/miscdlgs.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -25,7 +25,7 @@ * ************************************************************************/ -#include "sc.hrc" // -> RID_SCDLG_DELCELL +#include "sc.hrc" // -> RID_SCDLG_DELCELL // -> RID_SCDLG_INSCELL // -> RID_SCDLG_DELCONT // -> RID_SCDLG_INSCONT @@ -52,41 +52,41 @@ // allgemein #define BTN_OK 100 -#define BTN_CANCEL 102 +#define BTN_CANCEL 102 #define BTN_HELP 103 -#define BTN_MORE 104 -#define BTN_ADD 105 -#define BTN_REMOVE 106 -#define FT_LABEL 110 +#define BTN_MORE 104 +#define BTN_ADD 105 +#define BTN_REMOVE 106 +#define FT_LABEL 110 #define FL_FRAME 112 -#define STR_BTN_CLOSE 200 +#define STR_BTN_CLOSE 200 // Zellen loeschen/einfuegen Dialog #define BTN_CELLSUP 10 #define BTN_CELLSDOWN 11 #define BTN_CELLSRIGHT 12 -#define BTN_CELLSLEFT 13 +#define BTN_CELLSLEFT 13 #define BTN_DELROWS 14 #define BTN_DELCOLS 15 #define BTN_INSROWS 16 #define BTN_INSCOLS 17 // Inhalte loeschen/einfuegen Dialog -#define BTN_DELALL 10 -#define BTN_DELSTRINGS 11 -#define BTN_DELNUMBERS 12 -#define BTN_DELDATETIME 13 -#define BTN_DELFORMULAS 14 -#define BTN_DELATTRS 15 -#define BTN_DELNOTES 16 -#define BTN_DELOBJECTS 17 -#define BTN_INSALL 20 -#define BTN_INSSTRINGS 21 -#define BTN_INSNUMBERS 22 -#define BTN_INSDATETIME 23 -#define BTN_INSFORMULAS 24 -#define BTN_INSATTRS 25 -#define BTN_INSNOTES 26 +#define BTN_DELALL 10 +#define BTN_DELSTRINGS 11 +#define BTN_DELNUMBERS 12 +#define BTN_DELDATETIME 13 +#define BTN_DELFORMULAS 14 +#define BTN_DELATTRS 15 +#define BTN_DELNOTES 16 +#define BTN_DELOBJECTS 17 +#define BTN_INSALL 20 +#define BTN_INSSTRINGS 21 +#define BTN_INSNUMBERS 22 +#define BTN_INSDATETIME 23 +#define BTN_INSFORMULAS 24 +#define BTN_INSATTRS 25 +#define BTN_INSNOTES 26 #define BTN_OP_NOOP 27 #define BTN_OP_ADD 28 #define BTN_OP_SUB 29 @@ -97,28 +97,28 @@ #define BTN_TRANSPOSE 34 #define BTN_LINK 35 #define FL_OPTIONS 36 -#define BTN_MV_NONE 37 -#define BTN_MV_DOWN 38 -#define BTN_MV_RIGHT 39 +#define BTN_MV_NONE 37 +#define BTN_MV_DOWN 38 +#define BTN_MV_RIGHT 39 #define FL_MOVE 40 #define BTN_INSOBJECTS 41 #define FL_SEP1 51 #define FL_SEP2 52 // Tabelle einfuegen/loeschen -#define FT_DEST 1 -#define LB_DEST 2 -#define FT_INSERT 3 -#define LB_INSERT 4 -#define BTN_COPY 5 +#define FT_DEST 1 +#define LB_DEST 2 +#define FT_INSERT 3 +#define LB_INSERT 4 +#define BTN_COPY 5 #define STR_NEWDOC 6 // Eingabe eines Strings -#define ED_INPUT 10 +#define ED_INPUT 10 // Eingabe einer Metrik -#define ED_VALUE 1 -#define BTN_DEFVAL 1 +#define ED_VALUE 1 +#define BTN_DEFVAL 1 // Auswahl aus einer (String-)ListBox #define FL_ENTRYLIST 10 @@ -143,44 +143,44 @@ #define BTN_MONTH 24 #define BTN_YEAR 25 #define FT_INCREMENT 30 -#define ED_INCREMENT 39 -#define FT_END_VALUE 40 -#define ED_END_VALUES 49 -#define STR_VALERR 50 -#define FT_START_VALUE 51 -#define ED_START_VALUES 52 +#define ED_INCREMENT 39 +#define FT_END_VALUE 40 +#define ED_END_VALUES 49 +#define STR_VALERR 50 +#define FT_START_VALUE 51 +#define ED_START_VALUES 52 // Autoformat -#define LB_FORMAT 1 +#define LB_FORMAT 1 #define FL_FORMAT 9 -#define WND_PREVIEW 19 -#define BTN_NUMFORMAT 20 -#define BTN_BORDER 21 -#define BTN_FONT 23 -#define BTN_PATTERN 24 -#define BTN_ALIGNMENT 25 -#define BTN_ADJUST 26 -#define BTN_RENAME 27 +#define WND_PREVIEW 19 +#define BTN_NUMFORMAT 20 +#define BTN_BORDER 21 +#define BTN_FONT 23 +#define BTN_PATTERN 24 +#define BTN_ALIGNMENT 25 +#define BTN_ADJUST 26 +#define BTN_RENAME 27 #define FL_FORMATTING 29 -#define STR_ADD_TITLE 100 -#define STR_ADD_LABEL 101 -#define STR_DEL_TITLE 102 -#define STR_DEL_MSG 103 -#define STR_RENAME_TITLE 104 +#define STR_ADD_TITLE 100 +#define STR_ADD_LABEL 101 +#define STR_DEL_TITLE 102 +#define STR_DEL_MSG 103 +#define STR_RENAME_TITLE 104 // Autoformat-Preview: -#define STR_JAN 121 -#define STR_FEB 122 -#define STR_MAR 123 -#define STR_NORTH 124 -#define STR_MID 125 -#define STR_SOUTH 126 -#define STR_SUM 127 +#define STR_JAN 121 +#define STR_FEB 122 +#define STR_MAR 123 +#define STR_NORTH 124 +#define STR_MID 125 +#define STR_SOUTH 126 +#define STR_SUM 127 // Gruppierung setzen/aufheben: -#define BTN_GROUP_COLS 1 -#define BTN_GROUP_ROWS 3 -#define STR_GROUP 1 -#define STR_UNGROUP 2 +#define BTN_GROUP_COLS 1 +#define BTN_GROUP_ROWS 3 +#define STR_GROUP 1 +#define STR_UNGROUP 2 // Tab Bg Color #define TAB_BG_COLOR_CT_BORDER 1 diff --git a/sc/source/ui/inc/msgpool.hxx b/sc/source/ui/inc/msgpool.hxx index 7bc33b3af96b..7fe407abc5b1 100644 --- a/sc/source/ui/inc/msgpool.hxx +++ b/sc/source/ui/inc/msgpool.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -48,20 +48,20 @@ class ScDocumentPool; class ScMessagePool: public SfxItemPool { - SfxStringItem aGlobalStringItem; - SvxSearchItem aGlobalSearchItem; - ScSortItem aGlobalSortItem; - ScQueryItem aGlobalQueryItem; - ScSubTotalItem aGlobalSubTotalItem; - ScConsolidateItem aGlobalConsolidateItem; - ScPivotItem aGlobalPivotItem; - ScSolveItem aGlobalSolveItem; - ScUserListItem aGlobalUserListItem; + SfxStringItem aGlobalStringItem; + SvxSearchItem aGlobalSearchItem; + ScSortItem aGlobalSortItem; + ScQueryItem aGlobalQueryItem; + ScSubTotalItem aGlobalSubTotalItem; + ScConsolidateItem aGlobalConsolidateItem; + ScPivotItem aGlobalPivotItem; + ScSolveItem aGlobalSolveItem; + ScUserListItem aGlobalUserListItem; - SfxBoolItem aPrintWarnItem; + SfxBoolItem aPrintWarnItem; - SfxPoolItem** ppPoolDefaults; - ScDocumentPool* pDocPool; + SfxPoolItem** ppPoolDefaults; + ScDocumentPool* pDocPool; public: ScMessagePool(); @@ -69,7 +69,7 @@ protected: virtual ~ScMessagePool(); public: - virtual SfxMapUnit GetMetric( USHORT nWhich ) const; + virtual SfxMapUnit GetMetric( USHORT nWhich ) const; }; diff --git a/sc/source/ui/inc/mtrindlg.hxx b/sc/source/ui/inc/mtrindlg.hxx index f88f57a74e58..18110d512853 100644 --- a/sc/source/ui/inc/mtrindlg.hxx +++ b/sc/source/ui/inc/mtrindlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,29 +39,29 @@ class ScMetricInputDlg : public ModalDialog { public: - ScMetricInputDlg( Window* pParent, - USHORT nResId, // Ableitung fuer jeden Dialog! - long nCurrent, - long nDefault, - FieldUnit eFUnit = FUNIT_MM, - USHORT nDecimals = 2, - long nMaximum = 1000, - long nMinimum = 0, - long nFirst = 1, + ScMetricInputDlg( Window* pParent, + USHORT nResId, // Ableitung fuer jeden Dialog! + long nCurrent, + long nDefault, + FieldUnit eFUnit = FUNIT_MM, + USHORT nDecimals = 2, + long nMaximum = 1000, + long nMinimum = 0, + long nFirst = 1, long nLast = 100 ); ~ScMetricInputDlg(); long GetInputValue( FieldUnit eUnit = FUNIT_TWIP ) const; private: - FixedText aFtEditTitle; - MetricField aEdValue; - CheckBox aBtnDefVal; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - long nDefaultValue; - long nCurrentValue; + FixedText aFtEditTitle; + MetricField aEdValue; + CheckBox aBtnDefVal; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + long nDefaultValue; + long nCurrentValue; void CalcPositions(); DECL_LINK( SetDefValHdl, CheckBox * ); diff --git a/sc/source/ui/inc/mvtabdlg.hxx b/sc/source/ui/inc/mvtabdlg.hxx index d5ce7726243f..3881497ec1f4 100644 --- a/sc/source/ui/inc/mvtabdlg.hxx +++ b/sc/source/ui/inc/mvtabdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,28 +46,28 @@ public: ScMoveTableDlg( Window* pParent ); ~ScMoveTableDlg(); - USHORT GetSelectedDocument () const; - SCTAB GetSelectedTable () const; - BOOL GetCopyTable () const; - void SetCopyTable (BOOL bFlag=TRUE); - void EnableCopyTable (BOOL bFlag=TRUE); + USHORT GetSelectedDocument () const; + SCTAB GetSelectedTable () const; + BOOL GetCopyTable () const; + void SetCopyTable (BOOL bFlag=TRUE); + void EnableCopyTable (BOOL bFlag=TRUE); private: - FixedText aFtDoc; - ListBox aLbDoc; - FixedText aFtTable; - ListBox aLbTable; - CheckBox aBtnCopy; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + FixedText aFtDoc; + ListBox aLbDoc; + FixedText aFtTable; + ListBox aLbTable; + CheckBox aBtnCopy; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; - USHORT nDocument; - SCTAB nTable; - BOOL bCopyTable; + USHORT nDocument; + SCTAB nTable; + BOOL bCopyTable; //-------------------------------------- - void Init (); - void InitDocListBox (); + void Init (); + void InitDocListBox (); DECL_LINK( OkHdl, void * ); DECL_LINK( SelHdl, ListBox * ); }; diff --git a/sc/source/ui/inc/namecrea.hxx b/sc/source/ui/inc/namecrea.hxx index e4e053fe0bcf..b89fe079730b 100644 --- a/sc/source/ui/inc/namecrea.hxx +++ b/sc/source/ui/inc/namecrea.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -31,28 +31,28 @@ #include <vcl/dialog.hxx> #include <vcl/imagebtn.hxx> #include <vcl/fixed.hxx> -#include "scui_def.hxx" //CHINA001 +#include "scui_def.hxx" //CHINA001 -//CHINA001 #define NAME_TOP 1 -//CHINA001 #define NAME_LEFT 2 -//CHINA001 #define NAME_BOTTOM 4 -//CHINA001 #define NAME_RIGHT 8 +//CHINA001 #define NAME_TOP 1 +//CHINA001 #define NAME_LEFT 2 +//CHINA001 #define NAME_BOTTOM 4 +//CHINA001 #define NAME_RIGHT 8 class ScNameCreateDlg : public ModalDialog { protected: FixedLine aFixedLine; - CheckBox aTopBox; - CheckBox aLeftBox; - CheckBox aBottomBox; - CheckBox aRightBox; - OKButton aOKButton; - CancelButton aCancelButton; - HelpButton aHelpButton; + CheckBox aTopBox; + CheckBox aLeftBox; + CheckBox aBottomBox; + CheckBox aRightBox; + OKButton aOKButton; + CancelButton aCancelButton; + HelpButton aHelpButton; public: ScNameCreateDlg( Window * pParent, USHORT nFlags ); - USHORT GetFlags() const; + USHORT GetFlags() const; }; diff --git a/sc/source/ui/inc/namedlg.hrc b/sc/source/ui/inc/namedlg.hrc index b2eec6879ec3..5381df425e90 100644 --- a/sc/source/ui/inc/namedlg.hrc +++ b/sc/source/ui/inc/namedlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,25 +28,25 @@ #include "sc.hrc" // -> RID_SCDLG_NAMES #define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_ADD 3 -#define BTN_REMOVE 4 -#define BTN_HELP 5 -#define BTN_MORE 6 +#define BTN_CANCEL 2 +#define BTN_ADD 3 +#define BTN_REMOVE 4 +#define BTN_HELP 5 +#define BTN_MORE 6 // #define FL_NAME 11 -#define ED_NAME 12 +#define ED_NAME 12 #define FL_ASSIGN 13 -#define ED_ASSIGN 15 -#define RB_ASSIGN 16 +#define ED_ASSIGN 15 +#define RB_ASSIGN 16 // -#define STR_ADD 21 -#define STR_MODIFY 22 +#define STR_ADD 21 +#define STR_MODIFY 22 #define STR_INVALIDSYMBOL 23 // -#define BTN_CRITERIA 31 -#define BTN_PRINTAREA 32 -#define BTN_COLHEADER 33 -#define BTN_ROWHEADER 34 -#define FL_TYPE 35 +#define BTN_CRITERIA 31 +#define BTN_PRINTAREA 32 +#define BTN_COLHEADER 33 +#define BTN_ROWHEADER 34 +#define FL_TYPE 35 diff --git a/sc/source/ui/inc/namedlg.hxx b/sc/source/ui/inc/namedlg.hxx index b122c57a19fd..66976c69f547 100644 --- a/sc/source/ui/inc/namedlg.hxx +++ b/sc/source/ui/inc/namedlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,35 +51,35 @@ class ScNameDlg : public ScAnyRefDlg { private: FixedLine aFlName; - ComboBox aEdName; + ComboBox aEdName; FixedLine aFlAssign; - formula::RefEdit aEdAssign; - formula::RefButton aRbAssign; - - FixedLine aFlType; - CheckBox aBtnPrintArea; - CheckBox aBtnColHeader; - CheckBox aBtnCriteria; - CheckBox aBtnRowHeader; - - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - PushButton aBtnAdd; - PushButton aBtnRemove; - MoreButton aBtnMore; - BOOL bSaved; - - const String aStrAdd; // "Hinzufuegen" - const String aStrModify; // "Aendern" - const String errMsgInvalidSym; - - ScViewData* pViewData; - ScDocument* pDoc; - ScRangeName aLocalRangeName; - const ScAddress theCursorPos; - Selection theCurSel; + formula::RefEdit aEdAssign; + formula::RefButton aRbAssign; + + FixedLine aFlType; + CheckBox aBtnPrintArea; + CheckBox aBtnColHeader; + CheckBox aBtnCriteria; + CheckBox aBtnRowHeader; + + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + PushButton aBtnAdd; + PushButton aBtnRemove; + MoreButton aBtnMore; + BOOL bSaved; + + const String aStrAdd; // "Hinzufuegen" + const String aStrModify; // "Aendern" + const String errMsgInvalidSym; + + ScViewData* pViewData; + ScDocument* pDoc; + ScRangeName aLocalRangeName; + const ScAddress theCursorPos; + Selection theCurSel; #ifdef _NAMEDLG_CXX private: @@ -100,20 +100,20 @@ private: protected: - virtual void RefInputDone( BOOL bForced = FALSE ); + virtual void RefInputDone( BOOL bForced = FALSE ); public: ScNameDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScViewData* ptrViewData, - const ScAddress& aCursorPos ); + ScViewData* ptrViewData, + const ScAddress& aCursorPos ); ~ScNameDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const; + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual BOOL IsRefInputMode() const; - virtual void SetActive(); - virtual BOOL Close(); + virtual void SetActive(); + virtual BOOL Close(); }; diff --git a/sc/source/ui/inc/namepast.hxx b/sc/source/ui/inc/namepast.hxx index 3286af7b81bc..7fc73e9d66ed 100644 --- a/sc/source/ui/inc/namepast.hxx +++ b/sc/source/ui/inc/namepast.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,10 +33,10 @@ #include <vcl/fixed.hxx> #include <vcl/lstbox.hxx> -#include "scui_def.hxx" //CHINA001 -//CHINA001 #define BTN_PASTE_NAME 100 -//CHINA001 #define BTN_PASTE_LIST 101 -//CHINA001 +#include "scui_def.hxx" //CHINA001 +//CHINA001 #define BTN_PASTE_NAME 100 +//CHINA001 #define BTN_PASTE_LIST 101 +//CHINA001 class ScRangeName; class ScNamePasteDlg : public ModalDialog @@ -46,16 +46,16 @@ class ScNamePasteDlg : public ModalDialog DECL_LINK( ListDblClickHdl, ListBox * ); protected: - FixedText aLabelText; - ListBox aNameList; - OKButton aOKButton; - CancelButton aCancelButton; - HelpButton aHelpButton; - PushButton aInsListButton; + FixedText aLabelText; + ListBox aNameList; + OKButton aOKButton; + CancelButton aCancelButton; + HelpButton aHelpButton; + PushButton aInsListButton; public: ScNamePasteDlg( Window * pParent, const ScRangeName* pList, BOOL bInsList=TRUE ); - String GetSelectedName() const; + String GetSelectedName() const; }; diff --git a/sc/source/ui/inc/navcitem.hxx b/sc/source/ui/inc/navcitem.hxx index b464bd6cc9ad..2801c7d697ec 100644 --- a/sc/source/ui/inc/navcitem.hxx +++ b/sc/source/ui/inc/navcitem.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,7 +43,7 @@ public: ScNavigatorDlg& rDlg, SfxBindings& rBindings ); protected: - virtual void StateChanged( USHORT nSID, SfxItemState eState, + virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pItem ); private: diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx index 8d53742b6f1e..a19ec51dd242 100644 --- a/sc/source/ui/inc/navipi.hxx +++ b/sc/source/ui/inc/navipi.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -52,15 +52,15 @@ class ScRange; //======================================================================== -#define SC_DROPMODE_URL 0 -#define SC_DROPMODE_LINK 1 -#define SC_DROPMODE_COPY 2 +#define SC_DROPMODE_URL 0 +#define SC_DROPMODE_LINK 1 +#define SC_DROPMODE_COPY 2 -enum NavListMode { NAV_LMODE_NONE = 0x4000, - NAV_LMODE_AREAS = 0x2000, - NAV_LMODE_DBAREAS = 0x1000, - NAV_LMODE_DOCS = 0x800, - NAV_LMODE_SCENARIOS = 0x400 }; +enum NavListMode { NAV_LMODE_NONE = 0x4000, + NAV_LMODE_AREAS = 0x2000, + NAV_LMODE_DBAREAS = 0x1000, + NAV_LMODE_DOCS = 0x800, + NAV_LMODE_SCENARIOS = 0x400 }; //======================================================================== // class ScScenarioListBox ----------------------------------------------- @@ -112,23 +112,23 @@ public: ScScenarioWindow( Window* pParent,const String& aQH_List,const String& aQH_Comment); ~ScScenarioWindow(); - void NotifyState( const SfxPoolItem* pState ); - void SetComment( const String& rComment ) + void NotifyState( const SfxPoolItem* pState ); + void SetComment( const String& rComment ) { aEdComment.SetText( rComment ); } - void SetSizePixel( const Size& rNewSize ); + void SetSizePixel( const Size& rNewSize ); protected: - virtual void Paint( const Rectangle& rRec ); + virtual void Paint( const Rectangle& rRec ); private: - ScScenarioListBox aLbScenario; - MultiLineEdit aEdComment; + ScScenarioListBox aLbScenario; + MultiLineEdit aEdComment; }; //================================================================== -// class ColumnEdit +// class ColumnEdit //================================================================== class ColumnEdit : public SpinField { @@ -136,32 +136,32 @@ public: ColumnEdit( ScNavigatorDlg* pParent, const ResId& rResId ); ~ColumnEdit(); - SCCOL GetCol() { return nCol; } - void SetCol( SCCOL nColNo ); + SCCOL GetCol() { return nCol; } + void SetCol( SCCOL nColNo ); protected: - virtual long Notify( NotifyEvent& rNEvt ); - virtual void LoseFocus(); - virtual void Up(); - virtual void Down(); - virtual void First(); - virtual void Last(); + virtual long Notify( NotifyEvent& rNEvt ); + virtual void LoseFocus(); + virtual void Up(); + virtual void Down(); + virtual void First(); + virtual void Last(); private: ScNavigatorDlg& rDlg; - SCCOL nCol; - USHORT nKeyGroup; - - void EvalText (); - void ExecuteCol (); - SCCOL AlphaToNum ( String& rStr ); - SCCOL NumStrToAlpha ( String& rStr ); - SCCOL NumToAlpha ( SCCOL nColNo, String& rStr ); + SCCOL nCol; + USHORT nKeyGroup; + + void EvalText (); + void ExecuteCol (); + SCCOL AlphaToNum ( String& rStr ); + SCCOL NumStrToAlpha ( String& rStr ); + SCCOL NumToAlpha ( SCCOL nColNo, String& rStr ); }; //================================================================== -// class RowEdit +// class RowEdit //================================================================== class RowEdit : public NumericField { @@ -169,22 +169,22 @@ public: RowEdit( ScNavigatorDlg* pParent, const ResId& rResId ); ~RowEdit(); - SCROW GetRow() { return (SCROW)GetValue(); } - void SetRow( SCROW nRow ){ SetValue( nRow ); } + SCROW GetRow() { return (SCROW)GetValue(); } + void SetRow( SCROW nRow ){ SetValue( nRow ); } protected: - virtual long Notify( NotifyEvent& rNEvt ); - virtual void LoseFocus(); + virtual long Notify( NotifyEvent& rNEvt ); + virtual void LoseFocus(); private: ScNavigatorDlg& rDlg; - void ExecuteRow(); + void ExecuteRow(); }; //================================================================== -// class ScDocListBox +// class ScDocListBox //================================================================== class ScDocListBox : public ListBox { @@ -193,7 +193,7 @@ public: ~ScDocListBox(); protected: - virtual void Select(); + virtual void Select(); private: ScNavigatorDlg& rDlg; @@ -201,7 +201,7 @@ private: //================================================================== -// class CommandToolBox +// class CommandToolBox //================================================================== class CommandToolBox : public ToolBox { @@ -213,20 +213,20 @@ public: void UpdateButtons(); void InitImageList(); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); DECL_LINK( ToolBoxDropdownClickHdl, ToolBox* ); protected: - virtual void Select(); - virtual void Click(); + virtual void Select(); + virtual void Click(); private: ScNavigatorDlg& rDlg; }; //================================================================== -// class ScNavigatorDlg +// class ScNavigatorDlg //================================================================== class ScNavigatorDlg : public Window, public SfxListener @@ -240,28 +240,28 @@ friend class CommandToolBox; friend class ScContentTree; private: - SfxBindings& rBindings; // must be first member + SfxBindings& rBindings; // must be first member - ImageList aCmdImageList; // must be before aTbxCmd + ImageList aCmdImageList; // must be before aTbxCmd ImageList aCmdImageListH; - FixedInfo aFtCol; - ColumnEdit aEdCol; - FixedInfo aFtRow; - RowEdit aEdRow; - CommandToolBox aTbxCmd; - ScContentTree aLbEntries; + FixedInfo aFtCol; + ColumnEdit aEdCol; + FixedInfo aFtRow; + RowEdit aEdRow; + CommandToolBox aTbxCmd; + ScContentTree aLbEntries; ScScenarioWindow aWndScenarios; - ScDocListBox aLbDocuments; + ScDocListBox aLbDocuments; - Timer aContentTimer; + Timer aContentTimer; - String aTitleBase; - String aStrDragMode; - String aStrDisplay; - String aStrActive; - String aStrNotActive; - String aStrHidden; - String aStrActiveWin; + String aTitleBase; + String aStrDragMode; + String aStrDisplay; + String aStrActive; + String aStrNotActive; + String aStrHidden; + String aStrActiveWin; SfxChildWindowContext* pContextWin; Size aInitSize; @@ -269,77 +269,77 @@ private: ScViewData* pViewData; long nBorderOffset; - long nListModeHeight; - long nInitListHeight; - NavListMode eListMode; - USHORT nDropMode; - SCCOL nCurCol; - SCROW nCurRow; - SCTAB nCurTab; - BOOL bFirstBig; + long nListModeHeight; + long nInitListHeight; + NavListMode eListMode; + USHORT nDropMode; + SCCOL nCurCol; + SCROW nCurRow; + SCTAB nCurTab; + BOOL bFirstBig; ScNavigatorControllerItem** ppBoundItems; DECL_LINK( TimeHdl, Timer* ); - void DoResize(); + void DoResize(); SfxBindings& GetBindings() { return rBindings; } - void SetCurrentCell( SCCOL nCol, SCROW Row ); - void SetCurrentCellStr( const String rName ); - void SetCurrentTable( SCTAB nTab ); - void SetCurrentTableStr( const String rName ); - void SetCurrentObject( const String rName ); - void SetCurrentDoc( const String& rDocName ); + void SetCurrentCell( SCCOL nCol, SCROW Row ); + void SetCurrentCellStr( const String rName ); + void SetCurrentTable( SCTAB nTab ); + void SetCurrentTableStr( const String rName ); + void SetCurrentObject( const String rName ); + void SetCurrentDoc( const String& rDocName ); ScTabViewShell* GetTabViewShell() const; ScNavigatorSettings* GetNavigatorSettings(); BOOL GetViewData(); - void UpdateColumn ( const SCCOL* pCol = NULL ); - void UpdateRow ( const SCROW* pRow = NULL ); - void UpdateTable ( const SCTAB* pTab = NULL ); - void UpdateAll (); + void UpdateColumn ( const SCCOL* pCol = NULL ); + void UpdateRow ( const SCROW* pRow = NULL ); + void UpdateTable ( const SCTAB* pTab = NULL ); + void UpdateAll (); - void GetDocNames(const String* pSelEntry = NULL); + void GetDocNames(const String* pSelEntry = NULL); - void SetListMode ( NavListMode eMode, BOOL bSetSize = TRUE ); - void ShowList ( BOOL bShow, BOOL bSetSize ); - void ShowScenarios ( BOOL bShow, BOOL bSetSize ); + void SetListMode ( NavListMode eMode, BOOL bSetSize = TRUE ); + void ShowList ( BOOL bShow, BOOL bSetSize ); + void ShowScenarios ( BOOL bShow, BOOL bSetSize ); - void SetDropMode(USHORT nNew); - USHORT GetDropMode() const { return nDropMode; } + void SetDropMode(USHORT nNew); + USHORT GetDropMode() const { return nDropMode; } - const String& GetStrDragMode() const { return aStrDragMode; } - const String& GetStrDisplay() const { return aStrDisplay; } + const String& GetStrDragMode() const { return aStrDragMode; } + const String& GetStrDisplay() const { return aStrDisplay; } - void CheckDataArea (); - void MarkDataArea (); - void UnmarkDataArea (); - void StartOfDataArea (); - void EndOfDataArea (); + void CheckDataArea (); + void MarkDataArea (); + void UnmarkDataArea (); + void StartOfDataArea (); + void EndOfDataArea (); static void ReleaseFocus(); protected: - virtual void Resize(); - virtual void Paint( const Rectangle& rRec ); - virtual void Resizing( Size& rSize ); + virtual void Resize(); + virtual void Paint( const Rectangle& rRec ); + virtual void Resizing( Size& rSize ); public: ScNavigatorDlg( SfxBindings* pB, SfxChildWindowContext* pCW, Window* pParent ); ~ScNavigatorDlg(); using Window::Notify; - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - void CursorPosChanged(); + void CursorPosChanged(); virtual SfxChildAlignment CheckAlignment(SfxChildAlignment,SfxChildAlignment); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); }; //================================================================== @@ -347,14 +347,14 @@ public: class ScNavigatorDialogWrapper: public SfxChildWindowContext { public: - ScNavigatorDialogWrapper( Window* pParent, - USHORT nId, - SfxBindings* pBindings, - SfxChildWinInfo* pInfo ); + ScNavigatorDialogWrapper( Window* pParent, + USHORT nId, + SfxBindings* pBindings, + SfxChildWinInfo* pInfo ); SFX_DECL_CHILDWINDOWCONTEXT(ScNavigatorDialogWrapper) - virtual void Resizing( Size& rSize ); + virtual void Resizing( Size& rSize ); private: ScNavigatorDlg* pNavigator; diff --git a/sc/source/ui/inc/navsett.hxx b/sc/source/ui/inc/navsett.hxx index 896c64606646..28fcd8ecb6e3 100644 --- a/sc/source/ui/inc/navsett.hxx +++ b/sc/source/ui/inc/navsett.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/notemark.hxx b/sc/source/ui/inc/notemark.hxx index 65e36565ceb8..02a1835bc182 100644 --- a/sc/source/ui/inc/notemark.hxx +++ b/sc/source/ui/inc/notemark.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,23 +41,23 @@ class SdrObject; class ScNoteMarker { private: - Window* pWindow; - Window* pRightWin; - Window* pBottomWin; - Window* pDiagWin; - ScDocument* pDoc; - ScAddress aDocPos; - String aUserText; + Window* pWindow; + Window* pRightWin; + Window* pBottomWin; + Window* pDiagWin; + ScDocument* pDoc; + ScAddress aDocPos; + String aUserText; Rectangle aVisRect; - Timer aTimer; - MapMode aMapMode; - BOOL bLeft; - BOOL bByKeyboard; + Timer aTimer; + MapMode aMapMode; + BOOL bLeft; + BOOL bByKeyboard; - Rectangle aRect; - SdrModel* pModel; - SdrObject* pObject; - BOOL bVisible; + Rectangle aRect; + SdrModel* pModel; + SdrObject* pObject; + BOOL bVisible; DECL_LINK( TimeHdl, Timer* ); @@ -67,11 +67,11 @@ public: const MapMode& rMap, BOOL bLeftEdge, BOOL bForce, BOOL bKeyboard ); ~ScNoteMarker(); - void Draw(); - void InvalidateWin(); + void Draw(); + void InvalidateWin(); - ScAddress GetDocPos() const { return aDocPos; } - BOOL IsByKeyboard() const { return bByKeyboard; } + ScAddress GetDocPos() const { return aDocPos; } + BOOL IsByKeyboard() const { return bByKeyboard; } }; diff --git a/sc/source/ui/inc/oleobjsh.hxx b/sc/source/ui/inc/oleobjsh.hxx index fa4f71729c97..5116637333b4 100644 --- a/sc/source/ui/inc/oleobjsh.hxx +++ b/sc/source/ui/inc/oleobjsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,7 +45,7 @@ public: SFX_DECL_INTERFACE(SCID_OLEOBJECT_SHELL) ScOleObjectShell(ScViewData* pData); - virtual ~ScOleObjectShell(); + virtual ~ScOleObjectShell(); }; diff --git a/sc/source/ui/inc/olinefun.hxx b/sc/source/ui/inc/olinefun.hxx index 444774ed2068..f1b75ea82163 100644 --- a/sc/source/ui/inc/olinefun.hxx +++ b/sc/source/ui/inc/olinefun.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,26 +39,26 @@ class ScRange; class ScOutlineDocFunc { private: - ScDocShell& rDocShell; + ScDocShell& rDocShell; public: ScOutlineDocFunc( ScDocShell& rDocSh ): rDocShell(rDocSh) {} ~ScOutlineDocFunc() {} - BOOL MakeOutline( const ScRange& rRange, BOOL bColumns, BOOL bRecord, BOOL bApi ); - BOOL RemoveOutline( const ScRange& rRange, BOOL bColumns, BOOL bRecord, BOOL bApi ); - BOOL RemoveAllOutlines( SCTAB nTab, BOOL bRecord, BOOL bApi ); - BOOL AutoOutline( const ScRange& rRange, BOOL bRecord, BOOL bApi ); + BOOL MakeOutline( const ScRange& rRange, BOOL bColumns, BOOL bRecord, BOOL bApi ); + BOOL RemoveOutline( const ScRange& rRange, BOOL bColumns, BOOL bRecord, BOOL bApi ); + BOOL RemoveAllOutlines( SCTAB nTab, BOOL bRecord, BOOL bApi ); + BOOL AutoOutline( const ScRange& rRange, BOOL bRecord, BOOL bApi ); - BOOL SelectLevel( SCTAB nTab, BOOL bColumns, USHORT nLevel, + BOOL SelectLevel( SCTAB nTab, BOOL bColumns, USHORT nLevel, BOOL bRecord, BOOL bPaint, BOOL bApi ); - BOOL ShowMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi ); - BOOL HideMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi ); + BOOL ShowMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi ); + BOOL HideMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi ); - BOOL ShowOutline( SCTAB nTab, BOOL bColumns, USHORT nLevel, USHORT nEntry, + BOOL ShowOutline( SCTAB nTab, BOOL bColumns, USHORT nLevel, USHORT nEntry, BOOL bRecord, BOOL bPaint, BOOL bApi ); - BOOL HideOutline( SCTAB nTab, BOOL bColumns, USHORT nLevel, USHORT nEntry, + BOOL HideOutline( SCTAB nTab, BOOL bColumns, USHORT nLevel, USHORT nEntry, BOOL bRecord, BOOL bPaint, BOOL bApi ); }; diff --git a/sc/source/ui/inc/olinewin.hxx b/sc/source/ui/inc/olinewin.hxx index 104f9e8f11da..b8a0623b8960 100644 --- a/sc/source/ui/inc/olinewin.hxx +++ b/sc/source/ui/inc/olinewin.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/opredlin.hrc b/sc/source/ui/inc/opredlin.hrc index 2b52d8b46118..212ee87878bf 100644 --- a/sc/source/ui/inc/opredlin.hrc +++ b/sc/source/ui/inc/opredlin.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -24,15 +24,15 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ -#include "sc.hrc" // -> RID_SCPAGE_OPREDLINE +#include "sc.hrc" // -> RID_SCPAGE_OPREDLINE -#define FT_CONTENT 1 -#define FT_REMOVE 2 -#define FT_INSERT 3 -#define FT_MOVE 4 -#define GB_COLORCHGS 1 -#define CLB_CONTENT 1 -#define CLB_REMOVE 2 -#define CLB_INSERT 3 -#define CLB_MOVE 4 -#define STR_AUTHOR 1 +#define FT_CONTENT 1 +#define FT_REMOVE 2 +#define FT_INSERT 3 +#define FT_MOVE 4 +#define GB_COLORCHGS 1 +#define CLB_CONTENT 1 +#define CLB_REMOVE 2 +#define CLB_INSERT 3 +#define CLB_MOVE 4 +#define STR_AUTHOR 1 diff --git a/sc/source/ui/inc/opredlin.hxx b/sc/source/ui/inc/opredlin.hxx index 0573ecb86f1e..7dd48677017a 100644 --- a/sc/source/ui/inc/opredlin.hxx +++ b/sc/source/ui/inc/opredlin.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,16 +58,16 @@ class ScRedlineOptionsTabPage : public SfxTabPage { - FixedText aContentFT; - ColorListBox aContentColorLB; - FixedText aRemoveFT; - ColorListBox aRemoveColorLB; - FixedText aInsertFT; - ColorListBox aInsertColorLB; - FixedText aMoveFT; - ColorListBox aMoveColorLB; + FixedText aContentFT; + ColorListBox aContentColorLB; + FixedText aRemoveFT; + ColorListBox aRemoveColorLB; + FixedText aInsertFT; + ColorListBox aInsertColorLB; + FixedText aMoveFT; + ColorListBox aMoveColorLB; FixedLine aChangedGB; - String aAuthorStr; + String aAuthorStr; DECL_LINK( ColorHdl, ColorListBox *pColorLB ); @@ -76,10 +76,10 @@ public: ScRedlineOptionsTabPage( Window* pParent, const SfxItemSet& rSet ); ~ScRedlineOptionsTabPage(); - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); - virtual BOOL FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); }; #endif diff --git a/sc/source/ui/inc/optdlg.hrc b/sc/source/ui/inc/optdlg.hrc index 27b8976e3541..e5a7e80c6afa 100644 --- a/sc/source/ui/inc/optdlg.hrc +++ b/sc/source/ui/inc/optdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,13 +29,13 @@ /* #define RID_SCDLG_OPTIONS 256 -#define RID_SCPAGE_VIEW 256 +#define RID_SCPAGE_VIEW 256 #define RID_SCPAGE_USERLISTS 257 -#define RID_SCPAGE_CALC 258 -#define RID_SCPAGE_PRINT 259 +#define RID_SCPAGE_CALC 258 +#define RID_SCPAGE_PRINT 259 */ -#define TP_GENERAL 1 +#define TP_GENERAL 1 #define TP_SAVE 2 #define TP_PATH 3 #define TP_SPELL 4 @@ -48,67 +48,67 @@ #define TP_CONTENT 11 #define TP_LAYOUT 12 #define TP_INPUT 13 -#define TP_CHANGES 14 +#define TP_CHANGES 14 // TP_CALC: -#define BTN_ITERATE 1 -#define FT_STEPS 2 -#define FT_EPS 3 -#define ED_STEPS 4 -#define ED_EPS 5 -#define GB_ZREFS 6 -#define ED_PREC 7 -#define FT_PREC 8 -#define BTN_DATESTD 9 -#define BTN_DATESC10 10 -#define BTN_DATE1904 11 -#define FT_VALUE 13 -#define GB_DATE 14 +#define BTN_ITERATE 1 +#define FT_STEPS 2 +#define FT_EPS 3 +#define ED_STEPS 4 +#define ED_EPS 5 +#define GB_ZREFS 6 +#define ED_PREC 7 +#define FT_PREC 8 +#define BTN_DATESTD 9 +#define BTN_DATESC10 10 +#define BTN_DATE1904 11 +#define FT_VALUE 13 +#define GB_DATE 14 #define BTN_CASE 15 #define FT_CASE 16 -#define BTN_CALC 17 -#define BTN_MATCH 18 -#define BTN_LOOKUP 19 +#define BTN_CALC 17 +#define BTN_MATCH 18 +#define BTN_LOOKUP 19 #define BTN_REGEX 20 #define BTN_GENERAL_PREC 21 // TP_VIEW: -#define BTN_VSCROLL 1 -#define BTN_HSCROLL 2 -#define BTN_REGISTER 3 -#define BTN_OUTLINER 4 -#define BTN_HEADERFOOTER 5 -#define BTN_GRID 6 +#define BTN_VSCROLL 1 +#define BTN_HSCROLL 2 +#define BTN_REGISTER 3 +#define BTN_OUTLINER 4 +#define BTN_HEADERFOOTER 5 +#define BTN_GRID 6 #define BTN_SYNTAX 7 -#define LB_GRIDCOLOR 9 -#define GB_ELEMENTS 10 +#define LB_GRIDCOLOR 9 +#define GB_ELEMENTS 10 #define BTN_HELPLINES 11 #define BTN_FORMULAS 20 #define BTN_NULLVALS 21 #define BTN_NOTES 22 -#define GB_CONTENTS 23 +#define GB_CONTENTS 23 -//#define FT_OLE 31 -//#define FT_CHARTS 32 -//#define FT_DRAWINGS 33 -//#define LB_OLE 34 -//#define LB_CHARTS 35 -//#define LB_DRAWINGS 36 -//#define GB_OBJECTS 37 +//#define FT_OLE 31 +//#define FT_CHARTS 32 +//#define FT_DRAWINGS 33 +//#define LB_OLE 34 +//#define LB_CHARTS 35 +//#define LB_DRAWINGS 36 +//#define GB_OBJECTS 37 // TP_USERLISTS: -#define FT_LISTS 1 -#define LB_LISTS 1 -#define FT_ENTRIES 2 -#define ED_ENTRIES 2 -#define FT_COPYFROM 3 -#define ED_COPYFROM 3 -#define BTN_NEW 1 -#define BTN_ADD 2 -#define BTN_REMOVE 3 -#define BTN_COPY 4 +#define FT_LISTS 1 +#define LB_LISTS 1 +#define FT_ENTRIES 2 +#define ED_ENTRIES 2 +#define FT_COPYFROM 3 +#define ED_COPYFROM 3 +#define BTN_NEW 1 +#define BTN_ADD 2 +#define BTN_REMOVE 3 +#define BTN_COPY 4 #define STR_QUERYREMOVE 5 #define STR_DISMISS 6 #define STR_COPYLIST 7 @@ -116,61 +116,61 @@ #define STR_COPYERR 9 // TP_PRINT: -#define FL_PAGES 1 -#define BTN_SKIPEMPTYPAGES 2 -#define FL_SHEETS 2 -#define BTN_SELECTEDSHEETS 4 +#define FL_PAGES 1 +#define BTN_SKIPEMPTYPAGES 2 +#define FL_SHEETS 2 +#define BTN_SELECTEDSHEETS 4 // TP_LCONTENT -#define GB_DISPLAY 20 +#define GB_DISPLAY 20 #define CB_FORMULA 21 -#define CB_NIL 22 -#define CB_ANNOT 23 -#define CB_VALUE 24 -#define CB_ANCHOR 25 -#define GB_OBJECT 26 -#define FT_OBJGRF 27 -#define LB_OBJGRF 28 +#define CB_NIL 22 +#define CB_ANNOT 23 +#define CB_VALUE 24 +#define CB_ANCHOR 25 +#define GB_OBJECT 26 +#define FT_OBJGRF 27 +#define LB_OBJGRF 28 #define FT_DIAGRAM 29 #define LB_DIAGRAM 30 -#define FT_DRAW 31 -#define LB_DRAW 32 -#define CB_CLIP 33 +#define FT_DRAW 31 +#define LB_DRAW 32 +#define CB_CLIP 33 #define GB_ZOOM 34 #define CB_SYNCZOOM 35 // TP_LAYOUT #define GB_LINK 1 -#define RB_ALWAYS 2 -#define RB_REQUEST 3 -#define RB_NEVER 4 -#define CB_DOCONLY 5 -#define CB_MERGE_PARA_DIST 6 -#define GB_COMPAT 7 -#define CB_AUTO_UPDATE_FIELDS 8 -#define CB_AUTO_UPDATE_CHARTS 9 -#define FT_UPDATE_LINKS 10 +#define RB_ALWAYS 2 +#define RB_REQUEST 3 +#define RB_NEVER 4 +#define CB_DOCONLY 5 +#define CB_MERGE_PARA_DIST 6 +#define GB_COMPAT 7 +#define CB_AUTO_UPDATE_FIELDS 8 +#define CB_AUTO_UPDATE_CHARTS 9 +#define FT_UPDATE_LINKS 10 #define GB_WINDOW 50 -#define CB_ROWCOLHEADER 51 -#define CB_HSCROLL 52 -#define CB_VSCROLL 53 -#define CB_TBLREG 54 -#define CB_OUTLINE 55 -#define GB_LINES 56 -#define CB_GRID 57 -#define FT_COLOR 58 -#define LB_COLOR 59 -#define CB_GUIDELINE 60 -#define GB_UNIT 61 -#define LB_UNIT 62 -#define ST_UNIT 63 -#define GB_TAB 64 -#define MF_TAB 65 -#define CB_PAGEBREAKS 66 -#define CB_HANDLES 67 -#define CB_BIGHANDLES 68 +#define CB_ROWCOLHEADER 51 +#define CB_HSCROLL 52 +#define CB_VSCROLL 53 +#define CB_TBLREG 54 +#define CB_OUTLINE 55 +#define GB_LINES 56 +#define CB_GRID 57 +#define FT_COLOR 58 +#define LB_COLOR 59 +#define CB_GUIDELINE 60 +#define GB_UNIT 61 +#define LB_UNIT 62 +#define ST_UNIT 63 +#define GB_TAB 64 +#define MF_TAB 65 +#define CB_PAGEBREAKS 66 +#define CB_HANDLES 67 +#define CB_BIGHANDLES 68 #define FT_TAB 69 #define FT_UNIT 70 #define FL_SEPARATOR1 71 @@ -179,14 +179,14 @@ #define FL_H_SEPARATOR 74 // TP_INPUT -#define GB_OPTIONS 70 -#define CB_ALIGN 71 -#define LB_ALIGN 72 -#define CB_EDITMODE 73 -#define CB_FORMAT 74 -#define CB_RFIND 75 -#define CB_EXPREF 76 -#define CB_MARKHDR 77 -#define CB_TEXTFMT 78 +#define GB_OPTIONS 70 +#define CB_ALIGN 71 +#define LB_ALIGN 72 +#define CB_EDITMODE 73 +#define CB_FORMAT 74 +#define CB_RFIND 75 +#define CB_EXPREF 76 +#define CB_MARKHDR 77 +#define CB_TEXTFMT 78 #define CB_REPLWARN 79 diff --git a/sc/source/ui/inc/optload.hrc b/sc/source/ui/inc/optload.hrc index 992bb8c737e4..e43e10284da7 100644 --- a/sc/source/ui/inc/optload.hrc +++ b/sc/source/ui/inc/optload.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -24,17 +24,17 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ -#include "sc.hrc" // -> RID_SCPAGE_OPREDLINE +#include "sc.hrc" // -> RID_SCPAGE_OPREDLINE -#define GB_LINK 1 -#define RB_ALWAYS 2 -#define RB_REQUEST 3 -#define RB_NEVER 4 -#define CB_DOCONLY 5 -#define CB_MERGE_PARA_DIST 6 -#define GB_COMPAT 7 -#define CB_AUTO_UPDATE_FIELDS 8 -#define CB_AUTO_UPDATE_CHARTS 9 -#define FT_UPDATE_LINKS 10 +#define GB_LINK 1 +#define RB_ALWAYS 2 +#define RB_REQUEST 3 +#define RB_NEVER 4 +#define CB_DOCONLY 5 +#define CB_MERGE_PARA_DIST 6 +#define GB_COMPAT 7 +#define CB_AUTO_UPDATE_FIELDS 8 +#define CB_AUTO_UPDATE_CHARTS 9 +#define FT_UPDATE_LINKS 10 diff --git a/sc/source/ui/inc/optload.hxx b/sc/source/ui/inc/optload.hxx index 93d5fefa8358..0eed9f6fcec9 100644 --- a/sc/source/ui/inc/optload.hxx +++ b/sc/source/ui/inc/optload.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,28 +39,28 @@ class ScDocument; class ScLoadOptPage : public SfxTabPage { private: - FixedText aLinkFT; - RadioButton aAlwaysRB; - RadioButton aRequestRB; - RadioButton aNeverRB; - CheckBox aDocOnlyCB; - GroupBox aLinkGB; + FixedText aLinkFT; + RadioButton aAlwaysRB; + RadioButton aRequestRB; + RadioButton aNeverRB; + CheckBox aDocOnlyCB; + GroupBox aLinkGB; ScDocument *pDoc; - DECL_LINK( UpdateHdl, CheckBox* ); + DECL_LINK( UpdateHdl, CheckBox* ); public: ScLoadOptPage( Window* pParent, const SfxItemSet& rSet ); ~ScLoadOptPage(); - static SfxTabPage* Create( Window* pParent, + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet); - void SetDocument(ScDocument*); + void SetDocument(ScDocument*); - virtual BOOL FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); }; #endif diff --git a/sc/source/ui/inc/optsolver.hrc b/sc/source/ui/inc/optsolver.hrc index 9df8eea1d7f4..88051bacdc64 100644 --- a/sc/source/ui/inc/optsolver.hrc +++ b/sc/source/ui/inc/optsolver.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -57,30 +57,30 @@ #define FL_CONDITIONS 1 #define FL_BUTTONS 2 -#define IB_OBJECTIVECELL 1 -#define IB_TARGET 2 -#define IB_VARIABLECELLS 3 -#define IB_LEFT1 4 -#define IB_LEFT2 5 -#define IB_LEFT3 6 -#define IB_LEFT4 7 -#define IB_RIGHT1 8 -#define IB_RIGHT2 9 -#define IB_RIGHT3 10 -#define IB_RIGHT4 11 -#define IB_DELETE1 12 -#define IB_DELETE2 13 -#define IB_DELETE3 14 -#define IB_DELETE4 15 +#define IB_OBJECTIVECELL 1 +#define IB_TARGET 2 +#define IB_VARIABLECELLS 3 +#define IB_LEFT1 4 +#define IB_LEFT2 5 +#define IB_LEFT3 6 +#define IB_LEFT4 7 +#define IB_RIGHT1 8 +#define IB_RIGHT2 9 +#define IB_RIGHT3 10 +#define IB_RIGHT4 11 +#define IB_DELETE1 12 +#define IB_DELETE2 13 +#define IB_DELETE3 14 +#define IB_DELETE4 15 #define LB_OP1 1 #define LB_OP2 2 #define LB_OP3 3 #define LB_OP4 4 -#define RB_MAX 1 -#define RB_MIN 2 -#define RB_VALUE 3 +#define RB_MAX 1 +#define RB_MIN 2 +#define RB_VALUE 3 #define SB_SCROLL 1 diff --git a/sc/source/ui/inc/optsolver.hxx b/sc/source/ui/inc/optsolver.hxx index bbd98f1d1818..cffb4f1d8dec 100644 --- a/sc/source/ui/inc/optsolver.hxx +++ b/sc/source/ui/inc/optsolver.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx index 42844513af92..1e2716200e42 100644 --- a/sc/source/ui/inc/output.hxx +++ b/sc/source/ui/inc/output.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -56,16 +56,16 @@ class SdrPaintWindow; // --------------------------------------------------------------------------- -#define SC_SCENARIO_HSPACE 60 -#define SC_SCENARIO_VSPACE 50 +#define SC_SCENARIO_HSPACE 60 +#define SC_SCENARIO_VSPACE 50 // --------------------------------------------------------------------------- -#define SC_OBJECTS_NONE 0 -#define SC_OBJECTS_DRAWING 1 -#define SC_OBJECTS_OLE 2 -#define SC_OBJECTS_CHARTS 4 -#define SC_OBJECTS_ALL ( SC_OBJECTS_DRAWING | SC_OBJECTS_OLE | SC_OBJECTS_CHARTS ) +#define SC_OBJECTS_NONE 0 +#define SC_OBJECTS_DRAWING 1 +#define SC_OBJECTS_OLE 2 +#define SC_OBJECTS_CHARTS 4 +#define SC_OBJECTS_ALL ( SC_OBJECTS_DRAWING | SC_OBJECTS_OLE | SC_OBJECTS_CHARTS ) enum ScOutputType { OUTTYPE_WINDOW, OUTTYPE_PRINTER }; @@ -82,87 +82,87 @@ private: bool mbRightClip; }; - OutputDevice* pDev; // Device - OutputDevice* pRefDevice; // printer if used for preview - OutputDevice* pFmtDevice; // reference for text formatting + OutputDevice* pDev; // Device + OutputDevice* pRefDevice; // printer if used for preview + OutputDevice* pFmtDevice; // reference for text formatting ScTableInfo& mrTabInfo; - RowInfo* pRowInfo; // Info-Block - SCSIZE nArrCount; // belegte Zeilen im Info-Block - ScDocument* pDoc; // Dokument - SCTAB nTab; // Tabelle - long nScrX; // Ausgabe Startpos. (Pixel) + RowInfo* pRowInfo; // Info-Block + SCSIZE nArrCount; // belegte Zeilen im Info-Block + ScDocument* pDoc; // Dokument + SCTAB nTab; // Tabelle + long nScrX; // Ausgabe Startpos. (Pixel) long nScrY; - long nScrW; // Ausgabe Groesse (Pixel) + long nScrW; // Ausgabe Groesse (Pixel) long nScrH; - long nMirrorW; // Visible output width for mirroring (default: nScrW) - SCCOL nX1; // Start-/Endkoordinaten - SCROW nY1; // ( incl. versteckte ) + long nMirrorW; // Visible output width for mirroring (default: nScrW) + SCCOL nX1; // Start-/Endkoordinaten + SCROW nY1; // ( incl. versteckte ) SCCOL nX2; SCROW nY2; - SCCOL nVisX1; // Start-/Endkoordinaten - SCROW nVisY1; // ( sichtbarer Bereich ) + SCCOL nVisX1; // Start-/Endkoordinaten + SCROW nVisY1; // ( sichtbarer Bereich ) SCCOL nVisX2; SCROW nVisY2; - ScOutputType eType; // Bildschirm/Drucker ... - double nPPTX; // Pixel per Twips + ScOutputType eType; // Bildschirm/Drucker ... + double nPPTX; // Pixel per Twips double nPPTY; -// USHORT nZoom; // Zoom-Faktor (Prozent) - fuer GetFont +// USHORT nZoom; // Zoom-Faktor (Prozent) - fuer GetFont Fraction aZoomX; Fraction aZoomY; - SdrObject* pEditObj; // beim Painten auslassen + SdrObject* pEditObj; // beim Painten auslassen - ScTabViewShell* pViewShell; // zum Connecten von sichtbaren Plug-Ins + ScTabViewShell* pViewShell; // zum Connecten von sichtbaren Plug-Ins // #114135# - FmFormView* pDrawView; // SdrView to paint to + FmFormView* pDrawView; // SdrView to paint to - BOOL bEditMode; // InPlace editierte Zelle - nicht ausgeben + BOOL bEditMode; // InPlace editierte Zelle - nicht ausgeben SCCOL nEditCol; SCROW nEditRow; - BOOL bMetaFile; // Ausgabe auf Metafile (nicht in Pixeln!) - BOOL bSingleGrid; // beim Gitter bChanged auswerten + BOOL bMetaFile; // Ausgabe auf Metafile (nicht in Pixeln!) + BOOL bSingleGrid; // beim Gitter bChanged auswerten - BOOL bPagebreakMode; // Seitenumbruch-Vorschau - BOOL bSolidBackground; // weiss statt transparent + BOOL bPagebreakMode; // Seitenumbruch-Vorschau + BOOL bSolidBackground; // weiss statt transparent BOOL bUseStyleColor; BOOL bForceAutoColor; - BOOL bSyntaxMode; // Syntax-Highlighting + BOOL bSyntaxMode; // Syntax-Highlighting Color* pValueColor; Color* pTextColor; Color* pFormulaColor; - Color aGridColor; + Color aGridColor; - BOOL bShowNullValues; - BOOL bShowFormulas; - BOOL bShowSpellErrors; // Spell-Errors in EditObjekten anzeigen - BOOL bMarkClipped; + BOOL bShowNullValues; + BOOL bShowFormulas; + BOOL bShowSpellErrors; // Spell-Errors in EditObjekten anzeigen + BOOL bMarkClipped; - BOOL bSnapPixel; + BOOL bSnapPixel; - BOOL bAnyRotated; // intern - BOOL bAnyClipped; // intern - BOOL bTabProtected; - BYTE nTabTextDirection; // EEHorizontalTextDirection values - BOOL bLayoutRTL; + BOOL bAnyRotated; // intern + BOOL bAnyClipped; // intern + BOOL bTabProtected; + BYTE nTabTextDirection; // EEHorizontalTextDirection values + BOOL bLayoutRTL; // #i74769# use SdrPaintWindow direct, remember it during BeginDrawLayers/EndDrawLayers - SdrPaintWindow* mpTargetPaintWindow; + SdrPaintWindow* mpTargetPaintWindow; // private methods - BOOL GetMergeOrigin( SCCOL nX, SCROW nY, SCSIZE nArrY, + BOOL GetMergeOrigin( SCCOL nX, SCROW nY, SCSIZE nArrY, SCCOL& rOverX, SCROW& rOverY, BOOL bVisRowChanged ); - BOOL IsEmptyCellText( RowInfo* pThisRowInfo, SCCOL nX, SCROW nY ); - void GetVisibleCell( SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell*& rpCell ); + BOOL IsEmptyCellText( RowInfo* pThisRowInfo, SCCOL nX, SCROW nY ); + void GetVisibleCell( SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell*& rpCell ); - BOOL IsAvailable( SCCOL nX, SCROW nY ); + BOOL IsAvailable( SCCOL nX, SCROW nY ); - void GetOutputArea( SCCOL nX, SCSIZE nArrY, long nPosX, long nPosY, + void GetOutputArea( SCCOL nX, SCSIZE nArrY, long nPosX, long nPosY, SCCOL nCellX, SCROW nCellY, long nNeeded, const ScPatternAttr& rPattern, USHORT nHorJustify, bool bCellIsValue, @@ -175,12 +175,12 @@ private: long& rEngineWidth, long& rEngineHeight, long& rNeededPixel, bool& rLeftClip, bool& rRightClip ); - void SetSyntaxColor( Font* pFont, ScBaseCell* pCell ); - void SetEditSyntaxColor( EditEngine& rEngine, ScBaseCell* pCell ); + void SetSyntaxColor( Font* pFont, ScBaseCell* pCell ); + void SetEditSyntaxColor( EditEngine& rEngine, ScBaseCell* pCell ); - double GetStretch(); + double GetStretch(); - void DrawRotatedFrame( const Color* pForceColor ); // pixel + void DrawRotatedFrame( const Color* pForceColor ); // pixel public: ScOutputData( OutputDevice* pNewDev, ScOutputType eNewType, @@ -195,46 +195,46 @@ public: void SetContentDevice( OutputDevice* pContentDev ); - void SetRefDevice( OutputDevice* pRDev ) { pRefDevice = pFmtDevice = pRDev; } - void SetFmtDevice( OutputDevice* pRDev ) { pFmtDevice = pRDev; } - void SetEditObject( SdrObject* pObj ) { pEditObj = pObj; } - void SetViewShell( ScTabViewShell* pSh ) { pViewShell = pSh; } + void SetRefDevice( OutputDevice* pRDev ) { pRefDevice = pFmtDevice = pRDev; } + void SetFmtDevice( OutputDevice* pRDev ) { pFmtDevice = pRDev; } + void SetEditObject( SdrObject* pObj ) { pEditObj = pObj; } + void SetViewShell( ScTabViewShell* pSh ) { pViewShell = pSh; } // #114135# - void SetDrawView( FmFormView* pNew ) { pDrawView = pNew; } - - void SetSolidBackground( BOOL bSet ) { bSolidBackground = bSet; } - void SetUseStyleColor( BOOL bSet ) { bUseStyleColor = bSet; } - - void SetEditCell( SCCOL nCol, SCROW nRow ); - void SetSyntaxMode( BOOL bNewMode ); - void SetMetaFileMode( BOOL bNewMode ); - void SetSingleGrid( BOOL bNewMode ); - void SetGridColor( const Color& rColor ); - void SetMarkClipped( BOOL bSet ); - void SetShowNullValues ( BOOL bSet = TRUE ); - void SetShowFormulas ( BOOL bSet = TRUE ); - void SetShowSpellErrors( BOOL bSet = TRUE ); - void SetMirrorWidth( long nNew ); - long GetScrW() const { return nScrW; } - long GetScrH() const { return nScrH; } - - void SetSnapPixel( BOOL bSet = TRUE ); - - void DrawGrid( BOOL bGrid, BOOL bPage ); - void DrawStrings( BOOL bPixelToLogic = FALSE ); - void DrawBackground(); - void DrawShadow(); - void DrawExtraShadow(BOOL bLeft, BOOL bTop, BOOL bRight, BOOL bBottom); - void DrawFrame(); + void SetDrawView( FmFormView* pNew ) { pDrawView = pNew; } + + void SetSolidBackground( BOOL bSet ) { bSolidBackground = bSet; } + void SetUseStyleColor( BOOL bSet ) { bUseStyleColor = bSet; } + + void SetEditCell( SCCOL nCol, SCROW nRow ); + void SetSyntaxMode( BOOL bNewMode ); + void SetMetaFileMode( BOOL bNewMode ); + void SetSingleGrid( BOOL bNewMode ); + void SetGridColor( const Color& rColor ); + void SetMarkClipped( BOOL bSet ); + void SetShowNullValues ( BOOL bSet = TRUE ); + void SetShowFormulas ( BOOL bSet = TRUE ); + void SetShowSpellErrors( BOOL bSet = TRUE ); + void SetMirrorWidth( long nNew ); + long GetScrW() const { return nScrW; } + long GetScrH() const { return nScrH; } + + void SetSnapPixel( BOOL bSet = TRUE ); + + void DrawGrid( BOOL bGrid, BOOL bPage ); + void DrawStrings( BOOL bPixelToLogic = FALSE ); + void DrawBackground(); + void DrawShadow(); + void DrawExtraShadow(BOOL bLeft, BOOL bTop, BOOL bRight, BOOL bBottom); + void DrawFrame(); // with logic MapMode set! - void DrawEdit(BOOL bPixelToLogic); + void DrawEdit(BOOL bPixelToLogic); - void FindRotated(); - void DrawRotated(BOOL bPixelToLogic); // logisch + void FindRotated(); + void DrawRotated(BOOL bPixelToLogic); // logisch - void DrawClear(); + void DrawClear(); // #i72502# printer only command set Point PrePrintDrawingLayer(long nLogStX, long nLogStY ); @@ -242,27 +242,27 @@ public: void PrintDrawingLayer(const sal_uInt16 nLayer, const Point& rMMOffset); // nur Bildschirm: - void DrawingSingle(const sal_uInt16 nLayer); - void DrawSelectiveObjects(const sal_uInt16 nLayer); + void DrawingSingle(const sal_uInt16 nLayer); + void DrawSelectiveObjects(const sal_uInt16 nLayer); - BOOL SetChangedClip(); // FALSE = nix + BOOL SetChangedClip(); // FALSE = nix PolyPolygon GetChangedArea(); - void FindChanged(); - void SetPagebreakMode( ScPageBreakData* pPageData ); + void FindChanged(); + void SetPagebreakMode( ScPageBreakData* pPageData ); #ifdef OLD_SELECTION_PAINT void DrawMark( Window* pWin ); -#endif - void DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY, +#endif + void DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY, SCCOL nRefEndX, SCROW nRefEndY, const Color& rColor, BOOL bHandle ); - void DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY, + void DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY, SCCOL nRefEndX, SCROW nRefEndY, const Color& rColor, USHORT nType ); - void DrawChangeTrack(); - void DrawClipMarks(); + void DrawChangeTrack(); + void DrawClipMarks(); - void DrawNoteMarks(); + void DrawNoteMarks(); void AddPDFNotes(); }; diff --git a/sc/source/ui/inc/pagedata.hxx b/sc/source/ui/inc/pagedata.hxx index bcd85c8f5a96..1fa4abb190f4 100644 --- a/sc/source/ui/inc/pagedata.hxx +++ b/sc/source/ui/inc/pagedata.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,55 +38,55 @@ class ScDocShell; class ScPrintRangeData { private: - ScRange aPrintRange; - size_t nPagesX; - SCCOL* pPageEndX; - size_t nPagesY; - SCROW* pPageEndY; - long nFirstPage; - BOOL bTopDown; - BOOL bAutomatic; + ScRange aPrintRange; + size_t nPagesX; + SCCOL* pPageEndX; + size_t nPagesY; + SCROW* pPageEndY; + long nFirstPage; + BOOL bTopDown; + BOOL bAutomatic; public: ScPrintRangeData(); ~ScPrintRangeData(); - void SetPrintRange( const ScRange& rNew ) { aPrintRange = rNew; } - const ScRange& GetPrintRange() const { return aPrintRange; } + void SetPrintRange( const ScRange& rNew ) { aPrintRange = rNew; } + const ScRange& GetPrintRange() const { return aPrintRange; } - void SetPagesX( size_t nCount, const SCCOL* pEnd ); - void SetPagesY( size_t nCount, const SCROW* pEnd ); + void SetPagesX( size_t nCount, const SCCOL* pEnd ); + void SetPagesY( size_t nCount, const SCROW* pEnd ); - size_t GetPagesX() const { return nPagesX; } - const SCCOL* GetPageEndX() const { return pPageEndX; } - size_t GetPagesY() const { return nPagesY; } - const SCROW* GetPageEndY() const { return pPageEndY; } + size_t GetPagesX() const { return nPagesX; } + const SCCOL* GetPageEndX() const { return pPageEndX; } + size_t GetPagesY() const { return nPagesY; } + const SCROW* GetPageEndY() const { return pPageEndY; } - void SetFirstPage( long nNew ) { nFirstPage = nNew; } - long GetFirstPage() const { return nFirstPage; } - void SetTopDown( BOOL bSet ) { bTopDown = bSet; } - BOOL IsTopDown() const { return bTopDown; } - void SetAutomatic( BOOL bSet ) { bAutomatic = bSet; } - BOOL IsAutomatic() const { return bAutomatic; } + void SetFirstPage( long nNew ) { nFirstPage = nNew; } + long GetFirstPage() const { return nFirstPage; } + void SetTopDown( BOOL bSet ) { bTopDown = bSet; } + BOOL IsTopDown() const { return bTopDown; } + void SetAutomatic( BOOL bSet ) { bAutomatic = bSet; } + BOOL IsAutomatic() const { return bAutomatic; } }; class ScPageBreakData { private: - size_t nAlloc; - size_t nUsed; - ScPrintRangeData* pData; // Array + size_t nAlloc; + size_t nUsed; + ScPrintRangeData* pData; // Array public: ScPageBreakData(size_t nMax); ~ScPageBreakData(); - size_t GetCount() const { return nUsed; } - ScPrintRangeData& GetData(size_t i); + size_t GetCount() const { return nUsed; } + ScPrintRangeData& GetData(size_t i); - BOOL IsEqual( const ScPageBreakData& rOther ) const; + BOOL IsEqual( const ScPageBreakData& rOther ) const; - void AddPages(); + void AddPages(); }; diff --git a/sc/source/ui/inc/parawin.hxx b/sc/source/ui/inc/parawin.hxx index ae02fdb38114..74324bb95dca 100644 --- a/sc/source/ui/inc/parawin.hxx +++ b/sc/source/ui/inc/parawin.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,7 +29,7 @@ #define SC_PARAWIN_HXX #include "funcutl.hxx" -#include "global.hxx" // ScAddress +#include "global.hxx" // ScAddress #include <svtools/stdctrl.hxx> #ifndef _LSTBOX_HXX //autogen #include <vcl/lstbox.hxx> @@ -51,53 +51,53 @@ class ScFuncDesc; //============================================================================ -#define NOT_FOUND 0xffff +#define NOT_FOUND 0xffff //============================================================================ class ScParaWin : public TabPage { private: - Link aScrollLink; - Link aFxLink; - Link aArgModifiedLink; + Link aScrollLink; + Link aFxLink; + Link aArgModifiedLink; ::std::vector<USHORT> aVisibleArgMapping; - const ScFuncDesc* pFuncDesc; - ScAnyRefDlg* pMyParent; - USHORT nArgs; // unsuppressed arguments - Font aFntBold; - Font aFntLight; - - FixedInfo aFtEditDesc; - FixedText aFtArgName; - FixedInfo aFtArgDesc; - - ImageButton aBtnFx1; - FixedText aFtArg1; - ArgEdit aEdArg1; - formula::RefButton aRefBtn1; - ImageButton aBtnFx2; - FixedText aFtArg2; - ArgEdit aEdArg2; - formula::RefButton aRefBtn2; - ImageButton aBtnFx3; - FixedText aFtArg3; - ArgEdit aEdArg3; - formula::RefButton aRefBtn3; - ImageButton aBtnFx4; - FixedText aFtArg4; - ArgEdit aEdArg4; - formula::RefButton aRefBtn4; - ScrollBar aSlider; - BOOL bRefMode; - - USHORT nEdFocus; - USHORT nActiveLine; - - ArgInput aArgInput[4]; - String aDefaultString; - SvStrings aParaArray; + const ScFuncDesc* pFuncDesc; + ScAnyRefDlg* pMyParent; + USHORT nArgs; // unsuppressed arguments + Font aFntBold; + Font aFntLight; + + FixedInfo aFtEditDesc; + FixedText aFtArgName; + FixedInfo aFtArgDesc; + + ImageButton aBtnFx1; + FixedText aFtArg1; + ArgEdit aEdArg1; + formula::RefButton aRefBtn1; + ImageButton aBtnFx2; + FixedText aFtArg2; + ArgEdit aEdArg2; + formula::RefButton aRefBtn2; + ImageButton aBtnFx3; + FixedText aFtArg3; + ArgEdit aEdArg3; + formula::RefButton aRefBtn3; + ImageButton aBtnFx4; + FixedText aFtArg4; + ArgEdit aEdArg4; + formula::RefButton aRefBtn4; + ScrollBar aSlider; + BOOL bRefMode; + + USHORT nEdFocus; + USHORT nActiveLine; + + ArgInput aArgInput[4]; + String aDefaultString; + SvStrings aParaArray; DECL_LINK( ScrollHdl, ScrollBar* ); DECL_LINK( ModifyHdl, ArgInput* ); DECL_LINK( GetEdFocusHdl, ArgInput* ); @@ -106,52 +106,52 @@ private: protected: - virtual void SliderMoved(); - virtual void ArgumentModified(); - virtual void FxClick(); + virtual void SliderMoved(); + virtual void ArgumentModified(); + virtual void FxClick(); - void InitArgInput( USHORT nPos, FixedText& rFtArg, ImageButton& rBtnFx, + void InitArgInput( USHORT nPos, FixedText& rFtArg, ImageButton& rBtnFx, ArgEdit& rEdArg, formula::RefButton& rRefBtn); - void DelParaArray(); - void SetArgumentDesc(const String& aText); - void SetArgumentText(const String& aText); + void DelParaArray(); + void SetArgumentDesc(const String& aText); + void SetArgumentText(const String& aText); - void SetArgName (USHORT no,const String &aArg); - void SetArgNameFont (USHORT no,const Font&); - void SetArgVal (USHORT no,const String &aArg); + void SetArgName (USHORT no,const String &aArg); + void SetArgNameFont (USHORT no,const Font&); + void SetArgVal (USHORT no,const String &aArg); - void HideParaLine(USHORT no); - void ShowParaLine(USHORT no); - void UpdateArgDesc( USHORT nArg ); - void UpdateArgInput( USHORT nOffset, USHORT i ); + void HideParaLine(USHORT no); + void ShowParaLine(USHORT no); + void UpdateArgDesc( USHORT nArg ); + void UpdateArgInput( USHORT nOffset, USHORT i ); public: ScParaWin(ScAnyRefDlg* pParent,Point aPos); ~ScParaWin(); - void SetFunctionDesc(const ScFuncDesc* pFDesc); - void SetArgumentOffset(USHORT nOffset); - void SetEditDesc(const String& aText); - void UpdateParas(); - void ClearAll(); + void SetFunctionDesc(const ScFuncDesc* pFDesc); + void SetArgumentOffset(USHORT nOffset); + void SetEditDesc(const String& aText); + void UpdateParas(); + void ClearAll(); - BOOL IsRefMode() {return bRefMode;} - void SetRefMode(BOOL bFlag) {bRefMode=bFlag;} + BOOL IsRefMode() {return bRefMode;} + void SetRefMode(BOOL bFlag) {bRefMode=bFlag;} - USHORT GetActiveLine(); - void SetActiveLine(USHORT no); - formula::RefEdit* GetActiveEdit(); - String GetActiveArgName(); + USHORT GetActiveLine(); + void SetActiveLine(USHORT no); + formula::RefEdit* GetActiveEdit(); + String GetActiveArgName(); - String GetArgument(USHORT no); - void SetArgument(USHORT no, const String& aString); - void SetArgumentFonts(const Font&aBoldFont,const Font&aLightFont); + String GetArgument(USHORT no); + void SetArgument(USHORT no, const String& aString); + void SetArgumentFonts(const Font&aBoldFont,const Font&aLightFont); - void SetEdFocus(USHORT nEditLine); //Sichtbare Editzeilen - USHORT GetSliderPos(); - void SetSliderPos(USHORT nSliderPos); + void SetEdFocus(USHORT nEditLine); //Sichtbare Editzeilen + USHORT GetSliderPos(); + void SetSliderPos(USHORT nSliderPos); void SetScrollHdl( const Link& rLink ) { aScrollLink = rLink; } const Link& GetScrollHdl() const { return aScrollLink; } diff --git a/sc/source/ui/inc/pfiltdlg.hxx b/sc/source/ui/inc/pfiltdlg.hxx index 426f95399b33..096bb53d9b76 100644 --- a/sc/source/ui/inc/pfiltdlg.hxx +++ b/sc/source/ui/inc/pfiltdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -66,77 +66,77 @@ class ScPivotFilterDlg : public ModalDialog { public: ScPivotFilterDlg( Window* pParent, - const SfxItemSet& rArgSet, SCTAB nSourceTab ); + const SfxItemSet& rArgSet, SCTAB nSourceTab ); ~ScPivotFilterDlg(); - const ScQueryItem& GetOutputItem(); + const ScQueryItem& GetOutputItem(); private: FixedLine aFlCriteria; //---------------------------- - ListBox aLbField1; - ListBox aLbCond1; - ComboBox aEdVal1; + ListBox aLbField1; + ListBox aLbCond1; + ComboBox aEdVal1; //---------------------------- - ListBox aLbConnect1; - ListBox aLbField2; - ListBox aLbCond2; - ComboBox aEdVal2; + ListBox aLbConnect1; + ListBox aLbField2; + ListBox aLbCond2; + ComboBox aEdVal2; //---------------------------- - ListBox aLbConnect2; - ListBox aLbField3; - ListBox aLbCond3; - ComboBox aEdVal3; + ListBox aLbConnect2; + ListBox aLbField3; + ListBox aLbCond3; + ComboBox aEdVal3; //---------------------------- - FixedText aFtConnect; - FixedText aFtField; - FixedText aFtCond; - FixedText aFtVal; + FixedText aFtConnect; + FixedText aFtField; + FixedText aFtCond; + FixedText aFtVal; FixedLine aFlOptions; - CheckBox aBtnCase; - CheckBox aBtnRegExp; - CheckBox aBtnUnique; - FixedText aFtDbAreaLabel; - FixedInfo aFtDbArea; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - MoreButton aBtnMore; - const String aStrUndefined; - const String aStrNoName; - const String aStrNone; - const String aStrEmpty; - const String aStrNotEmpty; - const String aStrRow; - const String aStrColumn; - - const USHORT nWhichQuery; - const ScQueryParam theQueryData; - ScQueryItem* pOutItem; - ScViewData* pViewData; - ScDocument* pDoc; - SCTAB nSrcTab; - - USHORT nFieldCount; - ComboBox* aValueEdArr[3]; - ListBox* aFieldLbArr[3]; - ListBox* aCondLbArr[3]; - - TypedScStrCollection* pEntryLists[MAXCOLCOUNT]; + CheckBox aBtnCase; + CheckBox aBtnRegExp; + CheckBox aBtnUnique; + FixedText aFtDbAreaLabel; + FixedInfo aFtDbArea; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + MoreButton aBtnMore; + const String aStrUndefined; + const String aStrNoName; + const String aStrNone; + const String aStrEmpty; + const String aStrNotEmpty; + const String aStrRow; + const String aStrColumn; + + const USHORT nWhichQuery; + const ScQueryParam theQueryData; + ScQueryItem* pOutItem; + ScViewData* pViewData; + ScDocument* pDoc; + SCTAB nSrcTab; + + USHORT nFieldCount; + ComboBox* aValueEdArr[3]; + ListBox* aFieldLbArr[3]; + ListBox* aCondLbArr[3]; + + TypedScStrCollection* pEntryLists[MAXCOLCOUNT]; #ifdef _PFILTDLG_CXX private: - void Init ( const SfxItemSet& rArgSet ); - void FillFieldLists (); - void UpdateValueList ( USHORT nList ); - void ClearValueList ( USHORT nList ); - USHORT GetFieldSelPos ( SCCOL nField ); + void Init ( const SfxItemSet& rArgSet ); + void FillFieldLists (); + void UpdateValueList ( USHORT nList ); + void ClearValueList ( USHORT nList ); + USHORT GetFieldSelPos ( SCCOL nField ); // Handler: DECL_LINK( LbSelectHdl, ListBox* ); DECL_LINK( ValModifyHdl, ComboBox* ); - DECL_LINK( CheckBoxHdl, CheckBox* ); + DECL_LINK( CheckBoxHdl, CheckBox* ); #endif }; diff --git a/sc/source/ui/inc/pfuncache.hxx b/sc/source/ui/inc/pfuncache.hxx index 365df0acc38b..bf26bf08550f 100644 --- a/sc/source/ui/inc/pfuncache.hxx +++ b/sc/source/ui/inc/pfuncache.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,19 +54,19 @@ enum ScPrintSelectionMode class ScPrintSelectionStatus { - ScPrintSelectionMode eMode; - ScRangeList aRanges; + ScPrintSelectionMode eMode; + ScRangeList aRanges; ScPrintOptions aOptions; public: ScPrintSelectionStatus() : eMode(SC_PRINTSEL_INVALID) {} ~ScPrintSelectionStatus() {} - void SetMode(ScPrintSelectionMode eNew) { eMode = eNew; } - void SetRanges(const ScRangeList& rNew) { aRanges = rNew; } + void SetMode(ScPrintSelectionMode eNew) { eMode = eNew; } + void SetRanges(const ScRangeList& rNew) { aRanges = rNew; } void SetOptions(const ScPrintOptions& rNew) { aOptions = rNew; } - BOOL operator==(const ScPrintSelectionStatus& rOther) const + BOOL operator==(const ScPrintSelectionStatus& rOther) const { return eMode == rOther.eMode && aRanges == rOther.aRanges && aOptions == rOther.aOptions; } ScPrintSelectionMode GetMode() const { return eMode; } @@ -96,11 +96,11 @@ struct ScPrintPageLocation class ScPrintFuncCache { - ScPrintSelectionStatus aSelection; - ScDocShell* pDocSh; - long nTotalPages; - long nPages[MAXTABCOUNT]; - long nFirstAttr[MAXTABCOUNT]; + ScPrintSelectionStatus aSelection; + ScDocShell* pDocSh; + long nTotalPages; + long nPages[MAXTABCOUNT]; + long nFirstAttr[MAXTABCOUNT]; std::vector<ScPrintPageLocation> aLocations; bool bLocInitialized; @@ -109,16 +109,16 @@ public: const ScPrintSelectionStatus& rStatus ); ~ScPrintFuncCache(); - BOOL IsSameSelection( const ScPrintSelectionStatus& rStatus ) const; + BOOL IsSameSelection( const ScPrintSelectionStatus& rStatus ) const; void InitLocations( const ScMarkData& rMark, OutputDevice* pDev ); bool FindLocation( const ScAddress& rCell, ScPrintPageLocation& rLocation ) const; - long GetPageCount() const { return nTotalPages; } - long GetFirstAttr( SCTAB nTab ) const { return nFirstAttr[nTab]; } - SCTAB GetTabForPage( long nPage ) const; - long GetTabStart( SCTAB nTab ) const; - long GetDisplayStart( SCTAB nTab ) const; + long GetPageCount() const { return nTotalPages; } + long GetFirstAttr( SCTAB nTab ) const { return nFirstAttr[nTab]; } + SCTAB GetTabForPage( long nPage ) const; + long GetTabStart( SCTAB nTab ) const; + long GetDisplayStart( SCTAB nTab ) const; }; #endif diff --git a/sc/source/ui/inc/pgbrksh.hxx b/sc/source/ui/inc/pgbrksh.hxx index f367b4cc4f1f..2ad74275b9d5 100644 --- a/sc/source/ui/inc/pgbrksh.hxx +++ b/sc/source/ui/inc/pgbrksh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/pivotsh.hxx b/sc/source/ui/inc/pivotsh.hxx index 2d3a21fa9756..1e89bba78506 100644 --- a/sc/source/ui/inc/pivotsh.hxx +++ b/sc/source/ui/inc/pivotsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,11 +45,11 @@ public: ScPivotShell( ScTabViewShell* pView ); ~ScPivotShell(); - void Execute ( SfxRequest& rReq ); - void GetState( SfxItemSet& rSet ); + void Execute ( SfxRequest& rReq ); + void GetState( SfxItemSet& rSet ); private: - ScTabViewShell* pViewShell; + ScTabViewShell* pViewShell; ScDPObject* GetCurrDPObject(); }; diff --git a/sc/source/ui/inc/pntlock.hxx b/sc/source/ui/inc/pntlock.hxx index 60a7502c9734..11afb42fb6a9 100644 --- a/sc/source/ui/inc/pntlock.hxx +++ b/sc/source/ui/inc/pntlock.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,33 +33,33 @@ class ScPaintLockData { private: - ScRangeListRef xRangeList; - USHORT nMode; - USHORT nLevel; - USHORT nDocLevel; - USHORT nParts; - BOOL bModified; + ScRangeListRef xRangeList; + USHORT nMode; + USHORT nLevel; + USHORT nDocLevel; + USHORT nParts; + BOOL bModified; public: ScPaintLockData(USHORT nNewMode); ~ScPaintLockData(); - void AddRange( const ScRange& rRange, USHORT nP ); + void AddRange( const ScRange& rRange, USHORT nP ); - void SetModified() { bModified = TRUE; } - void IncLevel(sal_Bool bDoc) + void SetModified() { bModified = TRUE; } + void IncLevel(sal_Bool bDoc) { if (bDoc) ++nDocLevel; else ++nLevel; } - void DecLevel(sal_Bool bDoc) + void DecLevel(sal_Bool bDoc) { if (bDoc) --nDocLevel; else --nLevel; } - const ScRangeListRef& GetRangeList() const { return xRangeList; } - USHORT GetParts() const { return nParts; } - USHORT GetLevel(sal_Bool bDoc) const + const ScRangeListRef& GetRangeList() const { return xRangeList; } + USHORT GetParts() const { return nParts; } + USHORT GetLevel(sal_Bool bDoc) const { return bDoc ? nDocLevel : nLevel; } - BOOL GetModified() const { return bModified; } + BOOL GetModified() const { return bModified; } // fuer Wiederherstellen nach Reset - void SetLevel(USHORT nNew, sal_Bool bDoc) + void SetLevel(USHORT nNew, sal_Bool bDoc) { if (bDoc) nDocLevel = nNew; else nLevel = nNew; } }; diff --git a/sc/source/ui/inc/popmenu.hxx b/sc/source/ui/inc/popmenu.hxx index 8ac0fba4e80d..e4c611f520da 100644 --- a/sc/source/ui/inc/popmenu.hxx +++ b/sc/source/ui/inc/popmenu.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,15 +36,15 @@ class SC_DLLPUBLIC ScPopupMenu : public PopupMenu { private: - USHORT nSel; - BOOL bHit; + USHORT nSel; + BOOL bHit; protected: virtual void Select(); public: ScPopupMenu() : nSel(0),bHit(FALSE) {} ScPopupMenu(const ResId& rRes) : PopupMenu(rRes),nSel(0),bHit(FALSE) {} - USHORT GetSelected() const { return nSel; } - BOOL WasHit() const { return bHit; } + USHORT GetSelected() const { return nSel; } + BOOL WasHit() const { return bHit; } }; diff --git a/sc/source/ui/inc/preview.hxx b/sc/source/ui/inc/preview.hxx index 87d15dcdaf86..51370b605dc6 100644 --- a/sc/source/ui/inc/preview.hxx +++ b/sc/source/ui/inc/preview.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,7 +29,7 @@ #include <vcl/window.hxx> -#include "printfun.hxx" // ScPrintState +#include "printfun.hxx" // ScPrintState class ScDocShell; class ScPreviewShell; @@ -39,35 +39,35 @@ class ScPreview : public Window { private: // eingestellt: - long nPageNo; // Seite im Dokument - USHORT nZoom; // eingestellter Zoom - Point aOffset; // positiv + long nPageNo; // Seite im Dokument + USHORT nZoom; // eingestellter Zoom + Point aOffset; // positiv // berechnet: - BOOL bValid; // folgende Werte gueltig - SCTAB nTabCount; - SCTAB nTabsTested; // fuer wieviele Tabellen ist nPages gueltig? - long nPages[MAXTABCOUNT]; - long nFirstAttr[MAXTABCOUNT]; - SCTAB nTab; // Tabelle - long nTabPage; // Seite von Tabelle - long nTabStart; // erste Seite der Tabelle (wirklich) - long nDisplayStart; // dito, relativ zum Anfang der Zaehlung - Date aDate; - Time aTime; - long nTotalPages; - Size aPageSize; // fuer GetOptimalZoom - BOOL bStateValid; - BOOL bLocationValid; - ScPrintState aState; - ScPreviewLocationData* pLocationData; // stores table layout for accessibility API - FmFormView* pDrawView; + BOOL bValid; // folgende Werte gueltig + SCTAB nTabCount; + SCTAB nTabsTested; // fuer wieviele Tabellen ist nPages gueltig? + long nPages[MAXTABCOUNT]; + long nFirstAttr[MAXTABCOUNT]; + SCTAB nTab; // Tabelle + long nTabPage; // Seite von Tabelle + long nTabStart; // erste Seite der Tabelle (wirklich) + long nDisplayStart; // dito, relativ zum Anfang der Zaehlung + Date aDate; + Time aTime; + long nTotalPages; + Size aPageSize; // fuer GetOptimalZoom + BOOL bStateValid; + BOOL bLocationValid; + ScPrintState aState; + ScPreviewLocationData* pLocationData; // stores table layout for accessibility API + FmFormView* pDrawView; // intern: - BOOL bInPaint; - BOOL bInGetState; - ScDocShell* pDocShell; - ScPreviewShell* pViewShell; + BOOL bInPaint; + BOOL bInGetState; + ScDocShell* pDocShell; + ScPreviewShell* pViewShell; BOOL bLeftRulerMove; BOOL bRightRulerMove; @@ -75,7 +75,7 @@ private: BOOL bBottomRulerMove; BOOL bHeaderRulerMove; BOOL bFooterRulerMove; - + BOOL bLeftRulerChange; BOOL bRightRulerChange; BOOL bTopRulerChange; @@ -95,13 +95,13 @@ private: long nHeaderHeight; long nFooterHeight; - void TestLastPage(); - void CalcPages( SCTAB nToWhichTab ); - void RecalcPages(); - void UpdateDrawView(); - void DoPrint( ScPreviewLocationData* pFillLocation ); + void TestLastPage(); + void CalcPages( SCTAB nToWhichTab ); + void RecalcPages(); + void UpdateDrawView(); + void DoPrint( ScPreviewLocationData* pFillLocation ); - void InvalidateLocationData( ULONG nId ); + void InvalidateLocationData( ULONG nId ); using Window::SetZoom; @@ -124,13 +124,13 @@ public: virtual void DataChanged( const DataChangedEvent& rDCEvt ); - void DataChanged(BOOL bNewTime = FALSE); // statt Invalidate rufen - void DoInvalidate(); + void DataChanged(BOOL bNewTime = FALSE); // statt Invalidate rufen + void DoInvalidate(); - void SetXOffset( long nX ); - void SetYOffset( long nY ); - void SetZoom(USHORT nNewZoom); - void SetPageNo( long nPage ); + void SetXOffset( long nX ); + void SetYOffset( long nY ); + void SetZoom(USHORT nNewZoom); + void SetPageNo( long nPage ); BOOL GetPageMargins()const { return bPageMargin; } void SetPageMargins( BOOL bVal ) { bPageMargin = bVal; } @@ -140,22 +140,22 @@ public: const ScPreviewLocationData& GetLocationData(); - String GetPosString(); + String GetPosString(); - long GetPageNo() const { return nPageNo; } - USHORT GetZoom() const { return nZoom; } - Point GetOffset() const { return aOffset; } + long GetPageNo() const { return nPageNo; } + USHORT GetZoom() const { return nZoom; } + Point GetOffset() const { return aOffset; } - SCTAB GetTab() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTab; } - long GetTotalPages() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTotalPages; } + SCTAB GetTab() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTab; } + long GetTotalPages() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTotalPages; } - BOOL AllTested() const { return bValid && nTabsTested >= nTabCount; } + BOOL AllTested() const { return bValid && nTabsTested >= nTabCount; } - USHORT GetOptimalZoom(BOOL bWidthOnly); - long GetFirstPage(SCTAB nTab); + USHORT GetOptimalZoom(BOOL bWidthOnly); + long GetFirstPage(SCTAB nTab); - void CalcAll() { CalcPages(MAXTAB); } - void SetInGetState(BOOL bSet) { bInGetState = bSet; } + void CalcAll() { CalcPages(MAXTAB); } + void SetInGetState(BOOL bSet) { bInGetState = bSet; } DECL_STATIC_LINK( ScPreview, InvalidateHdl, void* ); static void StaticInvalidate(); diff --git a/sc/source/ui/inc/prevloc.hxx b/sc/source/ui/inc/prevloc.hxx index 15b477abad3c..1e34d96d7aa2 100644 --- a/sc/source/ui/inc/prevloc.hxx +++ b/sc/source/ui/inc/prevloc.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,7 +34,7 @@ #include <sal/types.h> -#define SC_PREVIEW_MAXRANGES 4 +#define SC_PREVIEW_MAXRANGES 4 #define SC_PREVIEW_RANGE_EDGE 0 #define SC_PREVIEW_RANGE_REPCOL 1 #define SC_PREVIEW_RANGE_REPROW 2 @@ -50,10 +50,10 @@ class ScDocument; struct ScPreviewColRowInfo { - BOOL bIsHeader; + BOOL bIsHeader; SCCOLROW nDocIndex; - long nPixelStart; - long nPixelEnd; + long nPixelStart; + long nPixelEnd; void Set( BOOL bHeader, SCCOLROW nIndex, long nStart, long nEnd ) { @@ -66,82 +66,82 @@ struct ScPreviewColRowInfo class ScPreviewTableInfo { - SCTAB nTab; - SCCOL nCols; - SCROW nRows; - ScPreviewColRowInfo* pColInfo; - ScPreviewColRowInfo* pRowInfo; + SCTAB nTab; + SCCOL nCols; + SCROW nRows; + ScPreviewColRowInfo* pColInfo; + ScPreviewColRowInfo* pRowInfo; public: ScPreviewTableInfo(); ~ScPreviewTableInfo(); - SCTAB GetTab() const { return nTab; } - SCCOL GetCols() const { return nCols; } - SCROW GetRows() const { return nRows; } - const ScPreviewColRowInfo* GetColInfo() const { return pColInfo; } - const ScPreviewColRowInfo* GetRowInfo() const { return pRowInfo; } + SCTAB GetTab() const { return nTab; } + SCCOL GetCols() const { return nCols; } + SCROW GetRows() const { return nRows; } + const ScPreviewColRowInfo* GetColInfo() const { return pColInfo; } + const ScPreviewColRowInfo* GetRowInfo() const { return pRowInfo; } - void SetTab( SCTAB nNewTab ); - void SetColInfo( SCCOL nCount, ScPreviewColRowInfo* pNewInfo ); - void SetRowInfo( SCROW nCount, ScPreviewColRowInfo* pNewInfo ); - void LimitToArea( const Rectangle& rPixelArea ); + void SetTab( SCTAB nNewTab ); + void SetColInfo( SCCOL nCount, ScPreviewColRowInfo* pNewInfo ); + void SetRowInfo( SCROW nCount, ScPreviewColRowInfo* pNewInfo ); + void LimitToArea( const Rectangle& rPixelArea ); }; class ScPreviewLocationData { OutputDevice* pWindow; - ScDocument* pDoc; - MapMode aCellMapMode; - MapMode aDrawMapMode[SC_PREVIEW_MAXRANGES]; - Rectangle aDrawRectangle[SC_PREVIEW_MAXRANGES]; - sal_uInt8 aDrawRangeId[SC_PREVIEW_MAXRANGES]; - USHORT nDrawRanges; - SCTAB nPrintTab; - List aEntries; - -//UNUSED2008-05 ScAddress GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const; - Rectangle GetOffsetPixel( const ScAddress& rCellPos, const ScRange& rRange ) const; + ScDocument* pDoc; + MapMode aCellMapMode; + MapMode aDrawMapMode[SC_PREVIEW_MAXRANGES]; + Rectangle aDrawRectangle[SC_PREVIEW_MAXRANGES]; + sal_uInt8 aDrawRangeId[SC_PREVIEW_MAXRANGES]; + USHORT nDrawRanges; + SCTAB nPrintTab; + List aEntries; + +//UNUSED2008-05 ScAddress GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const; + Rectangle GetOffsetPixel( const ScAddress& rCellPos, const ScRange& rRange ) const; public: ScPreviewLocationData( ScDocument* pDocument, OutputDevice* pWin ); ~ScPreviewLocationData(); - void SetCellMapMode( const MapMode& rMapMode ); - void SetPrintTab( SCTAB nNew ); - void Clear(); - void AddCellRange( const Rectangle& rRect, const ScRange& rRange, BOOL bRepCol, BOOL bRepRow, + void SetCellMapMode( const MapMode& rMapMode ); + void SetPrintTab( SCTAB nNew ); + void Clear(); + void AddCellRange( const Rectangle& rRect, const ScRange& rRange, BOOL bRepCol, BOOL bRepRow, const MapMode& rDrawMap ); - void AddColHeaders( const Rectangle& rRect, SCCOL nStartCol, SCCOL nEndCol, BOOL bRepCol ); - void AddRowHeaders( const Rectangle& rRect, SCROW nStartRow, SCROW nEndRow, BOOL bRepRow ); - void AddHeaderFooter( const Rectangle& rRect, BOOL bHeader, BOOL bLeft ); - void AddNoteMark( const Rectangle& rRect, const ScAddress& rPos ); - void AddNoteText( const Rectangle& rRect, const ScAddress& rPos ); + void AddColHeaders( const Rectangle& rRect, SCCOL nStartCol, SCCOL nEndCol, BOOL bRepCol ); + void AddRowHeaders( const Rectangle& rRect, SCROW nStartRow, SCROW nEndRow, BOOL bRepRow ); + void AddHeaderFooter( const Rectangle& rRect, BOOL bHeader, BOOL bLeft ); + void AddNoteMark( const Rectangle& rRect, const ScAddress& rPos ); + void AddNoteText( const Rectangle& rRect, const ScAddress& rPos ); - SCTAB GetPrintTab() const { return nPrintTab; } + SCTAB GetPrintTab() const { return nPrintTab; } - // Get info on visible columns/rows in the visible area - void GetTableInfo( const Rectangle& rVisiblePixel, ScPreviewTableInfo& rInfo ) const; + // Get info on visible columns/rows in the visible area + void GetTableInfo( const Rectangle& rVisiblePixel, ScPreviewTableInfo& rInfo ) const; - USHORT GetDrawRanges() const { return nDrawRanges; } - void GetDrawRange( USHORT nPos, Rectangle& rPixelRect, MapMode& rMapMode, sal_uInt8& rRangeId ) const; + USHORT GetDrawRanges() const { return nDrawRanges; } + void GetDrawRange( USHORT nPos, Rectangle& rPixelRect, MapMode& rMapMode, sal_uInt8& rRangeId ) const; - BOOL GetHeaderPosition( Rectangle& rHeaderRect ) const; - BOOL GetFooterPosition( Rectangle& rFooterRect ) const; - BOOL IsHeaderLeft() const; - BOOL IsFooterLeft() const; + BOOL GetHeaderPosition( Rectangle& rHeaderRect ) const; + BOOL GetFooterPosition( Rectangle& rFooterRect ) const; + BOOL IsHeaderLeft() const; + BOOL IsFooterLeft() const; - long GetNoteCountInRange( const Rectangle& rVisiblePixel, BOOL bNoteMarks ) const; - BOOL GetNoteInRange( const Rectangle& rVisiblePixel, long nIndex, BOOL bNoteMarks, + long GetNoteCountInRange( const Rectangle& rVisiblePixel, BOOL bNoteMarks ) const; + BOOL GetNoteInRange( const Rectangle& rVisiblePixel, long nIndex, BOOL bNoteMarks, ScAddress& rCellPos, Rectangle& rNoteRect ) const; - Rectangle GetNoteInRangeOutputRect(const Rectangle& rVisiblePixel, BOOL bNoteMarks, + Rectangle GetNoteInRangeOutputRect(const Rectangle& rVisiblePixel, BOOL bNoteMarks, const ScAddress& aCellPos) const; - // Check if any cells (including column/row headers) are in the visible area - BOOL HasCellsInRange( const Rectangle& rVisiblePixel ) const; + // Check if any cells (including column/row headers) are in the visible area + BOOL HasCellsInRange( const Rectangle& rVisiblePixel ) const; - BOOL GetCellPosition( const ScAddress& rCellPos, Rectangle& rCellRect ) const; + BOOL GetCellPosition( const ScAddress& rCellPos, Rectangle& rCellRect ) const; // returns the rectangle where the EditEngine draws the text of a Header Cell // if bColHeader is true it returns the rectangle of the header of the column in rCellPos diff --git a/sc/source/ui/inc/prevwsh.hxx b/sc/source/ui/inc/prevwsh.hxx index 7ff97f8d0152..eb533079a2f6 100644 --- a/sc/source/ui/inc/prevwsh.hxx +++ b/sc/source/ui/inc/prevwsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,40 +49,40 @@ class CommandEvent; class ScPreviewShell: public SfxViewShell { - ScDocShell* pDocShell; + ScDocShell* pDocShell; - ScPreview* pPreview; // Ausgabe-Fenster - ScrollBar* pHorScroll; - ScrollBar* pVerScroll; - Window* pCorner; + ScPreview* pPreview; // Ausgabe-Fenster + ScrollBar* pHorScroll; + ScrollBar* pVerScroll; + Window* pCorner; ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aSourceData; // ViewData - BYTE nSourceDesignMode; // form design mode from TabView - SvxZoomType eZoom; + BYTE nSourceDesignMode; // form design mode from TabView + SvxZoomType eZoom; long nMaxVertPos; - SfxBroadcaster* pAccessibilityBroadcaster; + SfxBroadcaster* pAccessibilityBroadcaster; private: - void Construct( Window* pParent ); + void Construct( Window* pParent ); DECL_LINK(ScrollHandler, ScrollBar* ); - void DoScroll( USHORT nMode ); + void DoScroll( USHORT nMode ); protected: - virtual void Activate(BOOL bMDI); - virtual void Deactivate(BOOL bMDI); + virtual void Activate(BOOL bMDI); + virtual void Deactivate(BOOL bMDI); - virtual void AdjustPosSizePixel( const Point &rPos, const Size &rSize ); + virtual void AdjustPosSizePixel( const Point &rPos, const Size &rSize ); - virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); - virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); + virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); + virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); - virtual Size GetOptimalSizePixel() const; + virtual Size GetOptimalSizePixel() const; virtual String GetDescription() const; - virtual void WriteUserData(String &, BOOL bBrowse = FALSE); - virtual void ReadUserData(const String &, BOOL bBrowse = FALSE); + virtual void WriteUserData(String &, BOOL bBrowse = FALSE); + virtual void ReadUserData(const String &, BOOL bBrowse = FALSE); virtual void WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); virtual void ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); @@ -93,43 +93,43 @@ public: SFX_DECL_INTERFACE(SCID_PREVIEW_SHELL) SFX_DECL_VIEWFACTORY(ScPreviewShell); - ScPreviewShell( SfxViewFrame* pViewFrame, - SfxViewShell* pOldSh ); + ScPreviewShell( SfxViewFrame* pViewFrame, + SfxViewShell* pOldSh ); - virtual ~ScPreviewShell(); + virtual ~ScPreviewShell(); - void InitStartTable(SCTAB nTab); + void InitStartTable(SCTAB nTab); - void UpdateScrollBars(); - BOOL ScrollCommand( const CommandEvent& rCEvt ); + void UpdateScrollBars(); + BOOL ScrollCommand( const CommandEvent& rCEvt ); - void Execute( SfxRequest& rReq ); - void GetState( SfxItemSet& rSet ); + void Execute( SfxRequest& rReq ); + void GetState( SfxItemSet& rSet ); - void FillFieldData( ScHeaderFieldData& rData ); + void FillFieldData( ScHeaderFieldData& rData ); ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue > GetSourceData() const { return aSourceData; } - BYTE GetSourceDesignMode() const { return nSourceDesignMode; } + BYTE GetSourceDesignMode() const { return nSourceDesignMode; } virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE ); + virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE ); virtual USHORT SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false ); - virtual PrintDialog* CreatePrintDialog( Window* pParent ); + virtual PrintDialog* CreatePrintDialog( Window* pParent ); virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, const SfxItemSet &rOptions ); - virtual void PreparePrint( PrintDialog* pPrintDialog = NULL ); + virtual void PreparePrint( PrintDialog* pPrintDialog = NULL ); virtual ErrCode DoPrint( SfxPrinter *pPrinter, PrintDialog *pPrintDialog, BOOL bSilent, BOOL bIsAPI ); virtual USHORT Print( SfxProgress& rProgress, BOOL bIsAPI, PrintDialog* pPrintDialog = NULL ); - void AddAccessibilityObject( SfxListener& rObject ); - void RemoveAccessibilityObject( SfxListener& rObject ); - void BroadcastAccessibility( const SfxHint &rHint ); - BOOL HasAccessibilityObjects(); + void AddAccessibilityObject( SfxListener& rObject ); + void RemoveAccessibilityObject( SfxListener& rObject ); + void BroadcastAccessibility( const SfxHint &rHint ); + BOOL HasAccessibilityObjects(); const ScPreviewLocationData& GetLocationData(); - ScDocument* GetDocument(); - ScPreview* GetPreview() { return pPreview; } + ScDocument* GetDocument(); + ScPreview* GetPreview() { return pPreview; } }; diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx index e3966bdc3d37..a4cb1645f0a9 100644 --- a/sc/source/ui/inc/printfun.hxx +++ b/sc/source/ui/inc/printfun.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,27 +54,27 @@ class SvxBrushItem; class SvxShadowItem; class FmFormView; -#define RANGENO_NORANGE USHRT_MAX +#define RANGENO_NORANGE USHRT_MAX -#define PRINT_HEADER_WIDTH (1.0 * TWIPS_PER_CM) -#define PRINT_HEADER_HEIGHT (12.8 * TWIPS_PER_POINT) -#define PRINT_HEADER_FONTHEIGHT 200 +#define PRINT_HEADER_WIDTH (1.0 * TWIPS_PER_CM) +#define PRINT_HEADER_HEIGHT (12.8 * TWIPS_PER_POINT) +#define PRINT_HEADER_FONTHEIGHT 200 - // Einstellungen fuer Kopf-/Fusszeilen + // Einstellungen fuer Kopf-/Fusszeilen struct ScPrintHFParam { - BOOL bEnable; - BOOL bDynamic; - BOOL bShared; - long nHeight; // insgesamt (Hoehe+Abstand+Rahmen) - long nManHeight; // eingestellte Groesse (Min. bei dynamisch) - USHORT nDistance; - USHORT nLeft; // Raender - USHORT nRight; + BOOL bEnable; + BOOL bDynamic; + BOOL bShared; + long nHeight; // insgesamt (Hoehe+Abstand+Rahmen) + long nManHeight; // eingestellte Groesse (Min. bei dynamisch) + USHORT nDistance; + USHORT nLeft; // Raender + USHORT nRight; const ScPageHFItem* pLeft; const ScPageHFItem* pRight; - const SvxBoxItem* pBorder; + const SvxBoxItem* pBorder; const SvxBrushItem* pBack; const SvxShadowItem* pShadow; }; @@ -87,147 +87,147 @@ class ScJobSetup public: ScJobSetup( SfxPrinter* pPrinter ); - Size aUserSize; - MapMode aUserMapMode; - Paper ePaper; + Size aUserSize; + MapMode aUserMapMode; + Paper ePaper; Orientation eOrientation; - USHORT nPaperBin; + USHORT nPaperBin; }; -struct ScPrintState // Variablen aus ScPrintFunc retten +struct ScPrintState // Variablen aus ScPrintFunc retten { - SCTAB nPrintTab; - SCCOL nStartCol; - SCROW nStartRow; - SCCOL nEndCol; - SCROW nEndRow; - USHORT nZoom; - size_t nPagesX; - size_t nPagesY; - long nTabPages; - long nTotalPages; - long nPageStart; - long nDocPages; + SCTAB nPrintTab; + SCCOL nStartCol; + SCROW nStartRow; + SCCOL nEndCol; + SCROW nEndRow; + USHORT nZoom; + size_t nPagesX; + size_t nPagesY; + long nTabPages; + long nTotalPages; + long nPageStart; + long nDocPages; }; class ScPageRowEntry { private: - SCROW nStartRow; - SCROW nEndRow; - size_t nPagesX; - BOOL* pHidden; - //! Anzahl wirklich sichtbarer cachen??? + SCROW nStartRow; + SCROW nEndRow; + size_t nPagesX; + BOOL* pHidden; + //! Anzahl wirklich sichtbarer cachen??? public: - ScPageRowEntry() { nStartRow = nEndRow = 0; nPagesX = 0; pHidden = NULL; } - ~ScPageRowEntry() { delete[] pHidden; } + ScPageRowEntry() { nStartRow = nEndRow = 0; nPagesX = 0; pHidden = NULL; } + ~ScPageRowEntry() { delete[] pHidden; } ScPageRowEntry(const ScPageRowEntry& r); const ScPageRowEntry& operator=(const ScPageRowEntry& r); - SCROW GetStartRow() const { return nStartRow; } - SCROW GetEndRow() const { return nEndRow; } - size_t GetPagesX() const { return nPagesX; } - void SetStartRow(SCROW n) { nStartRow = n; } - void SetEndRow(SCROW n) { nEndRow = n; } + SCROW GetStartRow() const { return nStartRow; } + SCROW GetEndRow() const { return nEndRow; } + size_t GetPagesX() const { return nPagesX; } + void SetStartRow(SCROW n) { nStartRow = n; } + void SetEndRow(SCROW n) { nEndRow = n; } - void SetPagesX(size_t nNew); - void SetHidden(size_t nX); - BOOL IsHidden(size_t nX) const; + void SetPagesX(size_t nNew); + void SetHidden(size_t nX); + BOOL IsHidden(size_t nX) const; - size_t CountVisible() const; + size_t CountVisible() const; }; class ScPrintFunc { private: - ScDocShell* pDocShell; - ScDocument* pDoc; - SfxPrinter* pPrinter; - OutputDevice* pDev; - FmFormView* pDrawView; - - MapMode aOldPrinterMode; // MapMode vor dem Aufruf - - Point aSrcOffset; // Papier-1/100 mm - Point aOffset; // mit Faktor aus Seitenformat skaliert - USHORT nManualZoom; // Zoom in Preview (Prozent) - BOOL bClearWin; // Ausgabe vorher loeschen - BOOL bUseStyleColor; - BOOL bIsRender; - - SCTAB nPrintTab; - long nPageStart; // Offset fuer erste Seite - long nDocPages; // Seiten im Dokument - - const ScRange* pUserArea; // Selektion, wenn im Dialog eingestellt - - const SfxItemSet* pParamSet; // eingestellte Vorlage - BOOL bState; // aus State-struct erzeugt - - // Parameter aus Vorlage: - USHORT nLeftMargin; - USHORT nTopMargin; - USHORT nRightMargin; - USHORT nBottomMargin; - BOOL bCenterHor; - BOOL bCenterVer; - BOOL bLandscape; - BOOL bSourceRangeValid; - - USHORT nPageUsage; - Size aPageSize; // Drucker-Twips - const SvxBoxItem* pBorderItem; + ScDocShell* pDocShell; + ScDocument* pDoc; + SfxPrinter* pPrinter; + OutputDevice* pDev; + FmFormView* pDrawView; + + MapMode aOldPrinterMode; // MapMode vor dem Aufruf + + Point aSrcOffset; // Papier-1/100 mm + Point aOffset; // mit Faktor aus Seitenformat skaliert + USHORT nManualZoom; // Zoom in Preview (Prozent) + BOOL bClearWin; // Ausgabe vorher loeschen + BOOL bUseStyleColor; + BOOL bIsRender; + + SCTAB nPrintTab; + long nPageStart; // Offset fuer erste Seite + long nDocPages; // Seiten im Dokument + + const ScRange* pUserArea; // Selektion, wenn im Dialog eingestellt + + const SfxItemSet* pParamSet; // eingestellte Vorlage + BOOL bState; // aus State-struct erzeugt + + // Parameter aus Vorlage: + USHORT nLeftMargin; + USHORT nTopMargin; + USHORT nRightMargin; + USHORT nBottomMargin; + BOOL bCenterHor; + BOOL bCenterVer; + BOOL bLandscape; + BOOL bSourceRangeValid; + + USHORT nPageUsage; + Size aPageSize; // Drucker-Twips + const SvxBoxItem* pBorderItem; const SvxBrushItem* pBackgroundItem; const SvxShadowItem* pShadowItem; - ScRange aLastSourceRange; - ScPrintHFParam aHdr; - ScPrintHFParam aFtr; - ScPageTableParam aTableParam; - ScPageAreaParam aAreaParam; - - // berechnete Werte: - USHORT nZoom; - BOOL bPrintCurrentTable; - BOOL bMultiArea; - long nTabPages; - long nTotalPages; - - Rectangle aPageRect; // Dokument-Twips - - MapMode aLogicMode; // in DoPrint gesetzt - MapMode aOffsetMode; - MapMode aTwipMode; - double nScaleX; - double nScaleY; - - SCCOL nRepeatStartCol; - SCCOL nRepeatEndCol; - SCROW nRepeatStartRow; - SCROW nRepeatEndRow; - - SCCOL nStartCol; - SCROW nStartRow; - SCCOL nEndCol; - SCROW nEndRow; - - SCCOL* pPageEndX; // Seitenaufteilung + ScRange aLastSourceRange; + ScPrintHFParam aHdr; + ScPrintHFParam aFtr; + ScPageTableParam aTableParam; + ScPageAreaParam aAreaParam; + + // berechnete Werte: + USHORT nZoom; + BOOL bPrintCurrentTable; + BOOL bMultiArea; + long nTabPages; + long nTotalPages; + + Rectangle aPageRect; // Dokument-Twips + + MapMode aLogicMode; // in DoPrint gesetzt + MapMode aOffsetMode; + MapMode aTwipMode; + double nScaleX; + double nScaleY; + + SCCOL nRepeatStartCol; + SCCOL nRepeatEndCol; + SCROW nRepeatStartRow; + SCROW nRepeatEndRow; + + SCCOL nStartCol; + SCROW nStartRow; + SCCOL nEndCol; + SCROW nEndRow; + + SCCOL* pPageEndX; // Seitenaufteilung SCROW* pPageEndY; - ScPageRowEntry* pPageRows; - size_t nPagesX; - size_t nPagesY; - size_t nTotalY; + ScPageRowEntry* pPageRows; + size_t nPagesX; + size_t nPagesY; + size_t nTotalY; - ScHeaderEditEngine* pEditEngine; - SfxItemSet* pEditDefaults; + ScHeaderEditEngine* pEditEngine; + SfxItemSet* pEditDefaults; - ScHeaderFieldData aFieldData; + ScHeaderFieldData aFieldData; - List aNotePosList; // Reihenfolge der Notizen + List aNotePosList; // Reihenfolge der Notizen - ScPageBreakData* pPageData; // zum Eintragen der Umbrueche etc. + ScPageBreakData* pPageData; // zum Eintragen der Umbrueche etc. public: ScPrintFunc( ScDocShell* pShell, SfxPrinter* pNewPrinter, SCTAB nTab, @@ -257,48 +257,48 @@ public: const ScPrintOptions* pOptions ); ~ScPrintFunc(); - static void DrawToDev( ScDocument* pDoc, OutputDevice* pDev, double nPrintFactor, + static void DrawToDev( ScDocument* pDoc, OutputDevice* pDev, double nPrintFactor, const Rectangle& rBound, ScViewData* pViewData, BOOL bMetaFile ); - void SetDrawView( FmFormView* pNew ); + void SetDrawView( FmFormView* pNew ); - void SetOffset( const Point& rOfs ); - void SetManualZoom( USHORT nNewZoom ); - void SetDateTime( const Date& rDate, const Time& rTime ); + void SetOffset( const Point& rOfs ); + void SetManualZoom( USHORT nNewZoom ); + void SetDateTime( const Date& rDate, const Time& rTime ); - void SetClearFlag( BOOL bFlag ); - void SetUseStyleColor( BOOL bFlag ); - void SetRenderFlag( BOOL bFlag ); + void SetClearFlag( BOOL bFlag ); + void SetUseStyleColor( BOOL bFlag ); + void SetRenderFlag( BOOL bFlag ); void SetExclusivelyDrawOleAndDrawObjects();//for printing selected objects without surrounding cell contents - BOOL UpdatePages(); + BOOL UpdatePages(); - void ApplyPrintSettings(); // aus DoPrint() schon gerufen - long DoPrint( const MultiSelection& rPageRanges, + void ApplyPrintSettings(); // aus DoPrint() schon gerufen + long DoPrint( const MultiSelection& rPageRanges, /*long nStartPage, long nDisplayStart, BOOL bDoPrint, SfxProgress* pProgress, ScPreviewLocationData* pLocationData );*/ long nStartPage, long nDisplayStart, BOOL bDoPrint = TRUE, SfxProgress* pProgress = NULL, ScPreviewLocationData* pLocationData = NULL); - // Werte abfragen - sofort + // Werte abfragen - sofort - Size GetPageSize() const { return aPageSize; } - Size GetDataSize() const; - void GetScaleData( Size& rPhysSize, long& rDocHdr, long& rDocFtr ); - long GetFirstPageNo() const { return aTableParam.nFirstPageNo; } + Size GetPageSize() const { return aPageSize; } + Size GetDataSize() const; + void GetScaleData( Size& rPhysSize, long& rDocHdr, long& rDocFtr ); + long GetFirstPageNo() const { return aTableParam.nFirstPageNo; } - // letzte Werte abfragen - nach DoPrint !!! + // letzte Werte abfragen - nach DoPrint !!! - double GetScaleX() const { return nScaleX; } - double GetScaleY() const { return nScaleY; } - long GetTotalPages() const { return nTotalPages; } - USHORT GetZoom() const { return nZoom; } + double GetScaleX() const { return nScaleX; } + double GetScaleY() const { return nScaleY; } + long GetTotalPages() const { return nTotalPages; } + USHORT GetZoom() const { return nZoom; } - void ResetBreaks( SCTAB nTab ); + void ResetBreaks( SCTAB nTab ); - void GetPrintState( ScPrintState& rState ); - BOOL GetLastSourceRange( ScRange& rRange ) const; + void GetPrintState( ScPrintState& rState ); + BOOL GetLastSourceRange( ScRange& rRange ) const; USHORT GetLeftMargin() const{return nLeftMargin;} USHORT GetRightMargin() const{return nRightMargin;} USHORT GetTopMargin() const{return nTopMargin;} @@ -311,55 +311,55 @@ public: ScPrintHFParam GetFooter(){return aFtr;} private: - void Construct( const ScPrintOptions* pOptions ); - void InitParam( const ScPrintOptions* pOptions ); - void CalcZoom( USHORT nRangeNo ); - void CalcPages(); - long CountPages(); - long CountNotePages(); + void Construct( const ScPrintOptions* pOptions ); + void InitParam( const ScPrintOptions* pOptions ); + void CalcZoom( USHORT nRangeNo ); + void CalcPages(); + long CountPages(); + long CountNotePages(); - BOOL AdjustPrintArea( BOOL bNew ); + BOOL AdjustPrintArea( BOOL bNew ); - Size GetDocPageSize(); + Size GetDocPageSize(); - long TextHeight( const EditTextObject* pObject ); - void MakeEditEngine(); - void UpdateHFHeight( ScPrintHFParam& rParam ); + long TextHeight( const EditTextObject* pObject ); + void MakeEditEngine(); + void UpdateHFHeight( ScPrintHFParam& rParam ); - void InitModes(); + void InitModes(); - BOOL IsLeft( long nPageNo ); - BOOL IsMirror( long nPageNo ); - void ReplaceFields( long nPageNo ); // aendert Text in pEditEngine - void MakeTableString(); // setzt aTableStr + BOOL IsLeft( long nPageNo ); + BOOL IsMirror( long nPageNo ); + void ReplaceFields( long nPageNo ); // aendert Text in pEditEngine + void MakeTableString(); // setzt aTableStr - void PrintPage( long nPageNo, + void PrintPage( long nPageNo, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, BOOL bDoPrint, ScPreviewLocationData* pLocationData ); - void PrintArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, + void PrintArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, long nScrX, long nScrY, BOOL bShLeft, BOOL bShTop, BOOL bShRight, BOOL bShBottom ); - void LocateArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, + void LocateArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, long nScrX, long nScrY, BOOL bRepCol, BOOL bRepRow, ScPreviewLocationData& rLocationData ); - void PrintColHdr( SCCOL nX1, SCCOL nX2, long nScrX, long nScrY ); - void PrintRowHdr( SCROW nY1, SCROW nY2, long nScrX, long nScrY ); - void LocateColHdr( SCCOL nX1, SCCOL nX2, long nScrX, long nScrY, + void PrintColHdr( SCCOL nX1, SCCOL nX2, long nScrX, long nScrY ); + void PrintRowHdr( SCROW nY1, SCROW nY2, long nScrX, long nScrY ); + void LocateColHdr( SCCOL nX1, SCCOL nX2, long nScrX, long nScrY, BOOL bRepCol, ScPreviewLocationData& rLocationData ); - void LocateRowHdr( SCROW nY1, SCROW nY2, long nScrX, long nScrY, + void LocateRowHdr( SCROW nY1, SCROW nY2, long nScrX, long nScrY, BOOL bRepRow, ScPreviewLocationData& rLocationData ); - void PrintHF( long nPageNo, BOOL bHeader, long nStartY, + void PrintHF( long nPageNo, BOOL bHeader, long nStartY, BOOL bDoPrint, ScPreviewLocationData* pLocationData ); - long PrintNotes( long nPageNo, long nNoteStart, BOOL bDoPrint, ScPreviewLocationData* pLocationData ); - long DoNotes( long nNoteStart, BOOL bDoPrint, ScPreviewLocationData* pLocationData ); + long PrintNotes( long nPageNo, long nNoteStart, BOOL bDoPrint, ScPreviewLocationData* pLocationData ); + long DoNotes( long nNoteStart, BOOL bDoPrint, ScPreviewLocationData* pLocationData ); - void DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH, + void DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH, const SvxBoxItem* pBorderData, const SvxBrushItem* pBackground, const SvxShadowItem* pShadow ); - void FillPageData(); + void FillPageData(); }; diff --git a/sc/source/ui/inc/privsplt.hxx b/sc/source/ui/inc/privsplt.hxx index 6194a4342849..369db1191cb4 100644 --- a/sc/source/ui/inc/privsplt.hxx +++ b/sc/source/ui/inc/privsplt.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -26,7 +26,7 @@ ************************************************************************/ #ifndef SC_PRIVSPLT_HXX -#define SC_PRIVSPLT_HXX +#define SC_PRIVSPLT_HXX #include <vcl/ctrl.hxx> @@ -36,47 +36,47 @@ class ScPrivatSplit : public Control { private: - Link aCtrModifiedLink; - BOOL aMovingFlag; - Pointer aWinPointer; - SC_SPLIT_DIRECTION eScSplit; - short nOldX; - short nOldY; - short nNewX; - short nNewY; - short nMinPos; - short nMaxPos; - Range aXMovingRange; - Range aYMovingRange; - short nDeltaX; - short nDeltaY; + Link aCtrModifiedLink; + BOOL aMovingFlag; + Pointer aWinPointer; + SC_SPLIT_DIRECTION eScSplit; + short nOldX; + short nOldY; + short nNewX; + short nNewY; + short nMinPos; + short nMaxPos; + Range aXMovingRange; + Range aYMovingRange; + short nDeltaX; + short nDeltaY; using Control::ImplInitSettings; - void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground ); + void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground ); protected: - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt); + virtual void MouseMove( const MouseEvent& rMEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt); public: ScPrivatSplit( Window* pWindow, const ResId& rResId, SC_SPLIT_DIRECTION eScSplit); - virtual short GetDeltaX(); - virtual short GetDeltaY(); + virtual short GetDeltaX(); + virtual short GetDeltaY(); virtual void CtrModified(); - void SetYRange(Range cRgeY); + void SetYRange(Range cRgeY); - void MoveSplitTo(Point aPos); + void MoveSplitTo(Point aPos); - virtual void StateChanged( StateChangedType nType ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); + virtual void StateChanged( StateChangedType nType ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); void SetCtrModifiedHdl( const Link& rLink ) { aCtrModifiedLink = rLink; } const Link& GetCtrModifiedHdl() const { return aCtrModifiedLink; } diff --git a/sc/source/ui/inc/protectiondlg.hrc b/sc/source/ui/inc/protectiondlg.hrc index 52e57040922c..7bee7725a617 100644 --- a/sc/source/ui/inc/protectiondlg.hrc +++ b/sc/source/ui/inc/protectiondlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/protectiondlg.hxx b/sc/source/ui/inc/protectiondlg.hxx index d7d555ff5ac5..4d492f87445d 100644 --- a/sc/source/ui/inc/protectiondlg.hxx +++ b/sc/source/ui/inc/protectiondlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/pvfundlg.hxx b/sc/source/ui/inc/pvfundlg.hxx index ef245ebf26cf..2c813cc36ca5 100644 --- a/sc/source/ui/inc/pvfundlg.hxx +++ b/sc/source/ui/inc/pvfundlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -216,8 +216,8 @@ public: virtual short Execute(); - /** - * @return String internal name of the selected field. Note that this may + /** + * @return String internal name of the selected field. Note that this may * be different from the name displayed in the dialog if the field * has a layout name. */ diff --git a/sc/source/ui/inc/pvlaydlg.hxx b/sc/source/ui/inc/pvlaydlg.hxx index c74b9e028d2f..b14501eba42f 100644 --- a/sc/source/ui/inc/pvlaydlg.hxx +++ b/sc/source/ui/inc/pvlaydlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/redcom.hxx b/sc/source/ui/inc/redcom.hxx index e7e064359349..e4613d8741bf 100644 --- a/sc/source/ui/inc/redcom.hxx +++ b/sc/source/ui/inc/redcom.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,15 +35,15 @@ #include "chgtrack.hxx" class ScDocShell; -class AbstractSvxPostItDialog; //CHINA001 +class AbstractSvxPostItDialog; //CHINA001 class ScRedComDialog { private: - ScChangeAction *pChangeAction; - ScDocShell *pDocShell; - String aComment; + ScChangeAction *pChangeAction; + ScDocShell *pDocShell; + String aComment; AbstractSvxPostItDialog* pDlg; DECL_LINK( PrevHdl, AbstractSvxPostItDialog* ); @@ -51,8 +51,8 @@ private: protected: - void ReInit(ScChangeAction *); - void SelectCell(); + void ReInit(ScChangeAction *); + void SelectCell(); ScChangeAction *FindPrev(ScChangeAction *pAction); ScChangeAction *FindNext(ScChangeAction *pAction); diff --git a/sc/source/ui/inc/reffact.hxx b/sc/source/ui/inc/reffact.hxx index 617d7c0a669a..79c15d2d5288 100644 --- a/sc/source/ui/inc/reffact.hxx +++ b/sc/source/ui/inc/reffact.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,11 +33,11 @@ #include "dbfunc.hxx" #define DECL_WRAPPER(Class) \ - class Class : public SfxChildWindow \ - { \ - public: \ - Class( Window*, USHORT, SfxBindings*, SfxChildWinInfo* ); \ - SFX_DECL_CHILDWINDOW(Class); \ + class Class : public SfxChildWindow \ + { \ + public: \ + Class( Window*, USHORT, SfxBindings*, SfxChildWinInfo* ); \ + SFX_DECL_CHILDWINDOW(Class); \ }; @@ -67,7 +67,7 @@ DECL_WRAPPER(ScArgumentDlgWrapper) class ScAcceptChgDlgWrapper: public SfxChildWindow { public: - ScAcceptChgDlgWrapper( Window*, + ScAcceptChgDlgWrapper( Window*, USHORT, SfxBindings*, SfxChildWinInfo* ); @@ -80,38 +80,38 @@ class ScAcceptChgDlgWrapper: public SfxChildWindow class ScSimpleRefDlgWrapper: public SfxChildWindow { public: - ScSimpleRefDlgWrapper( Window*, + ScSimpleRefDlgWrapper( Window*, USHORT, SfxBindings*, SfxChildWinInfo* ); SFX_DECL_CHILDWINDOW(Class); - static void SetDefaultPosSize(Point aPos, Size aSize, BOOL bSet=TRUE); - virtual String GetRefString(); - virtual void SetRefString(const String& rStr); - void SetCloseHdl( const Link& rLink ); - void SetUnoLinks( const Link& rDone, const Link& rAbort, + static void SetDefaultPosSize(Point aPos, Size aSize, BOOL bSet=TRUE); + virtual String GetRefString(); + virtual void SetRefString(const String& rStr); + void SetCloseHdl( const Link& rLink ); + void SetUnoLinks( const Link& rDone, const Link& rAbort, const Link& rChange ); void SetFlags( BOOL bCloseOnButtonUp, BOOL bSingleCell, BOOL bMultiSelection ); - static void SetAutoReOpen(BOOL bFlag); + static void SetAutoReOpen(BOOL bFlag); - void StartRefInput(); + void StartRefInput(); }; //<!--Added by PengYunQuan for Validity Cell Range Picker class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow { - bool m_bVisibleLock:1; - bool m_bFreeWindowLock:1; + bool m_bVisibleLock:1; + bool m_bFreeWindowLock:1; Window * m_pSavedWndParent; -public: +public: ScValidityRefChildWin( Window*, USHORT, SfxBindings*, SfxChildWinInfo* ); - SFX_DECL_CHILDWINDOW(ScValidityRefChildWin); + SFX_DECL_CHILDWINDOW(ScValidityRefChildWin); ~ScValidityRefChildWin(); - bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; } - bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; } - void Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); } + bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; } + bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; } + void Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); } void Show( USHORT nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); } }; //-->Added by PengYunQuan for Validity Cell Range Picker diff --git a/sc/source/ui/inc/refundo.hxx b/sc/source/ui/inc/refundo.hxx index 87b5330e0f96..668adbe075fc 100644 --- a/sc/source/ui/inc/refundo.hxx +++ b/sc/source/ui/inc/refundo.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,22 +45,22 @@ class ScUnoRefList; class ScRefUndoData { private: - ScDBCollection* pDBCollection; - ScRangeName* pRangeName; - ScPrintRangeSaver* pPrintRanges; - ScDPCollection* pDPCollection; - ScConditionalFormatList* pCondFormList; - ScDetOpList* pDetOpList; - ScChartListenerCollection* pChartListenerCollection; - ScAreaLinkSaveCollection* pAreaLinks; + ScDBCollection* pDBCollection; + ScRangeName* pRangeName; + ScPrintRangeSaver* pPrintRanges; + ScDPCollection* pDPCollection; + ScConditionalFormatList* pCondFormList; + ScDetOpList* pDetOpList; + ScChartListenerCollection* pChartListenerCollection; + ScAreaLinkSaveCollection* pAreaLinks; ScUnoRefList* pUnoRefs; public: ScRefUndoData( const ScDocument* pDoc ); ~ScRefUndoData(); - void DeleteUnchanged( const ScDocument* pDoc ); - void DoUndo( ScDocument* pDoc, BOOL bUndoRefFirst ); + void DeleteUnchanged( const ScDocument* pDoc ); + void DoUndo( ScDocument* pDoc, BOOL bUndoRefFirst ); }; diff --git a/sc/source/ui/inc/retypepassdlg.hrc b/sc/source/ui/inc/retypepassdlg.hrc index f027b6bc7ded..76f7a1231613 100644 --- a/sc/source/ui/inc/retypepassdlg.hrc +++ b/sc/source/ui/inc/retypepassdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/retypepassdlg.hxx b/sc/source/ui/inc/retypepassdlg.hxx index 59753d8d386b..d91125b407c7 100644 --- a/sc/source/ui/inc/retypepassdlg.hxx +++ b/sc/source/ui/inc/retypepassdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/rfindlst.hxx b/sc/source/ui/inc/rfindlst.hxx index 225fd01451df..6f9aa0d73e21 100644 --- a/sc/source/ui/inc/rfindlst.hxx +++ b/sc/source/ui/inc/rfindlst.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,10 +36,10 @@ struct ScRangeFindData { - ScRange aRef; - USHORT nFlags; - xub_StrLen nSelStart; - xub_StrLen nSelEnd; + ScRange aRef; + USHORT nFlags; + xub_StrLen nSelStart; + xub_StrLen nSelEnd; ScRangeFindData( const ScRange& rR, USHORT nF, xub_StrLen nS, xub_StrLen nE ) : aRef(rR), nFlags(nF), nSelStart(nS), nSelEnd(nE) {} @@ -47,23 +47,23 @@ struct ScRangeFindData class ScRangeFindList { - List aEntries; - String aDocName; - BOOL bHidden; + List aEntries; + String aDocName; + BOOL bHidden; public: ScRangeFindList(const String& rName); ~ScRangeFindList(); - ULONG Count() const { return aEntries.Count(); } - void Insert( ScRangeFindData* pNew ) { aEntries.Insert(pNew, LIST_APPEND); } + ULONG Count() const { return aEntries.Count(); } + void Insert( ScRangeFindData* pNew ) { aEntries.Insert(pNew, LIST_APPEND); } ScRangeFindData* GetObject( ULONG nIndex ) const { return (ScRangeFindData*)aEntries.GetObject(nIndex); } - void SetHidden( BOOL bSet ) { bHidden = bSet; } + void SetHidden( BOOL bSet ) { bHidden = bSet; } - const String& GetDocName() const { return aDocName; } - BOOL IsHidden() const { return bHidden; } + const String& GetDocName() const { return aDocName; } + BOOL IsHidden() const { return bHidden; } static ColorData GetColorName( USHORT nIndex ); }; diff --git a/sc/source/ui/inc/scendlg.hxx b/sc/source/ui/inc/scendlg.hxx index 6281bb58b02c..6f42535c7a95 100644 --- a/sc/source/ui/inc/scendlg.hxx +++ b/sc/source/ui/inc/scendlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -52,23 +52,23 @@ public: private: FixedLine aFlName; - Edit aEdName; + Edit aEdName; FixedLine aFlComment; - MultiLineEdit aEdComment; + MultiLineEdit aEdComment; FixedLine aFlOptions; - CheckBox aCbShowFrame; - ColorListBox aLbColor; - //CheckBox aCbPrintFrame; - CheckBox aCbTwoWay; - //CheckBox aCbAttrib; - //CheckBox aCbValue; - CheckBox aCbCopyAll; + CheckBox aCbShowFrame; + ColorListBox aLbColor; + //CheckBox aCbPrintFrame; + CheckBox aCbTwoWay; + //CheckBox aCbAttrib; + //CheckBox aCbValue; + CheckBox aCbCopyAll; CheckBox aCbProtect; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - const String aDefScenarioName; - BOOL bIsEdit; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + const String aDefScenarioName; + BOOL bIsEdit; DECL_LINK( OkHdl, OKButton * ); DECL_LINK( EnableHdl, CheckBox * ); diff --git a/sc/source/ui/inc/scui_def.hxx b/sc/source/ui/inc/scui_def.hxx index ca34ab0775b2..ff0c2d351379 100644 --- a/sc/source/ui/inc/scui_def.hxx +++ b/sc/source/ui/inc/scui_def.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -31,27 +31,27 @@ #define SCRET_COLS 0x42 #define SCRET_ROWS 0x43 -#define FDS_OPT_NONE 0 // from filldlg.hxx -#define FDS_OPT_HORZ 1 // from filldlg.hxx -#define FDS_OPT_VERT 2 // from filldlg.hxx +#define FDS_OPT_NONE 0 // from filldlg.hxx +#define FDS_OPT_HORZ 1 // from filldlg.hxx +#define FDS_OPT_VERT 2 // from filldlg.hxx -#define INS_CONT_NOEMPTY 0x0100 //from inscodlg.hxx -#define INS_CONT_TRANS 0x0200 //from inscodlg.hxx -#define INS_CONT_LINK 0x0400 //from inscodlg.hxx +#define INS_CONT_NOEMPTY 0x0100 //from inscodlg.hxx +#define INS_CONT_TRANS 0x0200 //from inscodlg.hxx +#define INS_CONT_LINK 0x0400 //from inscodlg.hxx -#define SC_CELL_SHIFT_DISABLE_DOWN 0x01 //from inscodlg.hxx -#define SC_CELL_SHIFT_DISABLE_RIGHT 0x02 //from inscodlg.hxx +#define SC_CELL_SHIFT_DISABLE_DOWN 0x01 //from inscodlg.hxx +#define SC_CELL_SHIFT_DISABLE_RIGHT 0x02 //from inscodlg.hxx -#define NAME_TOP 1 //from namecrea.hxx -#define NAME_LEFT 2 //from namecrea.hxx -#define NAME_BOTTOM 4 //from namecrea.hxx -#define NAME_RIGHT 8 //from namecrea.hxx +#define NAME_TOP 1 //from namecrea.hxx +#define NAME_LEFT 2 //from namecrea.hxx +#define NAME_BOTTOM 4 //from namecrea.hxx +#define NAME_RIGHT 8 //from namecrea.hxx -#define BTN_PASTE_NAME 100 // from namepast.hxx -#define BTN_PASTE_LIST 101 // from namepast.hxx +#define BTN_PASTE_NAME 100 // from namepast.hxx +#define BTN_PASTE_LIST 101 // from namepast.hxx #define BTN_EXTEND_RANGE 150 #define BTN_CURRENT_SELECTION 151 -#define SCRET_REMOVE 0x42 //from subtdlg.hxx +#define SCRET_REMOVE 0x42 //from subtdlg.hxx #endif diff --git a/sc/source/ui/inc/scuiasciiopt.hxx b/sc/source/ui/inc/scuiasciiopt.hxx index 3e1a7db38fb2..b89e7aeea4ef 100644 --- a/sc/source/ui/inc/scuiasciiopt.hxx +++ b/sc/source/ui/inc/scuiasciiopt.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/scuiautofmt.hxx b/sc/source/ui/inc/scuiautofmt.hxx index 84a408267b20..857ca2f3f160 100644 --- a/sc/source/ui/inc/scuiautofmt.hxx +++ b/sc/source/ui/inc/scuiautofmt.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -31,8 +31,8 @@ class ScAutoFormatDlg : public ModalDialog { public: - ScAutoFormatDlg( Window* pParent, - ScAutoFormat* pAutoFormat, + ScAutoFormatDlg( Window* pParent, + ScAutoFormat* pAutoFormat, const ScAutoFormatData* pSelFormatData, ScDocument* pDoc ); ~ScAutoFormatDlg(); @@ -42,38 +42,38 @@ public: private: FixedLine aFlFormat; - ListBox aLbFormat; - ScAutoFmtPreview* pWndPreview; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - PushButton aBtnAdd; - PushButton aBtnRemove; - MoreButton aBtnMore; + ListBox aLbFormat; + ScAutoFmtPreview* pWndPreview; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + PushButton aBtnAdd; + PushButton aBtnRemove; + MoreButton aBtnMore; FixedLine aFlFormatting; - CheckBox aBtnNumFormat; - CheckBox aBtnBorder; - CheckBox aBtnFont; - CheckBox aBtnPattern; - CheckBox aBtnAlignment; - CheckBox aBtnAdjust; - PushButton aBtnRename; - String aStrTitle; - String aStrLabel; - String aStrClose; - String aStrDelTitle; - String aStrDelMsg; - String aStrRename; + CheckBox aBtnNumFormat; + CheckBox aBtnBorder; + CheckBox aBtnFont; + CheckBox aBtnPattern; + CheckBox aBtnAlignment; + CheckBox aBtnAdjust; + PushButton aBtnRename; + String aStrTitle; + String aStrLabel; + String aStrClose; + String aStrDelTitle; + String aStrDelMsg; + String aStrRename; //------------------------ - ScAutoFormat* pFormat; - const ScAutoFormatData* pSelFmtData; - USHORT nIndex; - BOOL bCoreDataChanged; - BOOL bFmtInserted; + ScAutoFormat* pFormat; + const ScAutoFormatData* pSelFmtData; + USHORT nIndex; + BOOL bCoreDataChanged; + BOOL bFmtInserted; - void Init (); - void UpdateChecks (); + void Init (); + void UpdateChecks (); //------------------------ DECL_LINK( CheckHdl, Button * ); DECL_LINK( AddHdl, void * ); diff --git a/sc/source/ui/inc/scuiimoptdlg.hxx b/sc/source/ui/inc/scuiimoptdlg.hxx index 957d174a3deb..bba9fefec0fd 100644 --- a/sc/source/ui/inc/scuiimoptdlg.hxx +++ b/sc/source/ui/inc/scuiimoptdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,10 +38,10 @@ class ScDelimiterTable; class ScImportOptionsDlg : public ModalDialog { public: - ScImportOptionsDlg( Window* pParent, + ScImportOptionsDlg( Window* pParent, BOOL bAscii = TRUE, - const ScImportOptions* pOptions = NULL, - const String* pStrTitle = NULL, + const ScImportOptions* pOptions = NULL, + const String* pStrTitle = NULL, BOOL bMultiByte = FALSE, BOOL bOnlyDbtoolsEncodings = FALSE, BOOL bImport = TRUE ); @@ -52,20 +52,20 @@ public: private: FixedLine aFlFieldOpt; - FixedText aFtFont; - SvxTextEncodingBox aLbFont; - FixedText aFtFieldSep; - ComboBox aEdFieldSep; - FixedText aFtTextSep; - ComboBox aEdTextSep; + FixedText aFtFont; + SvxTextEncodingBox aLbFont; + FixedText aFtFieldSep; + ComboBox aEdFieldSep; + FixedText aFtTextSep; + ComboBox aEdTextSep; CheckBox aCbFixed; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - CheckBox aCbShown; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + CheckBox aCbShown; - ScDelimiterTable* pFieldSepTab; - ScDelimiterTable* pTextSepTab; + ScDelimiterTable* pFieldSepTab; + ScDelimiterTable* pTextSepTab; private: USHORT GetCodeFromCombo( const ComboBox& rEd ) const; diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx index 99bd6c2a805a..715097df1300 100644 --- a/sc/source/ui/inc/scuitphfedit.hxx +++ b/sc/source/ui/inc/scuitphfedit.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,19 +33,19 @@ //=================================================================== enum ScHFEntryId { - eNoneEntry , - ePageEntry , + eNoneEntry , + ePageEntry , ePagesEntry , eSheetEntry , eConfidentialEntry , eFileNamePageEntry , eExtFileNameEntry , - ePageSheetEntry , - ePageFileNameEntry , - ePageExtFileNameEntry , - eUserNameEntry , - eCreatedByEntry , - eEntryCount + ePageSheetEntry , + ePageFileNameEntry , + ePageExtFileNameEntry , + eUserNameEntry , + eCreatedByEntry , + eEntryCount }; class ScHeaderEditEngine; @@ -59,42 +59,42 @@ class ScAccessibleEditObject; class ScHFEditPage : public SfxTabPage { public: - virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); - virtual void Reset ( const SfxItemSet& rCoreSet ); + virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); + virtual void Reset ( const SfxItemSet& rCoreSet ); - void SetNumType(SvxNumType eNumType); - void ClearTextAreas(); + void SetNumType(SvxNumType eNumType); + void ClearTextAreas(); protected: - ScHFEditPage( Window* pParent, - USHORT nResId, - const SfxItemSet& rCoreSet, - USHORT nWhich, bool bHeader ); - virtual ~ScHFEditPage(); + ScHFEditPage( Window* pParent, + USHORT nResId, + const SfxItemSet& rCoreSet, + USHORT nWhich, bool bHeader ); + virtual ~ScHFEditPage(); private: - FixedText aFtLeft; - ScEditWindow aWndLeft; - FixedText aFtCenter; - ScEditWindow aWndCenter; - FixedText aFtRight; - ScEditWindow aWndRight; - FixedText maFtDefinedHF; + FixedText aFtLeft; + ScEditWindow aWndLeft; + FixedText aFtCenter; + ScEditWindow aWndCenter; + FixedText aFtRight; + ScEditWindow aWndRight; + FixedText maFtDefinedHF; ListBox maLbDefined; - FixedText maFtCustomHF; - ImageButton aBtnText; - ScExtIButton aBtnFile; - ImageButton aBtnTable; - ImageButton aBtnPage; - ImageButton aBtnLastPage; - ImageButton aBtnDate; - ImageButton aBtnTime; - FixedLine aFlInfo; - FixedInfo aFtInfo; - ScPopupMenu aPopUpFile; - - USHORT nWhich; - String aCmdArr[6]; + FixedText maFtCustomHF; + ImageButton aBtnText; + ScExtIButton aBtnFile; + ImageButton aBtnTable; + ImageButton aBtnPage; + ImageButton aBtnLastPage; + ImageButton aBtnDate; + ImageButton aBtnTime; + FixedLine aFlInfo; + FixedInfo aFtInfo; + ScPopupMenu aPopUpFile; + + USHORT nWhich; + String aCmdArr[6]; private: #ifdef _TPHFEDIT_CXX @@ -118,8 +118,8 @@ private: class ScRightHeaderEditPage : public ScHFEditPage { public: - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); - static USHORT* GetRanges(); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); + static USHORT* GetRanges(); private: ScRightHeaderEditPage( Window* pParent, const SfxItemSet& rSet ); @@ -130,8 +130,8 @@ private: class ScLeftHeaderEditPage : public ScHFEditPage { public: - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); - static USHORT* GetRanges(); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); + static USHORT* GetRanges(); private: ScLeftHeaderEditPage( Window* pParent, const SfxItemSet& rSet ); @@ -142,8 +142,8 @@ private: class ScRightFooterEditPage : public ScHFEditPage { public: - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); - static USHORT* GetRanges(); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); + static USHORT* GetRanges(); private: ScRightFooterEditPage( Window* pParent, const SfxItemSet& rSet ); @@ -154,8 +154,8 @@ private: class ScLeftFooterEditPage : public ScHFEditPage { public: - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); - static USHORT* GetRanges(); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); + static USHORT* GetRanges(); private: ScLeftFooterEditPage( Window* pParent, const SfxItemSet& rSet ); diff --git a/sc/source/ui/inc/select.hxx b/sc/source/ui/inc/select.hxx index ad12d9c743ad..47d1669ca56b 100644 --- a/sc/source/ui/inc/select.hxx +++ b/sc/source/ui/inc/select.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,7 +32,7 @@ #include <vcl/seleng.hxx> #endif -#include "viewdata.hxx" // ScSplitPos +#include "viewdata.hxx" // ScSplitPos // --------------------------------------------------------------------------- @@ -43,76 +43,76 @@ class ScViewData; class ScViewSelectionEngine : public SelectionEngine { private: - ScSplitPos eWhich; + ScSplitPos eWhich; public: ScViewSelectionEngine( Window* pWindow, ScTabView* pView, ScSplitPos eSplitPos ); - ScSplitPos GetWhich() const { return eWhich; } - void SetWhich(ScSplitPos eNew) { eWhich = eNew; } + ScSplitPos GetWhich() const { return eWhich; } + void SetWhich(ScSplitPos eNew) { eWhich = eNew; } }; -class ScViewFunctionSet : public FunctionSet // View (Gridwin / Tastatur) +class ScViewFunctionSet : public FunctionSet // View (Gridwin / Tastatur) { private: - ScViewData* pViewData; - ScViewSelectionEngine* pEngine; + ScViewData* pViewData; + ScViewSelectionEngine* pEngine; - BOOL bAnchor; - BOOL bStarted; - ScAddress aAnchorPos; + BOOL bAnchor; + BOOL bStarted; + ScAddress aAnchorPos; - ScSplitPos GetWhich(); + ScSplitPos GetWhich(); public: ScViewFunctionSet( ScViewData* pNewViewData ); - void SetSelectionEngine( ScViewSelectionEngine* pSelEngine ); + void SetSelectionEngine( ScViewSelectionEngine* pSelEngine ); - void SetAnchor( SCCOL nPosX, SCROW nPosY ); - void SetAnchorFlag( BOOL bSet ); + void SetAnchor( SCCOL nPosX, SCROW nPosY ); + void SetAnchorFlag( BOOL bSet ); - virtual void BeginDrag(); - virtual void CreateAnchor(); - virtual void DestroyAnchor(); - virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE ); - virtual BOOL IsSelectionAtPoint( const Point& rPointPixel ); - virtual void DeselectAtPoint( const Point& rPointPixel ); - virtual void DeselectAll(); + virtual void BeginDrag(); + virtual void CreateAnchor(); + virtual void DestroyAnchor(); + virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE ); + virtual BOOL IsSelectionAtPoint( const Point& rPointPixel ); + virtual void DeselectAtPoint( const Point& rPointPixel ); + virtual void DeselectAll(); - BOOL SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScroll ); + BOOL SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScroll ); }; // --------------------------------------------------------------------------- -class ScHeaderFunctionSet : public FunctionSet // Spalten- / Zeilenkoepfe +class ScHeaderFunctionSet : public FunctionSet // Spalten- / Zeilenkoepfe { private: - ScViewData* pViewData; - BOOL bColumn; // Col- / Rowbar - ScSplitPos eWhich; + ScViewData* pViewData; + BOOL bColumn; // Col- / Rowbar + ScSplitPos eWhich; - BOOL bAnchor; - SCCOLROW nCursorPos; + BOOL bAnchor; + SCCOLROW nCursorPos; public: ScHeaderFunctionSet( ScViewData* pNewViewData ); - void SetColumn( BOOL bSet ); - void SetWhich( ScSplitPos eNew ); + void SetColumn( BOOL bSet ); + void SetWhich( ScSplitPos eNew ); - virtual void BeginDrag(); - virtual void CreateAnchor(); - virtual void DestroyAnchor(); - virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE ); - virtual BOOL IsSelectionAtPoint( const Point& rPointPixel ); - virtual void DeselectAtPoint( const Point& rPointPixel ); - virtual void DeselectAll(); + virtual void BeginDrag(); + virtual void CreateAnchor(); + virtual void DestroyAnchor(); + virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE ); + virtual BOOL IsSelectionAtPoint( const Point& rPointPixel ); + virtual void DeselectAtPoint( const Point& rPointPixel ); + virtual void DeselectAll(); - void SetAnchorFlag(BOOL bSet) { bAnchor = bSet; } + void SetAnchorFlag(BOOL bSet) { bAnchor = bSet; } }; diff --git a/sc/source/ui/inc/selectionstate.hxx b/sc/source/ui/inc/selectionstate.hxx index cbdc6b1faff7..a2f3bf4756c1 100644 --- a/sc/source/ui/inc/selectionstate.hxx +++ b/sc/source/ui/inc/selectionstate.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/seltrans.hxx b/sc/source/ui/inc/seltrans.hxx index c695c918dad0..4d06c24a7096 100644 --- a/sc/source/ui/inc/seltrans.hxx +++ b/sc/source/ui/inc/seltrans.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,32 +49,32 @@ enum ScSelectionTransferMode class ScSelectionTransferObj : public TransferableHelper { private: - ScTabView* pView; - ScSelectionTransferMode eMode; - ScTransferObj* pCellData; - ScDrawTransferObj* pDrawData; + ScTabView* pView; + ScSelectionTransferMode eMode; + ScTransferObj* pCellData; + ScDrawTransferObj* pDrawData; ScSelectionTransferObj( ScTabView* pSource, ScSelectionTransferMode eNewMode ); - void CreateCellData(); - void CreateDrawData(); + void CreateCellData(); + void CreateDrawData(); public: // creates an object if the view has a valid selection, // returns NULL otherwise static ScSelectionTransferObj* CreateFromView( ScTabView* pSource ); - virtual ~ScSelectionTransferObj(); - - void ForgetView(); - BOOL StillValid(); - ScTabView* GetView() const { return pView; } + virtual ~ScSelectionTransferObj(); - ScTransferObj* GetCellData(); - ScDrawTransferObj* GetDrawData(); + void ForgetView(); + BOOL StillValid(); + ScTabView* GetView() const { return pView; } + + ScTransferObj* GetCellData(); + ScDrawTransferObj* GetDrawData(); - virtual void AddSupportedFormats(); - virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); - virtual void ObjectReleased(); + virtual void AddSupportedFormats(); + virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); + virtual void ObjectReleased(); }; #endif diff --git a/sc/source/ui/inc/servobj.hxx b/sc/source/ui/inc/servobj.hxx index 68e807461cad..cf7fd66ec789 100644 --- a/sc/source/ui/inc/servobj.hxx +++ b/sc/source/ui/inc/servobj.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,12 +51,12 @@ class ScServerObject : public ::sfx2::SvLinkSource, public SfxListener { private: ScServerObjectSvtListenerForwarder aForwarder; - ScDocShell* pDocSh; - ScRange aRange; - String aItemStr; - BOOL bRefreshListener; + ScDocShell* pDocSh; + ScRange aRange; + String aItemStr; + BOOL bRefreshListener; - void Clear(); + void Clear(); public: ScServerObject( ScDocShell* pShell, const String& rItem ); diff --git a/sc/source/ui/inc/sharedocdlg.hrc b/sc/source/ui/inc/sharedocdlg.hrc index cc38e81bbddb..adf2ed06a31c 100644 --- a/sc/source/ui/inc/sharedocdlg.hrc +++ b/sc/source/ui/inc/sharedocdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/sharedocdlg.hxx b/sc/source/ui/inc/sharedocdlg.hxx index 52c2f393b19a..0de9600e0037 100644 --- a/sc/source/ui/inc/sharedocdlg.hxx +++ b/sc/source/ui/inc/sharedocdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/shtabdlg.hxx b/sc/source/ui/inc/shtabdlg.hxx index 6c89c43b3a51..876e2468e87b 100644 --- a/sc/source/ui/inc/shtabdlg.hxx +++ b/sc/source/ui/inc/shtabdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -64,8 +64,8 @@ public: /** Inserts a string into the ListBox. */ void Insert( const String& rString, BOOL bSelected ); - USHORT GetSelectEntryCount() const; - String GetSelectEntry(USHORT nPos) const; + USHORT GetSelectEntryCount() const; + String GetSelectEntry(USHORT nPos) const; USHORT GetSelectEntryPos(USHORT nPos) const; }; diff --git a/sc/source/ui/inc/simpref.hrc b/sc/source/ui/inc/simpref.hrc index d6fb6d4412eb..058abc26475d 100644 --- a/sc/source/ui/inc/simpref.hrc +++ b/sc/source/ui/inc/simpref.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,10 +28,10 @@ #include "sc.hrc" // -> RID_SCDLG_SIMPLEREF #define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_ADD 3 -#define BTN_HELP 4 -#define FT_ASSIGN 10 -#define ED_ASSIGN 11 -#define RB_ASSIGN 12 +#define BTN_CANCEL 2 +#define BTN_ADD 3 +#define BTN_HELP 4 +#define FT_ASSIGN 10 +#define ED_ASSIGN 11 +#define RB_ASSIGN 12 diff --git a/sc/source/ui/inc/simpref.hxx b/sc/source/ui/inc/simpref.hxx index ba5b8ca287c3..1030d2c012a7 100644 --- a/sc/source/ui/inc/simpref.hxx +++ b/sc/source/ui/inc/simpref.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -56,31 +56,31 @@ class ScDocument; class ScSimpleRefDlg: public ScAnyRefDlg { private: - Link aCloseHdl; - Link aDoneHdl; - Link aAbortedHdl; - Link aChangeHdl; - - FixedText aFtAssign; - formula::RefEdit aEdAssign; - formula::RefButton aRbAssign; - - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - - ScViewData* pViewData; - ScDocument* pDoc; - BOOL bRefInputMode; - - ScRange theCurArea; - BOOL bCloseFlag; - BOOL bAutoReOpen; - BOOL bCloseOnButtonUp; - BOOL bSingleCell; + Link aCloseHdl; + Link aDoneHdl; + Link aAbortedHdl; + Link aChangeHdl; + + FixedText aFtAssign; + formula::RefEdit aEdAssign; + formula::RefButton aRbAssign; + + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + + ScViewData* pViewData; + ScDocument* pDoc; + BOOL bRefInputMode; + + ScRange theCurArea; + BOOL bCloseFlag; + BOOL bAutoReOpen; + BOOL bCloseOnButtonUp; + BOOL bSingleCell; BOOL bMultiSelection; - void Init(); + void Init(); DECL_LINK( CancelBtnHdl, void * ); DECL_LINK( OkBtnHdl, void * ); @@ -88,32 +88,32 @@ private: protected: - virtual void RefInputDone( BOOL bForced = FALSE ); + virtual void RefInputDone( BOOL bForced = FALSE ); public: ScSimpleRefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScViewData* ptrViewData ); + ScViewData* ptrViewData ); ~ScSimpleRefDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const; - virtual void SetActive(); - virtual BOOL Close(); + virtual BOOL IsRefInputMode() const; + virtual void SetActive(); + virtual BOOL Close(); - void StartRefInput(); + void StartRefInput(); - virtual String GetRefString() const; - virtual void SetRefString(const String &rStr); + virtual String GetRefString() const; + virtual void SetRefString(const String &rStr); virtual void FillInfo(SfxChildWinInfo&) const; - void SetCloseHdl( const Link& rLink ); - void SetUnoLinks( const Link& rDone, const Link& rAbort, + void SetCloseHdl( const Link& rLink ); + void SetUnoLinks( const Link& rDone, const Link& rAbort, const Link& rChange ); void SetFlags( BOOL bSetCloseOnButtonUp, BOOL bSetSingleCell, BOOL bSetMultiSelection ); - void SetAutoReOpen(BOOL bFlag) {bAutoReOpen=bFlag;} + void SetAutoReOpen(BOOL bFlag) {bAutoReOpen=bFlag;} }; diff --git a/sc/source/ui/inc/sizedev.hxx b/sc/source/ui/inc/sizedev.hxx index 615755be0240..5b501068429b 100644 --- a/sc/source/ui/inc/sizedev.hxx +++ b/sc/source/ui/inc/sizedev.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,20 +35,20 @@ class ScDocShell; class ScSizeDeviceProvider { - OutputDevice* pDevice; - BOOL bOwner; - double nPPTX; - double nPPTY; - MapMode aOldMapMode; + OutputDevice* pDevice; + BOOL bOwner; + double nPPTX; + double nPPTY; + MapMode aOldMapMode; public: ScSizeDeviceProvider( ScDocShell* pDocSh ); ~ScSizeDeviceProvider(); - OutputDevice* GetDevice() const { return pDevice; } - double GetPPTX() const { return nPPTX; } - double GetPPTY() const { return nPPTY; } - BOOL IsPrinter() const { return !bOwner; } + OutputDevice* GetDevice() const { return pDevice; } + double GetPPTX() const { return nPPTX; } + double GetPPTY() const { return nPPTY; } + BOOL IsPrinter() const { return !bOwner; } }; #endif diff --git a/sc/source/ui/inc/solveroptions.hrc b/sc/source/ui/inc/solveroptions.hrc index e3be150ccd1b..0cf4e05617c3 100644 --- a/sc/source/ui/inc/solveroptions.hrc +++ b/sc/source/ui/inc/solveroptions.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/solveroptions.hxx b/sc/source/ui/inc/solveroptions.hxx index fc0714558be4..a6e92c85a6a2 100644 --- a/sc/source/ui/inc/solveroptions.hxx +++ b/sc/source/ui/inc/solveroptions.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/solverutil.hxx b/sc/source/ui/inc/solverutil.hxx index 89997e03c1a3..5241c247d122 100644 --- a/sc/source/ui/inc/solverutil.hxx +++ b/sc/source/ui/inc/solverutil.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/solvrdlg.hrc b/sc/source/ui/inc/solvrdlg.hrc index 7139abd2a5f6..a04fa5aafb22 100644 --- a/sc/source/ui/inc/solvrdlg.hrc +++ b/sc/source/ui/inc/solvrdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -27,20 +27,20 @@ #include "sc.hrc" // ->RID_SCDLG_SOLVER -#define ED_FORMULACELL 1 -#define ED_TARGETVAL 2 -#define ED_VARCELL 3 -#define FT_FORMULACELL 1 -#define FT_TARGETVAL 2 -#define FT_VARCELL 3 -#define RB_FORMULACELL 1 -#define RB_VARCELL 2 +#define ED_FORMULACELL 1 +#define ED_TARGETVAL 2 +#define ED_VARCELL 3 +#define FT_FORMULACELL 1 +#define FT_TARGETVAL 2 +#define FT_VARCELL 3 +#define RB_FORMULACELL 1 +#define RB_VARCELL 2 #define FL_VARIABLES 1 -#define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_HELP 1 -#define STR_INVALIDVAL 1 -#define STR_INVALIDVAR 2 -#define STR_INVALIDFORM 3 -#define STR_NOFORMULA 4 +#define BTN_OK 1 +#define BTN_CANCEL 2 +#define BTN_HELP 1 +#define STR_INVALIDVAL 1 +#define STR_INVALIDVAR 2 +#define STR_INVALIDFORM 3 +#define STR_NOFORMULA 4 diff --git a/sc/source/ui/inc/solvrdlg.hxx b/sc/source/ui/inc/solvrdlg.hxx index fa1b9eb6341c..4ab38adc891b 100644 --- a/sc/source/ui/inc/solvrdlg.hxx +++ b/sc/source/ui/inc/solvrdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -57,51 +57,51 @@ public: ScAddress aCursorPos ); ~ScSolverDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); virtual BOOL IsRefInputMode() const; - virtual void SetActive(); - virtual BOOL Close(); + virtual void SetActive(); + virtual BOOL Close(); private: FixedLine aFlVariables; - FixedText aFtFormulaCell; - formula::RefEdit aEdFormulaCell; - formula::RefButton aRBFormulaCell; + FixedText aFtFormulaCell; + formula::RefEdit aEdFormulaCell; + formula::RefButton aRBFormulaCell; - FixedText aFtTargetVal; - Edit aEdTargetVal; + FixedText aFtTargetVal; + Edit aEdTargetVal; - FixedText aFtVariableCell; - formula::RefEdit aEdVariableCell; - formula::RefButton aRBVariableCell; + FixedText aFtVariableCell; + formula::RefEdit aEdVariableCell; + formula::RefButton aRBVariableCell; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; - ScAddress theFormulaCell; - ScAddress theVariableCell; - String theTargetValStr; + ScAddress theFormulaCell; + ScAddress theVariableCell; + String theTargetValStr; - ScDocument* pDoc; - const SCTAB nCurTab; - formula::RefEdit* pEdActive; - BOOL bDlgLostFocus; - const String errMsgInvalidVar; - const String errMsgInvalidForm; - const String errMsgNoFormula; - const String errMsgInvalidVal; + ScDocument* pDoc; + const SCTAB nCurTab; + formula::RefEdit* pEdActive; + BOOL bDlgLostFocus; + const String errMsgInvalidVar; + const String errMsgInvalidForm; + const String errMsgNoFormula; + const String errMsgInvalidVal; #ifdef _SOLVRDLG_CXX - void Init(); - BOOL CheckTargetValue( String& rStrVal ); - void RaiseError( ScSolverErr eError ); + void Init(); + BOOL CheckTargetValue( String& rStrVal ); + void RaiseError( ScSolverErr eError ); DECL_LINK( BtnHdl, PushButton* ); DECL_LINK( GetFocusHdl, Control* ); DECL_LINK( LoseFocusHdl, Control* ); -#endif // _SOLVERDLG_CXX +#endif // _SOLVERDLG_CXX }; #endif // SC_SOLVRDLG_HXX diff --git a/sc/source/ui/inc/sortdlg.hrc b/sc/source/ui/inc/sortdlg.hrc index 387690531cfd..40f5d042ff5c 100644 --- a/sc/source/ui/inc/sortdlg.hrc +++ b/sc/source/ui/inc/sortdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,33 +35,33 @@ // -> SCSTR_FIELD /* -#define RID_SCDLG_SORT 256 -#define RID_SCPAGE_SORT_FIELDS 257 -#define RID_SCPAGE_SORT_OPTIONS 258 +#define RID_SCDLG_SORT 256 +#define RID_SCPAGE_SORT_FIELDS 257 +#define RID_SCPAGE_SORT_OPTIONS 258 #define RID_SCDLG_SORT_WARNING */ -#define TP_FIELDS 1 -#define TP_OPTIONS 2 +#define TP_FIELDS 1 +#define TP_OPTIONS 2 // TP_SORT_FIELDS: #define FL_SORT1 1 #define FL_SORT2 2 #define FL_SORT3 3 -#define LB_SORT1 4 -#define LB_SORT2 5 -#define LB_SORT3 6 -#define BTN_UP1 7 -#define BTN_UP2 8 -#define BTN_UP3 9 -#define BTN_DOWN1 10 -#define BTN_DOWN2 11 -#define BTN_DOWN3 12 +#define LB_SORT1 4 +#define LB_SORT2 5 +#define LB_SORT3 6 +#define BTN_UP1 7 +#define BTN_UP2 8 +#define BTN_UP3 9 +#define BTN_DOWN1 10 +#define BTN_DOWN2 11 +#define BTN_DOWN3 12 // TP_SORT_OPTIONS: -#define FL_DIRECTION 1 -#define LB_SORT_USER 2 -#define LB_OUTAREA 3 +#define FL_DIRECTION 1 +#define LB_SORT_USER 2 +#define LB_OUTAREA 3 #define ED_OUTAREA 4 #define FT_AREA_LABEL 5 //#define FT_AREA 6 diff --git a/sc/source/ui/inc/sortdlg.hxx b/sc/source/ui/inc/sortdlg.hxx index e6f9ab1bf0c8..f6b2231f6732 100644 --- a/sc/source/ui/inc/sortdlg.hxx +++ b/sc/source/ui/inc/sortdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,25 +46,25 @@ class ScSortDlg : public SfxTabDialog { public: - ScSortDlg( Window* pParent, + ScSortDlg( Window* pParent, const SfxItemSet* pArgSet ); ~ScSortDlg(); - void SetHeaders( BOOL bHeaders ); - void SetByRows ( BOOL bByRows ); - BOOL GetHeaders() const; - BOOL GetByRows () const; + void SetHeaders( BOOL bHeaders ); + void SetByRows ( BOOL bByRows ); + BOOL GetHeaders() const; + BOOL GetByRows () const; private: - BOOL bIsHeaders; - BOOL bIsByRows; + BOOL bIsHeaders; + BOOL bIsByRows; }; -inline void ScSortDlg::SetHeaders( BOOL bHeaders ) { bIsHeaders = bHeaders; } -inline void ScSortDlg::SetByRows ( BOOL bByRows ) { bIsByRows = bByRows; } -inline BOOL ScSortDlg::GetHeaders() const { return bIsHeaders; } -inline BOOL ScSortDlg::GetByRows () const { return bIsByRows; } +inline void ScSortDlg::SetHeaders( BOOL bHeaders ) { bIsHeaders = bHeaders; } +inline void ScSortDlg::SetByRows ( BOOL bByRows ) { bIsByRows = bByRows; } +inline BOOL ScSortDlg::GetHeaders() const { return bIsHeaders; } +inline BOOL ScSortDlg::GetByRows () const { return bIsByRows; } class ScSortWarningDlg : public ModalDialog { diff --git a/sc/source/ui/inc/spelldialog.hxx b/sc/source/ui/inc/spelldialog.hxx index eef0d170c2c8..d77ccc7df3f9 100644 --- a/sc/source/ui/inc/spelldialog.hxx +++ b/sc/source/ui/inc/spelldialog.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/spelleng.hxx b/sc/source/ui/inc/spelleng.hxx index f44d4a8f7094..85b54daa4852 100644 --- a/sc/source/ui/inc/spelleng.hxx +++ b/sc/source/ui/inc/spelleng.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/spellparam.hxx b/sc/source/ui/inc/spellparam.hxx index ecc66d7ccdcb..2b845ad6dbb0 100644 --- a/sc/source/ui/inc/spellparam.hxx +++ b/sc/source/ui/inc/spellparam.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/strindlg.hxx b/sc/source/ui/inc/strindlg.hxx index f84d8e4e2b51..939956fc5ae3 100644 --- a/sc/source/ui/inc/strindlg.hxx +++ b/sc/source/ui/inc/strindlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,7 +42,7 @@ class ScStringInputDlg : public ModalDialog { public: - ScStringInputDlg( Window* pParent, + ScStringInputDlg( Window* pParent, const String& rTitle, const String& rEditTitle, const String& rDefault, @@ -54,9 +54,9 @@ public: private: FixedText aFtEditTitle; Edit aEdInput; - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; }; #include <layout/layout-post.hxx> diff --git a/sc/source/ui/inc/styledlg.hrc b/sc/source/ui/inc/styledlg.hrc index 4a954bb3afc1..6ce7ef4ac422 100644 --- a/sc/source/ui/inc/styledlg.hrc +++ b/sc/source/ui/inc/styledlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -30,9 +30,9 @@ #define TP_BORDER 5 #define TP_BACKGROUND 6 #define TP_PROTECTION 7 -#define TP_PAGE_STD 8 +#define TP_PAGE_STD 8 #define TP_PAGE_HEADER 9 -#define TP_PAGE_FOOTER 10 +#define TP_PAGE_FOOTER 10 #define TP_TABLE 11 #define TP_FONTEFF 12 #define TP_ASIAN 13 diff --git a/sc/source/ui/inc/styledlg.hxx b/sc/source/ui/inc/styledlg.hxx index 63e37becf188..35ef4986d50b 100644 --- a/sc/source/ui/inc/styledlg.hxx +++ b/sc/source/ui/inc/styledlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,14 +40,14 @@ class SfxStyleSheetBase; class ScStyleDlg : public SfxStyleDialog { public: - ScStyleDlg( Window* pParent, - SfxStyleSheetBase& rStyleBase, - USHORT nRscId ); + ScStyleDlg( Window* pParent, + SfxStyleSheetBase& rStyleBase, + USHORT nRscId ); ~ScStyleDlg(); protected: - virtual void PageCreated( USHORT nPageId, SfxTabPage& rTabPage ); - virtual const SfxItemSet* GetRefreshedSet(); + virtual void PageCreated( USHORT nPageId, SfxTabPage& rTabPage ); + virtual const SfxItemSet* GetRefreshedSet(); private: USHORT nDlgRsc; diff --git a/sc/source/ui/inc/submenu.hrc b/sc/source/ui/inc/submenu.hrc index 4e5ad6d28d9e..1a77b40842f7 100644 --- a/sc/source/ui/inc/submenu.hrc +++ b/sc/source/ui/inc/submenu.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -25,44 +25,44 @@ * ************************************************************************/ -// IDs fuer Untermenues +// IDs fuer Untermenues -// 1 ist nicht erlaubt ???? -#define SUBMENU_EDIT 2 -#define SUBMENU_FILL 3 -#define SUBMENU_DELBREAK 4 -#define SUBMENU_VIEW 5 -#define SUBMENU_INSERT 6 -#define SUBMENU_INSBREAK 7 -#define SUBMENU_NAME 8 -#define SUBMENU_INSOBJ 9 -#define SUBMENU_DATA 10 -#define SUBMENU_FILTER 11 -#define SUBMENU_OUTLINE 12 -#define SUBMENU_PIVOT 13 -#define SUBMENU_EXTRA 14 -#define SUBMENU_AUDIT 15 -#define SUBMENU_PROTECT 16 -#define SUBMENU_ROW 17 -#define SUBMENU_COL 18 -#define SUBMENU_TAB 19 -#define SUBMENU_MERGE 20 -#define SUBMENU_AREA 21 -#define SUBMENU_MIRROR 22 -#define SUBMENU_OBJARRANGE 23 -#define SUBMENU_ANCHOR 24 -#define SUBMENU_POPARRANGE 25 -#define SUBMENU_OLEARRANGE 26 -#define SUBMENU_MAIL 27 -#define SUBMENU_OPTIONS 28 -#define SUBMENU_TOOLBARS 29 -#define SUBMENU_GRAPHIC 30 -#define SUBMENU_SPELLING 31 -#define SUBMENU_CELLCONT 32 -#define SUBMENU_OBJMIRROR 33 -#define SUBMENU_OBJALIGN 34 -#define SUBMENU_OBJANCHOR 35 -#define SUBMENU_SENDTO 36 -#define SUBMENU_CHANGES 37 +// 1 ist nicht erlaubt ???? +#define SUBMENU_EDIT 2 +#define SUBMENU_FILL 3 +#define SUBMENU_DELBREAK 4 +#define SUBMENU_VIEW 5 +#define SUBMENU_INSERT 6 +#define SUBMENU_INSBREAK 7 +#define SUBMENU_NAME 8 +#define SUBMENU_INSOBJ 9 +#define SUBMENU_DATA 10 +#define SUBMENU_FILTER 11 +#define SUBMENU_OUTLINE 12 +#define SUBMENU_PIVOT 13 +#define SUBMENU_EXTRA 14 +#define SUBMENU_AUDIT 15 +#define SUBMENU_PROTECT 16 +#define SUBMENU_ROW 17 +#define SUBMENU_COL 18 +#define SUBMENU_TAB 19 +#define SUBMENU_MERGE 20 +#define SUBMENU_AREA 21 +#define SUBMENU_MIRROR 22 +#define SUBMENU_OBJARRANGE 23 +#define SUBMENU_ANCHOR 24 +#define SUBMENU_POPARRANGE 25 +#define SUBMENU_OLEARRANGE 26 +#define SUBMENU_MAIL 27 +#define SUBMENU_OPTIONS 28 +#define SUBMENU_TOOLBARS 29 +#define SUBMENU_GRAPHIC 30 +#define SUBMENU_SPELLING 31 +#define SUBMENU_CELLCONT 32 +#define SUBMENU_OBJMIRROR 33 +#define SUBMENU_OBJALIGN 34 +#define SUBMENU_OBJANCHOR 35 +#define SUBMENU_SENDTO 36 +#define SUBMENU_CHANGES 37 #define SUBMENU_EDIT_TABLE 38 #define MN_TEMPLATES 39 diff --git a/sc/source/ui/inc/subtdlg.hrc b/sc/source/ui/inc/subtdlg.hrc index 66c63df48953..9970491e5df3 100644 --- a/sc/source/ui/inc/subtdlg.hrc +++ b/sc/source/ui/inc/subtdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,7 +34,7 @@ */ // TabDialog -#define BTN_REMOVE 1 +#define BTN_REMOVE 1 #define PAGE_GROUP1 2 #define PAGE_GROUP2 3 #define PAGE_GROUP3 4 diff --git a/sc/source/ui/inc/subtdlg.hxx b/sc/source/ui/inc/subtdlg.hxx index ec68d0e1fba1..1036a1826041 100644 --- a/sc/source/ui/inc/subtdlg.hxx +++ b/sc/source/ui/inc/subtdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,20 +33,20 @@ #include <sfx2/tabdlg.hxx> -#include "scui_def.hxx" //CHINA001 +#include "scui_def.hxx" //CHINA001 //------------------------------------------------------------------------ -//CHINA001 #define SCRET_REMOVE 0x42 +//CHINA001 #define SCRET_REMOVE 0x42 //================================================================== class ScSubTotalDlg : public SfxTabDialog { public: - ScSubTotalDlg( Window* pParent, - const SfxItemSet* pArgSet ); + ScSubTotalDlg( Window* pParent, + const SfxItemSet* pArgSet ); private: - PushButton aBtnRemove; + PushButton aBtnRemove; DECL_LINK( RemoveHdl, PushButton * ); }; diff --git a/sc/source/ui/inc/tabbgcolordlg.hxx b/sc/source/ui/inc/tabbgcolordlg.hxx index 338609ae0e4d..826746300f16 100644 --- a/sc/source/ui/inc/tabbgcolordlg.hxx +++ b/sc/source/ui/inc/tabbgcolordlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/tabcont.hxx b/sc/source/ui/inc/tabcont.hxx index d77ee812fdb3..77dfecc3ed5f 100644 --- a/sc/source/ui/inc/tabcont.hxx +++ b/sc/source/ui/inc/tabcont.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,37 +37,37 @@ class ScViewData; // --------------------------------------------------------------------------- -// initial size -#define SC_TABBAR_DEFWIDTH 270 +// initial size +#define SC_TABBAR_DEFWIDTH 270 class ScTabControl : public TabBar, public DropTargetHelper, public DragSourceHelper { private: - ScViewData* pViewData; + ScViewData* pViewData; USHORT nMouseClickPageId; /// Last page ID after mouse button down/up USHORT nSelPageIdByMouse; /// Selected page ID, if selected with mouse BOOL bErrorShown; - void DoDrag( const Region& rRegion ); + void DoDrag( const Region& rRegion ); - USHORT GetMaxId() const; - SCTAB GetPrivatDropPos(const Point& rPos ); + USHORT GetMaxId() const; + SCTAB GetPrivatDropPos(const Point& rPos ); protected: - virtual void Select(); - virtual void Command( const CommandEvent& rCEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void Select(); + virtual void Command( const CommandEvent& rCEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); + virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); - virtual long StartRenaming(); - virtual long AllowRenaming(); - virtual void EndRenaming(); + virtual long StartRenaming(); + virtual long AllowRenaming(); + virtual void EndRenaming(); virtual void Mirror(); public: @@ -76,8 +76,8 @@ public: using TabBar::StartDrag; - void UpdateStatus(); - void ActivateView(BOOL bActivate); + void UpdateStatus(); + void ActivateView(BOOL bActivate); void SetSheetLayoutRTL( BOOL bSheetRTL ); }; diff --git a/sc/source/ui/inc/tabopdlg.hrc b/sc/source/ui/inc/tabopdlg.hrc index 5ae127b63e73..a2d3b7633cf9 100644 --- a/sc/source/ui/inc/tabopdlg.hrc +++ b/sc/source/ui/inc/tabopdlg.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -27,24 +27,24 @@ #include "sc.hrc" // ->RID_SCDLG_TABOP -#define ED_FORMULARANGE 1 -#define ED_ROWCELL 2 -#define ED_COLCELL 3 -#define FT_FORMULARANGE 1 -#define FT_ROWCELL 2 -#define FT_COLCELL 3 -#define RB_FORMULARANGE 1 -#define RB_ROWCELL 2 -#define RB_COLCELL 3 +#define ED_FORMULARANGE 1 +#define ED_ROWCELL 2 +#define ED_COLCELL 3 +#define FT_FORMULARANGE 1 +#define FT_ROWCELL 2 +#define FT_COLCELL 3 +#define RB_FORMULARANGE 1 +#define RB_ROWCELL 2 +#define RB_COLCELL 3 #define FL_VARIABLES 1 -#define BTN_OK 1 -#define BTN_CANCEL 2 -#define BTN_HELP 1 -#define STR_NOFORMULA 1 -#define STR_NOCOLROW 2 -#define STR_WRONGFORMULA 3 -#define STR_WRONGROWCOL 4 -#define STR_NOCOLFORMULA 5 -#define STR_NOROWFORMULA 6 +#define BTN_OK 1 +#define BTN_CANCEL 2 +#define BTN_HELP 1 +#define STR_NOFORMULA 1 +#define STR_NOCOLROW 2 +#define STR_WRONGFORMULA 3 +#define STR_WRONGROWCOL 4 +#define STR_NOCOLFORMULA 5 +#define STR_NOROWFORMULA 6 diff --git a/sc/source/ui/inc/tabopdlg.hxx b/sc/source/ui/inc/tabopdlg.hxx index e9286ca5ee96..5ecd5fbddac3 100644 --- a/sc/source/ui/inc/tabopdlg.hxx +++ b/sc/source/ui/inc/tabopdlg.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,58 +54,58 @@ class ScTabOpDlg : public ScAnyRefDlg { public: ScTabOpDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScDocument* pDocument, - const ScRefAddress& rCursorPos ); + ScDocument* pDocument, + const ScRefAddress& rCursorPos ); ~ScTabOpDlg(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual BOOL IsRefInputMode() const { return TRUE; } - virtual void SetActive(); + virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); + virtual BOOL IsRefInputMode() const { return TRUE; } + virtual void SetActive(); - virtual BOOL Close(); + virtual BOOL Close(); private: FixedLine aFlVariables; - FixedText aFtFormulaRange; - formula::RefEdit aEdFormulaRange; - formula::RefButton aRBFormulaRange; - - FixedText aFtRowCell; - formula::RefEdit aEdRowCell; - formula::RefButton aRBRowCell; - - FixedText aFtColCell; - formula::RefEdit aEdColCell; - formula::RefButton aRBColCell; - - OKButton aBtnOk; - CancelButton aBtnCancel; - HelpButton aBtnHelp; - - ScRefAddress theFormulaCell; - ScRefAddress theFormulaEnd; - ScRefAddress theRowCell; - ScRefAddress theColCell; - - ScDocument* pDoc; - const SCTAB nCurTab; - formula::RefEdit* pEdActive; - BOOL bDlgLostFocus; - const String errMsgNoFormula; - const String errMsgNoColRow; - const String errMsgWrongFormula; - const String errMsgWrongRowCol; - const String errMsgNoColFormula; - const String errMsgNoRowFormula; + FixedText aFtFormulaRange; + formula::RefEdit aEdFormulaRange; + formula::RefButton aRBFormulaRange; + + FixedText aFtRowCell; + formula::RefEdit aEdRowCell; + formula::RefButton aRBRowCell; + + FixedText aFtColCell; + formula::RefEdit aEdColCell; + formula::RefButton aRBColCell; + + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + + ScRefAddress theFormulaCell; + ScRefAddress theFormulaEnd; + ScRefAddress theRowCell; + ScRefAddress theColCell; + + ScDocument* pDoc; + const SCTAB nCurTab; + formula::RefEdit* pEdActive; + BOOL bDlgLostFocus; + const String errMsgNoFormula; + const String errMsgNoColRow; + const String errMsgWrongFormula; + const String errMsgWrongRowCol; + const String errMsgNoColFormula; + const String errMsgNoRowFormula; #ifdef _TABOPDLG_CXX - void Init(); - void RaiseError( ScTabOpErr eError ); + void Init(); + void RaiseError( ScTabOpErr eError ); DECL_LINK( BtnHdl, PushButton* ); DECL_LINK( GetFocusHdl, Control* ); DECL_LINK( LoseFocusHdl, Control* ); -#endif // _TABOPDLG_CXX +#endif // _TABOPDLG_CXX }; #endif // SC_TABOPDLG_HXX diff --git a/sc/source/ui/inc/tabpages.hxx b/sc/source/ui/inc/tabpages.hxx index 71d62f964fef..a69ad206ea5c 100644 --- a/sc/source/ui/inc/tabpages.hxx +++ b/sc/source/ui/inc/tabpages.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,43 +39,43 @@ class ScTabPageProtection : public SfxTabPage { public: - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rAttrSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rCoreAttrs ); - virtual void Reset ( const SfxItemSet& ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rAttrSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rCoreAttrs ); + virtual void Reset ( const SfxItemSet& ); protected: using SfxTabPage::DeactivatePage; - virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); + virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); private: - ScTabPageProtection( Window* pParent, - const SfxItemSet& rCoreAttrs ); + ScTabPageProtection( Window* pParent, + const SfxItemSet& rCoreAttrs ); ~ScTabPageProtection(); private: FixedLine aFlProtect; - TriStateBox aBtnHideCell; - TriStateBox aBtnProtect; - TriStateBox aBtnHideFormula; - FixedInfo aTxtHint; + TriStateBox aBtnHideCell; + TriStateBox aBtnProtect; + TriStateBox aBtnHideFormula; + FixedInfo aTxtHint; FixedLine aFlPrint; - TriStateBox aBtnHidePrint; - FixedInfo aTxtHint2; + TriStateBox aBtnHidePrint; + FixedInfo aTxtHint2; // aktueller Status: - BOOL bTriEnabled; // wenn vorher Dont-Care - BOOL bDontCare; // alles auf TriState - BOOL bProtect; // einzelne Einstellungen ueber TriState sichern - BOOL bHideForm; - BOOL bHideCell; - BOOL bHidePrint; + BOOL bTriEnabled; // wenn vorher Dont-Care + BOOL bDontCare; // alles auf TriState + BOOL bProtect; // einzelne Einstellungen ueber TriState sichern + BOOL bHideForm; + BOOL bHideCell; + BOOL bHidePrint; // Handler: DECL_LINK( ButtonClickHdl, TriStateBox* pBox ); - void UpdateButtons(); + void UpdateButtons(); }; diff --git a/sc/source/ui/inc/tabpopsh.hxx b/sc/source/ui/inc/tabpopsh.hxx index 177e3d75136f..e5eda9ba9904 100644 --- a/sc/source/ui/inc/tabpopsh.hxx +++ b/sc/source/ui/inc/tabpopsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,8 +42,8 @@ public: ScTabPopShell(SfxItemPool& rItemPool); ~ScTabPopShell(); - void DummyExec( SfxRequest& rReq ); - void DummyState( SfxItemSet& rSet ); + void DummyExec( SfxRequest& rReq ); + void DummyState( SfxItemSet& rSet ); }; diff --git a/sc/source/ui/inc/tabsplit.hxx b/sc/source/ui/inc/tabsplit.hxx index a06664c7c4ee..e6574322ffca 100644 --- a/sc/source/ui/inc/tabsplit.hxx +++ b/sc/source/ui/inc/tabsplit.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,22 +36,22 @@ class ScViewData; class ScTabSplitter : public Splitter { private: - ScViewData* pViewData; - BOOL bFixed; + ScViewData* pViewData; + BOOL bFixed; protected: - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseMove( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void Splitting( Point& rSplitPos ); + virtual void Splitting( Point& rSplitPos ); public: ScTabSplitter( Window* pParent, WinBits nWinStyle, ScViewData* pData ); ~ScTabSplitter(); - void SetFixed(BOOL bSet); + void SetFixed(BOOL bSet); }; diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx index a6e99613f2ea..d97a600b7c09 100644 --- a/sc/source/ui/inc/tabview.hxx +++ b/sc/source/ui/inc/tabview.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,10 +29,10 @@ #include <vcl/scrbar.hxx> -//REMOVE #ifndef SO2_DECL_SVINPLACECLIENT_DEFINED -//REMOVE #define SO2_DECL_SVINPLACECLIENT_DEFINED -//REMOVE SO2_DECL_REF(SvInPlaceClient) -//REMOVE #endif +//REMOVE #ifndef SO2_DECL_SVINPLACECLIENT_DEFINED +//REMOVE #define SO2_DECL_SVINPLACECLIENT_DEFINED +//REMOVE SO2_DECL_REF(SvInPlaceClient) +//REMOVE #endif #include <sfx2/ipclient.hxx> @@ -65,28 +65,28 @@ namespace chart2 { namespace data { struct HighlightedRange; }}}}} -#define SPLIT_HANDLE_SIZE 3 -#define SC_FORCEMODE_NONE 0xff +#define SPLIT_HANDLE_SIZE 3 +#define SC_FORCEMODE_NONE 0xff // --------------------------------------------------------------------------- -// Hilfs - Fenster +// Hilfs - Fenster class ScCornerButton : public Window { private: - ScViewData* pViewData; - BOOL bAdd; + ScViewData* pViewData; + BOOL bAdd; protected: - virtual void Paint( const Rectangle& rRect ); - virtual void Resize(); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void Paint( const Rectangle& rRect ); + virtual void Resize(); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); public: ScCornerButton( Window* pParent, ScViewData* pData, BOOL bAdditional ); ~ScCornerButton(); - virtual void StateChanged( StateChangedType nType ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); + virtual void StateChanged( StateChangedType nType ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); }; @@ -95,147 +95,147 @@ public: class ScTabView { private: - Window* pFrameWin; // als erstes !!! - ScViewData aViewData; // muss ganz vorne stehen ! + Window* pFrameWin; // als erstes !!! + ScViewData aViewData; // muss ganz vorne stehen ! - ScViewSelectionEngine* pSelEngine; - ScViewFunctionSet aFunctionSet; + ScViewSelectionEngine* pSelEngine; + ScViewFunctionSet aFunctionSet; ScHeaderSelectionEngine* pHdrSelEng; - ScHeaderFunctionSet aHdrFunc; + ScHeaderFunctionSet aHdrFunc; SfxInPlaceClient* pIPClient; - ScDrawView* pDrawView; + ScDrawView* pDrawView; - Size aFrameSize; // wie bei DoResize uebergeben - Point aBorderPos; + Size aFrameSize; // wie bei DoResize uebergeben + Point aBorderPos; - BOOL bDrawSelMode; // nur Zeichenobjekte selektieren ? + BOOL bDrawSelMode; // nur Zeichenobjekte selektieren ? - FuPoor* pDrawActual; - FuPoor* pDrawOld; + FuPoor* pDrawActual; + FuPoor* pDrawOld; - ScGridWindow* pGridWin[4]; - ScColBar* pColBar[2]; - ScRowBar* pRowBar[2]; - ScOutlineWindow* pColOutline[2]; - ScOutlineWindow* pRowOutline[2]; - ScTabSplitter* pHSplitter; - ScTabSplitter* pVSplitter; - ScTabControl* pTabControl; - ScrollBar aVScrollTop; - ScrollBar aVScrollBottom; // anfangs sichtbar - ScrollBar aHScrollLeft; // anfangs sichtbar - ScrollBar aHScrollRight; - ScCornerButton aCornerButton; - ScCornerButton aTopButton; - ScrollBarBox aScrollBarBox; + ScGridWindow* pGridWin[4]; + ScColBar* pColBar[2]; + ScRowBar* pRowBar[2]; + ScOutlineWindow* pColOutline[2]; + ScOutlineWindow* pRowOutline[2]; + ScTabSplitter* pHSplitter; + ScTabSplitter* pVSplitter; + ScTabControl* pTabControl; + ScrollBar aVScrollTop; + ScrollBar aVScrollBottom; // anfangs sichtbar + ScrollBar aHScrollLeft; // anfangs sichtbar + ScrollBar aHScrollRight; + ScCornerButton aCornerButton; + ScCornerButton aTopButton; + ScrollBarBox aScrollBarBox; - ScHintWindow* pInputHintWindow; // Eingabemeldung bei Gueltigkeit + ScHintWindow* pInputHintWindow; // Eingabemeldung bei Gueltigkeit - ScPageBreakData* pPageBreakData; // fuer Seitenumbruch-Modus - ScHighlightRanges* pHighlightRanges; + ScPageBreakData* pPageBreakData; // fuer Seitenumbruch-Modus + ScHighlightRanges* pHighlightRanges; ScDocument* pBrushDocument; // cell formats for format paint brush SfxItemSet* pDrawBrushSet; // drawing object attributes for paint brush BOOL bLockPaintBrush; // keep for more than one use? - Timer aScrollTimer; - ScGridWindow* pTimerWindow; - MouseEvent aTimerMEvt; + Timer aScrollTimer; + ScGridWindow* pTimerWindow; + MouseEvent aTimerMEvt; - ULONG nTipVisible; + ULONG nTipVisible; - BOOL bDragging; // fuer Scrollbars - long nPrevDragPos; + BOOL bDragging; // fuer Scrollbars + long nPrevDragPos; - BOOL bIsBlockMode; // Block markieren - BOOL bBlockNeg; // wird Markierung aufgehoben? - BOOL bBlockCols; // werden ganze Spalten markiert? - BOOL bBlockRows; // werden ganze Zeilen markiert? + BOOL bIsBlockMode; // Block markieren + BOOL bBlockNeg; // wird Markierung aufgehoben? + BOOL bBlockCols; // werden ganze Spalten markiert? + BOOL bBlockRows; // werden ganze Zeilen markiert? - SCCOL nBlockStartX; + SCCOL nBlockStartX; SCCOL nBlockStartXOrig; - SCCOL nBlockEndX; + SCCOL nBlockEndX; - SCROW nBlockStartY; + SCROW nBlockStartY; SCROW nBlockStartYOrig; - SCROW nBlockEndY; + SCROW nBlockEndY; - SCTAB nBlockStartZ; - SCTAB nBlockEndZ; + SCTAB nBlockStartZ; + SCTAB nBlockEndZ; SCCOL nOldCurX; SCROW nOldCurY; double mfPendingTabBarWidth; // Tab bar width relative to frame window width. - BOOL bMinimized; - BOOL bInUpdateHeader; - BOOL bInActivatePart; - BOOL bInZoomUpdate; - BOOL bMoveIsShift; - BOOL bNewStartIfMarking; + BOOL bMinimized; + BOOL bInUpdateHeader; + BOOL bInActivatePart; + BOOL bInZoomUpdate; + BOOL bMoveIsShift; + BOOL bNewStartIfMarking; - void Init(); + void Init(); - void DoAddWin( ScGridWindow* pWin ); + void DoAddWin( ScGridWindow* pWin ); - void InitScrollBar( ScrollBar& rScrollBar, long nMaxVal ); - DECL_LINK( ScrollHdl, ScrollBar* ); - DECL_LINK( EndScrollHdl, ScrollBar* ); + void InitScrollBar( ScrollBar& rScrollBar, long nMaxVal ); + DECL_LINK( ScrollHdl, ScrollBar* ); + DECL_LINK( EndScrollHdl, ScrollBar* ); - DECL_LINK( SplitHdl, Splitter* ); - void DoHSplit(long nSplitPos); - void DoVSplit(long nSplitPos); + DECL_LINK( SplitHdl, Splitter* ); + void DoHSplit(long nSplitPos); + void DoVSplit(long nSplitPos); - DECL_LINK( TimerHdl, Timer* ); + DECL_LINK( TimerHdl, Timer* ); - void UpdateVarZoom(); + void UpdateVarZoom(); - static void SetScrollBar( ScrollBar& rScroll, long nRangeMax, long nVisible, long nPos, BOOL bLayoutRTL ); - static long GetScrollBarPos( ScrollBar& rScroll, BOOL bLayoutRTL ); + static void SetScrollBar( ScrollBar& rScroll, long nRangeMax, long nVisible, long nPos, BOOL bLayoutRTL ); + static long GetScrollBarPos( ScrollBar& rScroll, BOOL bLayoutRTL ); protected: - void UpdateHeaderWidth( const ScVSplitPos* pWhich = NULL, + void UpdateHeaderWidth( const ScVSplitPos* pWhich = NULL, const SCROW* pPosY = NULL ); - void HideTip(); - void ShowRefTip(); + void HideTip(); + void ShowRefTip(); - void ZoomChanged(); - void UpdateShow(); - void GetBorderSize( SvBorder& rBorder, const Size& rSize ); + void ZoomChanged(); + void UpdateShow(); + void GetBorderSize( SvBorder& rBorder, const Size& rSize ); - void ResetDrawDragMode(); - BOOL IsDrawTextEdit() const; - void DrawEnableAnim(BOOL bSet); - //HMHvoid DrawShowMarkHdl(BOOL bShow); + void ResetDrawDragMode(); + BOOL IsDrawTextEdit() const; + void DrawEnableAnim(BOOL bSet); + //HMHvoid DrawShowMarkHdl(BOOL bShow); - void MakeDrawView( BYTE nForceDesignMode = SC_FORCEMODE_NONE ); + void MakeDrawView( BYTE nForceDesignMode = SC_FORCEMODE_NONE ); - void HideNoteMarker(); + void HideNoteMarker(); - void UpdateIMap( SdrObject* pObj ); + void UpdateIMap( SdrObject* pObj ); public: ScTabView( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ); -//UNUSED2009-05 ScTabView( Window* pParent, const ScTabView& rScTabView, ScTabViewShell* pViewShell ); +//UNUSED2009-05 ScTabView( Window* pParent, const ScTabView& rScTabView, ScTabViewShell* pViewShell ); ~ScTabView(); - void MakeDrawLayer(); + void MakeDrawLayer(); - void HideListBox(); + void HideListBox(); - BOOL HasHintWindow() const { return pInputHintWindow != NULL; } - void RemoveHintWindow(); - void TestHintWindow(); + BOOL HasHintWindow() const { return pInputHintWindow != NULL; } + void RemoveHintWindow(); + void TestHintWindow(); - DECL_LINK( TabBarResize, void* ); + DECL_LINK( TabBarResize, void* ); /** Sets an absolute tab bar width (in pixels). */ - void SetTabBarWidth( long nNewWidth ); + void SetTabBarWidth( long nNewWidth ); /** Sets a relative tab bar width. @param fRelTabBarWidth Tab bar width relative to frame window width (0.0 ... 1.0). */ void SetRelTabBarWidth( double fRelTabBarWidth ); @@ -249,143 +249,143 @@ public: /** Returns the pending tab bar width relative to the frame window width (0.0 ... 1.0). */ double GetPendingRelTabBarWidth() const; - void DoResize( const Point& rOffset, const Size& rSize, BOOL bInner = FALSE ); - void RepeatResize( BOOL bUpdateFix = TRUE ); - void UpdateFixPos(); - Point GetGridOffset() const; + void DoResize( const Point& rOffset, const Size& rSize, BOOL bInner = FALSE ); + void RepeatResize( BOOL bUpdateFix = TRUE ); + void UpdateFixPos(); + Point GetGridOffset() const; - BOOL IsDrawSelMode() const { return bDrawSelMode; } - void SetDrawSelMode(BOOL bNew) { bDrawSelMode = bNew; } + BOOL IsDrawSelMode() const { return bDrawSelMode; } + void SetDrawSelMode(BOOL bNew) { bDrawSelMode = bNew; } - void SetDrawFuncPtr(FuPoor* pFuncPtr) { pDrawActual = pFuncPtr; } - void SetDrawFuncOldPtr(FuPoor* pFuncPtr) { pDrawOld = pFuncPtr; } - FuPoor* GetDrawFuncPtr() { return pDrawActual; } - FuPoor* GetDrawFuncOldPtr() { return pDrawOld; } + void SetDrawFuncPtr(FuPoor* pFuncPtr) { pDrawActual = pFuncPtr; } + void SetDrawFuncOldPtr(FuPoor* pFuncPtr) { pDrawOld = pFuncPtr; } + FuPoor* GetDrawFuncPtr() { return pDrawActual; } + FuPoor* GetDrawFuncOldPtr() { return pDrawOld; } - void DrawDeselectAll(); - void DrawMarkListHasChanged(); - void UpdateAnchorHandles(); + void DrawDeselectAll(); + void DrawMarkListHasChanged(); + void UpdateAnchorHandles(); //UNUSED2008-05 String GetSelectedChartName() const; - ScPageBreakData* GetPageBreakData() { return pPageBreakData; } - ScHighlightRanges* GetHighlightRanges() { return pHighlightRanges; } + ScPageBreakData* GetPageBreakData() { return pPageBreakData; } + ScHighlightRanges* GetHighlightRanges() { return pHighlightRanges; } - void UpdatePageBreakData( BOOL bForcePaint = FALSE ); + void UpdatePageBreakData( BOOL bForcePaint = FALSE ); - void DrawMarkRect( const Rectangle& rRect ); + void DrawMarkRect( const Rectangle& rRect ); - ScViewData* GetViewData() { return &aViewData; } - const ScViewData* GetViewData() const { return &aViewData; } + ScViewData* GetViewData() { return &aViewData; } + const ScViewData* GetViewData() const { return &aViewData; } - ScViewFunctionSet* GetFunctionSet() { return &aFunctionSet; } - ScViewSelectionEngine* GetSelEngine() { return pSelEngine; } + ScViewFunctionSet* GetFunctionSet() { return &aFunctionSet; } + ScViewSelectionEngine* GetSelEngine() { return pSelEngine; } - BOOL SelMouseButtonDown( const MouseEvent& rMEvt ); + BOOL SelMouseButtonDown( const MouseEvent& rMEvt ); - ScDrawView* GetScDrawView() { return pDrawView; } - SdrView* GetSdrView(); // gegen CLOKs + ScDrawView* GetScDrawView() { return pDrawView; } + SdrView* GetSdrView(); // gegen CLOKs - BOOL IsMinimized() const { return bMinimized; } + BOOL IsMinimized() const { return bMinimized; } - void TabChanged(); - void SetZoom( const Fraction& rNewX, const Fraction& rNewY, BOOL bAll ); + void TabChanged(); + void SetZoom( const Fraction& rNewX, const Fraction& rNewY, BOOL bAll ); SC_DLLPUBLIC void RefreshZoom(); - void SetPagebreakMode( BOOL bSet ); + void SetPagebreakMode( BOOL bSet ); - void UpdateLayerLocks(); + void UpdateLayerLocks(); - void UpdateDrawTextOutliner(); - void DigitLanguageChanged(); + void UpdateDrawTextOutliner(); + void DigitLanguageChanged(); - void UpdateInputLine(); + void UpdateInputLine(); - void InitRefMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eType, + void InitRefMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eType, BOOL bPaint = TRUE ); - void DoneRefMode( BOOL bContinue = FALSE ); - void UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ ); - void StopRefMode(); + void DoneRefMode( BOOL bContinue = FALSE ); + void UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ ); + void StopRefMode(); //UNUSED2008-05 void EndSelection(); - void StopMarking(); - void FakeButtonUp( ScSplitPos eWhich ); + void StopMarking(); + void FakeButtonUp( ScSplitPos eWhich ); - Window* GetActiveWin(); - Window* GetWindowByPos( ScSplitPos ePos ); + Window* GetActiveWin(); + Window* GetWindowByPos( ScSplitPos ePos ); - ScSplitPos FindWindow( Window* pWindow ) const; + ScSplitPos FindWindow( Window* pWindow ) const; - void SetActivePointer( const Pointer& rPointer ); + void SetActivePointer( const Pointer& rPointer ); //UNUSED2008-05 void SetActivePointer( const ResId& rId ); - void ActiveGrabFocus(); + void ActiveGrabFocus(); //UNUSED2008-05 void ActiveCaptureMouse(); -//UNUSED2008-05 void ActiveReleaseMouse(); +//UNUSED2008-05 void ActiveReleaseMouse(); //UNUSED2008-05 Point ActivePixelToLogic( const Point& rDevicePoint ); - void ClickCursor( SCCOL nPosX, SCROW nPosY, BOOL bControl ); + void ClickCursor( SCCOL nPosX, SCROW nPosY, BOOL bControl ); - SC_DLLPUBLIC void SetCursor( SCCOL nPosX, SCROW nPosY, BOOL bNew = FALSE ); + SC_DLLPUBLIC void SetCursor( SCCOL nPosX, SCROW nPosY, BOOL bNew = FALSE ); - SC_DLLPUBLIC void CellContentChanged(); - void SelectionChanged(); - void CursorPosChanged(); - void UpdateInputContext(); + SC_DLLPUBLIC void CellContentChanged(); + void SelectionChanged(); + void CursorPosChanged(); + void UpdateInputContext(); - void CheckSelectionTransfer(); + void CheckSelectionTransfer(); - void InvertHorizontal( ScVSplitPos eWhich, long nDragPos ); - void InvertVertical( ScHSplitPos eWhich, long nDragPos ); + void InvertHorizontal( ScVSplitPos eWhich, long nDragPos ); + void InvertVertical( ScHSplitPos eWhich, long nDragPos ); - Point GetInsertPos(); + Point GetInsertPos(); Point GetChartInsertPos( const Size& rSize, const ScRange& rCellRange ); Point GetChartDialogPos( const Size& rDialogSize, const Rectangle& rLogicChart ); - void UpdateAutoFillMark(); + void UpdateAutoFillMark(); - void HideCursor(); // nur aktiver Teil - void ShowCursor(); - void HideAllCursors(); - void ShowAllCursors(); + void HideCursor(); // nur aktiver Teil + void ShowCursor(); + void HideAllCursors(); + void ShowAllCursors(); - void AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, + void AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, const ScSplitPos* pWhich = NULL ); SvxZoomType GetZoomType() const; void SetZoomType( SvxZoomType eNew, BOOL bAll ); - USHORT CalcZoom( SvxZoomType eType, USHORT nOldZoom ); + USHORT CalcZoom( SvxZoomType eType, USHORT nOldZoom ); -// void CalcZoom( SvxZoomType eType, USHORT& rZoom, SCCOL& rCol, SCROW& rRow ); +// void CalcZoom( SvxZoomType eType, USHORT& rZoom, SCCOL& rCol, SCROW& rRow ); sal_Bool HasPageFieldDataAtCursor() const; - void StartDataSelect(); + void StartDataSelect(); - // MoveCursorAbs - absolut - // MoveCursorRel - einzelne Zellen - // MoveCursorPage - Bildschirmseite - // MoveCursorArea - Datenblock - // MoveCursorEnd - links oben / benutzter Bereich + // MoveCursorAbs - absolut + // MoveCursorRel - einzelne Zellen + // MoveCursorPage - Bildschirmseite + // MoveCursorArea - Datenblock + // MoveCursorEnd - links oben / benutzter Bereich - SC_DLLPUBLIC void MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, + SC_DLLPUBLIC void MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, BOOL bShift, BOOL bControl, BOOL bKeepOld = FALSE, BOOL bKeepSel = FALSE ); - void MoveCursorRel( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, + void MoveCursorRel( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, BOOL bShift, BOOL bKeepSel = FALSE ); - void MoveCursorPage( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, + void MoveCursorPage( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, BOOL bShift, BOOL bKeepSel = FALSE ); - void MoveCursorArea( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, + void MoveCursorArea( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, BOOL bShift, BOOL bKeepSel = FALSE ); - void MoveCursorEnd( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, + void MoveCursorEnd( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, BOOL bShift, BOOL bKeepSel = FALSE ); - void MoveCursorScreen( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, BOOL bShift ); + void MoveCursorScreen( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, BOOL bShift ); - void MoveCursorEnter( BOOL bShift ); // Shift fuer Richtung (kein Markieren) + void MoveCursorEnter( BOOL bShift ); // Shift fuer Richtung (kein Markieren) BOOL MoveCursorKeyInput( const KeyEvent& rKeyEvent ); - void FindNextUnprot( BOOL bShift, BOOL bInSelection = TRUE ); + void FindNextUnprot( BOOL bShift, BOOL bInSelection = TRUE ); - void SetNewStartIfMarking(); + void SetNewStartIfMarking(); //<!--Added by PengYunQuan for Validity Cell Range Picker //void SetTabNo( SCTAB nTab, BOOL bNew = FALSE, BOOL bExtendSelection = FALSE ); @@ -393,130 +393,130 @@ public: //-->Added by PengYunQuan for Validity Cell Range Picker void SelectNextTab( short nDir, BOOL bExtendSelection = FALSE ); - void ActivateView( BOOL bActivate, BOOL bFirst ); - void ActivatePart( ScSplitPos eWhich ); - BOOL IsInActivatePart() const { return bInActivatePart; } + void ActivateView( BOOL bActivate, BOOL bFirst ); + void ActivatePart( ScSplitPos eWhich ); + BOOL IsInActivatePart() const { return bInActivatePart; } - void SetTimer( ScGridWindow* pWin, const MouseEvent& rMEvt ); - void ResetTimer(); + void SetTimer( ScGridWindow* pWin, const MouseEvent& rMEvt ); + void ResetTimer(); - void ScrollX( long nDeltaX, ScHSplitPos eWhich, BOOL bUpdBars = TRUE ); - void ScrollY( long nDeltaY, ScVSplitPos eWhich, BOOL bUpdBars = TRUE ); - SC_DLLPUBLIC void ScrollLines( long nDeltaX, long nDeltaY ); // aktives + void ScrollX( long nDeltaX, ScHSplitPos eWhich, BOOL bUpdBars = TRUE ); + void ScrollY( long nDeltaY, ScVSplitPos eWhich, BOOL bUpdBars = TRUE ); + SC_DLLPUBLIC void ScrollLines( long nDeltaX, long nDeltaY ); // aktives - BOOL ScrollCommand( const CommandEvent& rCEvt, ScSplitPos ePos ); + BOOL ScrollCommand( const CommandEvent& rCEvt, ScSplitPos ePos ); - void ScrollToObject( SdrObject* pDrawObj ); - void MakeVisible( const Rectangle& rHMMRect ); + void ScrollToObject( SdrObject* pDrawObj ); + void MakeVisible( const Rectangle& rHMMRect ); // Zeichnen - void InvertBlockMark(SCCOL nBlockStartX, SCROW nBlockStartY, + void InvertBlockMark(SCCOL nBlockStartX, SCROW nBlockStartY, SCCOL nBlockEndX, SCROW nBlockEndY); //UNUSED2008-05 void DrawDragRect( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY, //UNUSED2008-05 ScSplitPos ePos ); -//UNUSED2008-05 void PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab ); -//UNUSED2008-05 void PaintLeftRow( SCROW nRow ); -//UNUSED2008-05 void PaintTopCol( SCCOL nCol ); +//UNUSED2008-05 void PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab ); +//UNUSED2008-05 void PaintLeftRow( SCROW nRow ); +//UNUSED2008-05 void PaintTopCol( SCCOL nCol ); - void PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, + void PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ScUpdateMode eMode = SC_UPDATE_ALL ); - void PaintGrid(); + void PaintGrid(); - void PaintTopArea( SCCOL nStartCol, SCCOL nEndCol ); - void PaintTop(); + void PaintTopArea( SCCOL nStartCol, SCCOL nEndCol ); + void PaintTop(); - void PaintLeftArea( SCROW nStartRow, SCROW nEndRow ); - void PaintLeft(); + void PaintLeftArea( SCROW nStartRow, SCROW nEndRow ); + void PaintLeft(); - BOOL PaintExtras(); + BOOL PaintExtras(); - void RecalcPPT(); + void RecalcPPT(); - void CreateAnchorHandles(SdrHdlList& rHdl, const ScAddress& rAddress); + void CreateAnchorHandles(SdrHdlList& rHdl, const ScAddress& rAddress); void UpdateSelectionOverlay(); void UpdateShrinkOverlay(); void UpdateAllOverlays(); - void UpdateFormulas(); - void InterpretVisible(); - void CheckNeedsRepaint(); + void UpdateFormulas(); + void InterpretVisible(); + void CheckNeedsRepaint(); - void PaintRangeFinder( long nNumber = -1 ); - void AddHighlightRange( const ScRange& rRange, const Color& rColor ); - void ClearHighlightRanges(); + void PaintRangeFinder( long nNumber = -1 ); + void AddHighlightRange( const ScRange& rRange, const Color& rColor ); + void ClearHighlightRanges(); - void DoChartSelection( const ::com::sun::star::uno::Sequence< + void DoChartSelection( const ::com::sun::star::uno::Sequence< ::com::sun::star::chart2::data::HighlightedRange > & rHilightRanges ); - long GetGridWidth( ScHSplitPos eWhich ); - long GetGridHeight( ScVSplitPos eWhich ); + long GetGridWidth( ScHSplitPos eWhich ); + long GetGridHeight( ScVSplitPos eWhich ); - void UpdateScrollBars(); - void SetNewVisArea(); + void UpdateScrollBars(); + void SetNewVisArea(); - void InvalidateAttribs(); + void InvalidateAttribs(); - void MakeEditView( ScEditEngineDefaulter* pEngine, SCCOL nCol, SCROW nRow ); - void KillEditView( BOOL bNoPaint ); - void UpdateEditView(); + void MakeEditView( ScEditEngineDefaulter* pEngine, SCCOL nCol, SCROW nRow ); + void KillEditView( BOOL bNoPaint ); + void UpdateEditView(); - // Bloecke + // Bloecke - void SelectAll( BOOL bContinue = FALSE ); - void SelectAllTables(); + void SelectAll( BOOL bContinue = FALSE ); + void SelectAllTables(); void DeselectAllTables(); - void MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, + void MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, BOOL bCols = FALSE, BOOL bRows = FALSE, BOOL bCellSelection = FALSE ); - void InitBlockMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, + void InitBlockMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, BOOL bTestNeg = FALSE, BOOL bCols = FALSE, BOOL bRows = FALSE ); - void InitOwnBlockMode(); - void DoneBlockMode( BOOL bContinue = FALSE ); + void InitOwnBlockMode(); + void DoneBlockMode( BOOL bContinue = FALSE ); - BOOL IsBlockMode() const { return bIsBlockMode; } + BOOL IsBlockMode() const { return bIsBlockMode; } - void MarkColumns(); - void MarkRows(); - void MarkDataArea( BOOL bIncludeCursor = TRUE ); - void MarkMatrixFormula(); - void Unmark(); + void MarkColumns(); + void MarkRows(); + void MarkDataArea( BOOL bIncludeCursor = TRUE ); + void MarkMatrixFormula(); + void Unmark(); void MarkRange( const ScRange& rRange, BOOL bSetCursor = TRUE, BOOL bContinue = FALSE ); - BOOL IsMarking( SCCOL nCol, SCROW nRow, SCTAB nTab ) const; + BOOL IsMarking( SCCOL nCol, SCROW nRow, SCTAB nTab ) const; - void PaintMarks( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ); - void PaintBlock( BOOL bReset = FALSE ); + void PaintMarks( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ); + void PaintBlock( BOOL bReset = FALSE ); void SetMarkData( const ScMarkData& rNew ); void MarkDataChanged(); - void LockModifiers( USHORT nModifiers ); - USHORT GetLockedModifiers() const; - void ViewOptionsHasChanged( BOOL bHScrollChanged, + void LockModifiers( USHORT nModifiers ); + USHORT GetLockedModifiers() const; + void ViewOptionsHasChanged( BOOL bHScrollChanged, BOOL bGraphicsChanged = FALSE); - Point GetMousePosPixel(); + Point GetMousePosPixel(); - void SnapSplitPos( Point& rScreenPosPixel ); - void FreezeSplitters( BOOL bFreeze ); - void RemoveSplit(); - void SplitAtCursor(); - void SplitAtPixel( const Point& rPixel, BOOL bHor, BOOL bVer ); - void InvalidateSplit(); + void SnapSplitPos( Point& rScreenPosPixel ); + void FreezeSplitters( BOOL bFreeze ); + void RemoveSplit(); + void SplitAtCursor(); + void SplitAtPixel( const Point& rPixel, BOOL bHor, BOOL bVer ); + void InvalidateSplit(); - void ErrorMessage( USHORT nGlobStrId ); - Window* GetParentOrChild( USHORT nChildId ); + void ErrorMessage( USHORT nGlobStrId ); + Window* GetParentOrChild( USHORT nChildId ); - void EnableRefInput(BOOL bFlag=TRUE); + void EnableRefInput(BOOL bFlag=TRUE); - Window* GetFrameWin() const { return pFrameWin; } + Window* GetFrameWin() const { return pFrameWin; } BOOL HasPaintBrush() const { return pBrushDocument || pDrawBrushSet; } ScDocument* GetBrushDocument() const { return pBrushDocument; } diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index b4313c1d7a32..91add9d085eb 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,9 +33,9 @@ #include <sfx2/viewfac.hxx> #include <editeng/svxenum.hxx> #include "scdllapi.h" -#include "dbfunc.hxx" // -> tabview +#include "dbfunc.hxx" // -> tabview #include "target.hxx" -#include "rangelst.hxx" // ScRangeListRef +#include "rangelst.hxx" // ScRangeListRef #include "shellids.hxx" #include "tabprotection.hxx" // for ScPasswordHash @@ -100,95 +100,95 @@ enum ObjectSelectionType class ScTabViewShell: public SfxViewShell, public ScDBFunc { private: - static USHORT nInsertCtrlState; - static USHORT nInsCellsCtrlState; - static USHORT nInsObjCtrlState; + static USHORT nInsertCtrlState; + static USHORT nInsCellsCtrlState; + static USHORT nInsObjCtrlState; SvxHtmlOptions aHTMLOpt; - ObjectSelectionType eCurOST; - USHORT nDrawSfxId; - USHORT nCtrlSfxId; - USHORT nFormSfxId; + ObjectSelectionType eCurOST; + USHORT nDrawSfxId; + USHORT nCtrlSfxId; + USHORT nFormSfxId; String sDrawCustom; // current custom shape type - ScDrawShell* pDrawShell; - ScDrawTextObjectBar* pDrawTextShell; - ScEditShell* pEditShell; - ScPivotShell* pPivotShell; - ScAuditingShell* pAuditingShell; - ScDrawFormShell* pDrawFormShell; - ScCellShell* pCellShell; - ScOleObjectShell* pOleObjectShell; - ScChartShell* pChartShell; - ScGraphicShell* pGraphicShell; - ScMediaShell* pMediaShell; - ScPageBreakShell* pPageBreakShell; - svx::ExtrusionBar* pExtrusionBarShell; - svx::FontworkBar* pFontworkBarShell; - - FmFormShell* pFormShell; - - ScInputHandler* pInputHandler; // fuer OLE-Eingabezeile - - SvxBorderLine* pCurFrameLine; + ScDrawShell* pDrawShell; + ScDrawTextObjectBar* pDrawTextShell; + ScEditShell* pEditShell; + ScPivotShell* pPivotShell; + ScAuditingShell* pAuditingShell; + ScDrawFormShell* pDrawFormShell; + ScCellShell* pCellShell; + ScOleObjectShell* pOleObjectShell; + ScChartShell* pChartShell; + ScGraphicShell* pGraphicShell; + ScMediaShell* pMediaShell; + ScPageBreakShell* pPageBreakShell; + svx::ExtrusionBar* pExtrusionBarShell; + svx::FontworkBar* pFontworkBarShell; + + FmFormShell* pFormShell; + + ScInputHandler* pInputHandler; // fuer OLE-Eingabezeile + + SvxBorderLine* pCurFrameLine; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor > xDisProvInterceptor; - Point aWinPos; + Point aWinPos; - ScTabViewTarget aTarget; - ScArea* pPivotSource; - ScDPObject* pDialogDPObject; + ScTabViewTarget aTarget; + ScArea* pPivotSource; + ScDPObject* pDialogDPObject; ScNavigatorSettings* pNavSettings; // used in first Activate ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue > aPendingUserData; - BOOL bFirstActivate; - - BOOL bActiveDrawSh; - BOOL bActiveDrawTextSh; - BOOL bActivePivotSh; - BOOL bActiveAuditingSh; - BOOL bActiveDrawFormSh; - BOOL bActiveOleObjectSh; - BOOL bActiveChartSh; - BOOL bActiveGraphicSh; - BOOL bActiveMediaSh; - BOOL bActiveEditSh; + BOOL bFirstActivate; + + BOOL bActiveDrawSh; + BOOL bActiveDrawTextSh; + BOOL bActivePivotSh; + BOOL bActiveAuditingSh; + BOOL bActiveDrawFormSh; + BOOL bActiveOleObjectSh; + BOOL bActiveChartSh; + BOOL bActiveGraphicSh; + BOOL bActiveMediaSh; + BOOL bActiveEditSh; BOOL bFormShellAtTop; // does the FormShell need to be on top? - BOOL bDontSwitch; // EditShell nicht abschalten - BOOL bInFormatDialog; // fuer GetSelectionText - BOOL bPrintSelected; // for result of SvxPrtQryBox + BOOL bDontSwitch; // EditShell nicht abschalten + BOOL bInFormatDialog; // fuer GetSelectionText + BOOL bPrintSelected; // for result of SvxPrtQryBox - BOOL bReadOnly; // um Status-Aenderungen zu erkennen + BOOL bReadOnly; // um Status-Aenderungen zu erkennen - SbxObject* pScSbxObject; + SbxObject* pScSbxObject; //UNUSED2008-05 BOOL bChartDlgIsEdit; // Datenbereich aendern - BOOL bChartAreaValid; // wenn Chart aufgezogen wird - String aEditChartName; - ScRangeListRef aChartSource; - Rectangle aChartPos; - SCTAB nChartDestTab; - USHORT nCurRefDlgId; + BOOL bChartAreaValid; // wenn Chart aufgezogen wird + String aEditChartName; + ScRangeListRef aChartSource; + Rectangle aChartPos; + SCTAB nChartDestTab; + USHORT nCurRefDlgId; - SfxBroadcaster* pAccessibilityBroadcaster; + SfxBroadcaster* pAccessibilityBroadcaster; - static const int MASTERENUMCOMMANDS = 6; - String aCurrShapeEnumCommand[ MASTERENUMCOMMANDS ]; + static const int MASTERENUMCOMMANDS = 6; + String aCurrShapeEnumCommand[ MASTERENUMCOMMANDS ]; private: - void Construct( BYTE nForceDesignMode = SC_FORCEMODE_NONE ); + void Construct( BYTE nForceDesignMode = SC_FORCEMODE_NONE ); //UNUSED2008-05 void SetMySubShell( SfxShell* pShell ); - SfxShell* GetMySubShell() const; + SfxShell* GetMySubShell() const; - void DoReadUserData( const String& rData ); + void DoReadUserData( const String& rData ); void DoReadUserDataSequence( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rSettings ); @@ -200,30 +200,30 @@ private: DECL_LINK( HtmlOptionsHdl, void * ); protected: - virtual void Activate(BOOL bMDI); - virtual void Deactivate(BOOL bMDI); - virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE ); + virtual void Activate(BOOL bMDI); + virtual void Deactivate(BOOL bMDI); + virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE ); - virtual void ShowCursor(FASTBOOL bOn); + virtual void ShowCursor(FASTBOOL bOn); - virtual void Move(); // Benachrichtigung + virtual void Move(); // Benachrichtigung - virtual void AdjustPosSizePixel( const Point &rPos, const Size &rSize ); // alt + virtual void AdjustPosSizePixel( const Point &rPos, const Size &rSize ); // alt - virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); // neu - virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); - virtual void SetZoomFactor( const Fraction &rZoomX, const Fraction &rZoomY ); + virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); // neu + virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); + virtual void SetZoomFactor( const Fraction &rZoomX, const Fraction &rZoomY ); - virtual void QueryObjAreaPixel( Rectangle& rRect ) const; + virtual void QueryObjAreaPixel( Rectangle& rRect ) const; - virtual Size GetOptimalSizePixel() const; + virtual Size GetOptimalSizePixel() const; virtual String GetSelectionText( BOOL bWholeWord ); - virtual BOOL HasSelection( BOOL bText ) const; + virtual BOOL HasSelection( BOOL bText ) const; virtual String GetDescription() const; - virtual void WriteUserData(String &, BOOL bBrowse = FALSE); - virtual void ReadUserData(const String &, BOOL bBrowse = FALSE); + virtual void WriteUserData(String &, BOOL bBrowse = FALSE); + virtual void ReadUserData(const String &, BOOL bBrowse = FALSE); virtual void WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); virtual void ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); @@ -247,118 +247,118 @@ public: // aus einer allgemeinen Shell konstruieren und // soviel wie moeglich uebernehmen (SliderPos etc.): - ScTabViewShell( SfxViewFrame* pViewFrame, - SfxViewShell* pOldSh ); + ScTabViewShell( SfxViewFrame* pViewFrame, + SfxViewShell* pOldSh ); - virtual ~ScTabViewShell(); + virtual ~ScTabViewShell(); - Window* GetDialogParent(); + Window* GetDialogParent(); bool IsRefInputMode() const; - void ExecuteInputDirect(); + void ExecuteInputDirect(); - ScInputHandler* GetInputHandler() const; - void UpdateInputHandler( BOOL bForce = FALSE, BOOL bStopEditing = TRUE ); + ScInputHandler* GetInputHandler() const; + void UpdateInputHandler( BOOL bForce = FALSE, BOOL bStopEditing = TRUE ); void UpdateInputHandlerCellAdjust( SvxCellHorJustify eJust ); - BOOL TabKeyInput(const KeyEvent& rKEvt); - BOOL SfxKeyInput(const KeyEvent& rKEvt); + BOOL TabKeyInput(const KeyEvent& rKEvt); + BOOL SfxKeyInput(const KeyEvent& rKEvt); - void SetActive(); + void SetActive(); - SvxBorderLine* GetDefaultFrameLine() const { return pCurFrameLine; } - void SetDefaultFrameLine(const SvxBorderLine* pLine ); + SvxBorderLine* GetDefaultFrameLine() const { return pCurFrameLine; } + void SetDefaultFrameLine(const SvxBorderLine* pLine ); //UNUSED2008-05 void ExecuteShowNIY( SfxRequest& rReq ); -//UNUSED2008-05 void StateDisabled( SfxItemSet& rSet ); +//UNUSED2008-05 void StateDisabled( SfxItemSet& rSet ); - SC_DLLPUBLIC void Execute( SfxRequest& rReq ); - SC_DLLPUBLIC void GetState( SfxItemSet& rSet ); + SC_DLLPUBLIC void Execute( SfxRequest& rReq ); + SC_DLLPUBLIC void GetState( SfxItemSet& rSet ); - void ExecuteTable( SfxRequest& rReq ); - void GetStateTable( SfxItemSet& rSet ); + void ExecuteTable( SfxRequest& rReq ); + void GetStateTable( SfxItemSet& rSet ); - void WindowChanged(); - void ExecDraw(SfxRequest&); - void ExecDrawIns(SfxRequest& rReq); - void GetDrawState(SfxItemSet &rSet); - void GetDrawInsState(SfxItemSet &rSet); - void ExecGallery(SfxRequest& rReq); // StarGallery - void GetGalleryState(SfxItemSet& rSet); + void WindowChanged(); + void ExecDraw(SfxRequest&); + void ExecDrawIns(SfxRequest& rReq); + void GetDrawState(SfxItemSet &rSet); + void GetDrawInsState(SfxItemSet &rSet); + void ExecGallery(SfxRequest& rReq); // StarGallery + void GetGalleryState(SfxItemSet& rSet); - void ExecChildWin(SfxRequest& rReq); - void GetChildWinState( SfxItemSet& rSet ); + void ExecChildWin(SfxRequest& rReq); + void GetChildWinState( SfxItemSet& rSet ); - void ExecImageMap( SfxRequest& rReq ); - void GetImageMapState( SfxItemSet& rSet ); + void ExecImageMap( SfxRequest& rReq ); + void GetImageMapState( SfxItemSet& rSet ); - void ExecTbx( SfxRequest& rReq ); - void GetTbxState( SfxItemSet& rSet ); + void ExecTbx( SfxRequest& rReq ); + void GetTbxState( SfxItemSet& rSet ); - void ExecuteSave( SfxRequest& rReq ); - void GetSaveState( SfxItemSet& rSet ); - void ExecSearch( SfxRequest& rReq ); + void ExecuteSave( SfxRequest& rReq ); + void GetSaveState( SfxItemSet& rSet ); + void ExecSearch( SfxRequest& rReq ); - void ExecuteUndo(SfxRequest& rReq); - void GetUndoState(SfxItemSet &rSet); + void ExecuteUndo(SfxRequest& rReq); + void GetUndoState(SfxItemSet &rSet); - void ExecuteSbx( SfxRequest& rReq ); - void GetSbxState( SfxItemSet& rSet ); + void ExecuteSbx( SfxRequest& rReq ); + void GetSbxState( SfxItemSet& rSet ); - void ExecuteObject(SfxRequest& rReq); - void GetObjectState(SfxItemSet &rSet); + void ExecuteObject(SfxRequest& rReq); + void GetObjectState(SfxItemSet &rSet); - void ExecDrawOpt(SfxRequest& rReq); - void GetDrawOptState(SfxItemSet &rSet); + void ExecDrawOpt(SfxRequest& rReq); + void GetDrawOptState(SfxItemSet &rSet); - void SetDrawShell( BOOL bActive ); - void SetDrawTextShell( BOOL bActive ); + void SetDrawShell( BOOL bActive ); + void SetDrawTextShell( BOOL bActive ); - void SetPivotShell( BOOL bActive ); - ScArea* GetPivotSource(){return pPivotSource;} - void SetPivotSource(ScArea* pSrc){pPivotSource=pSrc;} - void SetDialogDPObject( const ScDPObject* pObj ); + void SetPivotShell( BOOL bActive ); + ScArea* GetPivotSource(){return pPivotSource;} + void SetPivotSource(ScArea* pSrc){pPivotSource=pSrc;} + void SetDialogDPObject( const ScDPObject* pObj ); const ScDPObject* GetDialogDPObject() const { return pDialogDPObject; } - BOOL GetDontSwitch(){return bDontSwitch;} - void SetDontSwitch(BOOL bFlag){bDontSwitch=bFlag;} + BOOL GetDontSwitch(){return bDontSwitch;} + void SetDontSwitch(BOOL bFlag){bDontSwitch=bFlag;} - void SetAuditShell( BOOL bActive ); - void SetDrawFormShell( BOOL bActive ); - void SetEditShell(EditView* pView, BOOL bActive ); - void SetOleObjectShell( BOOL bActive ); - void SetChartShell( BOOL bActive ); - void SetGraphicShell( BOOL bActive ); - void SetMediaShell( BOOL bActive ); + void SetAuditShell( BOOL bActive ); + void SetDrawFormShell( BOOL bActive ); + void SetEditShell(EditView* pView, BOOL bActive ); + void SetOleObjectShell( BOOL bActive ); + void SetChartShell( BOOL bActive ); + void SetGraphicShell( BOOL bActive ); + void SetMediaShell( BOOL bActive ); - void SetDrawShellOrSub(); - void SetCurSubShell( ObjectSelectionType eOST, BOOL bForce = FALSE ); + void SetDrawShellOrSub(); + void SetCurSubShell( ObjectSelectionType eOST, BOOL bForce = FALSE ); void SetFormShellAtTop( BOOL bSet ); ObjectSelectionType GetCurObjectSelectionType(); - virtual ErrCode DoVerb(long nVerb); + virtual ErrCode DoVerb(long nVerb); - void StopEditShell(); - BOOL IsDrawTextShell() const; - BOOL IsAuditShell() const; + void StopEditShell(); + BOOL IsDrawTextShell() const; + BOOL IsAuditShell() const; - void SetDrawTextUndo( SfxUndoManager* pUndoMgr ); + void SetDrawTextUndo( SfxUndoManager* pUndoMgr ); - void FillFieldData( ScHeaderFieldData& rData ); + void FillFieldData( ScHeaderFieldData& rData ); //UNUSED2008-05 void ResetChartArea(); - void SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest ); - BOOL GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const; + void SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest ); + BOOL GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const; //UNUSED2008-05 BOOL IsChartDlgEdit() const; //UNUSED2008-05 void SetChartDlgEdit(BOOL bFlag){bChartDlgIsEdit=bFlag;} - void SetEditChartName(const String& aStr){aEditChartName=aStr;} + void SetEditChartName(const String& aStr){aEditChartName=aStr;} //UNUSED2008-05 const String& GetEditChartName() const; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); @@ -366,70 +366,70 @@ public: ScNavigatorSettings* GetNavigatorSettings(); // Drucken: - virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE ); - virtual USHORT SetPrinter( SfxPrinter* pNewPrinter, + virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE ); + virtual USHORT SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL, bool bIsApi=false ); - virtual PrintDialog* CreatePrintDialog( Window* pParent ); + virtual PrintDialog* CreatePrintDialog( Window* pParent ); virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, const SfxItemSet &rOptions ); - virtual void PreparePrint( PrintDialog* pPrintDialog = NULL ); - virtual ErrCode DoPrint( SfxPrinter *pPrinter, + virtual void PreparePrint( PrintDialog* pPrintDialog = NULL ); + virtual ErrCode DoPrint( SfxPrinter *pPrinter, PrintDialog *pPrintDialog, BOOL bSilent, BOOL bIsAPI ); virtual USHORT Print( SfxProgress& rProgress, BOOL bIsAPI, PrintDialog* pPrintDialog = NULL ); - void ConnectObject( SdrOle2Obj* pObj ); - BOOL ActivateObject( SdrOle2Obj* pObj, long nVerb ); + void ConnectObject( SdrOle2Obj* pObj ); + BOOL ActivateObject( SdrOle2Obj* pObj, long nVerb ); void DeactivateOle(); SC_DLLPUBLIC static ScTabViewShell* GetActiveViewShell(); - SfxModelessDialog* CreateRefDialog( SfxBindings* pB, SfxChildWindow* pCW, + SfxModelessDialog* CreateRefDialog( SfxBindings* pB, SfxChildWindow* pCW, SfxChildWinInfo* pInfo, Window* pParent, USHORT nSlotId ); - void UpdateOleZoom(); + void UpdateOleZoom(); inline SbxObject* GetScSbxObject() const { return pScSbxObject; } - inline void SetScSbxObject( SbxObject* pOb ) + inline void SetScSbxObject( SbxObject* pOb ) { pScSbxObject = pOb; } - FmFormShell* GetFormShell() const { return pFormShell; } + FmFormShell* GetFormShell() const { return pFormShell; } - void InsertURL( const String& rName, const String& rURL, const String& rTarget, + void InsertURL( const String& rName, const String& rURL, const String& rTarget, USHORT nMode ); - void InsertURLButton( const String& rName, const String& rURL, const String& rTarget, + void InsertURLButton( const String& rName, const String& rURL, const String& rTarget, const Point* pInsPos = NULL ); - void InsertURLField( const String& rName, const String& rURL, const String& rTarget ); + void InsertURLField( const String& rName, const String& rURL, const String& rTarget ); - BOOL SelectObject( const String& rName ); + BOOL SelectObject( const String& rName ); - void SetInFormatDialog(BOOL bFlag) {bInFormatDialog=bFlag;} + void SetInFormatDialog(BOOL bFlag) {bInFormatDialog=bFlag;} BOOL IsInFormatDialog() {return bInFormatDialog;} - void ForceMove() { Move(); } + void ForceMove() { Move(); } - void MakeNumberInfoItem ( ScDocument* pDoc, - ScViewData* pViewData, - SvxNumberInfoItem** ppItem ); + void MakeNumberInfoItem ( ScDocument* pDoc, + ScViewData* pViewData, + SvxNumberInfoItem** ppItem ); - void UpdateNumberFormatter ( ScDocument* pDoc, - const SvxNumberInfoItem& rInfoItem ); + void UpdateNumberFormatter ( ScDocument* pDoc, + const SvxNumberInfoItem& rInfoItem ); - void ExecuteCellFormatDlg ( SfxRequest& rReq, USHORT nTabPage = 0xffff ); + void ExecuteCellFormatDlg ( SfxRequest& rReq, USHORT nTabPage = 0xffff ); - BOOL GetFunction( String& rFuncStr, sal_uInt16 nErrCode = 0 ); + BOOL GetFunction( String& rFuncStr, sal_uInt16 nErrCode = 0 ); - void StartSimpleRefDialog( const String& rTitle, const String& rInitVal, + void StartSimpleRefDialog( const String& rTitle, const String& rInitVal, BOOL bCloseOnButtonUp, BOOL bSingleCell, BOOL bMultiSelection ); - void StopSimpleRefDialog(); + void StopSimpleRefDialog(); - void SetCurRefDlgId( USHORT nNew ); + void SetCurRefDlgId( USHORT nNew ); - void AddAccessibilityObject( SfxListener& rObject ); - void RemoveAccessibilityObject( SfxListener& rObject ); - void BroadcastAccessibility( const SfxHint &rHint ); - BOOL HasAccessibilityObjects(); + void AddAccessibilityObject( SfxListener& rObject ); + void RemoveAccessibilityObject( SfxListener& rObject ); + void BroadcastAccessibility( const SfxHint &rHint ); + BOOL HasAccessibilityObjects(); bool ExecuteRetypePassDlg(ScPasswordHash eDesiredHash); diff --git a/sc/source/ui/inc/target.hxx b/sc/source/ui/inc/target.hxx index 6fc62ffaa8cf..58d83f1581d4 100644 --- a/sc/source/ui/inc/target.hxx +++ b/sc/source/ui/inc/target.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,15 +35,15 @@ class ScTabViewShell; class ScTabViewTarget : public SfxRepeatTarget { private: - ScTabViewShell* pViewShell; + ScTabViewShell* pViewShell; public: TYPEINFO(); ScTabViewTarget( ScTabViewShell* pShell ) : pViewShell( pShell ) {} - virtual ~ScTabViewTarget(); + virtual ~ScTabViewTarget(); - ScTabViewShell* GetViewShell() const { return pViewShell; } + ScTabViewShell* GetViewShell() const { return pViewShell; } }; diff --git a/sc/source/ui/inc/tbinsert.hrc b/sc/source/ui/inc/tbinsert.hrc index 44c0d295cfc6..b80e6fb5863b 100644 --- a/sc/source/ui/inc/tbinsert.hrc +++ b/sc/source/ui/inc/tbinsert.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -25,8 +25,8 @@ * ************************************************************************/ -#define RID_TOOLBOX_INSERT 1 -#define RID_TOOLBOX_INSCELLS 2 -#define RID_TOOLBOX_INSOBJ 3 +#define RID_TOOLBOX_INSERT 1 +#define RID_TOOLBOX_INSCELLS 2 +#define RID_TOOLBOX_INSOBJ 3 diff --git a/sc/source/ui/inc/tbinsert.hxx b/sc/source/ui/inc/tbinsert.hxx index a056da0a982c..5ef748848062 100644 --- a/sc/source/ui/inc/tbinsert.hxx +++ b/sc/source/ui/inc/tbinsert.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,10 +36,10 @@ class ScTbxInsertCtrl : public SfxToolBoxControl { - USHORT nLastSlotId; + USHORT nLastSlotId; using SfxToolBoxControl::Select; - virtual void Select( BOOL bMod1 = FALSE ); + virtual void Select( BOOL bMod1 = FALSE ); public: SFX_DECL_TOOLBOX_CONTROL(); @@ -47,9 +47,9 @@ public: ScTbxInsertCtrl( USHORT nSlotId, USHORT nId, ToolBox& rBox ); ~ScTbxInsertCtrl(); - virtual SfxPopupWindowType GetPopupWindowType() const; - virtual SfxPopupWindow* CreatePopupWindow(); - virtual void StateChanged( USHORT nSID, + virtual SfxPopupWindowType GetPopupWindowType() const; + virtual SfxPopupWindow* CreatePopupWindow(); + virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState ); }; @@ -60,17 +60,17 @@ public: /* class ScTbxInsertPopup : public SfxPopupWindow { - SfxToolBoxManager aTbx; - ResId aRIdWinTemp; - ResId aRIdTbxTemp; + SfxToolBoxManager aTbx; + ResId aRIdWinTemp; + ResId aRIdTbxTemp; - Link aTbxClickHdl; + Link aTbxClickHdl; DECL_LINK( TbxSelectHdl, ToolBox* ); DECL_LINK( TbxClickHdl, ToolBox* ); protected: - virtual void PopupModeEnd(); + virtual void PopupModeEnd(); public: ScTbxInsertPopup( USHORT nId, WindowAlign eAlign, diff --git a/sc/source/ui/inc/tbzoomsliderctrl.hxx b/sc/source/ui/inc/tbzoomsliderctrl.hxx index 6ea4f6e169ed..358be7084d6c 100644 --- a/sc/source/ui/inc/tbzoomsliderctrl.hxx +++ b/sc/source/ui/inc/tbzoomsliderctrl.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -74,7 +74,7 @@ private: void DoPaint( const Rectangle& rRect ); public: - ScZoomSliderWnd( Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >& rDispatchProvider, + ScZoomSliderWnd( Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >& rDispatchProvider, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame , USHORT nCurrentZoom ); ~ScZoomSliderWnd(); void UpdateFromItem( const SvxZoomSliderItem* pZoomSliderItem ); diff --git a/sc/source/ui/inc/textdlgs.hxx b/sc/source/ui/inc/textdlgs.hxx index 302b5de5ffd2..accd124c2165 100644 --- a/sc/source/ui/inc/textdlgs.hxx +++ b/sc/source/ui/inc/textdlgs.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,16 +33,16 @@ class SfxObjectShell; // -// Zeichen-Tab-Dialog +// Zeichen-Tab-Dialog // class ScCharDlg : public SfxTabDialog { private: - const SfxItemSet& rOutAttrs; - const SfxObjectShell& rDocShell; + const SfxItemSet& rOutAttrs; + const SfxObjectShell& rDocShell; - virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); public: ScCharDlg( Window* pParent, const SfxItemSet* pAttr, @@ -51,15 +51,15 @@ public: }; // -// Absatz-Tab-Dialog +// Absatz-Tab-Dialog // class ScParagraphDlg : public SfxTabDialog { private: - const SfxItemSet& rOutAttrs; + const SfxItemSet& rOutAttrs; - virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); public: ScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ); diff --git a/sc/source/ui/inc/textimportoptions.hrc b/sc/source/ui/inc/textimportoptions.hrc index 93c554ef5c45..eb981c1c4dc7 100644 --- a/sc/source/ui/inc/textimportoptions.hrc +++ b/sc/source/ui/inc/textimportoptions.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/textimportoptions.hxx b/sc/source/ui/inc/textimportoptions.hxx index bbb2bf6ebf09..8ef489a9aa13 100644 --- a/sc/source/ui/inc/textimportoptions.hxx +++ b/sc/source/ui/inc/textimportoptions.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/tpcalc.hxx b/sc/source/ui/inc/tpcalc.hxx index 31f2c9458c83..3fe9b76dbcd4 100644 --- a/sc/source/ui/inc/tpcalc.hxx +++ b/sc/source/ui/inc/tpcalc.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,51 +43,51 @@ class ScDocOptions; class ScTpCalcOptions : public SfxTabPage { public: - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rCoreSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); - virtual void Reset ( const SfxItemSet& rCoreSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rCoreSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); + virtual void Reset ( const SfxItemSet& rCoreSet ); using SfxTabPage::DeactivatePage; - virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); + virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); private: - ScTpCalcOptions( Window* pParent, - const SfxItemSet& rCoreSet ); + ScTpCalcOptions( Window* pParent, + const SfxItemSet& rCoreSet ); ~ScTpCalcOptions(); private: FixedLine aGbZRefs; CheckBox aBtnIterate; - FixedText aFtSteps; - NumericField aEdSteps; - FixedText aFtEps; + FixedText aFtSteps; + NumericField aEdSteps; + FixedText aFtEps; ScDoubleField aEdEps; FixedLine aSeparatorFL; FixedLine aGbDate; RadioButton aBtnDateStd; - RadioButton aBtnDateSc10; - RadioButton aBtnDate1904; + RadioButton aBtnDateSc10; + RadioButton aBtnDate1904; FixedLine aHSeparatorFL; CheckBox aBtnCase; - CheckBox aBtnCalc; - CheckBox aBtnMatch; + CheckBox aBtnCalc; + CheckBox aBtnMatch; CheckBox aBtnRegex; - CheckBox aBtnLookUp; - CheckBox aBtnGeneralPrec; + CheckBox aBtnLookUp; + CheckBox aBtnGeneralPrec; - FixedText aFtPrec; - NumericField aEdPrec; + FixedText aFtPrec; + NumericField aEdPrec; - ScDocOptions* pOldOptions; - ScDocOptions* pLocalOptions; - USHORT nWhichCalc; + ScDocOptions* pOldOptions; + ScDocOptions* pLocalOptions; + USHORT nWhichCalc; #ifdef _TPCALC_CXX private: - void Init(); + void Init(); //------------------------------------ // Handler: diff --git a/sc/source/ui/inc/tphf.hxx b/sc/source/ui/inc/tphf.hxx index dcf730712a40..32dba2482389 100644 --- a/sc/source/ui/inc/tphf.hxx +++ b/sc/source/ui/inc/tphf.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,13 +38,13 @@ class ScStyleDlg; class ScHFPage : public SvxHFPage { public: - virtual ~ScHFPage(); + virtual ~ScHFPage(); - virtual void Reset( const SfxItemSet& rSet ); - virtual BOOL FillItemSet( SfxItemSet& rOutSet ); + virtual void Reset( const SfxItemSet& rSet ); + virtual BOOL FillItemSet( SfxItemSet& rOutSet ); - void SetPageStyle( const String& rName ) { aStrPageStyle = rName; } - void SetStyleDlg ( const ScStyleDlg* pDlg ) { pStyleDlg = pDlg; } + void SetPageStyle( const String& rName ) { aStrPageStyle = rName; } + void SetStyleDlg ( const ScStyleDlg* pDlg ) { pStyleDlg = pDlg; } protected: ScHFPage( Window* pParent, @@ -56,15 +56,15 @@ protected: // using SvxHFPage::DeactivatePage; virtual void ActivatePage(); virtual void DeactivatePage(); - virtual void ActivatePage( const SfxItemSet& rSet ); - virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + virtual void ActivatePage( const SfxItemSet& rSet ); + virtual int DeactivatePage( SfxItemSet* pSet = 0 ); private: - PushButton aBtnEdit; - SfxItemSet aDataSet; - String aStrPageStyle; - USHORT nPageUsage; - const ScStyleDlg* pStyleDlg; + PushButton aBtnEdit; + SfxItemSet aDataSet; + String aStrPageStyle; + USHORT nPageUsage; + const ScStyleDlg* pStyleDlg; #ifdef _TPHF_CXX private: @@ -79,8 +79,8 @@ private: class ScHeaderPage : public ScHFPage { public: - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); - static USHORT* GetRanges(); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); + static USHORT* GetRanges(); private: ScHeaderPage( Window* pParent, const SfxItemSet& rSet ); @@ -91,8 +91,8 @@ private: class ScFooterPage : public ScHFPage { public: - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); - static USHORT* GetRanges(); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); + static USHORT* GetRanges(); private: ScFooterPage( Window* pParent, const SfxItemSet& rSet ); diff --git a/sc/source/ui/inc/tphfedit.hxx b/sc/source/ui/inc/tphfedit.hxx index d9d26d2111cd..90ee43cf6512 100644 --- a/sc/source/ui/inc/tphfedit.hxx +++ b/sc/source/ui/inc/tphfedit.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,7 +53,7 @@ class SvxFieldItem; class ScAccessibleEditObject; class ScEditWindow; -SC_DLLPUBLIC ScEditWindow* GetScEditWindow (); //CHINA001 +SC_DLLPUBLIC ScEditWindow* GetScEditWindow (); //CHINA001 enum ScEditWindowLocation { @@ -69,32 +69,32 @@ public: ~ScEditWindow(); using Control::SetFont; - void SetFont( const ScPatternAttr& rPattern ); + void SetFont( const ScPatternAttr& rPattern ); using Control::SetText; - void SetText( const EditTextObject& rTextObject ); - EditTextObject* CreateTextObject(); - void SetCharAttriutes(); + void SetText( const EditTextObject& rTextObject ); + EditTextObject* CreateTextObject(); + void SetCharAttriutes(); - void InsertField( const SvxFieldItem& rFld ); + void InsertField( const SvxFieldItem& rFld ); - void SetNumType(SvxNumType eNumType); + void SetNumType(SvxNumType eNumType); virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible(); inline ScHeaderEditEngine* GetEditEngine() const {return pEdEngine;} protected: - virtual void Paint( const Rectangle& rRec ); - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void KeyInput( const KeyEvent& rKEvt ); - virtual void Command( const CommandEvent& rCEvt ); - virtual void GetFocus(); + virtual void Paint( const Rectangle& rRec ); + virtual void MouseMove( const MouseEvent& rMEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void KeyInput( const KeyEvent& rKEvt ); + virtual void Command( const CommandEvent& rCEvt ); + virtual void GetFocus(); virtual void LoseFocus(); private: - ScHeaderEditEngine* pEdEngine; - EditView* pEdView; + ScHeaderEditEngine* pEdEngine; + EditView* pEdView; ScEditWindowLocation eLocation; bool mbRTL; @@ -107,76 +107,76 @@ class SC_DLLPUBLIC ScExtIButton : public ImageButton { private: - Timer aTimer; - ScPopupMenu* pPopupMenu; - Link aMLink; - USHORT nSelected; + Timer aTimer; + ScPopupMenu* pPopupMenu; + Link aMLink; + USHORT nSelected; SC_DLLPRIVATE DECL_LINK( TimerHdl, Timer*); -// void DrawArrow(); +// void DrawArrow(); protected: - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt); - virtual void Click(); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt); + virtual void Click(); - virtual void StartPopup(); + virtual void StartPopup(); public: ScExtIButton(Window* pParent, const ResId& rResId ); - void SetPopupMenu(ScPopupMenu* pPopUp); + void SetPopupMenu(ScPopupMenu* pPopUp); - USHORT GetSelected(); + USHORT GetSelected(); void SetMenuHdl( const Link& rLink ) { aMLink = rLink; } const Link& GetMenuHdl() const { return aMLink; } - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual long PreNotify( NotifyEvent& rNEvt ); }; //=================================================================== -//CHINA001 +//CHINA001 //CHINA001 class ScHFEditPage : public SfxTabPage //CHINA001 { //CHINA001 public: -//CHINA001 virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); -//CHINA001 virtual void Reset ( const SfxItemSet& rCoreSet ); -//CHINA001 -//CHINA001 void SetNumType(SvxNumType eNumType); -//CHINA001 +//CHINA001 virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); +//CHINA001 virtual void Reset ( const SfxItemSet& rCoreSet ); +//CHINA001 +//CHINA001 void SetNumType(SvxNumType eNumType); +//CHINA001 //CHINA001 protected: -//CHINA001 ScHFEditPage( Window* pParent, -//CHINA001 USHORT nResId, -//CHINA001 const SfxItemSet& rCoreSet, -//CHINA001 USHORT nWhich ); -//CHINA001 virtual ~ScHFEditPage(); -//CHINA001 +//CHINA001 ScHFEditPage( Window* pParent, +//CHINA001 USHORT nResId, +//CHINA001 const SfxItemSet& rCoreSet, +//CHINA001 USHORT nWhich ); +//CHINA001 virtual ~ScHFEditPage(); +//CHINA001 //CHINA001 private: -//CHINA001 FixedText aFtLeft; -//CHINA001 ScEditWindow aWndLeft; -//CHINA001 FixedText aFtCenter; -//CHINA001 ScEditWindow aWndCenter; -//CHINA001 FixedText aFtRight; -//CHINA001 ScEditWindow aWndRight; -//CHINA001 ImageButton aBtnText; -//CHINA001 ScExtIButton aBtnFile; -//CHINA001 ImageButton aBtnTable; -//CHINA001 ImageButton aBtnPage; -//CHINA001 ImageButton aBtnLastPage; -//CHINA001 ImageButton aBtnDate; -//CHINA001 ImageButton aBtnTime; -//CHINA001 FixedLine aFlInfo; -//CHINA001 FixedInfo aFtInfo; -//CHINA001 ScPopupMenu aPopUpFile; -//CHINA001 -//CHINA001 USHORT nWhich; -//CHINA001 String aCmdArr[6]; -//CHINA001 +//CHINA001 FixedText aFtLeft; +//CHINA001 ScEditWindow aWndLeft; +//CHINA001 FixedText aFtCenter; +//CHINA001 ScEditWindow aWndCenter; +//CHINA001 FixedText aFtRight; +//CHINA001 ScEditWindow aWndRight; +//CHINA001 ImageButton aBtnText; +//CHINA001 ScExtIButton aBtnFile; +//CHINA001 ImageButton aBtnTable; +//CHINA001 ImageButton aBtnPage; +//CHINA001 ImageButton aBtnLastPage; +//CHINA001 ImageButton aBtnDate; +//CHINA001 ImageButton aBtnTime; +//CHINA001 FixedLine aFlInfo; +//CHINA001 FixedInfo aFtInfo; +//CHINA001 ScPopupMenu aPopUpFile; +//CHINA001 +//CHINA001 USHORT nWhich; +//CHINA001 String aCmdArr[6]; +//CHINA001 //CHINA001 private: //CHINA001 #ifdef _TPHFEDIT_CXX //CHINA001 void FillCmdArr(); @@ -184,51 +184,51 @@ public: //CHINA001 DECL_LINK( MenuHdl, ScExtIButton* ); //CHINA001 #endif //CHINA001 }; -//CHINA001 +//CHINA001 //CHINA001 //=================================================================== -//CHINA001 +//CHINA001 //CHINA001 class ScRightHeaderEditPage : public ScHFEditPage //CHINA001 { //CHINA001 public: -//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); -//CHINA001 static USHORT* GetRanges(); -//CHINA001 +//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); +//CHINA001 static USHORT* GetRanges(); +//CHINA001 //CHINA001 private: //CHINA001 ScRightHeaderEditPage( Window* pParent, const SfxItemSet& rSet ); //CHINA001 }; -//CHINA001 +//CHINA001 //CHINA001 //=================================================================== -//CHINA001 +//CHINA001 //CHINA001 class ScLeftHeaderEditPage : public ScHFEditPage //CHINA001 { //CHINA001 public: -//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); -//CHINA001 static USHORT* GetRanges(); -//CHINA001 +//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); +//CHINA001 static USHORT* GetRanges(); +//CHINA001 //CHINA001 private: //CHINA001 ScLeftHeaderEditPage( Window* pParent, const SfxItemSet& rSet ); //CHINA001 }; -//CHINA001 +//CHINA001 //CHINA001 //=================================================================== -//CHINA001 +//CHINA001 //CHINA001 class ScRightFooterEditPage : public ScHFEditPage //CHINA001 { //CHINA001 public: -//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); -//CHINA001 static USHORT* GetRanges(); -//CHINA001 +//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); +//CHINA001 static USHORT* GetRanges(); +//CHINA001 //CHINA001 private: //CHINA001 ScRightFooterEditPage( Window* pParent, const SfxItemSet& rSet ); //CHINA001 }; -//CHINA001 +//CHINA001 //CHINA001 //=================================================================== -//CHINA001 +//CHINA001 //CHINA001 class ScLeftFooterEditPage : public ScHFEditPage //CHINA001 { //CHINA001 public: -//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); -//CHINA001 static USHORT* GetRanges(); -//CHINA001 +//CHINA001 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); +//CHINA001 static USHORT* GetRanges(); +//CHINA001 //CHINA001 private: //CHINA001 ScLeftFooterEditPage( Window* pParent, const SfxItemSet& rSet ); //CHINA001 }; diff --git a/sc/source/ui/inc/tpprint.hxx b/sc/source/ui/inc/tpprint.hxx index 358c29f83d97..434b83a65e4d 100644 --- a/sc/source/ui/inc/tpprint.hxx +++ b/sc/source/ui/inc/tpprint.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,21 +35,21 @@ class ScTpPrintOptions : public SfxTabPage { - FixedLine aPagesFL; - CheckBox aSkipEmptyPagesCB; - FixedLine aSheetsFL; - CheckBox aSelectedSheetsCB; + FixedLine aPagesFL; + CheckBox aSkipEmptyPagesCB; + FixedLine aSheetsFL; + CheckBox aSelectedSheetsCB; ScTpPrintOptions( Window* pParent, const SfxItemSet& rCoreSet ); ~ScTpPrintOptions(); public: - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); - static USHORT* GetRanges(); - virtual BOOL FillItemSet( SfxItemSet& rCoreSet ); - virtual void Reset( const SfxItemSet& rCoreSet ); + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet ); + static USHORT* GetRanges(); + virtual BOOL FillItemSet( SfxItemSet& rCoreSet ); + virtual void Reset( const SfxItemSet& rCoreSet ); using SfxTabPage::DeactivatePage; - virtual int DeactivatePage( SfxItemSet* pSet = NULL ); + virtual int DeactivatePage( SfxItemSet* pSet = NULL ); }; #endif diff --git a/sc/source/ui/inc/tpsort.hxx b/sc/source/ui/inc/tpsort.hxx index d1ba772a8ca2..f197ca6d5dd9 100644 --- a/sc/source/ui/inc/tpsort.hxx +++ b/sc/source/ui/inc/tpsort.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,7 +43,7 @@ //------------------------------------------------------------------------ // +1 because one field is reserved for the "- undefined -" entry -#define SC_MAXFIELDS MAXCOLCOUNT+1 +#define SC_MAXFIELDS MAXCOLCOUNT+1 class ScViewData; class ScSortDlg; @@ -55,66 +55,66 @@ struct ScSortParam; class ScTabPageSortFields : public SfxTabPage { public: - ScTabPageSortFields( Window* pParent, - const SfxItemSet& rArgSet ); + ScTabPageSortFields( Window* pParent, + const SfxItemSet& rArgSet ); ~ScTabPageSortFields(); - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rArgSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rArgSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); protected: // fuer Datenaustausch (sollte noch umgestellt werden!) -// virtual void ActivatePage ( const SfxItemSet& rSet ); +// virtual void ActivatePage ( const SfxItemSet& rSet ); using SfxTabPage::ActivatePage; using SfxTabPage::DeactivatePage; - virtual void ActivatePage (); - virtual int DeactivatePage ( SfxItemSet* pSet = 0); + virtual void ActivatePage (); + virtual int DeactivatePage ( SfxItemSet* pSet = 0); private: FixedLine aFlSort1; - ListBox aLbSort1; - RadioButton aBtnUp1; - RadioButton aBtnDown1; + ListBox aLbSort1; + RadioButton aBtnUp1; + RadioButton aBtnDown1; FixedLine aFlSort2; - ListBox aLbSort2; - RadioButton aBtnUp2; - RadioButton aBtnDown2; + ListBox aLbSort2; + RadioButton aBtnUp2; + RadioButton aBtnDown2; FixedLine aFlSort3; - ListBox aLbSort3; - RadioButton aBtnUp3; - RadioButton aBtnDown3; - - String aStrUndefined; - String aStrColumn; - String aStrRow; - - const USHORT nWhichSort; - ScSortDlg* pDlg; - ScViewData* pViewData; - const ScSortParam& rSortData; - SCCOLROW nFieldArr[SC_MAXFIELDS]; - USHORT nFieldCount; - SCCOL nFirstCol; - SCROW nFirstRow; - BOOL bHasHeader; - BOOL bSortByRows; - - ListBox* aSortLbArr[3]; - RadioButton* aDirBtnArr[3][2]; + ListBox aLbSort3; + RadioButton aBtnUp3; + RadioButton aBtnDown3; + + String aStrUndefined; + String aStrColumn; + String aStrRow; + + const USHORT nWhichSort; + ScSortDlg* pDlg; + ScViewData* pViewData; + const ScSortParam& rSortData; + SCCOLROW nFieldArr[SC_MAXFIELDS]; + USHORT nFieldCount; + SCCOL nFirstCol; + SCROW nFirstRow; + BOOL bHasHeader; + BOOL bSortByRows; + + ListBox* aSortLbArr[3]; + RadioButton* aDirBtnArr[3][2]; FixedLine* aFlArr[3]; #ifdef _TPSORT_CXX private: - void Init (); - void DisableField ( USHORT nField ); - void EnableField ( USHORT nField ); - void FillFieldLists (); - USHORT GetFieldSelPos ( SCCOLROW nField ); + void Init (); + void DisableField ( USHORT nField ); + void EnableField ( USHORT nField ); + void FillFieldLists (); + USHORT GetFieldSelPos ( SCCOLROW nField ); // Handler ------------------------ DECL_LINK( SelectHdl, ListBox * ); @@ -139,25 +139,25 @@ class CollatorWrapper; class ScTabPageSortOptions : public SfxTabPage { public: - ScTabPageSortOptions( Window* pParent, - const SfxItemSet& rArgSet ); + ScTabPageSortOptions( Window* pParent, + const SfxItemSet& rArgSet ); ~ScTabPageSortOptions(); #undef SfxTabPage #define SfxTabPage ::SfxTabPage - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rArgSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rArgSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); protected: // fuer Datenaustausch (sollte noch umgestellt werden!) -// virtual void ActivatePage ( const SfxItemSet& rSet ); +// virtual void ActivatePage ( const SfxItemSet& rSet ); using SfxTabPage::ActivatePage; using SfxTabPage::DeactivatePage; - virtual void ActivatePage (); - virtual int DeactivatePage ( SfxItemSet* pSet = 0); + virtual void ActivatePage (); + virtual int DeactivatePage ( SfxItemSet* pSet = 0); private: @@ -189,26 +189,26 @@ private: String aStrNoName; String aStrAreaLabel; - const USHORT nWhichSort; - const ScSortParam& rSortData; - ScViewData* pViewData; - ScDocument* pDoc; - ScSortDlg* pDlg; - ScAddress theOutPos; + const USHORT nWhichSort; + const ScSortParam& rSortData; + ScViewData* pViewData; + ScDocument* pDoc; + ScSortDlg* pDlg; + ScAddress theOutPos; - CollatorRessource* pColRes; - CollatorWrapper* pColWrap; + CollatorRessource* pColRes; + CollatorWrapper* pColWrap; #ifdef _TPSORT_CXX private: - void Init (); - void FillUserSortListBox (); - void FillOutPosList (); + void Init (); + void FillUserSortListBox (); + void FillOutPosList (); // Handler ------------------------ DECL_LINK( EnableHdl, CheckBox * ); DECL_LINK( SelOutPosHdl, ListBox * ); - void EdOutPosModHdl ( Edit* pEd ); + void EdOutPosModHdl ( Edit* pEd ); DECL_LINK( SortDirHdl, RadioButton * ); DECL_LINK( FillAlgorHdl, void * ); #endif diff --git a/sc/source/ui/inc/tpstat.hxx b/sc/source/ui/inc/tpstat.hxx index 1c928ff2ef13..d02d3e22e22a 100644 --- a/sc/source/ui/inc/tpstat.hxx +++ b/sc/source/ui/inc/tpstat.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/inc/tpsubt.hxx b/sc/source/ui/inc/tpsubt.hxx index 6dd640e7925e..b2f164d247db 100644 --- a/sc/source/ui/inc/tpsubt.hxx +++ b/sc/source/ui/inc/tpsubt.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,7 +36,7 @@ //------------------------------------------------------------------------ // +1 because one field is reserved for the "- none -" entry -#define SC_MAXFIELDS MAXCOLCOUNT+1 +#define SC_MAXFIELDS MAXCOLCOUNT+1 class ScViewData; class ScDocument; @@ -53,35 +53,35 @@ protected: public: virtual ~ScTpSubTotalGroup(); - static USHORT* GetRanges (); - BOOL DoReset ( USHORT nGroupNo, - const SfxItemSet& rArgSet ); - BOOL DoFillItemSet ( USHORT nGroupNo, - SfxItemSet& rArgSet ); + static USHORT* GetRanges (); + BOOL DoReset ( USHORT nGroupNo, + const SfxItemSet& rArgSet ); + BOOL DoFillItemSet ( USHORT nGroupNo, + SfxItemSet& rArgSet ); protected: - FixedText aFtGroup; - ListBox aLbGroup; - FixedText aFtColumns; - SvxCheckListBox aLbColumns; - FixedText aFtFunctions; - ListBox aLbFunctions; - const String aStrNone; - const String aStrColumn; - - ScViewData* pViewData; - ScDocument* pDoc; - - const USHORT nWhichSubTotals; - const ScSubTotalParam& rSubTotalData; - SCCOL nFieldArr[SC_MAXFIELDS]; - const USHORT nFieldCount; + FixedText aFtGroup; + ListBox aLbGroup; + FixedText aFtColumns; + SvxCheckListBox aLbColumns; + FixedText aFtFunctions; + ListBox aLbFunctions; + const String aStrNone; + const String aStrColumn; + + ScViewData* pViewData; + ScDocument* pDoc; + + const USHORT nWhichSubTotals; + const ScSubTotalParam& rSubTotalData; + SCCOL nFieldArr[SC_MAXFIELDS]; + const USHORT nFieldCount; private: - void Init (); - void FillListBoxes (); - ScSubTotalFunc LbPosToFunc ( USHORT nPos ); - USHORT FuncToLbPos ( ScSubTotalFunc eFunc ); - USHORT GetFieldSelPos ( SCCOL nField ); + void Init (); + void FillListBoxes (); + ScSubTotalFunc LbPosToFunc ( USHORT nPos ); + USHORT FuncToLbPos ( ScSubTotalFunc eFunc ); + USHORT GetFieldSelPos ( SCCOL nField ); // Handler ------------------------ DECL_LINK( SelectHdl, ListBox * ); @@ -93,16 +93,16 @@ private: class ScTpSubTotalGroup1 : public ScTpSubTotalGroup { protected: - ScTpSubTotalGroup1( Window* pParent, - const SfxItemSet& rArgSet ); + ScTpSubTotalGroup1( Window* pParent, + const SfxItemSet& rArgSet ); public: virtual ~ScTpSubTotalGroup1(); - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rArgSet ); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rArgSet ); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); }; //------------------------------------------------------------------------ @@ -110,16 +110,16 @@ public: class ScTpSubTotalGroup2 : public ScTpSubTotalGroup { protected: - ScTpSubTotalGroup2( Window* pParent, - const SfxItemSet& rArgSet ); + ScTpSubTotalGroup2( Window* pParent, + const SfxItemSet& rArgSet ); public: virtual ~ScTpSubTotalGroup2(); - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rArgSet ); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rArgSet ); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); }; //------------------------------------------------------------------------ @@ -127,16 +127,16 @@ public: class ScTpSubTotalGroup3 : public ScTpSubTotalGroup { protected: - ScTpSubTotalGroup3( Window* pParent, - const SfxItemSet& rArgSet ); + ScTpSubTotalGroup3( Window* pParent, + const SfxItemSet& rArgSet ); public: virtual ~ScTpSubTotalGroup3(); - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rArgSet ); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rArgSet ); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); }; //======================================================================== @@ -145,38 +145,38 @@ public: class ScTpSubTotalOptions : public SfxTabPage { protected: - ScTpSubTotalOptions( Window* pParent, + ScTpSubTotalOptions( Window* pParent, const SfxItemSet& rArgSet ); public: virtual ~ScTpSubTotalOptions(); - static USHORT* GetRanges (); - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rArgSet ); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static USHORT* GetRanges (); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rArgSet ); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); private: FixedLine aFlGroup; - CheckBox aBtnPagebreak; - CheckBox aBtnCase; - CheckBox aBtnSort; + CheckBox aBtnPagebreak; + CheckBox aBtnCase; + CheckBox aBtnSort; FixedLine aFlSort; - RadioButton aBtnAscending; - RadioButton aBtnDescending; - CheckBox aBtnFormats; - CheckBox aBtnUserDef; - ListBox aLbUserDef; + RadioButton aBtnAscending; + RadioButton aBtnDescending; + CheckBox aBtnFormats; + CheckBox aBtnUserDef; + ListBox aLbUserDef; - ScViewData* pViewData; - ScDocument* pDoc; - const USHORT nWhichSubTotals; - const ScSubTotalParam& rSubTotalData; + ScViewData* pViewData; + ScDocument* pDoc; + const USHORT nWhichSubTotals; + const ScSubTotalParam& rSubTotalData; private: - void Init (); - void FillUserSortListBox (); + void Init (); + void FillUserSortListBox (); // Handler ------------------------ DECL_LINK( CheckHdl, CheckBox * ); diff --git a/sc/source/ui/inc/tptable.hxx b/sc/source/ui/inc/tptable.hxx index 980a574dc61d..83a693eaa6a4 100644 --- a/sc/source/ui/inc/tptable.hxx +++ b/sc/source/ui/inc/tptable.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -55,13 +55,13 @@ public: class ScTablePage : public SfxTabPage { public: - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rCoreSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); - virtual void Reset ( const SfxItemSet& rCoreSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rCoreSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); + virtual void Reset ( const SfxItemSet& rCoreSet ); using SfxTabPage::DeactivatePage; - virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); + virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); virtual void DataChanged ( const DataChangedEvent& rDCEvt ); private: @@ -72,25 +72,25 @@ private: private: FixedLine aFlPageDir; - RadioButton aBtnTopDown; - RadioButton aBtnLeftRight; + RadioButton aBtnTopDown; + RadioButton aBtnLeftRight; FixedImage aBmpPageDir; Image aImgLeftRight; Image aImgTopDown; Image aImgLeftRightHC; Image aImgTopDownHC; - CheckBox aBtnPageNo; - NumericField aEdPageNo; + CheckBox aBtnPageNo; + NumericField aEdPageNo; FixedLine aFlPrint; - CheckBox aBtnHeaders; - CheckBox aBtnGrid; - CheckBox aBtnNotes; - CheckBox aBtnObjects; - CheckBox aBtnCharts; - CheckBox aBtnDrawings; - CheckBox aBtnFormulas; - CheckBox aBtnNullVals; + CheckBox aBtnHeaders; + CheckBox aBtnGrid; + CheckBox aBtnNotes; + CheckBox aBtnObjects; + CheckBox aBtnCharts; + CheckBox aBtnDrawings; + CheckBox aBtnFormulas; + CheckBox aBtnNullVals; FixedLine aFlScale; FixedText aFtScaleMode; diff --git a/sc/source/ui/inc/tpusrlst.hxx b/sc/source/ui/inc/tpusrlst.hxx index f26e48889f1d..ff4e114dd7ab 100644 --- a/sc/source/ui/inc/tpusrlst.hxx +++ b/sc/source/ui/inc/tpusrlst.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,70 +44,70 @@ class ScRangeUtil; class ScTpUserLists : public SfxTabPage { public: - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rAttrSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rCoreAttrs ); - virtual void Reset ( const SfxItemSet& rCoreAttrs ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rAttrSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rCoreAttrs ); + virtual void Reset ( const SfxItemSet& rCoreAttrs ); using SfxTabPage::DeactivatePage; - virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); + virtual int DeactivatePage ( SfxItemSet* pSet = NULL ); private: - ScTpUserLists( Window* pParent, - const SfxItemSet& rArgSet ); + ScTpUserLists( Window* pParent, + const SfxItemSet& rArgSet ); ~ScTpUserLists(); private: - FixedText aFtLists; - ListBox aLbLists; - FixedText aFtEntries; - MultiLineEdit aEdEntries; - FixedText aFtCopyFrom; - Edit aEdCopyFrom; - PushButton aBtnNew; - PushButton aBtnAdd; - PushButton aBtnRemove; - PushButton aBtnCopy; - - const String aStrQueryRemove; - const String aStrNew; - const String aStrCancel; - const String aStrAdd; - const String aStrModify; - const String aStrCopyList; - const String aStrCopyFrom; - const String aStrCopyErr; - - const USHORT nWhichUserLists; - ScUserList* pUserLists; - - ScDocument* pDoc; - ScViewData* pViewData; - ScRangeUtil* pRangeUtil; - String aStrSelectedArea; - - BOOL bModifyMode; - BOOL bCancelMode; - BOOL bCopyDone; - USHORT nCancelPos; + FixedText aFtLists; + ListBox aLbLists; + FixedText aFtEntries; + MultiLineEdit aEdEntries; + FixedText aFtCopyFrom; + Edit aEdCopyFrom; + PushButton aBtnNew; + PushButton aBtnAdd; + PushButton aBtnRemove; + PushButton aBtnCopy; + + const String aStrQueryRemove; + const String aStrNew; + const String aStrCancel; + const String aStrAdd; + const String aStrModify; + const String aStrCopyList; + const String aStrCopyFrom; + const String aStrCopyErr; + + const USHORT nWhichUserLists; + ScUserList* pUserLists; + + ScDocument* pDoc; + ScViewData* pViewData; + ScRangeUtil* pRangeUtil; + String aStrSelectedArea; + + BOOL bModifyMode; + BOOL bCancelMode; + BOOL bCopyDone; + USHORT nCancelPos; #ifdef _TPUSRLST_CXX private: - void Init (); - USHORT UpdateUserListBox (); - void UpdateEntries ( USHORT nList ); - void MakeListStr ( String& rListStr ); - void AddNewList ( const String& rEntriesStr ); - void RemoveList ( USHORT nList ); - void ModifyList ( USHORT nSelList, + void Init (); + USHORT UpdateUserListBox (); + void UpdateEntries ( USHORT nList ); + void MakeListStr ( String& rListStr ); + void AddNewList ( const String& rEntriesStr ); + void RemoveList ( USHORT nList ); + void ModifyList ( USHORT nSelList, const String& rEntriesStr ); - void CopyListFromArea ( const ScRefAddress& rStartPos, + void CopyListFromArea ( const ScRefAddress& rStartPos, const ScRefAddress& rEndPos ); // Handler: - DECL_LINK( LbSelectHdl, ListBox* ); - DECL_LINK( BtnClickHdl, PushButton* ); - DECL_LINK( EdEntriesModHdl, MultiLineEdit* ); + DECL_LINK( LbSelectHdl, ListBox* ); + DECL_LINK( BtnClickHdl, PushButton* ); + DECL_LINK( EdEntriesModHdl, MultiLineEdit* ); #endif }; diff --git a/sc/source/ui/inc/tpview.hxx b/sc/source/ui/inc/tpview.hxx index 81760eb66c67..8556911f86a3 100644 --- a/sc/source/ui/inc/tpview.hxx +++ b/sc/source/ui/inc/tpview.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,13 +46,13 @@ class ScViewOptions; class ScTpContentOptions : public SfxTabPage { FixedLine aLinesGB; - CheckBox aGridCB; - FixedText aColorFT; - ColorListBox aColorLB; - CheckBox aBreakCB; - CheckBox aGuideLineCB; - CheckBox aHandleCB; - CheckBox aBigHandleCB; + CheckBox aGridCB; + FixedText aColorFT; + ColorListBox aColorLB; + CheckBox aBreakCB; + CheckBox aGuideLineCB; + CheckBox aHandleCB; + CheckBox aBigHandleCB; FixedLine aSeparator1FL; @@ -79,11 +79,11 @@ class ScTpContentOptions : public SfxTabPage FixedLine aSeparator2FL; FixedLine aWindowGB; - CheckBox aRowColHeaderCB; - CheckBox aHScrollCB; - CheckBox aVScrollCB; - CheckBox aTblRegCB; - CheckBox aOutlineCB; + CheckBox aRowColHeaderCB; + CheckBox aHScrollCB; + CheckBox aVScrollCB; + CheckBox aTblRegCB; + CheckBox aOutlineCB; ScViewOptions* pLocalOptions; @@ -92,19 +92,19 @@ class ScTpContentOptions : public SfxTabPage DECL_LINK( SelLbObjHdl, ListBox* ); DECL_LINK( CBHdl, CheckBox* ); - ScTpContentOptions( Window* pParent, - const SfxItemSet& rArgSet ); + ScTpContentOptions( Window* pParent, + const SfxItemSet& rArgSet ); ~ScTpContentOptions(); public: - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rCoreSet ); - virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); - virtual void Reset ( const SfxItemSet& rCoreSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rCoreSet ); + virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); + virtual void Reset ( const SfxItemSet& rCoreSet ); using SfxTabPage::ActivatePage; using SfxTabPage::DeactivatePage; - virtual void ActivatePage( const SfxItemSet& ); - virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + virtual void ActivatePage( const SfxItemSet& ); + virtual int DeactivatePage( SfxItemSet* pSet = 0 ); }; @@ -128,16 +128,16 @@ class ScTpLayoutOptions : public SfxTabPage RadioButton aNeverRB; FixedLine aOptionsGB; - CheckBox aAlignCB; - ListBox aAlignLB; - CheckBox aEditModeCB; - CheckBox aFormatCB; + CheckBox aAlignCB; + ListBox aAlignLB; + CheckBox aEditModeCB; + CheckBox aFormatCB; CheckBox aExpRefCB; - CheckBox aMarkHdrCB; - CheckBox aTextFmtCB; + CheckBox aMarkHdrCB; + CheckBox aTextFmtCB; CheckBox aReplWarnCB; - SvxStringArray aUnitArr; + SvxStringArray aUnitArr; DECL_LINK( CBHdl, CheckBox* ); @@ -146,21 +146,21 @@ class ScTpLayoutOptions : public SfxTabPage ScDocument *pDoc; - DECL_LINK( UpdateHdl, CheckBox* ); + DECL_LINK( UpdateHdl, CheckBox* ); - ScTpLayoutOptions( Window* pParent, - const SfxItemSet& rArgSet ); + ScTpLayoutOptions( Window* pParent, + const SfxItemSet& rArgSet ); ~ScTpLayoutOptions(); public: - static SfxTabPage* Create ( Window* pParent, - const SfxItemSet& rCoreSet ); - virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); - virtual void Reset ( const SfxItemSet& rCoreSet ); + static SfxTabPage* Create ( Window* pParent, + const SfxItemSet& rCoreSet ); + virtual BOOL FillItemSet ( SfxItemSet& rCoreSet ); + virtual void Reset ( const SfxItemSet& rCoreSet ); using SfxTabPage::ActivatePage; using SfxTabPage::DeactivatePage; - virtual void ActivatePage( const SfxItemSet& ); - virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + virtual void ActivatePage( const SfxItemSet& ); + virtual int DeactivatePage( SfxItemSet* pSet = 0 ); void SetDocument(ScDocument* pPtr){pDoc = pPtr;} diff --git a/sc/source/ui/inc/transobj.hxx b/sc/source/ui/inc/transobj.hxx index e2dbad485812..e4db2bdd80b6 100644 --- a/sc/source/ui/inc/transobj.hxx +++ b/sc/source/ui/inc/transobj.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,26 +47,26 @@ namespace com { namespace sun { namespace star { class ScTransferObj : public TransferableHelper { private: - ScDocument* pDoc; - ScRange aBlock; - SCROW nNonFiltered; // non-filtered rows - TransferableDataHelper aOleData; - TransferableObjectDescriptor aObjDesc; -//REMOVE SvEmbeddedObjectRef aDocShellRef; -//REMOVE SvEmbeddedObjectRef aDrawPersistRef; - SfxObjectShellRef aDocShellRef; - SfxObjectShellRef aDrawPersistRef; + ScDocument* pDoc; + ScRange aBlock; + SCROW nNonFiltered; // non-filtered rows + TransferableDataHelper aOleData; + TransferableObjectDescriptor aObjDesc; +//REMOVE SvEmbeddedObjectRef aDocShellRef; +//REMOVE SvEmbeddedObjectRef aDrawPersistRef; + SfxObjectShellRef aDocShellRef; + SfxObjectShellRef aDrawPersistRef; com::sun::star::uno::Reference<com::sun::star::sheet::XSheetCellRanges> xDragSourceRanges; - SCCOL nDragHandleX; - SCROW nDragHandleY; - SCTAB nVisibleTab; - USHORT nDragSourceFlags; - BOOL bDragWasInternal; - BOOL bUsedForLink; + SCCOL nDragHandleX; + SCROW nDragHandleY; + SCTAB nVisibleTab; + USHORT nDragSourceFlags; + BOOL bDragWasInternal; + BOOL bUsedForLink; bool bHasFiltered; // if has filtered rows - void InitDocShell(); - static void StripRefs( ScDocument* pDoc, SCCOL nStartX, SCROW nStartY, + void InitDocShell(); + static void StripRefs( ScDocument* pDoc, SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY, ScDocument* pDestDoc=0, SCCOL nSubX=0, SCROW nSubY=0 ); @@ -78,35 +78,35 @@ public: ScTransferObj( ScDocument* pClipDoc, const TransferableObjectDescriptor& rDesc ); virtual ~ScTransferObj(); - virtual void AddSupportedFormats(); - virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); - virtual sal_Bool WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId, + virtual void AddSupportedFormats(); + virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); + virtual sal_Bool WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); - virtual void ObjectReleased(); - virtual void DragFinished( sal_Int8 nDropAction ); + virtual void ObjectReleased(); + virtual void DragFinished( sal_Int8 nDropAction ); - ScDocument* GetDocument() { return pDoc; } // owned by ScTransferObj - const ScRange& GetRange() const { return aBlock; } - SCROW GetNonFilteredRows() const { return nNonFiltered; } - SCCOL GetDragHandleX() const { return nDragHandleX; } - SCROW GetDragHandleY() const { return nDragHandleY; } - SCTAB GetVisibleTab() const { return nVisibleTab; } - USHORT GetDragSourceFlags() const { return nDragSourceFlags; } + ScDocument* GetDocument() { return pDoc; } // owned by ScTransferObj + const ScRange& GetRange() const { return aBlock; } + SCROW GetNonFilteredRows() const { return nNonFiltered; } + SCCOL GetDragHandleX() const { return nDragHandleX; } + SCROW GetDragHandleY() const { return nDragHandleY; } + SCTAB GetVisibleTab() const { return nVisibleTab; } + USHORT GetDragSourceFlags() const { return nDragSourceFlags; } bool HasFilteredRows() const { return bHasFiltered; } - ScDocShell* GetSourceDocShell(); - ScDocument* GetSourceDocument(); - ScMarkData GetSourceMarkData(); + ScDocShell* GetSourceDocShell(); + ScDocument* GetSourceDocument(); + ScMarkData GetSourceMarkData(); - void SetDrawPersist( const SfxObjectShellRef& rRef ); - void SetDragHandlePos( SCCOL nX, SCROW nY ); - void SetVisibleTab( SCTAB nNew ); - void SetDragSource( ScDocShell* pSourceShell, const ScMarkData& rMark ); - void SetDragSourceFlags( USHORT nFlags ); - void SetDragWasInternal(); + void SetDrawPersist( const SfxObjectShellRef& rRef ); + void SetDragHandlePos( SCCOL nX, SCROW nY ); + void SetVisibleTab( SCTAB nNew ); + void SetDragSource( ScDocShell* pSourceShell, const ScMarkData& rMark ); + void SetDragSourceFlags( USHORT nFlags ); + void SetDragWasInternal(); static SC_DLLPUBLIC ScTransferObj* GetOwnClipboard( Window* pUIWin ); - static SfxObjectShell* SetDrawClipDoc( BOOL bAnyOle ); // update ScGlobal::pDrawClipDocShellRef + static SfxObjectShell* SetDrawClipDoc( BOOL bAnyOle ); // update ScGlobal::pDrawClipDocShellRef virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( com::sun::star::uno::RuntimeException ); static const com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId(); }; diff --git a/sc/source/ui/inc/ui_pch.hxx b/sc/source/ui/inc/ui_pch.hxx index 1ef2f02d405b..cfa1ac075160 100644 --- a/sc/source/ui/inc/ui_pch.hxx +++ b/sc/source/ui/inc/ui_pch.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -25,7 +25,7 @@ * ************************************************************************/ -// ItemID-Defines etc. muessen immer ganz vorne stehen +// ItemID-Defines etc. muessen immer ganz vorne stehen #include "scitems.hxx" @@ -34,9 +34,9 @@ #define _PRINTFUN_CXX #define _INPUTHDL_CXX -// ab hier automatisch per makepch generiert -// folgende duerfen nicht aufgenommen werden: -// scslots.hxx +// ab hier automatisch per makepch generiert +// folgende duerfen nicht aufgenommen werden: +// scslots.hxx #include <tools/solar.h> #include <tools/string.hxx> @@ -184,7 +184,7 @@ #include <scresid.hxx> #include <sfx2/ipfrm.hxx> #include <docsh.hxx> -//REMOVE #include <sfx2/interno.hxx> +//REMOVE #include <sfx2/interno.hxx> #include <vcl/wintypes.hxx> #include <sfx2/docfac.hxx> #include <scitems.hxx> diff --git a/sc/source/ui/inc/uiitems.hxx b/sc/source/ui/inc/uiitems.hxx index 770411b63e1b..579f9dfa84db 100644 --- a/sc/source/ui/inc/uiitems.hxx +++ b/sc/source/ui/inc/uiitems.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,17 +50,17 @@ class ScInputStatusItem : public SfxPoolItem ScAddress aStartPos; ScAddress aEndPos; String aString; - EditTextObject* pEditData; + EditTextObject* pEditData; public: TYPEINFO(); -//UNUSED2008-05 ScInputStatusItem( USHORT nWhich, -//UNUSED2008-05 SCTAB nTab, -//UNUSED2008-05 SCCOL nCol, SCROW nRow, -//UNUSED2008-05 SCCOL nStartCol, SCROW nStartRow, -//UNUSED2008-05 SCCOL nEndCol, SCROW nSEndRow, -//UNUSED2008-05 const String& rString, -//UNUSED2008-05 const EditTextObject* pData ); +//UNUSED2008-05 ScInputStatusItem( USHORT nWhich, +//UNUSED2008-05 SCTAB nTab, +//UNUSED2008-05 SCCOL nCol, SCROW nRow, +//UNUSED2008-05 SCCOL nStartCol, SCROW nStartRow, +//UNUSED2008-05 SCCOL nEndCol, SCROW nSEndRow, +//UNUSED2008-05 const String& rString, +//UNUSED2008-05 const EditTextObject* pData ); ScInputStatusItem( USHORT nWhich, const ScAddress& rCurPos, @@ -76,27 +76,27 @@ public: virtual int operator==( const SfxPoolItem& ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - const ScAddress& GetPos() const { return aCursorPos; } + const ScAddress& GetPos() const { return aCursorPos; } const ScAddress& GetStartPos() const { return aStartPos; } - const ScAddress& GetEndPos() const { return aEndPos; } + const ScAddress& GetEndPos() const { return aEndPos; } SCTAB GetTab() const { return aCursorPos.Tab(); } SCCOL GetCol() const { return aCursorPos.Col(); } SCROW GetRow() const { return aCursorPos.Row(); } SCCOL GetStartCol() const { return aStartPos.Col(); } SCROW GetStartRow() const { return aStartPos.Row(); } - SCCOL GetEndCol() const { return aEndPos.Col(); } - SCROW GetEndRow() const { return aEndPos.Row(); } + SCCOL GetEndCol() const { return aEndPos.Col(); } + SCROW GetEndRow() const { return aEndPos.Row(); } const String& GetString() const { return aString; } - const EditTextObject* GetEditData() const { return pEditData; } + const EditTextObject* GetEditData() const { return pEditData; } }; -#define SC_TAB_INSERTED 1 -#define SC_TAB_DELETED 2 -#define SC_TAB_MOVED 3 -#define SC_TAB_COPIED 4 -#define SC_TAB_HIDDEN 5 +#define SC_TAB_INSERTED 1 +#define SC_TAB_DELETED 2 +#define SC_TAB_MOVED 3 +#define SC_TAB_COPIED 4 +#define SC_TAB_HIDDEN 5 class ScTablesHint : public SfxHint { @@ -109,15 +109,15 @@ public: ScTablesHint(USHORT nNewId, SCTAB nTable1, SCTAB nTable2=0); ~ScTablesHint(); - USHORT GetId() const { return nId; } - SCTAB GetTab1() const { return nTab1; } - SCTAB GetTab2() const { return nTab2; } + USHORT GetId() const { return nId; } + SCTAB GetTab1() const { return nTab1; } + SCTAB GetTab2() const { return nTab2; } }; class ScEditViewHint : public SfxHint { - ScEditEngineDefaulter* pEditEngine; - ScAddress aCursorPos; + ScEditEngineDefaulter* pEditEngine; + ScAddress aCursorPos; public: TYPEINFO(); @@ -127,7 +127,7 @@ public: SCCOL GetCol() const { return aCursorPos.Col(); } SCROW GetRow() const { return aCursorPos.Row(); } SCTAB GetTab() const { return aCursorPos.Tab(); } - ScEditEngineDefaulter* GetEngine() const { return pEditEngine; } + ScEditEngineDefaulter* GetEngine() const { return pEditEngine; } private: ScEditViewHint(); // disabled @@ -143,8 +143,8 @@ public: ScIndexHint(USHORT nNewId, USHORT nIdx); ~ScIndexHint(); - USHORT GetId() const { return nId; } - USHORT GetIndex() const { return nIndex; } + USHORT GetId() const { return nId; } + USHORT GetIndex() const { return nIndex; } }; //---------------------------------------------------------------------------- @@ -154,11 +154,11 @@ class SC_DLLPUBLIC ScSortItem : public SfxPoolItem { public: TYPEINFO(); - ScSortItem( USHORT nWhich, - ScViewData* ptrViewData, - const ScSortParam* pSortData ); - ScSortItem( USHORT nWhich, - const ScSortParam* pSortData ); + ScSortItem( USHORT nWhich, + ScViewData* ptrViewData, + const ScSortParam* pSortData ); + ScSortItem( USHORT nWhich, + const ScSortParam* pSortData ); ScSortItem( const ScSortItem& rItem ); ~ScSortItem(); @@ -167,12 +167,12 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberUd ) const; - ScViewData* GetViewData () const { return pViewData; } - const ScSortParam& GetSortData () const { return theSortData; } + ScViewData* GetViewData () const { return pViewData; } + const ScSortParam& GetSortData () const { return theSortData; } private: - ScViewData* pViewData; - ScSortParam theSortData; + ScViewData* pViewData; + ScSortParam theSortData; }; //---------------------------------------------------------------------------- @@ -182,11 +182,11 @@ class SC_DLLPUBLIC ScQueryItem : public SfxPoolItem { public: TYPEINFO(); - ScQueryItem( USHORT nWhich, - ScViewData* ptrViewData, - const ScQueryParam* pQueryData ); - ScQueryItem( USHORT nWhich, - const ScQueryParam* pQueryData ); + ScQueryItem( USHORT nWhich, + ScViewData* ptrViewData, + const ScQueryParam* pQueryData ); + ScQueryItem( USHORT nWhich, + const ScQueryParam* pQueryData ); ScQueryItem( const ScQueryItem& rItem ); ~ScQueryItem(); @@ -194,17 +194,17 @@ public: virtual int operator==( const SfxPoolItem& ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - ScViewData* GetViewData () const { return pViewData; } - const ScQueryParam& GetQueryData() const { return theQueryData; } + ScViewData* GetViewData () const { return pViewData; } + const ScQueryParam& GetQueryData() const { return theQueryData; } - BOOL GetAdvancedQuerySource(ScRange& rSource) const; - void SetAdvancedQuerySource(const ScRange* pSource); + BOOL GetAdvancedQuerySource(ScRange& rSource) const; + void SetAdvancedQuerySource(const ScRange* pSource); private: - ScViewData* pViewData; - ScQueryParam theQueryData; - BOOL bIsAdvanced; - ScRange aAdvSource; + ScViewData* pViewData; + ScQueryParam theQueryData; + BOOL bIsAdvanced; + ScRange aAdvSource; }; //---------------------------------------------------------------------------- @@ -214,12 +214,12 @@ class SC_DLLPUBLIC ScSubTotalItem : public SfxPoolItem { public: TYPEINFO(); - ScSubTotalItem( USHORT nWhich, - ScViewData* ptrViewData, - const ScSubTotalParam* pSubTotalData ); - ScSubTotalItem( USHORT nWhich, - const ScSubTotalParam* pSubTotalData ); - ScSubTotalItem( const ScSubTotalItem& rItem ); + ScSubTotalItem( USHORT nWhich, + ScViewData* ptrViewData, + const ScSubTotalParam* pSubTotalData ); + ScSubTotalItem( USHORT nWhich, + const ScSubTotalParam* pSubTotalData ); + ScSubTotalItem( const ScSubTotalItem& rItem ); ~ScSubTotalItem(); virtual String GetValueText() const; @@ -227,12 +227,12 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberUd ) const; - ScViewData* GetViewData () const { return pViewData; } - const ScSubTotalParam& GetSubTotalData() const { return theSubTotalData; } + ScViewData* GetViewData () const { return pViewData; } + const ScSubTotalParam& GetSubTotalData() const { return theSubTotalData; } private: - ScViewData* pViewData; - ScSubTotalParam theSubTotalData; + ScViewData* pViewData; + ScSubTotalParam theSubTotalData; }; //---------------------------------------------------------------------------- @@ -250,11 +250,11 @@ public: virtual int operator==( const SfxPoolItem& ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - void SetUserList ( const ScUserList& rUserList ); - ScUserList* GetUserList () const { return pUserList; } + void SetUserList ( const ScUserList& rUserList ); + ScUserList* GetUserList () const { return pUserList; } private: - ScUserList* pUserList; + ScUserList* pUserList; }; //---------------------------------------------------------------------------- @@ -264,9 +264,9 @@ class ScConsolidateItem : public SfxPoolItem { public: TYPEINFO(); - ScConsolidateItem( USHORT nWhich, + ScConsolidateItem( USHORT nWhich, const ScConsolidateParam* pParam ); - ScConsolidateItem( const ScConsolidateItem& rItem ); + ScConsolidateItem( const ScConsolidateItem& rItem ); ~ScConsolidateItem(); virtual String GetValueText() const; @@ -276,7 +276,7 @@ public: const ScConsolidateParam& GetData() const { return theConsData; } private: - ScConsolidateParam theConsData; + ScConsolidateParam theConsData; }; //---------------------------------------------------------------------------- @@ -288,21 +288,21 @@ public: TYPEINFO(); ScPivotItem( USHORT nWhich, const ScDPSaveData* pData, const ScRange* pRange, BOOL bNew ); - ScPivotItem( const ScPivotItem& rItem ); + ScPivotItem( const ScPivotItem& rItem ); ~ScPivotItem(); virtual String GetValueText() const; virtual int operator==( const SfxPoolItem& ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - const ScDPSaveData& GetData() const { return *pSaveData; } - const ScRange& GetDestRange() const { return aDestRange; } - BOOL IsNewSheet() const { return bNewSheet; } + const ScDPSaveData& GetData() const { return *pSaveData; } + const ScRange& GetDestRange() const { return aDestRange; } + BOOL IsNewSheet() const { return bNewSheet; } private: - ScDPSaveData* pSaveData; - ScRange aDestRange; - BOOL bNewSheet; + ScDPSaveData* pSaveData; + ScRange aDestRange; + BOOL bNewSheet; }; //---------------------------------------------------------------------------- @@ -312,9 +312,9 @@ class ScSolveItem : public SfxPoolItem { public: TYPEINFO(); - ScSolveItem( USHORT nWhich, + ScSolveItem( USHORT nWhich, const ScSolveParam* pParam ); - ScSolveItem( const ScSolveItem& rItem ); + ScSolveItem( const ScSolveItem& rItem ); ~ScSolveItem(); virtual String GetValueText() const; @@ -324,7 +324,7 @@ public: const ScSolveParam& GetData() const { return theSolveData; } private: - ScSolveParam theSolveData; + ScSolveParam theSolveData; }; //---------------------------------------------------------------------------- @@ -334,9 +334,9 @@ class ScTabOpItem : public SfxPoolItem { public: TYPEINFO(); - ScTabOpItem( USHORT nWhich, + ScTabOpItem( USHORT nWhich, const ScTabOpParam* pParam ); - ScTabOpItem( const ScTabOpItem& rItem ); + ScTabOpItem( const ScTabOpItem& rItem ); ~ScTabOpItem(); virtual String GetValueText() const; @@ -346,7 +346,7 @@ public: const ScTabOpParam& GetData() const { return theTabOpData; } private: - ScTabOpParam theTabOpData; + ScTabOpParam theTabOpData; }; //---------------------------------------------------------------------------- @@ -357,7 +357,7 @@ class ScCondFrmtItem : public SfxPoolItem public: TYPEINFO(); ScCondFrmtItem( USHORT nWhich, -//! const ScConditionalFormat* pCondFrmt ); +//! const ScConditionalFormat* pCondFrmt ); const ScConditionalFormat& rCondFrmt ); ScCondFrmtItem( const ScCondFrmtItem& rItem ); ~ScCondFrmtItem(); @@ -366,10 +366,10 @@ public: virtual int operator==( const SfxPoolItem& ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - const ScConditionalFormat& GetData() const { return theCondFrmtData; } + const ScConditionalFormat& GetData() const { return theCondFrmtData; } private: - ScConditionalFormat theCondFrmtData; + ScConditionalFormat theCondFrmtData; }; diff --git a/sc/source/ui/inc/undobase.hxx b/sc/source/ui/inc/undobase.hxx index 6f2bb3572832..4bb22d42f54e 100644 --- a/sc/source/ui/inc/undobase.hxx +++ b/sc/source/ui/inc/undobase.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,21 +45,21 @@ class ScSimpleUndo: public SfxUndoAction public: TYPEINFO(); ScSimpleUndo( ScDocShell* pDocSh ); - virtual ~ScSimpleUndo(); + virtual ~ScSimpleUndo(); - virtual BOOL Merge( SfxUndoAction *pNextAction ); + virtual BOOL Merge( SfxUndoAction *pNextAction ); protected: - ScDocShell* pDocShell; - SfxUndoAction* pDetectiveUndo; + ScDocShell* pDocShell; + SfxUndoAction* pDetectiveUndo; - void BeginUndo(); - void EndUndo(); - void BeginRedo(); - void EndRedo(); + void BeginUndo(); + void EndUndo(); + void BeginRedo(); + void EndRedo(); - static void ShowTable( SCTAB nTab ); - static void ShowTable( const ScRange& rRange ); + static void ShowTable( SCTAB nTab ); + static void ShowTable( const ScRange& rRange ); }; //---------------------------------------------------------------------------- @@ -72,20 +72,20 @@ public: TYPEINFO(); ScBlockUndo( ScDocShell* pDocSh, const ScRange& rRange, ScBlockUndoMode eBlockMode ); - virtual ~ScBlockUndo(); + virtual ~ScBlockUndo(); protected: - ScRange aBlockRange; - SdrUndoAction* pDrawUndo; - ScBlockUndoMode eMode; + ScRange aBlockRange; + SdrUndoAction* pDrawUndo; + ScBlockUndoMode eMode; - void BeginUndo(); - void EndUndo(); -// void BeginRedo(); - void EndRedo(); + void BeginUndo(); + void EndUndo(); +// void BeginRedo(); + void EndRedo(); - BOOL AdjustHeight(); - void ShowBlock(); + BOOL AdjustHeight(); + void ShowBlock(); }; //---------------------------------------------------------------------------- @@ -116,28 +116,28 @@ public: enum ScMoveUndoMode { SC_UNDO_REFFIRST, SC_UNDO_REFLAST }; -class ScMoveUndo: public ScSimpleUndo // mit Referenzen +class ScMoveUndo: public ScSimpleUndo // mit Referenzen { public: TYPEINFO(); ScMoveUndo( ScDocShell* pDocSh, ScDocument* pRefDoc, ScRefUndoData* pRefData, ScMoveUndoMode eRefMode ); - virtual ~ScMoveUndo(); + virtual ~ScMoveUndo(); protected: - SdrUndoAction* pDrawUndo; - ScDocument* pRefUndoDoc; - ScRefUndoData* pRefUndoData; - ScMoveUndoMode eMode; + SdrUndoAction* pDrawUndo; + ScDocument* pRefUndoDoc; + ScRefUndoData* pRefUndoData; + ScMoveUndoMode eMode; - void BeginUndo(); - void EndUndo(); -// void BeginRedo(); -// void EndRedo(); + void BeginUndo(); + void EndUndo(); +// void BeginRedo(); +// void EndRedo(); private: - void UndoRef(); + void UndoRef(); }; //---------------------------------------------------------------------------- diff --git a/sc/source/ui/inc/undoblk.hxx b/sc/source/ui/inc/undoblk.hxx index 574926ecbf52..350a4162057d 100644 --- a/sc/source/ui/inc/undoblk.hxx +++ b/sc/source/ui/inc/undoblk.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -55,29 +55,29 @@ public: const ScRange& rRange, SCTAB nNewCount, SCTAB* pNewTabs, SCTAB* pNewScenarios, InsCellCmd eNewCmd, ScDocument* pUndoDocument, ScRefUndoData* pRefData, BOOL bNewPartOfPaste ); - virtual ~ScUndoInsertCells(); + virtual ~ScUndoInsertCells(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat( SfxRepeatTarget& rTarget ); - virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat( SfxRepeatTarget& rTarget ); + virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const; - virtual String GetComment() const; + virtual String GetComment() const; - virtual BOOL Merge( SfxUndoAction *pNextAction ); + virtual BOOL Merge( SfxUndoAction *pNextAction ); private: - ScRange aEffRange; + ScRange aEffRange; SCTAB nCount; SCTAB* pTabs; SCTAB* pScenarios; - ULONG nEndChangeAction; - InsCellCmd eCmd; - BOOL bPartOfPaste; - SfxUndoAction* pPasteUndo; + ULONG nEndChangeAction; + InsCellCmd eCmd; + BOOL bPartOfPaste; + SfxUndoAction* pPasteUndo; - void DoChange ( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange ( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -86,28 +86,28 @@ class ScUndoDeleteCells: public ScMoveUndo public: TYPEINFO(); ScUndoDeleteCells( ScDocShell* pNewDocShell, - const ScRange& rRange, SCTAB nNewCount, SCTAB* pNewTabs, SCTAB* pNewScenarios, + const ScRange& rRange, SCTAB nNewCount, SCTAB* pNewTabs, SCTAB* pNewScenarios, DelCellCmd eNewCmd, ScDocument* pUndoDocument, ScRefUndoData* pRefData ); - virtual ~ScUndoDeleteCells(); + virtual ~ScUndoDeleteCells(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aEffRange; + ScRange aEffRange; SCTAB nCount; SCTAB* pTabs; SCTAB* pScenarios; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - DelCellCmd eCmd; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + DelCellCmd eCmd; - void DoChange ( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange ( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -119,26 +119,26 @@ public: BOOL bNewRows, BOOL bNeedsRefresh, SCTAB nNewTab, const SCCOLROW* pRng, SCCOLROW nRngCnt, ScDocument* pUndoDocument, ScRefUndoData* pRefData ); - virtual ~ScUndoDeleteMulti(); + virtual ~ScUndoDeleteMulti(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - BOOL bRows; + BOOL bRows; BOOL bRefresh; - SCTAB nTab; - SCCOLROW* pRanges; - SCCOLROW nRangeCnt; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + SCTAB nTab; + SCCOLROW* pRanges; + SCCOLROW nRangeCnt; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void DoChange() const; - void SetChangeTrack(); + void DoChange() const; + void SetChangeTrack(); }; @@ -151,24 +151,24 @@ public: ScAddress aOldEnd, // end position without adjustment const ScMarkData& rMark, // selected sheets ScDocument* pNewUndoDoc ); - virtual ~ScUndoCut(); + virtual ~ScUndoCut(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: ScMarkData aMarkData; - ScDocument* pUndoDoc; - ScRange aExtendedRange; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + ScDocument* pUndoDoc; + ScRange aExtendedRange; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -202,29 +202,29 @@ public: ScRefUndoData* pRefData, void* pFill1, void* pFill2, void* pFill3, BOOL bRedoIsFilled = TRUE, const ScUndoPasteOptions* pOptions = NULL ); - virtual ~ScUndoPaste(); + virtual ~ScUndoPaste(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; - USHORT nFlags; - ScRefUndoData* pRefUndoData; - ScRefUndoData* pRefRedoData; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - BOOL bRedoFilled; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; + USHORT nFlags; + ScRefUndoData* pRefUndoData; + ScRefUndoData* pRefRedoData; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + BOOL bRedoFilled; ScUndoPasteOptions aPasteOptions; - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -236,27 +236,27 @@ public: const ScRange& rRange, ScAddress aNewDestPos, BOOL bNewCut, ScDocument* pUndoDocument, ScRefUndoData* pRefData, BOOL bScenario ); - virtual ~ScUndoDragDrop(); + virtual ~ScUndoDragDrop(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aSrcRange; - ScRange aDestRange; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - BOOL bCut; - BOOL bKeepScenarioFlags; + ScRange aSrcRange; + ScRange aDestRange; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + BOOL bCut; + BOOL bKeepScenarioFlags; - void PaintArea( ScRange aRange, USHORT nExtFlags ) const; - void DoUndo( ScRange aRange ) const; + void PaintArea( ScRange aRange, USHORT nExtFlags ) const; + void DoUndo( ScRange aRange ) const; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -269,27 +269,27 @@ public: const ScRange& rRange, ScDocument* pNewUndoDoc, BOOL bNewMulti, USHORT nNewFlags, BOOL bObjects ); - virtual ~ScUndoDeleteContents(); + virtual ~ScUndoDeleteContents(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aRange; - ScMarkData aMarkData; - ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten - SdrUndoAction* pDrawUndo; // geloeschte Objekte - ULONG nStartChangeAction; - ULONG nEndChangeAction; - USHORT nFlags; - BOOL bMulti; // Mehrfachselektion + ScRange aRange; + ScMarkData aMarkData; + ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten + SdrUndoAction* pDrawUndo; // geloeschte Objekte + ULONG nStartChangeAction; + ULONG nEndChangeAction; + USHORT nFlags; + BOOL bMulti; // Mehrfachselektion - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -303,30 +303,30 @@ public: SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocument* pNewUndoDoc, BOOL bNewMulti, SCTAB nSrc, USHORT nFlg, USHORT nFunc, BOOL bSkip, BOOL bLink ); - virtual ~ScUndoFillTable(); + virtual ~ScUndoFillTable(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aRange; - ScMarkData aMarkData; - ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten - ULONG nStartChangeAction; - ULONG nEndChangeAction; - USHORT nFlags; - USHORT nFunction; - SCTAB nSrcTab; - BOOL bMulti; // Mehrfachselektion - BOOL bSkipEmpty; - BOOL bAsLink; + ScRange aRange; + ScMarkData aMarkData; + ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten + ULONG nStartChangeAction; + ULONG nEndChangeAction; + USHORT nFlags; + USHORT nFunction; + SCTAB nSrcTab; + BOOL bMulti; // Mehrfachselektion + BOOL bSkipEmpty; + BOOL bAsLink; - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -342,25 +342,25 @@ public: const ScPatternAttr* pNewApply, const SvxBoxItem* pNewOuter = NULL, const SvxBoxInfoItem* pNewInner = NULL ); - virtual ~ScUndoSelectionAttr(); + virtual ~ScUndoSelectionAttr(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScRange aRange; - ScDocument* pUndoDoc; - BOOL bMulti; - ScPatternAttr* pApplyPattern; - SvxBoxItem* pLineOuter; - SvxBoxInfoItem* pLineInner; + ScMarkData aMarkData; + ScRange aRange; + ScDocument* pUndoDoc; + BOOL bMulti; + ScPatternAttr* pApplyPattern; + SvxBoxItem* pLineOuter; + SvxBoxInfoItem* pLineInner; - void DoChange( const BOOL bUndo ); + void DoChange( const BOOL bUndo ); }; @@ -377,29 +377,29 @@ public: ScOutlineTable* pNewUndoTab, ScSizeMode eNewMode, USHORT nNewSizeTwips, BOOL bNewWidth ); - virtual ~ScUndoWidthOrHeight(); + virtual ~ScUndoWidthOrHeight(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; virtual String GetComment() const; private: - ScMarkData aMarkData; - SCCOLROW nStart; - SCCOLROW nEnd; - SCTAB nStartTab; - SCTAB nEndTab; - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTab; - SCCOLROW nRangeCnt; - SCCOLROW* pRanges; - USHORT nNewSize; - BOOL bWidth; - ScSizeMode eMode; - SdrUndoAction* pDrawUndo; + ScMarkData aMarkData; + SCCOLROW nStart; + SCCOLROW nEnd; + SCTAB nStartTab; + SCTAB nEndTab; + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTab; + SCCOLROW nRangeCnt; + SCCOLROW* pRanges; + USHORT nNewSize; + BOOL bWidth; + ScSizeMode eMode; + SdrUndoAction* pDrawUndo; }; @@ -414,30 +414,30 @@ public: FillCmd eNewFillCmd, FillDateCmd eNewFillDateCmd, double fNewStartValue, double fNewStepValue, double fNewMaxValue, USHORT nMaxShIndex ); - virtual ~ScUndoAutoFill(); + virtual ~ScUndoAutoFill(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aSource; - ScMarkData aMarkData; - ScDocument* pUndoDoc; - FillDir eFillDir; - FillCmd eFillCmd; - FillDateCmd eFillDateCmd; - double fStartValue; - double fStepValue; - double fMaxValue; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - USHORT nMaxSharedIndex; + ScRange aSource; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + FillDir eFillDir; + FillCmd eFillCmd; + FillDateCmd eFillDateCmd; + double fStartValue; + double fStepValue; + double fMaxValue; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + USHORT nMaxSharedIndex; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -449,22 +449,22 @@ public: SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, bool bMergeContents, ScDocument* pUndoDoc, SdrUndoAction* pDrawUndo ); - virtual ~ScUndoMerge(); + virtual ~ScUndoMerge(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: ScRange maRange; bool mbMergeContents; // Merge contents in Redo(). - ScDocument* mpUndoDoc; // wenn Daten zusammengefasst + ScDocument* mpUndoDoc; // wenn Daten zusammengefasst SdrUndoAction* mpDrawUndo; - void DoChange( bool bUndo ) const; + void DoChange( bool bUndo ) const; }; @@ -476,20 +476,20 @@ public: const ScRange& rRange, ScDocument* pNewUndoDoc, const ScMarkData& rMark, BOOL bNewSize, USHORT nNewFormatNo ); - virtual ~ScUndoAutoFormat(); + virtual ~ScUndoAutoFormat(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; // geloeschte Daten - ScMarkData aMarkData; - BOOL bSize; - USHORT nFormatNo; + ScDocument* pUndoDoc; // geloeschte Daten + ScMarkData aMarkData; + BOOL bSize; + USHORT nFormatNo; }; @@ -502,25 +502,25 @@ public: SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, const String& rNewUndoStr, ScDocument* pNewUndoDoc, const SvxSearchItem* pItem ); - virtual ~ScUndoReplace(); + virtual ~ScUndoReplace(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aCursorPos; - ScMarkData aMarkData; - String aUndoStr; // Daten bei Einfachmarkierung - ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten - SvxSearchItem* pSearchItem; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + ScAddress aCursorPos; + ScMarkData aMarkData; + String aUndoStr; // Daten bei Einfachmarkierung + ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten + SvxSearchItem* pSearchItem; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -537,23 +537,23 @@ public: const ScRefAddress& rRowCell, const ScRefAddress& rColCell, BYTE nMode ); - virtual ~ScUndoTabOp(); + virtual ~ScUndoTabOp(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aRange; - ScDocument* pUndoDoc; // geloeschte Daten - ScRefAddress theFormulaCell; - ScRefAddress theFormulaEnd; - ScRefAddress theRowCell; - ScRefAddress theColCell; - BYTE nMode; + ScRange aRange; + ScDocument* pUndoDoc; // geloeschte Daten + ScRefAddress theFormulaCell; + ScRefAddress theFormulaEnd; + ScRefAddress theRowCell; + ScRefAddress theColCell; + BYTE nMode; }; @@ -627,20 +627,20 @@ public: ScUndoListNames( ScDocShell* pNewDocShell, const ScRange& rRange, ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc ); - virtual ~ScUndoListNames(); + virtual ~ScUndoListNames(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; - void DoChange( ScDocument* pSrcDoc ) const; + void DoChange( ScDocument* pSrcDoc ) const; }; @@ -652,20 +652,20 @@ public: const ScMarkData& rMark, const ScArea& rDestArea, ScDocument* pNewUndoDoc, const String& rNewName ); - virtual ~ScUndoUseScenario(); + virtual ~ScUndoUseScenario(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScRange aRange; - ScMarkData aMarkData; - String aName; + ScDocument* pUndoDoc; + ScRange aRange; + ScMarkData aMarkData; + String aName; }; @@ -678,23 +678,23 @@ public: const ScRange& rRange, const String& rName, ScDocument* pNewUndoDoc ); - virtual ~ScUndoSelectionStyle(); + virtual ~ScUndoSelectionStyle(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; - virtual USHORT GetId() const; + virtual String GetComment() const; + virtual USHORT GetId() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - String aStyleName; - ScRange aRange; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + String aStyleName; + ScRange aRange; - void DoChange( const BOOL bUndo ); + void DoChange( const BOOL bUndo ); }; @@ -704,18 +704,18 @@ public: TYPEINFO(); ScUndoRefreshLink( ScDocShell* pNewDocShell, ScDocument* pNewUndoDoc ); - virtual ~ScUndoRefreshLink(); + virtual ~ScUndoRefreshLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; }; @@ -727,23 +727,23 @@ public: const ScRange& rArea, ScDocument* pNewUndoDoc, const String& rForm ); - virtual ~ScUndoEnterMatrix(); + virtual ~ScUndoEnterMatrix(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - String aFormula; + ScDocument* pUndoDoc; + String aFormula; formula::FormulaGrammar::AddressConvention eConv; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -756,22 +756,22 @@ public: const String& rFlt, const String& rOpt, const String& rArea, const ScRange& rDestRange, ULONG nRefreshDelay ); - virtual ~ScUndoInsertAreaLink(); + virtual ~ScUndoInsertAreaLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aDocName; - String aFltName; - String aOptions; - String aAreaName; - ScRange aRange; - ULONG nRefreshDelay; + String aDocName; + String aFltName; + String aOptions; + String aAreaName; + ScRange aRange; + ULONG nRefreshDelay; }; @@ -784,26 +784,26 @@ public: const String& rFlt, const String& rOpt, const String& rArea, const ScRange& rDestRange, ULONG nRefreshDelay ); - virtual ~ScUndoRemoveAreaLink(); + virtual ~ScUndoRemoveAreaLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aDocName; - String aFltName; - String aOptions; - String aAreaName; - ScRange aRange; - ULONG nRefreshDelay; + String aDocName; + String aFltName; + String aOptions; + String aAreaName; + ScRange aRange; + ULONG nRefreshDelay; }; -class ScUndoUpdateAreaLink : public ScSimpleUndo //! auch BlockUndo umstellen? +class ScUndoUpdateAreaLink : public ScSimpleUndo //! auch BlockUndo umstellen? { public: TYPEINFO(); @@ -818,33 +818,33 @@ public: ULONG nNewRD, ScDocument* pUndo, ScDocument* pRedo, BOOL bDoInsert ); - virtual ~ScUndoUpdateAreaLink(); + virtual ~ScUndoUpdateAreaLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aOldDoc; - String aOldFlt; - String aOldOpt; - String aOldArea; - ScRange aOldRange; - String aNewDoc; - String aNewFlt; - String aNewOpt; - String aNewArea; - ScRange aNewRange; - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; - ULONG nOldRefresh; - ULONG nNewRefresh; - BOOL bWithInsert; - - void DoChange( const BOOL bUndo ) const; + String aOldDoc; + String aOldFlt; + String aOldOpt; + String aOldArea; + ScRange aOldRange; + String aNewDoc; + String aNewFlt; + String aNewOpt; + String aNewArea; + ScRange aNewRange; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; + ULONG nOldRefresh; + ULONG nNewRefresh; + BOOL bWithInsert; + + void DoChange( const BOOL bUndo ) const; }; @@ -854,19 +854,19 @@ public: TYPEINFO(); ScUndoIndent( ScDocShell* pNewDocShell, const ScMarkData& rMark, ScDocument* pNewUndoDoc, BOOL bIncrement ); - virtual ~ScUndoIndent(); + virtual ~ScUndoIndent(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - BOOL bIsIncrement; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + BOOL bIsIncrement; }; @@ -876,19 +876,19 @@ public: TYPEINFO(); ScUndoTransliterate( ScDocShell* pNewDocShell, const ScMarkData& rMark, ScDocument* pNewUndoDoc, sal_Int32 nType ); - virtual ~ScUndoTransliterate(); + virtual ~ScUndoTransliterate(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - sal_Int32 nTransliterationType; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + sal_Int32 nTransliterationType; }; @@ -898,19 +898,19 @@ public: TYPEINFO(); ScUndoClearItems( ScDocShell* pNewDocShell, const ScMarkData& rMark, ScDocument* pNewUndoDoc, const USHORT* pW ); - virtual ~ScUndoClearItems(); + virtual ~ScUndoClearItems(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - USHORT* pWhich; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + USHORT* pWhich; }; @@ -920,18 +920,18 @@ public: TYPEINFO(); ScUndoRemoveBreaks( ScDocShell* pNewDocShell, SCTAB nNewTab, ScDocument* pNewUndoDoc ); - virtual ~ScUndoRemoveBreaks(); + virtual ~ScUndoRemoveBreaks(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - ScDocument* pUndoDoc; + SCTAB nTab; + ScDocument* pUndoDoc; }; @@ -942,17 +942,17 @@ public: ScUndoRemoveMerge( ScDocShell* pNewDocShell, const ScRange& rArea, ScDocument* pNewUndoDoc ); - virtual ~ScUndoRemoveMerge(); + virtual ~ScUndoRemoveMerge(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; + ScDocument* pUndoDoc; }; @@ -965,20 +965,20 @@ public: ScDocument* pNewUndoDoc, const SvxBoxItem& rNewOuter, const SvxBoxInfoItem& rNewInner ); - virtual ~ScUndoBorder(); + virtual ~ScUndoBorder(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScRangeList* pRanges; - SvxBoxItem* pOuter; - SvxBoxInfoItem* pInner; + ScDocument* pUndoDoc; + ScRangeList* pRanges; + SvxBoxItem* pOuter; + SvxBoxInfoItem* pInner; }; diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx index 53f129166d10..8bded7d830f5 100644 --- a/sc/source/ui/inc/undocell.hxx +++ b/sc/source/ui/inc/undocell.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,25 +50,25 @@ public: SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, const ScPatternAttr* pOldPat, const ScPatternAttr* pNewPat, const ScPatternAttr* pApplyPat, BOOL bAutomatic ); - virtual ~ScUndoCursorAttr(); + virtual ~ScUndoCursorAttr(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCCOL nCol; - SCROW nRow; - SCTAB nTab; - ScPatternAttr* pOldPattern; - ScPatternAttr* pNewPattern; - ScPatternAttr* pApplyPattern; - BOOL bIsAutomatic; - - void DoChange( const ScPatternAttr* pWhichPattern ) const; + SCCOL nCol; + SCROW nRow; + SCTAB nTab; + ScPatternAttr* pOldPattern; + ScPatternAttr* pNewPattern; + ScPatternAttr* pApplyPattern; + BOOL bIsAutomatic; + + void DoChange( const ScPatternAttr* pWhichPattern ) const; }; @@ -81,30 +81,30 @@ public: SCTAB nNewCount, SCTAB* pNewTabs, ScBaseCell** ppOldData, BOOL* pHasForm, ULONG* pOldForm, const String& rNewStr, EditTextObject* pObj = NULL ); - virtual ~ScUndoEnterData(); + virtual ~ScUndoEnterData(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aNewString; - SCTAB* pTabs; - ScBaseCell** ppOldCells; - BOOL* pHasFormat; - ULONG* pOldFormats; - EditTextObject* pNewEditData; - ULONG nEndChangeAction; - SCCOL nCol; - SCROW nRow; - SCTAB nTab; - SCTAB nCount; // markierte Tabellen - - void DoChange() const; - void SetChangeTrack(); + String aNewString; + SCTAB* pTabs; + ScBaseCell** ppOldCells; + BOOL* pHasFormat; + ULONG* pOldFormats; + EditTextObject* pNewEditData; + ULONG nEndChangeAction; + SCCOL nCol; + SCROW nRow; + SCTAB nTab; + SCTAB nCount; // markierte Tabellen + + void DoChange() const; + void SetChangeTrack(); }; @@ -115,23 +115,23 @@ public: ScUndoEnterValue( ScDocShell* pNewDocShell, const ScAddress& rNewPos, ScBaseCell* pUndoCell, double nVal, BOOL bHeight ); - virtual ~ScUndoEnterValue(); + virtual ~ScUndoEnterValue(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aPos; - ScBaseCell* pOldCell; - double nValue; - ULONG nEndChangeAction; - BOOL bNeedHeight; + ScAddress aPos; + ScBaseCell* pOldCell; + double nValue; + ULONG nEndChangeAction; + BOOL bNeedHeight; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -142,23 +142,23 @@ public: ScUndoPutCell( ScDocShell* pNewDocShell, const ScAddress& rNewPos, ScBaseCell* pUndoCell, ScBaseCell* pRedoCell, BOOL bHeight ); - virtual ~ScUndoPutCell(); + virtual ~ScUndoPutCell(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aPos; - ScBaseCell* pOldCell; - ScBaseCell* pEnteredCell; - ULONG nEndChangeAction; - BOOL bNeedHeight; + ScAddress aPos; + ScBaseCell* pOldCell; + ScBaseCell* pEnteredCell; + ULONG nEndChangeAction; + BOOL bNeedHeight; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -169,23 +169,23 @@ public: ScUndoPageBreak( ScDocShell* pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, BOOL bNewColumn, BOOL bNewInsert ); - virtual ~ScUndoPageBreak(); + virtual ~ScUndoPageBreak(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCCOL nCol; - SCROW nRow; - SCTAB nTab; - BOOL bColumn; // Spalten- oder Zeilenumbruch - BOOL bInsert; // Einfuegen oder Loeschen + SCCOL nCol; + SCROW nRow; + SCTAB nTab; + BOOL bColumn; // Spalten- oder Zeilenumbruch + BOOL bInsert; // Einfuegen oder Loeschen - void DoChange( BOOL bInsert ) const; + void DoChange( BOOL bInsert ) const; }; class ScUndoPrintZoom: public ScSimpleUndo @@ -194,23 +194,23 @@ public: TYPEINFO(); ScUndoPrintZoom( ScDocShell* pNewDocShell, SCTAB nT, USHORT nOS, USHORT nOP, USHORT nNS, USHORT nNP ); - virtual ~ScUndoPrintZoom(); + virtual ~ScUndoPrintZoom(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - USHORT nOldScale; - USHORT nOldPages; - USHORT nNewScale; - USHORT nNewPages; + SCTAB nTab; + USHORT nOldScale; + USHORT nOldPages; + USHORT nNewScale; + USHORT nNewPages; - void DoChange( BOOL bUndo ); + void DoChange( BOOL bUndo ); }; class ScUndoThesaurus: public ScSimpleUndo @@ -221,28 +221,28 @@ public: SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, const String& rNewUndoStr, const EditTextObject* pUndoTObj, const String& rNewRedoStr, const EditTextObject* pRedoTObj); - virtual ~ScUndoThesaurus(); + virtual ~ScUndoThesaurus(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCCOL nCol; - SCROW nRow; - SCTAB nTab; - String aUndoStr; // Daten bei StringZelle - EditTextObject* pUndoTObject; // bei EditZelle - String aRedoStr; + SCCOL nCol; + SCROW nRow; + SCTAB nTab; + String aUndoStr; // Daten bei StringZelle + EditTextObject* pUndoTObject; // bei EditZelle + String aRedoStr; EditTextObject* pRedoTObject; - ULONG nEndChangeAction; + ULONG nEndChangeAction; - void DoChange( BOOL bUndo, const String& rStr, + void DoChange( BOOL bUndo, const String& rStr, const EditTextObject* pTObj ); - void SetChangeTrack( ScBaseCell* pOldCell ); + void SetChangeTrack( ScBaseCell* pOldCell ); }; // ============================================================================ @@ -297,18 +297,18 @@ class ScUndoShowHideNote : public ScSimpleUndo public: TYPEINFO(); ScUndoShowHideNote( ScDocShell& rDocShell, const ScAddress& rPos, bool bShow ); - virtual ~ScUndoShowHideNote(); + virtual ~ScUndoShowHideNote(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat( SfxRepeatTarget& rTarget ); - virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat( SfxRepeatTarget& rTarget ); + virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress maPos; - bool mbShown; + ScAddress maPos; + bool mbShown; }; // ============================================================================ @@ -320,21 +320,21 @@ public: ScUndoDetective( ScDocShell* pNewDocShell, SdrUndoAction* pDraw, const ScDetOpData* pOperation, ScDetOpList* pUndoList = NULL ); - virtual ~ScUndoDetective(); + virtual ~ScUndoDetective(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - BOOL bIsDelete; - ScDetOpList* pOldList; - USHORT nAction; - ScAddress aPos; - SdrUndoAction* pDrawUndo; + BOOL bIsDelete; + ScDetOpList* pOldList; + USHORT nAction; + ScAddress aPos; + SdrUndoAction* pDrawUndo; }; @@ -344,20 +344,20 @@ public: TYPEINFO(); ScUndoRangeNames( ScDocShell* pNewDocShell, ScRangeName* pOld, ScRangeName* pNew ); - virtual ~ScUndoRangeNames(); + virtual ~ScUndoRangeNames(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRangeName* pOldRanges; - ScRangeName* pNewRanges; + ScRangeName* pOldRanges; + ScRangeName* pNewRanges; - void DoChange( BOOL bUndo ); + void DoChange( BOOL bUndo ); }; diff --git a/sc/source/ui/inc/undodat.hxx b/sc/source/ui/inc/undodat.hxx index a2fcd392e9b4..81da22ed972d 100644 --- a/sc/source/ui/inc/undodat.hxx +++ b/sc/source/ui/inc/undodat.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,8 +29,8 @@ #define SC_UNDODAT_HXX #include "undobase.hxx" -#include "rangeutl.hxx" // ScArea -#include "rangelst.hxx" // ScRangeListRef +#include "rangeutl.hxx" // ScArea +#include "rangelst.hxx" // ScRangeListRef #include "markdata.hxx" #include "sortparam.hxx" #include "queryparam.hxx" @@ -55,24 +55,24 @@ public: SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab, ScDocument* pNewUndoDoc, BOOL bNewColumns, USHORT nNewLevel, USHORT nNewEntry, BOOL bNewShow ); - virtual ~ScUndoDoOutline(); + virtual ~ScUndoDoOutline(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCCOLROW nStart; - SCCOLROW nEnd; - SCTAB nTab; - ScDocument* pUndoDoc; - BOOL bColumns; - USHORT nLevel; - USHORT nEntry; - BOOL bShow; + SCCOLROW nStart; + SCCOLROW nEnd; + SCTAB nTab; + ScDocument* pUndoDoc; + BOOL bColumns; + USHORT nLevel; + USHORT nEntry; + BOOL bShow; }; @@ -85,21 +85,21 @@ public: SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScOutlineTable* pNewUndoTab, BOOL bNewColumns, BOOL bNewMake ); - virtual ~ScUndoMakeOutline(); + virtual ~ScUndoMakeOutline(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aBlockStart; - ScAddress aBlockEnd; - ScOutlineTable* pUndoTable; - BOOL bColumns; - BOOL bMake; + ScAddress aBlockStart; + ScAddress aBlockEnd; + ScOutlineTable* pUndoTable; + BOOL bColumns; + BOOL bMake; }; @@ -111,23 +111,23 @@ public: SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab, ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab, BOOL bNewColumns, USHORT nNewLevel ); - virtual ~ScUndoOutlineLevel(); + virtual ~ScUndoOutlineLevel(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCCOLROW nStart; - SCCOLROW nEnd; - SCTAB nTab; - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTable; - BOOL bColumns; - USHORT nLevel; + SCCOLROW nStart; + SCCOLROW nEnd; + SCTAB nTab; + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTable; + BOOL bColumns; + USHORT nLevel; }; @@ -140,21 +140,21 @@ public: SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab, BOOL bNewShow ); - virtual ~ScUndoOutlineBlock(); + virtual ~ScUndoOutlineBlock(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aBlockStart; - ScAddress aBlockEnd; - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTable; - BOOL bShow; + ScAddress aBlockStart; + ScAddress aBlockEnd; + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTable; + BOOL bShow; }; @@ -166,20 +166,20 @@ public: SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab ); - virtual ~ScUndoRemoveAllOutlines(); + virtual ~ScUndoRemoveAllOutlines(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aBlockStart; - ScAddress aBlockEnd; - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTable; + ScAddress aBlockStart; + ScAddress aBlockEnd; + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTable; }; @@ -191,20 +191,20 @@ public: SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab ); - virtual ~ScUndoAutoOutline(); + virtual ~ScUndoAutoOutline(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aBlockStart; - ScAddress aBlockEnd; - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTable; + ScAddress aBlockStart; + ScAddress aBlockEnd; + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTable; }; @@ -215,26 +215,26 @@ public: ScUndoSubTotals( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScSubTotalParam& rNewParam, SCROW nNewEndY, ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab, -// ScDBData* pNewData, +// ScDBData* pNewData, ScRangeName* pNewUndoRange, ScDBCollection* pNewUndoDB ); - virtual ~ScUndoSubTotals(); + virtual ~ScUndoSubTotals(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - ScSubTotalParam aParam; // Original uebergebener Parameter - SCROW nNewEndRow; // Ergebnis-Groesse - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTable; -// ScDBData* pUndoDBData; - ScRangeName* pUndoRange; - ScDBCollection* pUndoDB; + SCTAB nTab; + ScSubTotalParam aParam; // Original uebergebener Parameter + SCROW nNewEndRow; // Ergebnis-Groesse + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTable; +// ScDBData* pUndoDBData; + ScRangeName* pUndoRange; + ScDBCollection* pUndoDB; }; @@ -246,23 +246,23 @@ public: const ScSortParam& rParam, BOOL bQuery, ScDocument* pNewUndoDoc, ScDBCollection* pNewUndoDB, const ScRange* pDest = NULL ); - virtual ~ScUndoSort(); + virtual ~ScUndoSort(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - ScSortParam aSortParam; - BOOL bRepeatQuery; - ScDocument* pUndoDoc; - ScDBCollection* pUndoDB; // wegen Quell- und Zielbereich - BOOL bDestArea; - ScRange aDestRange; + SCTAB nTab; + ScSortParam aSortParam; + BOOL bRepeatQuery; + ScDocument* pUndoDoc; + ScDBCollection* pUndoDB; // wegen Quell- und Zielbereich + BOOL bDestArea; + ScRange aDestRange; }; @@ -274,26 +274,26 @@ public: const ScQueryParam& rParam, ScDocument* pNewUndoDoc, ScDBCollection* pNewUndoDB, const ScRange* pOld, BOOL bSize, const ScRange* pAdvSrc ); - virtual ~ScUndoQuery(); + virtual ~ScUndoQuery(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: SdrUndoAction* pDrawUndo; - SCTAB nTab; - ScQueryParam aQueryParam; - ScDocument* pUndoDoc; - ScDBCollection* pUndoDB; // wegen Quell- und Zielbereich - ScRange aOldDest; - ScRange aAdvSource; - BOOL bIsAdvanced; - BOOL bDestArea; - BOOL bDoSize; + SCTAB nTab; + ScQueryParam aQueryParam; + ScDocument* pUndoDoc; + ScDBCollection* pUndoDB; // wegen Quell- und Zielbereich + ScRange aOldDest; + ScRange aAdvSource; + BOOL bIsAdvanced; + BOOL bDestArea; + BOOL bDoSize; }; @@ -326,14 +326,14 @@ public: TYPEINFO(); ScUndoDBData( ScDocShell* pNewDocShell, ScDBCollection* pNewUndoColl, ScDBCollection* pNewRedoColl ); - virtual ~ScUndoDBData(); + virtual ~ScUndoDBData(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: ScDBCollection* pUndoColl; @@ -350,26 +350,26 @@ public: SCCOL nNewFormula, ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc, ScDBData* pNewUndoData, ScDBData* pNewRedoData ); - virtual ~ScUndoImportData(); + virtual ~ScUndoImportData(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - ScImportParam aImportParam; - SCCOL nEndCol; - SCROW nEndRow; - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; - ScDBData* pUndoDBData; - ScDBData* pRedoDBData; - SCCOL nFormulaCols; - BOOL bRedoFilled; + SCTAB nTab; + ScImportParam aImportParam; + SCCOL nEndCol; + SCROW nEndRow; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; + ScDBData* pUndoDBData; + ScDBData* pRedoDBData; + SCCOL nFormulaCols; + BOOL bRedoFilled; }; @@ -383,27 +383,27 @@ public: ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab, ScRangeName* pNewUndoRange, ScDBCollection* pNewUndoDB, const ScRange* pOldQ, const ScRange* pNewQ ); - virtual ~ScUndoRepeatDB(); + virtual ~ScUndoRepeatDB(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aBlockStart; - ScAddress aBlockEnd; - SCROW nNewEndRow; - ScAddress aCursorPos; - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTable; - ScRangeName* pUndoRange; - ScDBCollection* pUndoDB; - ScRange aOldQuery; - ScRange aNewQuery; - BOOL bQuerySize; + ScAddress aBlockStart; + ScAddress aBlockEnd; + SCROW nNewEndRow; + ScAddress aCursorPos; + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTable; + ScRangeName* pUndoRange; + ScDBCollection* pUndoDB; + ScRange aOldQuery; + ScRange aNewQuery; + BOOL bQuerySize; }; //UNUSED2008-05 class ScUndoPivot: public ScSimpleUndo @@ -415,14 +415,14 @@ private: //UNUSED2008-05 ScDocument* pOldDoc, ScDocument* pNewDoc, //UNUSED2008-05 const ScPivot* pOldPivot, const ScPivot* pNewPivot ); //UNUSED2008-05 virtual ~ScUndoPivot(); -//UNUSED2008-05 +//UNUSED2008-05 //UNUSED2008-05 virtual void Undo(); //UNUSED2008-05 virtual void Redo(); //UNUSED2008-05 virtual void Repeat(SfxRepeatTarget& rTarget); //UNUSED2008-05 virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; -//UNUSED2008-05 +//UNUSED2008-05 //UNUSED2008-05 virtual String GetComment() const; -//UNUSED2008-05 +//UNUSED2008-05 //UNUSED2008-05 private: //UNUSED2008-05 ScArea aOldArea; //UNUSED2008-05 ScArea aNewArea; @@ -448,21 +448,21 @@ public: ScDocument* pOldDoc, ScDocument* pNewDoc, const ScDPObject* pOldObj, const ScDPObject* pNewObj, BOOL bMove ); - virtual ~ScUndoDataPilot(); + virtual ~ScUndoDataPilot(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pOldUndoDoc; - ScDocument* pNewUndoDoc; - ScDPObject* pOldDPObject; - ScDPObject* pNewDPObject; - BOOL bAllowMove; + ScDocument* pOldUndoDoc; + ScDocument* pNewUndoDoc; + ScDPObject* pOldDPObject; + ScDPObject* pNewDPObject; + BOOL bAllowMove; }; @@ -475,23 +475,23 @@ public: ScDocument* pNewUndoDoc, BOOL bReference, SCROW nInsCount, ScOutlineTable* pTab, ScDBData* pData ); - virtual ~ScUndoConsolidate(); + virtual ~ScUndoConsolidate(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScArea aDestArea; - ScDocument* pUndoDoc; - ScConsolidateParam aParam; - BOOL bInsRef; - SCSIZE nInsertCount; - ScOutlineTable* pUndoTab; - ScDBData* pUndoData; + ScArea aDestArea; + ScDocument* pUndoDoc; + ScConsolidateParam aParam; + BOOL bInsRef; + SCSIZE nInsertCount; + ScOutlineTable* pUndoTab; + ScDBData* pUndoData; }; @@ -505,27 +505,27 @@ public: ScUndoChartData( ScDocShell* pNewDocShell, const String& rName, const ScRangeListRef& rNew, BOOL bColHdr, BOOL bRowHdr, BOOL bAdd ); - virtual ~ScUndoChartData(); + virtual ~ScUndoChartData(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aChartName; - ScRangeListRef aOldRangeListRef; - BOOL bOldColHeaders; - BOOL bOldRowHeaders; -// ScRange aNewRange; - ScRangeListRef aNewRangeListRef; - BOOL bNewColHeaders; - BOOL bNewRowHeaders; - BOOL bAddRange; - - void Init(); + String aChartName; + ScRangeListRef aOldRangeListRef; + BOOL bOldColHeaders; + BOOL bOldRowHeaders; +// ScRange aNewRange; + ScRangeListRef aNewRangeListRef; + BOOL bNewColHeaders; + BOOL bNewRowHeaders; + BOOL bAddRange; + + void Init(); }; diff --git a/sc/source/ui/inc/undodraw.hxx b/sc/source/ui/inc/undodraw.hxx index a2647985af9f..16dddd99cf69 100644 --- a/sc/source/ui/inc/undodraw.hxx +++ b/sc/source/ui/inc/undodraw.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,27 +34,27 @@ class ScDocShell; class ScUndoDraw: public SfxUndoAction { - SfxUndoAction* pDrawUndo; - ScDocShell* pDocShell; + SfxUndoAction* pDrawUndo; + ScDocShell* pDocShell; public: TYPEINFO(); ScUndoDraw( SfxUndoAction* pUndo, ScDocShell* pDocSh ); - virtual ~ScUndoDraw(); - - SfxUndoAction* GetDrawUndo() { return pDrawUndo; } - void ForgetDrawUndo(); - - virtual BOOL IsLinked(); - virtual void SetLinked( BOOL bIsLinked ); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual BOOL Merge( SfxUndoAction *pNextAction ); + virtual ~ScUndoDraw(); + + SfxUndoAction* GetDrawUndo() { return pDrawUndo; } + void ForgetDrawUndo(); + + virtual BOOL IsLinked(); + virtual void SetLinked( BOOL bIsLinked ); + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual BOOL Merge( SfxUndoAction *pNextAction ); virtual String GetComment() const; - virtual String GetRepeatComment(SfxRepeatTarget&) const; - virtual USHORT GetId() const; + virtual String GetRepeatComment(SfxRepeatTarget&) const; + virtual USHORT GetId() const; }; diff --git a/sc/source/ui/inc/undoolk.hxx b/sc/source/ui/inc/undoolk.hxx index 527c973b6705..0ad489cf69fb 100644 --- a/sc/source/ui/inc/undoolk.hxx +++ b/sc/source/ui/inc/undoolk.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,11 +33,11 @@ class SdrUndoAction; class ScDocument; -SdrUndoAction* GetSdrUndoAction ( ScDocument* pDoc ); -void DoSdrUndoAction ( SdrUndoAction* pUndoAction, ScDocument* pDoc ); -void RedoSdrUndoAction ( SdrUndoAction* pUndoAction ); -void DeleteSdrUndoAction ( SdrUndoAction* pUndoAction ); -void EnableDrawAdjust ( ScDocument* pDoc, BOOL bEnable ); +SdrUndoAction* GetSdrUndoAction ( ScDocument* pDoc ); +void DoSdrUndoAction ( SdrUndoAction* pUndoAction, ScDocument* pDoc ); +void RedoSdrUndoAction ( SdrUndoAction* pUndoAction ); +void DeleteSdrUndoAction ( SdrUndoAction* pUndoAction ); +void EnableDrawAdjust ( ScDocument* pDoc, BOOL bEnable ); diff --git a/sc/source/ui/inc/undostyl.hxx b/sc/source/ui/inc/undostyl.hxx index 5e7b86449722..6869fc8cdce0 100644 --- a/sc/source/ui/inc/undostyl.hxx +++ b/sc/source/ui/inc/undostyl.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,31 +39,31 @@ class SfxStyleSheetBase; class ScStyleSaveData { private: - String aName; - String aParent; - SfxItemSet* pItems; + String aName; + String aParent; + SfxItemSet* pItems; public: ScStyleSaveData(); ScStyleSaveData( const ScStyleSaveData& rOther ); ~ScStyleSaveData(); - ScStyleSaveData& operator=( const ScStyleSaveData& rOther ); + ScStyleSaveData& operator=( const ScStyleSaveData& rOther ); - void InitFromStyle( const SfxStyleSheetBase* pSource ); + void InitFromStyle( const SfxStyleSheetBase* pSource ); - const String& GetName() const { return aName; } - const String& GetParent() const { return aParent; } - const SfxItemSet* GetItems() const { return pItems; } + const String& GetName() const { return aName; } + const String& GetParent() const { return aParent; } + const SfxItemSet* GetItems() const { return pItems; } }; class ScUndoModifyStyle: public ScSimpleUndo { private: - SfxStyleFamily eFamily; - ScStyleSaveData aOldData; - ScStyleSaveData aNewData; + SfxStyleFamily eFamily; + ScStyleSaveData aOldData; + ScStyleSaveData aNewData; - static void DoChange( ScDocShell* pDocSh, + static void DoChange( ScDocShell* pDocSh, const String& rName, SfxStyleFamily eStyleFamily, const ScStyleSaveData& rData ); @@ -73,14 +73,14 @@ public: SfxStyleFamily eFam, const ScStyleSaveData& rOld, const ScStyleSaveData& rNew ); - virtual ~ScUndoModifyStyle(); + virtual ~ScUndoModifyStyle(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; }; class ScUndoApplyPageStyle: public ScSimpleUndo @@ -88,16 +88,16 @@ class ScUndoApplyPageStyle: public ScSimpleUndo public: TYPEINFO(); ScUndoApplyPageStyle( ScDocShell* pDocSh, const String& rNewStyle ); - virtual ~ScUndoApplyPageStyle(); + virtual ~ScUndoApplyPageStyle(); void AddSheetAction( SCTAB nTab, const String& rOld ); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: struct ApplyStyleEntry diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx index c8d135070ab1..1be7962dd378 100644 --- a/sc/source/ui/inc/undotab.hxx +++ b/sc/source/ui/inc/undotab.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -71,23 +71,23 @@ public: SCTAB nTabNum, BOOL bApp, const String& rNewName); - virtual ~ScUndoInsertTab(); + virtual ~ScUndoInsertTab(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String sNewName; - SdrUndoAction* pDrawUndo; - ULONG nEndChangeAction; - SCTAB nTab; - BOOL bAppend; + String sNewName; + SdrUndoAction* pDrawUndo; + ULONG nEndChangeAction; + SCTAB nTab; + BOOL bAppend; - void SetChangeTrack(); + void SetChangeTrack(); }; class ScUndoInsertTables : public ScSimpleUndo @@ -99,52 +99,52 @@ public: SCTAB nTabNum, BOOL bApp, SvStrings *pNewNameList); - virtual ~ScUndoInsertTables(); + virtual ~ScUndoInsertTables(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SdrUndoAction* pDrawUndo; - SvStrings* pNameList; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - SCTAB nTab; - BOOL bAppend; + SdrUndoAction* pDrawUndo; + SvStrings* pNameList; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + SCTAB nTab; + BOOL bAppend; - void SetChangeTrack(); + void SetChangeTrack(); }; -class ScUndoDeleteTab: public ScMoveUndo // Draw vom Move fuer geloeschte Tabelle +class ScUndoDeleteTab: public ScMoveUndo // Draw vom Move fuer geloeschte Tabelle { public: TYPEINFO(); ScUndoDeleteTab( ScDocShell* pNewDocShell, - const SvShorts &theTabs, //SCTAB nNewTab, + const SvShorts &theTabs, //SCTAB nNewTab, ScDocument* pUndoDocument, ScRefUndoData* pRefData ); - virtual ~ScUndoDeleteTab(); + virtual ~ScUndoDeleteTab(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SvShorts theTabs; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + SvShorts theTabs; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -157,19 +157,19 @@ public: SCTAB nT, const String& rOldName, const String& rNewName); - virtual ~ScUndoRenameTab(); + virtual ~ScUndoRenameTab(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - String sOldName; - String sNewName; + SCTAB nTab; + String sOldName; + String sNewName; void DoChange( SCTAB nTab, const String& rName ) const; }; @@ -182,18 +182,18 @@ public: ScUndoMoveTab( ScDocShell* pNewDocShell, const SvShorts &aOldTab, const SvShorts &aNewTab); - virtual ~ScUndoMoveTab(); + virtual ~ScUndoMoveTab(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SvShorts theOldTabs; - SvShorts theNewTabs; + SvShorts theOldTabs; + SvShorts theNewTabs; void DoChange( BOOL bUndo ) const; }; @@ -207,19 +207,19 @@ public: const SvShorts &aOldTab, const SvShorts &aNewTab); - virtual ~ScUndoCopyTab(); + virtual ~ScUndoCopyTab(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SdrUndoAction* pDrawUndo; - SvShorts theOldTabs; - SvShorts theNewTabs; + SdrUndoAction* pDrawUndo; + SvShorts theOldTabs; + SvShorts theNewTabs; void DoChange() const; }; @@ -243,7 +243,7 @@ public: virtual void Repeat(SfxRepeatTarget& rTarget); virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; -virtual String GetComment() const; +virtual String GetComment() const; private: ScUndoTabColorInfo::List aTabColorList; @@ -262,23 +262,23 @@ public: const String& rN, const String& rC, const Color& rCol, USHORT nF, const ScMarkData& rMark ); - virtual ~ScUndoMakeScenario(); + virtual ~ScUndoMakeScenario(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nSrcTab; - SCTAB nDestTab; - String aName; - String aComment; - Color aColor; - USHORT nFlags; - ScMarkData aMarkData; + SCTAB nSrcTab; + SCTAB nDestTab; + String aName; + String aComment; + Color aColor; + USHORT nFlags; + ScMarkData aMarkData; SdrUndoAction* pDrawUndo; }; @@ -291,21 +291,21 @@ public: ScDocShell* pShell, SCTAB nNewTab, SCTAB nNewCount, BOOL bNewLink ); - virtual ~ScUndoImportTab(); + virtual ~ScUndoImportTab(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - SCTAB nCount; - BOOL bLink; - ScDocument* pRedoDoc; - SdrUndoAction* pDrawUndo; + SCTAB nTab; + SCTAB nCount; + BOOL bLink; + ScDocument* pRedoDoc; + SdrUndoAction* pDrawUndo; void DoChange() const; }; @@ -315,27 +315,27 @@ class ScUndoRemoveLink : public ScSimpleUndo { public: TYPEINFO(); - ScUndoRemoveLink( // vor dem Loeschen aufrufen! + ScUndoRemoveLink( // vor dem Loeschen aufrufen! ScDocShell* pShell, const String& rDoc ); - virtual ~ScUndoRemoveLink(); + virtual ~ScUndoRemoveLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aDocName; - String aFltName; - String aOptions; - ULONG nRefreshDelay; - USHORT nCount; - SCTAB* pTabs; - BYTE* pModes; - String* pTabNames; + String aDocName; + String aFltName; + String aOptions; + ULONG nRefreshDelay; + USHORT nCount; + SCTAB* pTabs; + BYTE* pModes; + String* pTabNames; void DoChange( BOOL bLink ) const; }; @@ -348,18 +348,18 @@ public: ScUndoShowHideTab( ScDocShell* pShell, SCTAB nNewTab, BOOL bNewShow ); - virtual ~ScUndoShowHideTab(); + virtual ~ScUndoShowHideTab(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - BOOL bShow; + SCTAB nTab; + BOOL bShow; void DoChange( BOOL bShow ) const; }; @@ -372,19 +372,19 @@ class ScUndoDocProtect : public ScSimpleUndo { public: ScUndoDocProtect(ScDocShell* pShell, ::std::auto_ptr<ScDocProtection> pProtectSettings); - virtual ~ScUndoDocProtect(); + virtual ~ScUndoDocProtect(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: ::std::auto_ptr<ScDocProtection> mpProtectSettings; - void DoProtect(bool bProtect); + void DoProtect(bool bProtect); }; // ============================================================================ @@ -394,22 +394,22 @@ private: class ScUndoTabProtect : public ScSimpleUndo { public: - ScUndoTabProtect(ScDocShell* pShell, SCTAB nTab, + ScUndoTabProtect(ScDocShell* pShell, SCTAB nTab, ::std::auto_ptr<ScTableProtection> pProtectSettings); - virtual ~ScUndoTabProtect(); + virtual ~ScUndoTabProtect(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: SCTAB mnTab; ::std::auto_ptr<ScTableProtection> mpProtectSettings; - void DoProtect(bool bProtect); + void DoProtect(bool bProtect); }; @@ -419,19 +419,19 @@ public: TYPEINFO(); ScUndoPrintRange( ScDocShell* pShell, SCTAB nNewTab, ScPrintRangeSaver* pOld, ScPrintRangeSaver* pNew ); - virtual ~ScUndoPrintRange(); + virtual ~ScUndoPrintRange(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - ScPrintRangeSaver* pOldRanges; - ScPrintRangeSaver* pNewRanges; + SCTAB nTab; + ScPrintRangeSaver* pOldRanges; + ScPrintRangeSaver* pNewRanges; void DoChange( BOOL bUndo ); }; @@ -448,25 +448,25 @@ public: const Color& rOCol, const Color& rNCol, USHORT nOF, USHORT nNF ); - virtual ~ScUndoScenarioFlags(); + virtual ~ScUndoScenarioFlags(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - String aOldName; - String aNewName; - String aOldComment; - String aNewComment; - Color aOldColor; - Color aNewColor; - USHORT nOldFlags; - USHORT nNewFlags; + SCTAB nTab; + String aOldName; + String aNewName; + String aOldComment; + String aNewComment; + Color aOldColor; + Color aNewColor; + USHORT nOldFlags; + USHORT nNewFlags; }; @@ -478,21 +478,21 @@ public: ScDocShell* pNewDocShell, const String& rPN, const String& rON, const String& rNN ); - virtual ~ScUndoRenameObject(); + virtual ~ScUndoRenameObject(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aPersistName; // to find object (works only for OLE objects) - String aOldName; - String aNewName; + String aPersistName; // to find object (works only for OLE objects) + String aOldName; + String aNewName; - SdrObject* GetObject(); + SdrObject* GetObject(); }; @@ -501,18 +501,18 @@ class ScUndoLayoutRTL : public ScSimpleUndo public: TYPEINFO(); ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, BOOL bNewRTL ); - virtual ~ScUndoLayoutRTL(); + virtual ~ScUndoLayoutRTL(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - BOOL bRTL; + SCTAB nTab; + BOOL bRTL; void DoChange( BOOL bNew ); }; @@ -525,17 +525,17 @@ private: //UNUSED2009-05 ScUndoSetGrammar( ScDocShell* pShell, //UNUSED2009-05 formula::FormulaGrammar::Grammar eGrammar ); //UNUSED2009-05 virtual ~ScUndoSetGrammar(); -//UNUSED2009-05 +//UNUSED2009-05 //UNUSED2009-05 virtual void Undo(); //UNUSED2009-05 virtual void Redo(); //UNUSED2009-05 virtual void Repeat(SfxRepeatTarget& rTarget); //UNUSED2009-05 virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; -//UNUSED2009-05 +//UNUSED2009-05 //UNUSED2009-05 virtual String GetComment() const; -//UNUSED2009-05 +//UNUSED2009-05 //UNUSED2009-05 private: //UNUSED2009-05 formula::FormulaGrammar::Grammar meNewGrammar, meOldGrammar; -//UNUSED2009-05 +//UNUSED2009-05 //UNUSED2009-05 void DoChange( formula::FormulaGrammar::Grammar eGrammar ); //UNUSED2009-05 }; diff --git a/sc/source/ui/inc/undoutil.hxx b/sc/source/ui/inc/undoutil.hxx index 38302096b1fa..8835b70fc96a 100644 --- a/sc/source/ui/inc/undoutil.hxx +++ b/sc/source/ui/inc/undoutil.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,7 +41,7 @@ class ScDocument; class ScUndoUtil { public: - // Block markieren (unsichtbar, muss repainted werden) + // Block markieren (unsichtbar, muss repainted werden) static void MarkSimpleBlock( ScDocShell* pDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ ); @@ -51,12 +51,12 @@ public: static void MarkSimpleBlock( ScDocShell* pDocShell, const ScRange& rRange ); - // Bereich +1 painten + // Bereich +1 painten static void PaintMore( ScDocShell* pDocShell, const ScRange& rRange ); - // DB-Bereich im Dokument suchen ("unbenannt" oder nach Bereich) - // legt neu an, wenn nicht gefunden + // DB-Bereich im Dokument suchen ("unbenannt" oder nach Bereich) + // legt neu an, wenn nicht gefunden static ScDBData* GetOldDBData( ScDBData* pUndoData, ScDocument* pDoc, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); }; diff --git a/sc/source/ui/inc/validate.hrc b/sc/source/ui/inc/validate.hrc index 45e5dda39c2d..0af2a1481a52 100644 --- a/sc/source/ui/inc/validate.hrc +++ b/sc/source/ui/inc/validate.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,7 +59,7 @@ #define EDT_LIST 29 #define FT_SOURCEHINT 30 //<!--Added by PengYunQuan for Validity Cell Range Picker -#define RB_VALIDITY_REF 88 +#define RB_VALIDITY_REF 88 //-->Added by PengYunQuan for Validity Cell Range Picker /* Position indexes for "Allow" list box. diff --git a/sc/source/ui/inc/validate.hxx b/sc/source/ui/inc/validate.hxx index f7cb9af23b63..11f6f1aba93f 100644 --- a/sc/source/ui/inc/validate.hxx +++ b/sc/source/ui/inc/validate.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,51 +40,51 @@ // ============================================================================ //<!--Added by PengYunQuan for Validity Cell Range Picker -struct ScRefHandlerCaller{ +struct ScRefHandlerCaller{ virtual ~ScRefHandlerCaller(){} }; class ScRefHandlerHelper { protected: - ScRefHandlerCaller *m_pHandler; + ScRefHandlerCaller *m_pHandler; void (ScRefHandlerCaller::*m_pSetReferenceHdl)( const ScRange& , ScDocument* ); void (ScRefHandlerCaller::*m_pSetActiveHdl)(); void (ScRefHandlerCaller::*m_pRefInputStartPreHdl)( ScRefEdit* pEdit, ScRefButton* pButton ); void (ScRefHandlerCaller::*m_pRefInputStartPostHdl)( ScRefEdit* pEdit, ScRefButton* pButton ); void (ScRefHandlerCaller::*m_pRefInputDonePreHdl)(); void (ScRefHandlerCaller::*m_pRefInputDonePostHdl)(); - + public: typedef void (ScRefHandlerCaller::*PFUNCSETREFHDLTYPE)( const ScRange& , ScDocument* ); - typedef void (ScRefHandlerCaller::*PCOMMONHDLTYPE)(); - typedef void (ScRefHandlerCaller::*PINPUTSTARTDLTYPE)( ScRefEdit* pEdit, ScRefButton* pButton ); + typedef void (ScRefHandlerCaller::*PCOMMONHDLTYPE)(); + typedef void (ScRefHandlerCaller::*PINPUTSTARTDLTYPE)( ScRefEdit* pEdit, ScRefButton* pButton ); - PFUNCSETREFHDLTYPE SetSetRefHdl( PFUNCSETREFHDLTYPE pNewHdl ) + PFUNCSETREFHDLTYPE SetSetRefHdl( PFUNCSETREFHDLTYPE pNewHdl ) { PFUNCSETREFHDLTYPE pOldHdl = m_pSetReferenceHdl; m_pSetReferenceHdl = pNewHdl; return pOldHdl; } - PCOMMONHDLTYPE SetSetActHdl( PCOMMONHDLTYPE pNewHdl ) + PCOMMONHDLTYPE SetSetActHdl( PCOMMONHDLTYPE pNewHdl ) { PCOMMONHDLTYPE pOldHdl = m_pSetActiveHdl; m_pSetActiveHdl = pNewHdl; return pOldHdl; } - ScRefHandlerCaller *SetHandler( ScRefHandlerCaller *pNewHandler ) + ScRefHandlerCaller *SetHandler( ScRefHandlerCaller *pNewHandler ) { - ScRefHandlerCaller *pOldHandler = m_pHandler; + ScRefHandlerCaller *pOldHandler = m_pHandler; m_pHandler = pNewHandler; return pOldHandler; } - void SetRefInputStartPreHdl( PINPUTSTARTDLTYPE pNewHdl ){ m_pRefInputStartPreHdl = pNewHdl; } - void SetRefInputDonePostHdl( void (ScRefHandlerCaller::*pNewHdl)() ){ m_pRefInputDonePostHdl = pNewHdl; } - void SetRefInputStartPostHdl( PINPUTSTARTDLTYPE pNewHdl ){ m_pRefInputStartPostHdl = pNewHdl; } - void SetRefInputDonePreHdl( void (ScRefHandlerCaller::*pNewHdl)() ){ m_pRefInputDonePreHdl = pNewHdl; } + void SetRefInputStartPreHdl( PINPUTSTARTDLTYPE pNewHdl ){ m_pRefInputStartPreHdl = pNewHdl; } + void SetRefInputDonePostHdl( void (ScRefHandlerCaller::*pNewHdl)() ){ m_pRefInputDonePostHdl = pNewHdl; } + void SetRefInputStartPostHdl( PINPUTSTARTDLTYPE pNewHdl ){ m_pRefInputStartPostHdl = pNewHdl; } + void SetRefInputDonePreHdl( void (ScRefHandlerCaller::*pNewHdl)() ){ m_pRefInputDonePreHdl = pNewHdl; } - ScRefHandlerHelper():m_pHandler(NULL), m_pSetReferenceHdl( NULL ), m_pSetActiveHdl(NULL), m_pRefInputStartPreHdl( NULL ), m_pRefInputStartPostHdl( NULL ), m_pRefInputDonePreHdl( NULL ), m_pRefInputDonePostHdl( NULL ){} + ScRefHandlerHelper():m_pHandler(NULL), m_pSetReferenceHdl( NULL ), m_pSetActiveHdl(NULL), m_pRefInputStartPreHdl( NULL ), m_pRefInputStartPostHdl( NULL ), m_pRefInputDonePreHdl( NULL ), m_pRefInputDonePostHdl( NULL ){} }; //-->Added by PengYunQuan for Validity Cell Range Picker @@ -95,17 +95,17 @@ class ScValidationDlg :public ScRefHdlrImpl<ScValidationDlg, SfxTabDialog, false //-->Modified by PengYunQuan for Validity Cell Range Picker { //<!--Added by PengYunQuan for Validity Cell Range Picker - typedef ScRefHdlrImpl<ScValidationDlg, SfxTabDialog, false> ScValidationDlgBase; + typedef ScRefHdlrImpl<ScValidationDlg, SfxTabDialog, false> ScValidationDlgBase; //Start_Moddify by liliang 03/26/2008 SODC_13677_2 DECL_LINK( OkHdl, Button * ); //End_Moddify by liliang 03/26/2008 SODC_13677_2 - bool m_bOwnRefHdlr:1; + bool m_bOwnRefHdlr:1; ScTabViewShell *m_pTabVwSh; - bool m_bRefInputting:1; - bool EnterRefStatus(); - bool LeaveRefStatus(); + bool m_bRefInputting:1; + bool EnterRefStatus(); + bool LeaveRefStatus(); //-->Added by PengYunQuan for Validity Cell Range Picker public: //<!--Modified by PengYunQuan for Validity Cell Range Picker @@ -115,13 +115,13 @@ public: //<!--Added by PengYunQuan for Validity Cell Range Picker virtual ~ScValidationDlg(); inline static ScValidationDlg * Find1AliveObject( Window *pAncestor ); - bool IsAlive(); - inline ScTabViewShell * GetTabViewShell(); + bool IsAlive(); + inline ScTabViewShell * GetTabViewShell(); - bool SetupRefDlg(); - bool RemoveRefDlg( BOOL bRestoreModal = TRUE ); + bool SetupRefDlg(); + bool RemoveRefDlg( BOOL bRestoreModal = TRUE ); - virtual void SetModal( BOOL bModal ){ ScValidationDlgBase::SetModalInputMode( bModal ); } + virtual void SetModal( BOOL bModal ){ ScValidationDlgBase::SetModalInputMode( bModal ); } virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) { @@ -135,7 +135,7 @@ public: (m_pHandler->*m_pSetActiveHdl)(); } - void CloseRefDialog() + void CloseRefDialog() { DBG_ASSERT( false, "should not execute here!!!when the edit kill focus, should remove refhandler.\r\n" ); @@ -145,7 +145,7 @@ public: Close(); } - bool IsRefInputting(){ return m_bRefInputting; } + bool IsRefInputting(){ return m_bRefInputting; } virtual void RefInputStart( ScRefEdit* pEdit, ScRefButton* pButton = NULL ) { @@ -243,8 +243,8 @@ private: //<!--Added by PengYunQuan for Validity Cell Range Picker DECL_LINK( EditSetFocusHdl, Edit *); DECL_LINK( KillFocusHdl, Window *); - void OnClick( Button *pBtn ); - ScRefEdit *m_pRefEdit; + void OnClick( Button *pBtn ); + ScRefEdit *m_pRefEdit; class ScRefButtonEx:public ::ScRefButton { void Click(); @@ -254,18 +254,18 @@ private: friend class ScRefButtonEx; void SetReferenceHdl( const ScRange& , ScDocument* ); void SetActiveHdl(); - void RefInputStartPreHdl( ScRefEdit* pEdit, ScRefButton* pButton ); - void RefInputDonePreHdl(); - void RefInputDonePostHdl(); + void RefInputStartPreHdl( ScRefEdit* pEdit, ScRefButton* pButton ); + void RefInputDonePreHdl(); + void RefInputDonePostHdl(); ScValidationDlg * GetValidationDlg(); //TYPEINFO(); - void TidyListBoxes(); + void TidyListBoxes(); public: - USHORT GetAllowEntryPos(); - String GetMinText(); - void SetupRefDlg(); - void RemoveRefDlg(); + USHORT GetAllowEntryPos(); + String GetMinText(); + void SetupRefDlg(); + void RemoveRefDlg(); //-->Added by PengYunQuan for Validity Cell Range Picker }; @@ -275,16 +275,16 @@ public: class ScTPValidationHelp : public SfxTabPage { private: - TriStateBox aTsbHelp; + TriStateBox aTsbHelp; FixedLine aFlContent; - FixedText aFtTitle; - Edit aEdtTitle; - FixedText aFtInputHelp; - MultiLineEdit aEdInputHelp; + FixedText aFtTitle; + Edit aEdtTitle; + FixedText aFtInputHelp; + MultiLineEdit aEdInputHelp; const SfxItemSet& mrArgSet; - void Init(); + void Init(); // Handler ------------------------ // DECL_LINK( SelectHdl, ListBox * ); @@ -293,10 +293,10 @@ public: ScTPValidationHelp( Window* pParent, const SfxItemSet& rArgSet ); ~ScTPValidationHelp(); - static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); }; //================================================================== @@ -304,19 +304,19 @@ public: class ScTPValidationError : public SfxTabPage { private: - TriStateBox aTsbShow; + TriStateBox aTsbShow; FixedLine aFlContent; - FixedText aFtAction; - ListBox aLbAction; - PushButton aBtnSearch; - FixedText aFtTitle; - Edit aEdtTitle; - FixedText aFtError; - MultiLineEdit aEdError; + FixedText aFtAction; + ListBox aLbAction; + PushButton aBtnSearch; + FixedText aFtTitle; + Edit aEdtTitle; + FixedText aFtError; + MultiLineEdit aEdError; const SfxItemSet& mrArgSet; - void Init(); + void Init(); // Handler ------------------------ DECL_LINK( SelectActionHdl, ListBox * ); @@ -326,10 +326,10 @@ public: ScTPValidationError( Window* pParent, const SfxItemSet& rArgSet ); ~ScTPValidationError(); - static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet ); - static USHORT* GetRanges (); - virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); - virtual void Reset ( const SfxItemSet& rArgSet ); + static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet ); + static USHORT* GetRanges (); + virtual BOOL FillItemSet ( SfxItemSet& rArgSet ); + virtual void Reset ( const SfxItemSet& rArgSet ); }; //<!--Added by PengYunQuan for Validity Cell Range Picker diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx index fb9c674a4488..114601d82eaa 100644 --- a/sc/source/ui/inc/viewdata.hxx +++ b/sc/source/ui/inc/viewdata.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,16 +35,16 @@ // --------------------------------------------------------------------------- -#define SC_SLIDER_SIZE 2 -#define SC_SMALL3DSHADOW COL_BLACK -#define SC_SIZE_NONE 65535 +#define SC_SLIDER_SIZE 2 +#define SC_SMALL3DSHADOW COL_BLACK +#define SC_SIZE_NONE 65535 const SCCOL SC_TABSTART_NONE = SCCOL_MAX; -#define SC_FILL_NONE 0 -#define SC_FILL_FILL 1 -#define SC_FILL_EMBED_LT 2 -#define SC_FILL_EMBED_RB 3 -#define SC_FILL_MATRIX 4 +#define SC_FILL_NONE 0 +#define SC_FILL_FILL 1 +#define SC_FILL_EMBED_LT 2 +#define SC_FILL_EMBED_RB 3 +#define SC_FILL_MATRIX 4 enum ScSplitMode { SC_SPLIT_NONE = 0, SC_SPLIT_NORMAL, SC_SPLIT_FIX }; @@ -57,10 +57,10 @@ inline ScVSplitPos WhichV( ScSplitPos ePos ); inline ScSplitPos Which( ScHSplitPos eHPos ); inline ScSplitPos Which( ScVSplitPos eVPos ); -// Bildschirmverhalten bei Cursorbewegungen: +// Bildschirmverhalten bei Cursorbewegungen: enum ScFollowMode { SC_FOLLOW_NONE, SC_FOLLOW_LINE, SC_FOLLOW_FIX, SC_FOLLOW_JUMP }; -// Mausmodi um Bereiche zu selektieren +// Mausmodi um Bereiche zu selektieren enum ScRefType { SC_REFTYPE_NONE, SC_REFTYPE_REF, SC_REFTYPE_FILL, SC_REFTYPE_EMBED_LT, SC_REFTYPE_EMBED_RB }; @@ -106,7 +106,7 @@ class ScViewData; //-------------------------------------------------------------------------- -class ScViewDataTable // Daten pro Tabelle +class ScViewDataTable // Daten pro Tabelle { friend class ScViewData; private: @@ -116,30 +116,30 @@ private: Fraction aPageZoomX; // zoom in page break preview mode Fraction aPageZoomY; - long nTPosX[2]; // MapMode - Offset (Twips) - long nTPosY[2]; - long nMPosX[2]; // MapMode - Offset (1/100 mm) - long nMPosY[2]; - long nPixPosX[2]; // Offset in Pixeln - long nPixPosY[2]; - long nHSplitPos; - long nVSplitPos; + long nTPosX[2]; // MapMode - Offset (Twips) + long nTPosY[2]; + long nMPosX[2]; // MapMode - Offset (1/100 mm) + long nMPosY[2]; + long nPixPosX[2]; // Offset in Pixeln + long nPixPosY[2]; + long nHSplitPos; + long nVSplitPos; - ScSplitMode eHSplitMode; - ScSplitMode eVSplitMode; - ScSplitPos eWhichActive; + ScSplitMode eHSplitMode; + ScSplitMode eVSplitMode; + ScSplitPos eWhichActive; - SCCOL nFixPosX; // Zellposition des Splitters beim Fixieren - SCROW nFixPosY; + SCCOL nFixPosX; // Zellposition des Splitters beim Fixieren + SCROW nFixPosY; - SCCOL nCurX; - SCROW nCurY; - SCCOL nOldCurX; - SCROW nOldCurY; - SCCOL nPosX[2]; - SCROW nPosY[2]; + SCCOL nCurX; + SCROW nCurY; + SCCOL nOldCurX; + SCROW nOldCurY; + SCCOL nPosX[2]; + SCROW nPosY[2]; - BOOL bOldCurValid; // "virtuelle" Cursorpos. bei zusammengefassten + BOOL bOldCurValid; // "virtuelle" Cursorpos. bei zusammengefassten ScViewDataTable(); ~ScViewDataTable(); @@ -158,26 +158,26 @@ private: class SC_DLLPUBLIC ScViewData { private: - double nPPTX, nPPTY; // Scaling-Faktoren + double nPPTX, nPPTY; // Scaling-Faktoren - ScViewDataTable* pTabData[MAXTABCOUNT]; - ScViewDataTable* pThisTab; // Daten der angezeigten Tabelle - ScDocShell* pDocShell; - ScDocument* pDoc; - ScDBFunc* pView; - ScTabViewShell* pViewShell; - EditView* pEditView[4]; // gehoert dem Fenster - ScViewOptions* pOptions; - EditView* pSpellingView; + ScViewDataTable* pTabData[MAXTABCOUNT]; + ScViewDataTable* pThisTab; // Daten der angezeigten Tabelle + ScDocShell* pDocShell; + ScDocument* pDoc; + ScDBFunc* pView; + ScTabViewShell* pViewShell; + EditView* pEditView[4]; // gehoert dem Fenster + ScViewOptions* pOptions; + EditView* pSpellingView; - ScMarkData aMarkData; + ScMarkData aMarkData; - long nEditMargin; + long nEditMargin; - Size aScenButSize; // Groesse eines Szenario-Buttons + Size aScenButSize; // Groesse eines Szenario-Buttons - Size aScrSize; - MapMode aLogicMode; // skalierter 1/100mm-MapMode + Size aScrSize; + MapMode aLogicMode; // skalierter 1/100mm-MapMode SvxZoomType eDefZoomType; // default zoom and type for missing TabData Fraction aDefZoomX; @@ -185,42 +185,42 @@ private: Fraction aDefPageZoomX; // zoom in page break preview mode Fraction aDefPageZoomY; - ScRefType eRefType; - - SCTAB nTabNo; // angezeigte Tabelle - SCTAB nRefTabNo; // Tabelle auf die sich RefInput bezieht - SCCOL nRefStartX; - SCROW nRefStartY; - SCTAB nRefStartZ; - SCCOL nRefEndX; - SCROW nRefEndY; - SCTAB nRefEndZ; - SCCOL nFillStartX; // Fill-Cursor - SCROW nFillStartY; - SCCOL nFillEndX; - SCROW nFillEndY; - SCCOL nEditCol; // Position dazu - SCROW nEditRow; - SCCOL nEditStartCol; - SCCOL nEditEndCol; // Ende der Edit-View - SCROW nEditEndRow; - SCCOL nTabStartCol; // fuer Enter nach Tab - ScRange aDelRange; // fuer AutoFill-Loeschen + ScRefType eRefType; + + SCTAB nTabNo; // angezeigte Tabelle + SCTAB nRefTabNo; // Tabelle auf die sich RefInput bezieht + SCCOL nRefStartX; + SCROW nRefStartY; + SCTAB nRefStartZ; + SCCOL nRefEndX; + SCROW nRefEndY; + SCTAB nRefEndZ; + SCCOL nFillStartX; // Fill-Cursor + SCROW nFillStartY; + SCCOL nFillEndX; + SCROW nFillEndY; + SCCOL nEditCol; // Position dazu + SCROW nEditRow; + SCCOL nEditStartCol; + SCCOL nEditEndCol; // Ende der Edit-View + SCROW nEditEndRow; + SCCOL nTabStartCol; // fuer Enter nach Tab + ScRange aDelRange; // fuer AutoFill-Loeschen ScSplitPos eEditActivePart; // the part that was active when edit mode was started - BOOL bEditActive[4]; // aktiv? - BOOL bActive; // aktives Fenster ? - BOOL bIsRefMode; // Referenzeingabe - BOOL bDelMarkValid; // nur gueltig bei SC_REFTYPE_FILL - BYTE nFillMode; // Modus - BOOL bPagebreak; // Seitenumbruch-Vorschaumodus + BOOL bEditActive[4]; // aktiv? + BOOL bActive; // aktives Fenster ? + BOOL bIsRefMode; // Referenzeingabe + BOOL bDelMarkValid; // nur gueltig bei SC_REFTYPE_FILL + BYTE nFillMode; // Modus + BOOL bPagebreak; // Seitenumbruch-Vorschaumodus - BOOL bSelCtrlMouseClick; // special selection handling for ctrl-mouse-click + BOOL bSelCtrlMouseClick; // special selection handling for ctrl-mouse-click SC_DLLPRIVATE DECL_LINK (EmptyEditHdl, EditStatus*); SC_DLLPRIVATE DECL_LINK (EditEngineHdl, EditStatus*); - SC_DLLPRIVATE void CalcPPT(); + SC_DLLPRIVATE void CalcPPT(); SC_DLLPRIVATE void CreateTabData( SCTAB nNewTab ); SC_DLLPRIVATE void CreateTabData( std::vector< SCTAB >& rvTabs ); SC_DLLPRIVATE void CreateSelectedTabData(); @@ -230,83 +230,83 @@ public: ScViewData( const ScViewData& rViewData ); ~ScViewData(); - void InitData( ScDocument* pDocument ); + void InitData( ScDocument* pDocument ); //UNUSED2008-05 void InitFrom( const ScViewData* pRef ); -//UNUSED2008-05 void SetDocShell( ScDocShell* pShell ); +//UNUSED2008-05 void SetDocShell( ScDocShell* pShell ); - ScDocShell* GetDocShell() const { return pDocShell; } - ScDBFunc* GetView() const { return pView; } - ScTabViewShell* GetViewShell() const { return pViewShell; } + ScDocShell* GetDocShell() const { return pDocShell; } + ScDBFunc* GetView() const { return pView; } + ScTabViewShell* GetViewShell() const { return pViewShell; } SfxObjectShell* GetSfxDocShell() const; - SfxBindings& GetBindings(); // from ViewShell's ViewFrame - SfxDispatcher& GetDispatcher(); // from ViewShell's ViewFrame + SfxBindings& GetBindings(); // from ViewShell's ViewFrame + SfxDispatcher& GetDispatcher(); // from ViewShell's ViewFrame - ScMarkData& GetMarkData() { return aMarkData; } + ScMarkData& GetMarkData() { return aMarkData; } const ScMarkData& GetMarkData() const { return aMarkData; } - Window* GetDialogParent(); // von tabvwsh weitergeleitet - Window* GetActiveWin(); // von View - ScDrawView* GetScDrawView(); // von View - BOOL IsMinimized(); // von View + Window* GetDialogParent(); // von tabvwsh weitergeleitet + Window* GetActiveWin(); // von View + ScDrawView* GetScDrawView(); // von View + BOOL IsMinimized(); // von View - void UpdateInputHandler( BOOL bForce = FALSE, BOOL bStopEditing = TRUE ); + void UpdateInputHandler( BOOL bForce = FALSE, BOOL bStopEditing = TRUE ); - void WriteUserData(String& rData); - void ReadUserData(const String& rData); + void WriteUserData(String& rData); + void ReadUserData(const String& rData); void WriteExtOptions( ScExtDocOptions& rOpt ) const; void ReadExtOptions( const ScExtDocOptions& rOpt ); - void WriteUserDataSequence(com::sun::star::uno::Sequence <com::sun::star::beans::PropertyValue>& rSettings); - void ReadUserDataSequence(const com::sun::star::uno::Sequence <com::sun::star::beans::PropertyValue>& rSettings); - - ScDocument* GetDocument() const; - - void SetViewShell( ScTabViewShell* pViewSh ); - - BOOL IsActive() const { return bActive; } - void Activate(BOOL bActivate) { bActive = bActivate; } - - void UpdateThis(); - - void InsertTab( SCTAB nTab ); - void DeleteTab( SCTAB nTab ); - void CopyTab( SCTAB nSrcTab, SCTAB nDestTab ); - void MoveTab( SCTAB nSrcTab, SCTAB nDestTab ); - - SCTAB GetRefTabNo() const { return nRefTabNo; } - void SetRefTabNo( SCTAB nNewTab ) { nRefTabNo = nNewTab; } - - SCTAB GetTabNo() const { return nTabNo; } - ScSplitPos GetActivePart() const { return pThisTab->eWhichActive; } - SCCOL GetPosX( ScHSplitPos eWhich ) const { return pThisTab->nPosX[eWhich]; } - SCROW GetPosY( ScVSplitPos eWhich ) const { return pThisTab->nPosY[eWhich]; } - SCCOL GetCurX() const { return pThisTab->nCurX; } - SCROW GetCurY() const { return pThisTab->nCurY; } - BOOL HasOldCursor() const { return pThisTab->bOldCurValid; } - SCCOL GetOldCurX() const; - SCROW GetOldCurY() const; - ScSplitMode GetHSplitMode() const { return pThisTab->eHSplitMode; } - ScSplitMode GetVSplitMode() const { return pThisTab->eVSplitMode; } - long GetHSplitPos() const { return pThisTab->nHSplitPos; } - long GetVSplitPos() const { return pThisTab->nVSplitPos; } - SCCOL GetFixPosX() const { return pThisTab->nFixPosX; } - SCROW GetFixPosY() const { return pThisTab->nFixPosY; } - BOOL IsPagebreakMode() const { return bPagebreak; } - - void SetPosX( ScHSplitPos eWhich, SCCOL nNewPosX ); - void SetPosY( ScVSplitPos eWhich, SCROW nNewPosY ); - void SetCurX( SCCOL nNewCurX ) { pThisTab->nCurX = nNewCurX; } - void SetCurY( SCROW nNewCurY ) { pThisTab->nCurY = nNewCurY; } - void SetOldCursor( SCCOL nNewX, SCROW nNewY ); - void ResetOldCursor(); - void SetHSplitMode( ScSplitMode eMode ) { pThisTab->eHSplitMode = eMode; } - void SetVSplitMode( ScSplitMode eMode ) { pThisTab->eVSplitMode = eMode; } - void SetHSplitPos( long nPos ) { pThisTab->nHSplitPos = nPos; } - void SetVSplitPos( long nPos ) { pThisTab->nVSplitPos = nPos; } - void SetFixPosX( SCCOL nPos ) { pThisTab->nFixPosX = nPos; } - void SetFixPosY( SCROW nPos ) { pThisTab->nFixPosY = nPos; } - void SetPagebreakMode( BOOL bSet ); + void WriteUserDataSequence(com::sun::star::uno::Sequence <com::sun::star::beans::PropertyValue>& rSettings); + void ReadUserDataSequence(const com::sun::star::uno::Sequence <com::sun::star::beans::PropertyValue>& rSettings); + + ScDocument* GetDocument() const; + + void SetViewShell( ScTabViewShell* pViewSh ); + + BOOL IsActive() const { return bActive; } + void Activate(BOOL bActivate) { bActive = bActivate; } + + void UpdateThis(); + + void InsertTab( SCTAB nTab ); + void DeleteTab( SCTAB nTab ); + void CopyTab( SCTAB nSrcTab, SCTAB nDestTab ); + void MoveTab( SCTAB nSrcTab, SCTAB nDestTab ); + + SCTAB GetRefTabNo() const { return nRefTabNo; } + void SetRefTabNo( SCTAB nNewTab ) { nRefTabNo = nNewTab; } + + SCTAB GetTabNo() const { return nTabNo; } + ScSplitPos GetActivePart() const { return pThisTab->eWhichActive; } + SCCOL GetPosX( ScHSplitPos eWhich ) const { return pThisTab->nPosX[eWhich]; } + SCROW GetPosY( ScVSplitPos eWhich ) const { return pThisTab->nPosY[eWhich]; } + SCCOL GetCurX() const { return pThisTab->nCurX; } + SCROW GetCurY() const { return pThisTab->nCurY; } + BOOL HasOldCursor() const { return pThisTab->bOldCurValid; } + SCCOL GetOldCurX() const; + SCROW GetOldCurY() const; + ScSplitMode GetHSplitMode() const { return pThisTab->eHSplitMode; } + ScSplitMode GetVSplitMode() const { return pThisTab->eVSplitMode; } + long GetHSplitPos() const { return pThisTab->nHSplitPos; } + long GetVSplitPos() const { return pThisTab->nVSplitPos; } + SCCOL GetFixPosX() const { return pThisTab->nFixPosX; } + SCROW GetFixPosY() const { return pThisTab->nFixPosY; } + BOOL IsPagebreakMode() const { return bPagebreak; } + + void SetPosX( ScHSplitPos eWhich, SCCOL nNewPosX ); + void SetPosY( ScVSplitPos eWhich, SCROW nNewPosY ); + void SetCurX( SCCOL nNewCurX ) { pThisTab->nCurX = nNewCurX; } + void SetCurY( SCROW nNewCurY ) { pThisTab->nCurY = nNewCurY; } + void SetOldCursor( SCCOL nNewX, SCROW nNewY ); + void ResetOldCursor(); + void SetHSplitMode( ScSplitMode eMode ) { pThisTab->eHSplitMode = eMode; } + void SetVSplitMode( ScSplitMode eMode ) { pThisTab->eVSplitMode = eMode; } + void SetHSplitPos( long nPos ) { pThisTab->nHSplitPos = nPos; } + void SetVSplitPos( long nPos ) { pThisTab->nVSplitPos = nPos; } + void SetFixPosX( SCCOL nPos ) { pThisTab->nFixPosX = nPos; } + void SetFixPosY( SCROW nPos ) { pThisTab->nFixPosY = nPos; } + void SetPagebreakMode( BOOL bSet ); void SetZoomType( SvxZoomType eNew, BOOL bAll ); void SetZoomType( SvxZoomType eNew, std::vector< SCTAB >& tabs ); @@ -314,188 +314,188 @@ public: void SetZoom( const Fraction& rNewX, const Fraction& rNewY, BOOL bAll ); void RefreshZoom(); - void SetSelCtrlMouseClick( BOOL bTmp ) { bSelCtrlMouseClick = bTmp; } + void SetSelCtrlMouseClick( BOOL bTmp ) { bSelCtrlMouseClick = bTmp; } SvxZoomType GetZoomType() const { return pThisTab->eZoomType; } - const Fraction& GetZoomX() const { return bPagebreak ? pThisTab->aPageZoomX : pThisTab->aZoomX; } - const Fraction& GetZoomY() const { return bPagebreak ? pThisTab->aPageZoomY : pThisTab->aZoomY; } + const Fraction& GetZoomX() const { return bPagebreak ? pThisTab->aPageZoomX : pThisTab->aZoomX; } + const Fraction& GetZoomY() const { return bPagebreak ? pThisTab->aPageZoomY : pThisTab->aZoomY; } - const MapMode& GetLogicMode( ScSplitPos eWhich ); - const MapMode& GetLogicMode(); // Offset 0 + const MapMode& GetLogicMode( ScSplitPos eWhich ); + const MapMode& GetLogicMode(); // Offset 0 - long GetTPosX( ScHSplitPos eWhich ) const { return pThisTab->nTPosX[eWhich]; } - long GetTPosY( ScVSplitPos eWhich ) const { return pThisTab->nTPosY[eWhich]; } + long GetTPosX( ScHSplitPos eWhich ) const { return pThisTab->nTPosX[eWhich]; } + long GetTPosY( ScVSplitPos eWhich ) const { return pThisTab->nTPosY[eWhich]; } - double GetPPTX() const { return nPPTX; } - double GetPPTY() const { return nPPTY; } + double GetPPTX() const { return nPPTX; } + double GetPPTY() const { return nPPTY; } ScMarkType GetSimpleArea( SCCOL& rStartCol, SCROW& rStartRow, SCTAB& rStartTab, SCCOL& rEndCol, SCROW& rEndRow, SCTAB& rEndTab ) const; ScMarkType GetSimpleArea( ScRange& rRange ) const; /// May modify rNewMark using MarkToSimple(). ScMarkType GetSimpleArea( ScRange & rRange, ScMarkData & rNewMark ) const; - void GetMultiArea( ScRangeListRef& rRange ) const; + void GetMultiArea( ScRangeListRef& rRange ) const; - BOOL SimpleColMarked(); - BOOL SimpleRowMarked(); + BOOL SimpleColMarked(); + BOOL SimpleRowMarked(); - BOOL IsMultiMarked(); + BOOL IsMultiMarked(); - void SetFillMode( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ); - void SetDragMode( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, + void SetFillMode( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ); + void SetDragMode( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, BYTE nMode ); - void GetFillData( SCCOL& rStartCol, SCROW& rStartRow, + void GetFillData( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, SCROW& rEndRow ); - void ResetFillMode(); - BOOL IsAnyFillMode() { return nFillMode != SC_FILL_NONE; } - BOOL IsFillMode() { return nFillMode == SC_FILL_FILL; } - BYTE GetFillMode() { return nFillMode; } + void ResetFillMode(); + BOOL IsAnyFillMode() { return nFillMode != SC_FILL_NONE; } + BOOL IsFillMode() { return nFillMode == SC_FILL_FILL; } + BYTE GetFillMode() { return nFillMode; } // TRUE: Zelle ist zusammengefasst - BOOL GetMergeSizePixel( SCCOL nX, SCROW nY, long& rSizeXPix, long& rSizeYPix ); - BOOL GetPosFromPixel( long nClickX, long nClickY, ScSplitPos eWhich, + BOOL GetMergeSizePixel( SCCOL nX, SCROW nY, long& rSizeXPix, long& rSizeYPix ); + BOOL GetPosFromPixel( long nClickX, long nClickY, ScSplitPos eWhich, SCsCOL& rPosX, SCsROW& rPosY, BOOL bTestMerge = TRUE, BOOL bRepair = FALSE, BOOL bNextIfLarge = TRUE ); - void GetMouseQuadrant( const Point& rClickPos, ScSplitPos eWhich, + void GetMouseQuadrant( const Point& rClickPos, ScSplitPos eWhich, SCsCOL nPosX, SCsROW nPosY, BOOL& rLeft, BOOL& rTop ); - BOOL IsRefMode() const { return bIsRefMode; } - ScRefType GetRefType() const { return eRefType; } - SCCOL GetRefStartX() const { return nRefStartX; } - SCROW GetRefStartY() const { return nRefStartY; } - SCTAB GetRefStartZ() const { return nRefStartZ; } - SCCOL GetRefEndX() const { return nRefEndX; } - SCROW GetRefEndY() const { return nRefEndY; } - SCTAB GetRefEndZ() const { return nRefEndZ; } + BOOL IsRefMode() const { return bIsRefMode; } + ScRefType GetRefType() const { return eRefType; } + SCCOL GetRefStartX() const { return nRefStartX; } + SCROW GetRefStartY() const { return nRefStartY; } + SCTAB GetRefStartZ() const { return nRefStartZ; } + SCCOL GetRefEndX() const { return nRefEndX; } + SCROW GetRefEndY() const { return nRefEndY; } + SCTAB GetRefEndZ() const { return nRefEndZ; } - void SetRefMode( BOOL bNewMode, ScRefType eNewType ) + void SetRefMode( BOOL bNewMode, ScRefType eNewType ) { bIsRefMode = bNewMode; eRefType = eNewType; } - void SetRefStart( SCCOL nNewX, SCROW nNewY, SCTAB nNewZ ) + void SetRefStart( SCCOL nNewX, SCROW nNewY, SCTAB nNewZ ) { nRefStartX = nNewX; nRefStartY = nNewY; nRefStartZ = nNewZ; } - void SetRefEnd( SCCOL nNewX, SCROW nNewY, SCTAB nNewZ ) + void SetRefEnd( SCCOL nNewX, SCROW nNewY, SCTAB nNewZ ) { nRefEndX = nNewX; nRefEndY = nNewY; nRefEndZ = nNewZ; } - void ResetDelMark() { bDelMarkValid = FALSE; } - void SetDelMark( const ScRange& rRange ) + void ResetDelMark() { bDelMarkValid = FALSE; } + void SetDelMark( const ScRange& rRange ) { aDelRange = rRange; bDelMarkValid = TRUE; } - BOOL GetDelMark( ScRange& rRange ) const + BOOL GetDelMark( ScRange& rRange ) const { rRange = aDelRange; return bDelMarkValid; } - inline void GetMoveCursor( SCCOL& rCurX, SCROW& rCurY ); - - const ScViewOptions& GetOptions() const { return *pOptions; } - void SetOptions( const ScViewOptions& rOpt ); - - BOOL IsGridMode () const { return pOptions->GetOption( VOPT_GRID ); } - void SetGridMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_GRID, bNewMode ); } - BOOL IsSyntaxMode () const { return pOptions->GetOption( VOPT_SYNTAX ); } - void SetSyntaxMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_SYNTAX, bNewMode ); } - BOOL IsHeaderMode () const { return pOptions->GetOption( VOPT_HEADER ); } - void SetHeaderMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_HEADER, bNewMode ); } - BOOL IsTabMode () const { return pOptions->GetOption( VOPT_TABCONTROLS ); } - void SetTabMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_TABCONTROLS, bNewMode ); } - BOOL IsVScrollMode () const { return pOptions->GetOption( VOPT_VSCROLL ); } - void SetVScrollMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_VSCROLL, bNewMode ); } - BOOL IsHScrollMode () const { return pOptions->GetOption( VOPT_HSCROLL ); } - void SetHScrollMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_HSCROLL, bNewMode ); } - BOOL IsOutlineMode () const { return pOptions->GetOption( VOPT_OUTLINER ); } - void SetOutlineMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_OUTLINER, bNewMode ); } - - void KillEditView(); - void ResetEditView(); - void SetEditEngine( ScSplitPos eWhich, + inline void GetMoveCursor( SCCOL& rCurX, SCROW& rCurY ); + + const ScViewOptions& GetOptions() const { return *pOptions; } + void SetOptions( const ScViewOptions& rOpt ); + + BOOL IsGridMode () const { return pOptions->GetOption( VOPT_GRID ); } + void SetGridMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_GRID, bNewMode ); } + BOOL IsSyntaxMode () const { return pOptions->GetOption( VOPT_SYNTAX ); } + void SetSyntaxMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_SYNTAX, bNewMode ); } + BOOL IsHeaderMode () const { return pOptions->GetOption( VOPT_HEADER ); } + void SetHeaderMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_HEADER, bNewMode ); } + BOOL IsTabMode () const { return pOptions->GetOption( VOPT_TABCONTROLS ); } + void SetTabMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_TABCONTROLS, bNewMode ); } + BOOL IsVScrollMode () const { return pOptions->GetOption( VOPT_VSCROLL ); } + void SetVScrollMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_VSCROLL, bNewMode ); } + BOOL IsHScrollMode () const { return pOptions->GetOption( VOPT_HSCROLL ); } + void SetHScrollMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_HSCROLL, bNewMode ); } + BOOL IsOutlineMode () const { return pOptions->GetOption( VOPT_OUTLINER ); } + void SetOutlineMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_OUTLINER, bNewMode ); } + + void KillEditView(); + void ResetEditView(); + void SetEditEngine( ScSplitPos eWhich, ScEditEngineDefaulter* pNewEngine, Window* pWin, SCCOL nNewX, SCROW nNewY ); - void GetEditView( ScSplitPos eWhich, EditView*& rViewPtr, SCCOL& rCol, SCROW& rRow ); - BOOL HasEditView( ScSplitPos eWhich ) const + void GetEditView( ScSplitPos eWhich, EditView*& rViewPtr, SCCOL& rCol, SCROW& rRow ); + BOOL HasEditView( ScSplitPos eWhich ) const { return pEditView[eWhich] && bEditActive[eWhich]; } - EditView* GetEditView( ScSplitPos eWhich ) const + EditView* GetEditView( ScSplitPos eWhich ) const { return pEditView[eWhich]; } - void EditGrowX(); - void EditGrowY( BOOL bInitial = FALSE ); + void EditGrowX(); + void EditGrowY( BOOL bInitial = FALSE ); ScSplitPos GetEditActivePart() const { return eEditActivePart; } - SCCOL GetEditViewCol() const { return nEditCol; } - SCROW GetEditViewRow() const { return nEditRow; } - SCCOL GetEditStartCol() const { return nEditStartCol; } - SCROW GetEditStartRow() const { return nEditRow; } // never editing above the cell - SCCOL GetEditEndCol() const { return nEditEndCol; } - SCROW GetEditEndRow() const { return nEditEndRow; } - - Rectangle GetEditArea( ScSplitPos eWhich, SCCOL nPosX, SCROW nPosY, Window* pWin, + SCCOL GetEditViewCol() const { return nEditCol; } + SCROW GetEditViewRow() const { return nEditRow; } + SCCOL GetEditStartCol() const { return nEditStartCol; } + SCROW GetEditStartRow() const { return nEditRow; } // never editing above the cell + SCCOL GetEditEndCol() const { return nEditEndCol; } + SCROW GetEditEndRow() const { return nEditEndRow; } + + Rectangle GetEditArea( ScSplitPos eWhich, SCCOL nPosX, SCROW nPosY, Window* pWin, const ScPatternAttr* pPattern, BOOL bForceToTop ); - void SetTabNo( SCTAB nNewTab ); - void SetActivePart( ScSplitPos eNewActive ); + void SetTabNo( SCTAB nNewTab ); + void SetActivePart( ScSplitPos eNewActive ); - Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScSplitPos eWhich, + Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScSplitPos eWhich, BOOL bAllowNeg = FALSE ) const; - Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScHSplitPos eWhich ) const; - Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScVSplitPos eWhich ) const; + Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScHSplitPos eWhich ) const; + Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScVSplitPos eWhich ) const; - SCCOL CellsAtX( SCsCOL nPosX, SCsCOL nDir, ScHSplitPos eWhichX, USHORT nScrSizeY = SC_SIZE_NONE ) const; - SCROW CellsAtY( SCsROW nPosY, SCsROW nDir, ScVSplitPos eWhichY, USHORT nScrSizeX = SC_SIZE_NONE ) const; + SCCOL CellsAtX( SCsCOL nPosX, SCsCOL nDir, ScHSplitPos eWhichX, USHORT nScrSizeY = SC_SIZE_NONE ) const; + SCROW CellsAtY( SCsROW nPosY, SCsROW nDir, ScVSplitPos eWhichY, USHORT nScrSizeX = SC_SIZE_NONE ) const; - SCCOL VisibleCellsX( ScHSplitPos eWhichX ) const; // angezeigte komplette Zellen - SCROW VisibleCellsY( ScVSplitPos eWhichY ) const; - SCCOL PrevCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der vorgehenden Seite - SCROW PrevCellsY( ScVSplitPos eWhichY ) const; + SCCOL VisibleCellsX( ScHSplitPos eWhichX ) const; // angezeigte komplette Zellen + SCROW VisibleCellsY( ScVSplitPos eWhichY ) const; + SCCOL PrevCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der vorgehenden Seite + SCROW PrevCellsY( ScVSplitPos eWhichY ) const; //UNUSED2008-05 SCCOL LastCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der letzten Seite //UNUSED2008-05 SCROW LastCellsY( ScVSplitPos eWhichY ) const; - BOOL IsOle(); + BOOL IsOle(); //UNUSED2008-05 void UpdateOle( ScSplitPos eWhich ); - void SetScreen( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); - void SetScreen( const Rectangle& rVisArea ); - void SetScreenPos( const Point& rVisAreaStart ); + void SetScreen( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); + void SetScreen( const Rectangle& rVisArea ); + void SetScreenPos( const Point& rVisAreaStart ); - void UpdateScreenZoom( const Fraction& rNewX, const Fraction& rNewY ); + void UpdateScreenZoom( const Fraction& rNewX, const Fraction& rNewY ); - Size GetScrSize() const { return aScrSize; } + Size GetScrSize() const { return aScrSize; } - void RecalcPixPos(); - Point GetPixPos( ScSplitPos eWhich ) const + void RecalcPixPos(); + Point GetPixPos( ScSplitPos eWhich ) const { return Point( pThisTab->nPixPosX[WhichH(eWhich)], pThisTab->nPixPosY[WhichV(eWhich)] ); } - void SetSpellingView( EditView* pSpView) { pSpellingView = pSpView; } - EditView* GetSpellingView() const { return pSpellingView; } + void SetSpellingView( EditView* pSpView) { pSpellingView = pSpView; } + EditView* GetSpellingView() const { return pSpellingView; } - void UpdateOutlinerFlags( Outliner& rOutl ) const; + void UpdateOutlinerFlags( Outliner& rOutl ) const; - Point GetMousePosPixel(); + Point GetMousePosPixel(); - BOOL UpdateFixX(SCTAB nTab = MAXTAB+1); - BOOL UpdateFixY(SCTAB nTab = MAXTAB+1); + BOOL UpdateFixX(SCTAB nTab = MAXTAB+1); + BOOL UpdateFixY(SCTAB nTab = MAXTAB+1); - SCCOL GetTabStartCol() const { return nTabStartCol; } - void SetTabStartCol(SCCOL nNew) { nTabStartCol = nNew; } + SCCOL GetTabStartCol() const { return nTabStartCol; } + void SetTabStartCol(SCCOL nNew) { nTabStartCol = nNew; } - ScAddress GetCurPos() const; + ScAddress GetCurPos() const; - const Size& GetScenButSize() const { return aScenButSize; } - void SetScenButSize(const Size& rNew) { aScenButSize = rNew; } + const Size& GetScenButSize() const { return aScenButSize; } + void SetScenButSize(const Size& rNew) { aScenButSize = rNew; } - BOOL IsSelCtrlMouseClick() { return bSelCtrlMouseClick; } + BOOL IsSelCtrlMouseClick() { return bSelCtrlMouseClick; } static inline long ToPixel( USHORT nTwips, double nFactor ); - /** while (rScrY <= nEndPixels && rPosY <= nEndRow) add pixels of row - heights converted with nPPTY to rScrY, optimized for row height - segments. Upon return rPosY is the last row evaluated <= nEndRow, rScrY - may be > nEndPixels! + /** while (rScrY <= nEndPixels && rPosY <= nEndRow) add pixels of row + heights converted with nPPTY to rScrY, optimized for row height + segments. Upon return rPosY is the last row evaluated <= nEndRow, rScrY + may be > nEndPixels! */ static void AddPixelsWhile( long & rScrY, long nEndPixels, SCROW & rPosY, SCROW nEndRow, double nPPTY, const ScDocument * pDoc, SCTAB nTabNo ); - /** while (rScrY <= nEndPixels && rPosY >= nStartRow) add pixels of row - heights converted with nPPTY to rScrY, optimized for row height - segments. Upon return rPosY is the last row evaluated >= nStartRow, - rScrY may be > nEndPixels! + /** while (rScrY <= nEndPixels && rPosY >= nStartRow) add pixels of row + heights converted with nPPTY to rScrY, optimized for row height + segments. Upon return rPosY is the last row evaluated >= nStartRow, + rScrY may be > nEndPixels! */ static void AddPixelsWhileBackward( long & rScrY, long nEndPixels, SCROW & rPosY, SCROW nStartRow, double nPPTY, diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx index 59da2966cc60..1f969dafb371 100644 --- a/sc/source/ui/inc/viewfunc.hxx +++ b/sc/source/ui/inc/viewfunc.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -77,230 +77,230 @@ namespace com { namespace sun { namespace star { namespace datatransfer { class class ScViewFunc : public ScTabView { private: - ScAddress aFormatSource; // fuer automatisches Erweitern von Formatierung - ScRange aFormatArea; - BOOL bFormatValid; + ScAddress aFormatSource; // fuer automatisches Erweitern von Formatierung + ScRange aFormatArea; + BOOL bFormatValid; public: ScViewFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ); //UNUSED2008-05 ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell ); ~ScViewFunc(); - const ScPatternAttr* GetSelectionPattern (); - void GetSelectionFrame ( SvxBoxItem& rLineOuter, - SvxBoxInfoItem& rLineInner ); + const ScPatternAttr* GetSelectionPattern (); + void GetSelectionFrame ( SvxBoxItem& rLineOuter, + SvxBoxInfoItem& rLineInner ); - BYTE GetSelectionScriptType(); + BYTE GetSelectionScriptType(); - BOOL GetAutoSumArea(ScRangeList& rRangeList); - void EnterAutoSum(const ScRangeList& rRangeList, sal_Bool bSubTotal); + BOOL GetAutoSumArea(ScRangeList& rRangeList); + void EnterAutoSum(const ScRangeList& rRangeList, sal_Bool bSubTotal); bool AutoSum( const ScRange& rRange, bool bSubTotal, bool bSetCursor, bool bContinue ); String GetAutoSumFormula( const ScRangeList& rRangeList, bool bSubTotal ); - void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const String& rString, + void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const String& rString, BOOL bRecord = TRUE, const EditTextObject* pData = NULL ); - void EnterValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& rValue ); - void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const EditTextObject* pData, + void EnterValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& rValue ); + void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const EditTextObject* pData, BOOL bRecord = TRUE, BOOL bTestSimple = FALSE ); - void EnterMatrix( const String& rString ); - void EnterBlock( const String& rString, const EditTextObject* pData ); + void EnterMatrix( const String& rString ); + void EnterBlock( const String& rString, const EditTextObject* pData ); - void EnterDataAtCursor( const String& rString ); //! nicht benutzt ? + void EnterDataAtCursor( const String& rString ); //! nicht benutzt ? - SC_DLLPUBLIC void CutToClip( ScDocument* pClipDoc = NULL, BOOL bIncludeObjects = FALSE ); - SC_DLLPUBLIC BOOL CopyToClip( ScDocument* pClipDoc = NULL, BOOL bCut = FALSE, BOOL bApi = FALSE, + SC_DLLPUBLIC void CutToClip( ScDocument* pClipDoc = NULL, BOOL bIncludeObjects = FALSE ); + SC_DLLPUBLIC BOOL CopyToClip( ScDocument* pClipDoc = NULL, BOOL bCut = FALSE, BOOL bApi = FALSE, BOOL bIncludeObjects = FALSE, BOOL bStopEdit = TRUE ); ScTransferObj* CopyToTransferable(); - SC_DLLPUBLIC BOOL PasteFromClip( USHORT nFlags, ScDocument* pClipDoc, + SC_DLLPUBLIC BOOL PasteFromClip( USHORT nFlags, ScDocument* pClipDoc, USHORT nFunction = PASTE_NOFUNC, BOOL bSkipEmpty = FALSE, BOOL bTranspose = FALSE, BOOL bAsLink = FALSE, InsCellCmd eMoveMode = INS_NONE, USHORT nUndoExtraFlags = IDF_NONE, BOOL bAllowDialogs = FALSE ); - void FillTab( USHORT nFlags, USHORT nFunction, BOOL bSkipEmpty, BOOL bAsLink ); + void FillTab( USHORT nFlags, USHORT nFunction, BOOL bSkipEmpty, BOOL bAsLink ); - SC_DLLPUBLIC void PasteFromSystem(); - SC_DLLPUBLIC BOOL PasteFromSystem( ULONG nFormatId, BOOL bApi = FALSE ); + SC_DLLPUBLIC void PasteFromSystem(); + SC_DLLPUBLIC BOOL PasteFromSystem( ULONG nFormatId, BOOL bApi = FALSE ); void PasteFromTransferable( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable ); - void PasteDraw(); - void PasteDraw( const Point& rLogicPos, SdrModel* pModel, + void PasteDraw(); + void PasteDraw( const Point& rLogicPos, SdrModel* pModel, BOOL bGroup = FALSE, BOOL bSameDocClipboard = FALSE ); - BOOL PasteOnDrawObject( const ::com::sun::star::uno::Reference< + BOOL PasteOnDrawObject( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable, SdrObject* pHitObj, BOOL bLink ); - BOOL PasteDataFormat( ULONG nFormatId, + BOOL PasteDataFormat( ULONG nFormatId, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable, SCCOL nPosX, SCROW nPosY, Point* pLogicPos = NULL, BOOL bLink = FALSE, BOOL bAllowDialogs = FALSE ); - BOOL PasteFile( const Point&, const String&, BOOL bLink=FALSE ); + BOOL PasteFile( const Point&, const String&, BOOL bLink=FALSE ); BOOL PasteObject( const Point&, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >&, const Size* = NULL, const Graphic* = NULL, const ::rtl::OUString& = ::rtl::OUString(), sal_Int64 nAspect = ::com::sun::star::embed::Aspects::MSOLE_CONTENT ); - BOOL PasteBitmap( const Point&, const Bitmap& ); - BOOL PasteMetaFile( const Point&, const GDIMetaFile& ); - BOOL PasteGraphic( const Point& rPos, const Graphic& rGraphic, + BOOL PasteBitmap( const Point&, const Bitmap& ); + BOOL PasteMetaFile( const Point&, const GDIMetaFile& ); + BOOL PasteGraphic( const Point& rPos, const Graphic& rGraphic, const String& rFile, const String& rFilter ); - BOOL PasteBookmark( ULONG nFormatId, + BOOL PasteBookmark( ULONG nFormatId, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable, SCCOL nPosX, SCROW nPosY ); - BOOL PasteDDE( const ::com::sun::star::uno::Reference< + BOOL PasteDDE( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable ); - BOOL ApplyGraphicToObject( SdrObject* pObject, const Graphic& rGraphic ); + BOOL ApplyGraphicToObject( SdrObject* pObject, const Graphic& rGraphic ); - void InsertBookmark( const String& rDescription, const String& rURL, + void InsertBookmark( const String& rDescription, const String& rURL, SCCOL nPosX, SCROW nPosY, const String* pTarget = NULL, BOOL bTryReplace = FALSE ); - BOOL HasBookmarkAtCursor( SvxHyperlinkItem* pContent ); + BOOL HasBookmarkAtCursor( SvxHyperlinkItem* pContent ); - long DropRequestHdl( Exchange* pExchange ); - BOOL MoveBlockTo( const ScRange& rSource, const ScAddress& rDestPos, + long DropRequestHdl( Exchange* pExchange ); + BOOL MoveBlockTo( const ScRange& rSource, const ScAddress& rDestPos, BOOL bCut, BOOL bRecord, BOOL bPaint, BOOL bApi ); - BOOL LinkBlock( const ScRange& rSource, const ScAddress& rDestPos, BOOL bApi ); + BOOL LinkBlock( const ScRange& rSource, const ScAddress& rDestPos, BOOL bApi ); - void CreateNames( USHORT nFlags ); - USHORT GetCreateNameFlags(); - void InsertNameList(); - BOOL InsertName( const String& rName, const String& rSymbol, + void CreateNames( USHORT nFlags ); + USHORT GetCreateNameFlags(); + void InsertNameList(); + BOOL InsertName( const String& rName, const String& rSymbol, const String& rType ); - void ApplyAttributes( const SfxItemSet* pDialogSet, const SfxItemSet* pOldSet, + void ApplyAttributes( const SfxItemSet* pDialogSet, const SfxItemSet* pOldSet, BOOL bRecord = TRUE ); - void ApplyAttr( const SfxPoolItem& rAttrItem ); - void ApplySelectionPattern( const ScPatternAttr& rAttr, + void ApplyAttr( const SfxPoolItem& rAttrItem ); + void ApplySelectionPattern( const ScPatternAttr& rAttr, BOOL bRecord = TRUE, BOOL bCursorOnly = FALSE ); - void ApplyPatternLines( const ScPatternAttr& rAttr, + void ApplyPatternLines( const ScPatternAttr& rAttr, const SvxBoxItem* pNewOuter, const SvxBoxInfoItem* pNewInner, BOOL bRecord = TRUE ); - void ApplyUserItemSet( const SfxItemSet& rItemSet ); + void ApplyUserItemSet( const SfxItemSet& rItemSet ); - const SfxStyleSheet* GetStyleSheetFromMarked(); - void SetStyleSheetToMarked( SfxStyleSheet* pStyleSheet, + const SfxStyleSheet* GetStyleSheetFromMarked(); + void SetStyleSheetToMarked( SfxStyleSheet* pStyleSheet, BOOL bRecord = TRUE ); - void RemoveStyleSheetInUse( SfxStyleSheet* pStyleSheet ); - void UpdateStyleSheetInUse( SfxStyleSheet* pStyleSheet ); + void RemoveStyleSheetInUse( SfxStyleSheet* pStyleSheet ); + void UpdateStyleSheetInUse( SfxStyleSheet* pStyleSheet ); - void SetNumberFormat( short nFormatType, ULONG nAdd = 0 ); - void SetNumFmtByStr( const String& rCode ); - void ChangeNumFmtDecimals( BOOL bIncrement ); + void SetNumberFormat( short nFormatType, ULONG nAdd = 0 ); + void SetNumFmtByStr( const String& rCode ); + void ChangeNumFmtDecimals( BOOL bIncrement ); - void SetConditionalFormat( const ScConditionalFormat& rNew ); - void SetValidation( const ScValidationData& rNew ); + void SetConditionalFormat( const ScConditionalFormat& rNew ); + void SetValidation( const ScValidationData& rNew ); - void ChangeIndent( BOOL bIncrement ); + void ChangeIndent( BOOL bIncrement ); - void ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect ); + void ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect ); - void Protect( SCTAB nTab, const String& rPassword ); - BOOL Unprotect( SCTAB nTab, const String& rPassword ); + void Protect( SCTAB nTab, const String& rPassword ); + BOOL Unprotect( SCTAB nTab, const String& rPassword ); - void DeleteCells( DelCellCmd eCmd, BOOL bRecord = TRUE ); - BOOL InsertCells( InsCellCmd eCmd, BOOL bRecord = TRUE, BOOL bPartOfPaste = FALSE ); - void DeleteMulti( BOOL bRows, BOOL bRecord = TRUE ); + void DeleteCells( DelCellCmd eCmd, BOOL bRecord = TRUE ); + BOOL InsertCells( InsCellCmd eCmd, BOOL bRecord = TRUE, BOOL bPartOfPaste = FALSE ); + void DeleteMulti( BOOL bRows, BOOL bRecord = TRUE ); - void DeleteContents( USHORT nFlags, BOOL bRecord = TRUE ); + void DeleteContents( USHORT nFlags, BOOL bRecord = TRUE ); - void SetWidthOrHeight( BOOL bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges, + void SetWidthOrHeight( BOOL bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges, ScSizeMode eMode, USHORT nSizeTwips, BOOL bRecord = TRUE, BOOL bPaint = TRUE, ScMarkData* pMarkData = NULL ); - void SetMarkedWidthOrHeight( BOOL bWidth, ScSizeMode eMode, USHORT nSizeTwips, + void SetMarkedWidthOrHeight( BOOL bWidth, ScSizeMode eMode, USHORT nSizeTwips, BOOL bRecord = TRUE, BOOL bPaint = TRUE ); - void ShowMarkedColumns( BOOL bShow, BOOL bRecord = TRUE ); - void ShowMarkedRows( BOOL bShow, BOOL bRecord = TRUE ); + void ShowMarkedColumns( BOOL bShow, BOOL bRecord = TRUE ); + void ShowMarkedRows( BOOL bShow, BOOL bRecord = TRUE ); - BOOL AdjustBlockHeight( BOOL bPaint = TRUE, ScMarkData* pMarkData = NULL ); - BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, BOOL bPaint = TRUE ); + BOOL AdjustBlockHeight( BOOL bPaint = TRUE, ScMarkData* pMarkData = NULL ); + BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, BOOL bPaint = TRUE ); - void ModifyCellSize( ScDirection eDir, BOOL bOptimal ); + void ModifyCellSize( ScDirection eDir, BOOL bOptimal ); - SC_DLLPUBLIC void InsertPageBreak( BOOL bColumn, BOOL bRecord = TRUE, + SC_DLLPUBLIC void InsertPageBreak( BOOL bColumn, BOOL bRecord = TRUE, const ScAddress* pPos = NULL, BOOL bSetModified = TRUE ); - SC_DLLPUBLIC void DeletePageBreak( BOOL bColumn, BOOL bRecord = TRUE, + SC_DLLPUBLIC void DeletePageBreak( BOOL bColumn, BOOL bRecord = TRUE, const ScAddress* pPos = NULL, BOOL bSetModified = TRUE ); - void RemoveManualBreaks(); + void RemoveManualBreaks(); - void SetPrintZoom(USHORT nScale, USHORT nPages); - void AdjustPrintZoom(); + void SetPrintZoom(USHORT nScale, USHORT nPages); + void AdjustPrintZoom(); - BOOL TestMergeCells(); - BOOL TestRemoveMerge(); + BOOL TestMergeCells(); + BOOL TestRemoveMerge(); - BOOL MergeCells( BOOL bApi, BOOL& rDoContents, BOOL bRecord = TRUE ); - BOOL RemoveMerge( BOOL bRecord = TRUE ); + BOOL MergeCells( BOOL bApi, BOOL& rDoContents, BOOL bRecord = TRUE ); + BOOL RemoveMerge( BOOL bRecord = TRUE ); - void FillSimple( FillDir eDir, BOOL bRecord = TRUE ); - void FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, + void FillSimple( FillDir eDir, BOOL bRecord = TRUE ); + void FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, double fStart, double fStep, double fMax, BOOL bRecord = TRUE ); - void FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow, + void FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ULONG nCount, BOOL bRecord = TRUE ); - void FillCrossDblClick(); + void FillCrossDblClick(); - void TransliterateText( sal_Int32 nType ); + void TransliterateText( sal_Int32 nType ); ScAutoFormatData* CreateAutoFormatData(); - void AutoFormat( USHORT nFormatNo, BOOL bRecord = TRUE ); + void AutoFormat( USHORT nFormatNo, BOOL bRecord = TRUE ); - void SearchAndReplace( const SvxSearchItem* pSearchItem, + void SearchAndReplace( const SvxSearchItem* pSearchItem, BOOL bAddUndo, BOOL bIsApi ); - void Solve( const ScSolveParam& rParam ); - void TabOp( const ScTabOpParam& rParam, BOOL bRecord = TRUE ); + void Solve( const ScSolveParam& rParam ); + void TabOp( const ScTabOpParam& rParam, BOOL bRecord = TRUE ); - BOOL InsertTable( const String& rName, SCTAB nTabNr, BOOL bRecord = TRUE ); - BOOL InsertTables(SvStrings *pNames, SCTAB nTab, SCTAB nCount, BOOL bRecord = TRUE); + BOOL InsertTable( const String& rName, SCTAB nTabNr, BOOL bRecord = TRUE ); + BOOL InsertTables(SvStrings *pNames, SCTAB nTab, SCTAB nCount, BOOL bRecord = TRUE); - BOOL AppendTable( const String& rName, BOOL bRecord = TRUE ); + BOOL AppendTable( const String& rName, BOOL bRecord = TRUE ); - BOOL DeleteTable( SCTAB nTabNr, BOOL bRecord = TRUE ); - BOOL DeleteTables(const SvShorts &TheTabs, BOOL bRecord = TRUE ); + BOOL DeleteTable( SCTAB nTabNr, BOOL bRecord = TRUE ); + BOOL DeleteTables(const SvShorts &TheTabs, BOOL bRecord = TRUE ); - BOOL RenameTable( const String& rName, SCTAB nTabNr ); - void MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy ); - void ImportTables( ScDocShell* pSrcShell, + BOOL RenameTable( const String& rName, SCTAB nTabNr ); + void MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy ); + void ImportTables( ScDocShell* pSrcShell, SCTAB nCount, const SCTAB* pSrcTabs, BOOL bLink,SCTAB nTab); bool SetTabBgColor( const Color& rColor, SCTAB nTabNr ); bool SetTabBgColor( ScUndoTabColorInfo::List& rUndoSetTabBgColorInfoList ); - void InsertTableLink( const String& rFile, + void InsertTableLink( const String& rFile, const String& rFilter, const String& rOptions, const String& rTabName ); - void InsertAreaLink( const String& rFile, + void InsertAreaLink( const String& rFile, const String& rFilter, const String& rOptions, const String& rSource, ULONG nRefresh ); - void ShowTable( const String& rName ); - void HideTable( SCTAB nTabNr ); + void ShowTable( const String& rName ); + void HideTable( SCTAB nTabNr ); - void MakeScenario( const String& rName, const String& rComment, + void MakeScenario( const String& rName, const String& rComment, const Color& rColor, USHORT nFlags ); - void ExtendScenario(); - void UseScenario( const String& rName ); + void ExtendScenario(); + void UseScenario( const String& rName ); - void InsertSpecialChar( const String& rStr, const Font& rFont ); + void InsertSpecialChar( const String& rStr, const Font& rFont ); - void InsertDummyObject(); - void InsertOleObject(); + void InsertDummyObject(); + void InsertOleObject(); - void InsertDraw(); + void InsertDraw(); - void SetSelectionFrameLines( const SvxBorderLine* pLine, + void SetSelectionFrameLines( const SvxBorderLine* pLine, BOOL bColorOnly ); void SetNoteText( const ScAddress& rPos, const String& rNoteText ); @@ -309,7 +309,7 @@ public: //UNUSED2008-05 void DoSpellingChecker( BOOL bRecord = TRUE ); void DoHangulHanjaConversion( BOOL bRecord = TRUE ); - void DoThesaurus( BOOL bRecord = TRUE ); + void DoThesaurus( BOOL bRecord = TRUE ); //UNUSED2008-05 DECL_LINK( SpellError, void * ); /** Generic implementation of sheet conversion functions. */ @@ -320,34 +320,34 @@ public: const String* pRepCol, const String* pRepRow, BOOL bAddPrint ); - void DetectiveAddPred(); - void DetectiveDelPred(); - void DetectiveAddSucc(); - void DetectiveDelSucc(); - void DetectiveAddError(); - void DetectiveMarkInvalid(); - void DetectiveDelAll(); - void DetectiveRefresh(); + void DetectiveAddPred(); + void DetectiveDelPred(); + void DetectiveAddSucc(); + void DetectiveDelSucc(); + void DetectiveAddError(); + void DetectiveMarkInvalid(); + void DetectiveDelAll(); + void DetectiveRefresh(); - void ShowNote( bool bShow = true ); - inline void HideNote() { ShowNote( false ); } - void EditNote(); + void ShowNote( bool bShow = true ); + inline void HideNote() { ShowNote( false ); } + void EditNote(); - void ForgetFormatArea() { bFormatValid = FALSE; } - BOOL SelectionEditable( BOOL* pOnlyNotBecauseOfMatrix = NULL ); + void ForgetFormatArea() { bFormatValid = FALSE; } + BOOL SelectionEditable( BOOL* pOnlyNotBecauseOfMatrix = NULL ); // interne Hilfsfunktionen protected: - void UpdateLineAttrs( SvxBorderLine& rLine, + void UpdateLineAttrs( SvxBorderLine& rLine, const SvxBorderLine* pDestLine, const SvxBorderLine* pSrcLine, - BOOL bColor ); + BOOL bColor ); //UNUSED2008-05 void PaintWidthHeight( BOOL bColumns, SCCOLROW nStart, SCCOLROW nEnd ); private: - void PasteRTF( SCCOL nCol, SCROW nStartRow, + void PasteRTF( SCCOL nCol, SCROW nStartRow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable ); bool PasteMultiRangesFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc, sal_uInt16 nFunction, @@ -355,11 +355,11 @@ private: InsCellCmd eMoveMode, sal_uInt16 nCondFlags, sal_uInt16 nUndoFlags ); void PostPasteFromClip(const ScRange& rPasteRange, const ScMarkData& rMark); - USHORT GetOptimalColWidth( SCCOL nCol, SCTAB nTab, BOOL bFormula ); + USHORT GetOptimalColWidth( SCCOL nCol, SCTAB nTab, BOOL bFormula ); - void StartFormatArea(); - BOOL TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, BOOL bAttrChanged ); - void DoAutoAttributes( SCCOL nCol, SCROW nRow, SCTAB nTab, + void StartFormatArea(); + BOOL TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, BOOL bAttrChanged ); + void DoAutoAttributes( SCCOL nCol, SCROW nRow, SCTAB nTab, BOOL bAttrChanged, BOOL bAddUndo ); }; diff --git a/sc/source/ui/inc/viewutil.hxx b/sc/source/ui/inc/viewutil.hxx index eb1c6df2f902..9d17f866afc3 100644 --- a/sc/source/ui/inc/viewutil.hxx +++ b/sc/source/ui/inc/viewutil.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,13 +49,13 @@ enum ScUpdateMode { SC_UPDATE_ALL, SC_UPDATE_CHANGED, SC_UPDATE_MARKS }; // --------------------------------------------------------------------------- -class ScViewUtil // static Methoden +class ScViewUtil // static Methoden { public: - static BOOL ExecuteCharMap( const SvxFontItem& rOldFont, - SfxViewFrame& rFrame, - SvxFontItem& rNewFont, - String& rString ); + static BOOL ExecuteCharMap( const SvxFontItem& rOldFont, + SfxViewFrame& rFrame, + SvxFontItem& rNewFont, + String& rString ); static BOOL IsActionShown( const ScChangeAction& rAction, const ScChangeViewSettings& rSettings, @@ -87,26 +87,26 @@ public: class ScUpdateRect { private: - SCCOL nOldStartX; - SCROW nOldStartY; - SCCOL nOldEndX; - SCROW nOldEndY; - SCCOL nNewStartX; - SCROW nNewStartY; - SCCOL nNewEndX; - SCROW nNewEndY; - SCCOL nContX1; - SCROW nContY1; - SCCOL nContX2; - SCROW nContY2; + SCCOL nOldStartX; + SCROW nOldStartY; + SCCOL nOldEndX; + SCROW nOldEndY; + SCCOL nNewStartX; + SCROW nNewStartY; + SCCOL nNewEndX; + SCROW nNewEndY; + SCCOL nContX1; + SCROW nContY1; + SCCOL nContX2; + SCROW nContY2; public: ScUpdateRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); - void SetNew( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); - BOOL GetDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 ); -#ifdef OLD_SELECTION_PAINT - BOOL GetXorDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2, BOOL& rCont ); + void SetNew( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); + BOOL GetDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 ); +#ifdef OLD_SELECTION_PAINT + BOOL GetXorDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2, BOOL& rCont ); void GetContDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 ); -#endif +#endif }; diff --git a/sc/source/ui/inc/warnbox.hxx b/sc/source/ui/inc/warnbox.hxx index 3b06c98c9e3e..374c97da1762 100644 --- a/sc/source/ui/inc/warnbox.hxx +++ b/sc/source/ui/inc/warnbox.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite |