summaryrefslogtreecommitdiff
path: root/svtools/inc/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/inc/svtools')
-rw-r--r--svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx2
-rw-r--r--svtools/inc/svtools/FilterConfigItem.hxx28
-rw-r--r--svtools/inc/svtools/accessibilityoptions.hxx40
-rw-r--r--svtools/inc/svtools/accessiblefactory.hxx2
-rw-r--r--svtools/inc/svtools/accessibletable.hxx32
-rw-r--r--svtools/inc/svtools/accessibletableprovider.hxx96
-rw-r--r--svtools/inc/svtools/brwbox.hxx204
-rw-r--r--svtools/inc/svtools/brwhead.hxx6
-rw-r--r--svtools/inc/svtools/chartprettypainter.hxx4
-rw-r--r--svtools/inc/svtools/colctrl.hxx72
-rw-r--r--svtools/inc/svtools/colorcfg.hxx8
-rw-r--r--svtools/inc/svtools/colrdlg.hxx76
-rw-r--r--svtools/inc/svtools/editbrowsebox.hxx116
-rw-r--r--svtools/inc/svtools/editimplementation.hxx2
-rw-r--r--svtools/inc/svtools/editsyntaxhighlighter.hxx12
-rw-r--r--svtools/inc/svtools/ehdl.hxx2
-rw-r--r--svtools/inc/svtools/embedhlp.hxx12
-rw-r--r--svtools/inc/svtools/embedtransfer.hxx8
-rw-r--r--svtools/inc/svtools/extensionlistbox.hxx2
-rw-r--r--svtools/inc/svtools/fileurlbox.hxx10
-rw-r--r--svtools/inc/svtools/filter.hxx346
-rw-r--r--svtools/inc/svtools/fixedhyper.hxx2
-rw-r--r--svtools/inc/svtools/fltcall.hxx16
-rw-r--r--svtools/inc/svtools/fmtfield.hxx178
-rw-r--r--svtools/inc/svtools/generictoolboxcontroller.hxx10
-rw-r--r--svtools/inc/svtools/genericunodialog.hxx44
-rw-r--r--svtools/inc/svtools/grfmgr.hxx424
-rw-r--r--svtools/inc/svtools/headbar.hxx358
-rw-r--r--svtools/inc/svtools/helpid.hrc112
-rw-r--r--svtools/inc/svtools/helpopt.hxx24
-rw-r--r--svtools/inc/svtools/htmlcfg.hxx46
-rw-r--r--svtools/inc/svtools/htmlout.hxx10
-rw-r--r--svtools/inc/svtools/hyperlabel.hxx18
-rw-r--r--svtools/inc/svtools/imap.hxx62
-rw-r--r--svtools/inc/svtools/imapcirc.hxx28
-rw-r--r--svtools/inc/svtools/imapobj.hxx108
-rw-r--r--svtools/inc/svtools/imappoly.hxx36
-rw-r--r--svtools/inc/svtools/imaprect.hxx24
-rw-r--r--svtools/inc/svtools/inettbc.hxx58
-rw-r--r--svtools/inc/svtools/insdlg.hxx4
-rw-r--r--svtools/inc/svtools/javacontext.hxx10
-rw-r--r--svtools/inc/svtools/javainteractionhandler.hxx6
-rw-r--r--svtools/inc/svtools/langhelp.hxx2
-rw-r--r--svtools/inc/svtools/langtab.hxx12
-rw-r--r--svtools/inc/svtools/menuoptions.hxx72
-rw-r--r--svtools/inc/svtools/miscopt.hxx66
-rw-r--r--svtools/inc/svtools/optionsdrawinglayer.hxx160
-rw-r--r--svtools/inc/svtools/parhtml.hxx118
-rw-r--r--svtools/inc/svtools/parrtf.hxx12
-rw-r--r--svtools/inc/svtools/popupmenucontrollerbase.hxx24
-rw-r--r--svtools/inc/svtools/popupwindowcontroller.hxx4
-rw-r--r--svtools/inc/svtools/printdlg.hxx158
-rw-r--r--svtools/inc/svtools/printoptions.hxx22
-rw-r--r--svtools/inc/svtools/prnsetup.hxx60
-rw-r--r--svtools/inc/svtools/roadmapwizard.hxx10
-rw-r--r--svtools/inc/svtools/stdctrl.hxx2
-rw-r--r--svtools/inc/svtools/stringtransfer.hxx16
-rw-r--r--svtools/inc/svtools/svicnvw.hxx234
-rw-r--r--svtools/inc/svtools/svlbitm.hxx182
-rw-r--r--svtools/inc/svtools/svlbox.hxx418
-rw-r--r--svtools/inc/svtools/svmedit.hxx114
-rw-r--r--svtools/inc/svtools/svmedit2.hxx14
-rw-r--r--svtools/inc/svtools/svparser.hxx76
-rw-r--r--svtools/inc/svtools/svtabbx.hxx164
-rw-r--r--svtools/inc/svtools/svtdata.hxx6
-rw-r--r--svtools/inc/svtools/svtdllapi.h2
-rw-r--r--svtools/inc/svtools/svtools.hrc548
-rw-r--r--svtools/inc/svtools/svtreebx.hxx380
-rw-r--r--svtools/inc/svtools/svxbox.hxx106
-rw-r--r--svtools/inc/svtools/syntaxhighlight.hxx32
-rw-r--r--svtools/inc/svtools/table/abstracttablecontrol.hxx4
-rw-r--r--svtools/inc/svtools/table/defaultinputhandler.hxx4
-rw-r--r--svtools/inc/svtools/table/gridtablerenderer.hxx4
-rw-r--r--svtools/inc/svtools/table/tablecontrol.hxx30
-rw-r--r--svtools/inc/svtools/table/tabledatawindow.hxx42
-rw-r--r--svtools/inc/svtools/table/tableinputhandler.hxx2
-rw-r--r--svtools/inc/svtools/table/tablemodel.hxx34
-rw-r--r--svtools/inc/svtools/table/tablerenderer.hxx4
-rw-r--r--svtools/inc/svtools/table/tabletypes.hxx2
-rw-r--r--svtools/inc/svtools/textdata.hxx142
-rw-r--r--svtools/inc/svtools/texteng.hxx338
-rw-r--r--svtools/inc/svtools/textview.hxx152
-rw-r--r--svtools/inc/svtools/textwindowpeer.hxx2
-rw-r--r--svtools/inc/svtools/toolbarmenu.hxx80
-rw-r--r--svtools/inc/svtools/toolboxcontroller.hxx26
-rw-r--r--svtools/inc/svtools/toolpanel/decklayouter.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/drawerlayouter.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/paneltabbar.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/refbase.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/tabalignment.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/tabitemcontent.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/tablayouter.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/toolpanel.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/toolpaneldeck.hxx2
-rw-r--r--svtools/inc/svtools/transfer.hxx302
-rw-r--r--svtools/inc/svtools/treelist.hxx324
-rw-r--r--svtools/inc/svtools/ttprops.hxx32
-rw-r--r--svtools/inc/svtools/unitconv.hxx30
-rw-r--r--svtools/inc/svtools/urlcontrol.hxx10
-rw-r--r--svtools/inc/svtools/valueset.hxx326
-rw-r--r--svtools/inc/svtools/wizardmachine.hxx82
-rw-r--r--svtools/inc/svtools/wizdlg.hxx108
-rw-r--r--svtools/inc/svtools/wmf.hxx2
-rw-r--r--svtools/inc/svtools/xtextedt.hxx30
-rw-r--r--svtools/inc/svtools/xwindowitem.hxx2
105 files changed, 3902 insertions, 3902 deletions
diff --git a/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx b/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx
index d17e7ef241cd..83c91616cf38 100644
--- a/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx
+++ b/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx
@@ -2,7 +2,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/svtools/inc/svtools/FilterConfigItem.hxx b/svtools/inc/svtools/FilterConfigItem.hxx
index 06988af9704b..cd2402940879 100644
--- a/svtools/inc/svtools/FilterConfigItem.hxx
+++ b/svtools/inc/svtools/FilterConfigItem.hxx
@@ -2,7 +2,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,18 +42,18 @@
class SVT_DLLPUBLIC FilterConfigItem
{
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xUpdatableView;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xUpdatableView;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPropSet;
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aFilterData;
- sal_Bool bModified;
+ sal_Bool bModified;
- SVT_DLLPRIVATE sal_Bool ImplGetPropertyValue( ::com::sun::star::uno::Any& rAny,
+ SVT_DLLPRIVATE sal_Bool ImplGetPropertyValue( ::com::sun::star::uno::Any& rAny,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& rXPropSet,
const ::rtl::OUString& rPropName,
sal_Bool bTestPropertyAvailability );
- SVT_DLLPRIVATE void ImpInitTree( const String& rTree );
+ SVT_DLLPRIVATE void ImpInitTree( const String& rTree );
SVT_DLLPRIVATE static ::com::sun::star::beans::PropertyValue* GetPropertyValue(
@@ -74,9 +74,9 @@ class SVT_DLLPUBLIC FilterConfigItem
// 1. FilterData PropertySequence
// 2. configuration
// 3. given default
- sal_Bool ReadBool( const ::rtl::OUString& rKey, sal_Bool bDefault );
- sal_Int32 ReadInt32( const ::rtl::OUString& rKey, sal_Int32 nDefault );
- ::com::sun::star::awt::Size
+ sal_Bool ReadBool( const ::rtl::OUString& rKey, sal_Bool bDefault );
+ sal_Int32 ReadInt32( const ::rtl::OUString& rKey, sal_Int32 nDefault );
+ ::com::sun::star::awt::Size
ReadSize( const ::rtl::OUString& rKey, const ::com::sun::star::awt::Size& rDefault );
::rtl::OUString
ReadString( const ::rtl::OUString& rKey, const ::rtl::OUString& rDefault );
@@ -85,11 +85,11 @@ class SVT_DLLPUBLIC FilterConfigItem
// try to store to configuration
// and always stores into the FilterData sequence
- void WriteBool( const ::rtl::OUString& rKey, sal_Bool bValue );
- void WriteInt32( const ::rtl::OUString& rKey, sal_Int32 nValue );
- void WriteSize( const ::rtl::OUString& rKey, const ::com::sun::star::awt::Size& rSize );
- void WriteString( const ::rtl::OUString& rKey, const ::rtl::OUString& rString );
- void WriteAny( const rtl::OUString& rKey, const ::com::sun::star::uno::Any& rAny );
+ void WriteBool( const ::rtl::OUString& rKey, sal_Bool bValue );
+ void WriteInt32( const ::rtl::OUString& rKey, sal_Int32 nValue );
+ void WriteSize( const ::rtl::OUString& rKey, const ::com::sun::star::awt::Size& rSize );
+ void WriteString( const ::rtl::OUString& rKey, const ::rtl::OUString& rString );
+ void WriteAny( const rtl::OUString& rKey, const ::com::sun::star::uno::Any& rAny );
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetFilterData() const;
@@ -97,6 +97,6 @@ class SVT_DLLPUBLIC FilterConfigItem
::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > GetStatusIndicator() const;
};
-#endif // _FILTER_CONFIG_ITEM_HXX_
+#endif // _FILTER_CONFIG_ITEM_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/accessibilityoptions.hxx b/svtools/inc/svtools/accessibilityoptions.hxx
index 2f964c5e2069..65ef44f2accb 100644
--- a/svtools/inc/svtools/accessibilityoptions.hxx
+++ b/svtools/inc/svtools/accessibilityoptions.hxx
@@ -2,7 +2,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,41 +42,41 @@ class SVT_DLLPUBLIC SvtAccessibilityOptions:
{
private:
static SvtAccessibilityOptions_Impl* volatile sm_pSingleImplConfig;
- static sal_Int32 volatile sm_nAccessibilityRefCount;
+ static sal_Int32 volatile sm_nAccessibilityRefCount;
public:
SvtAccessibilityOptions();
virtual ~SvtAccessibilityOptions();
// get & set config entries
- sal_Bool GetIsForDrawings() const; // obsolete!
- sal_Bool GetIsForBorders() const; // obsolete!
+ sal_Bool GetIsForDrawings() const; // obsolete!
+ sal_Bool GetIsForBorders() const; // obsolete!
sal_Bool GetIsForPagePreviews() const;
- sal_Bool GetIsHelpTipsDisappear() const;
- sal_Bool GetIsAllowAnimatedGraphics() const;
- sal_Bool GetIsAllowAnimatedText() const;
- sal_Bool GetIsAutomaticFontColor() const;
- sal_Bool GetIsSystemFont() const;
- sal_Int16 GetHelpTipSeconds() const;
+ sal_Bool GetIsHelpTipsDisappear() const;
+ sal_Bool GetIsAllowAnimatedGraphics() const;
+ sal_Bool GetIsAllowAnimatedText() const;
+ sal_Bool GetIsAutomaticFontColor() const;
+ sal_Bool GetIsSystemFont() const;
+ sal_Int16 GetHelpTipSeconds() const;
sal_Bool IsSelectionInReadonly() const;
- sal_Bool GetAutoDetectSystemHC() const;
+ sal_Bool GetAutoDetectSystemHC() const;
void SetIsForPagePreviews(sal_Bool bSet);
- void SetIsHelpTipsDisappear(sal_Bool bSet);
- void SetIsAllowAnimatedGraphics(sal_Bool bSet);
- void SetIsAllowAnimatedText(sal_Bool bSet);
- void SetIsAutomaticFontColor(sal_Bool bSet);
- void SetIsSystemFont(sal_Bool bSet);
- void SetHelpTipSeconds(sal_Int16 nSet);
+ void SetIsHelpTipsDisappear(sal_Bool bSet);
+ void SetIsAllowAnimatedGraphics(sal_Bool bSet);
+ void SetIsAllowAnimatedText(sal_Bool bSet);
+ void SetIsAutomaticFontColor(sal_Bool bSet);
+ void SetIsSystemFont(sal_Bool bSet);
+ void SetHelpTipSeconds(sal_Int16 nSet);
void SetSelectionInReadonly(sal_Bool bSet);
void SetAutoDetectSystemHC(sal_Bool bSet);
sal_Bool IsModified() const;
- void Commit();
+ void Commit();
//SfxListener:
- virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
- void SetVCLSettings();
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ void SetVCLSettings();
};
#endif // #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
diff --git a/svtools/inc/svtools/accessiblefactory.hxx b/svtools/inc/svtools/accessiblefactory.hxx
index d95a99560549..918d422621a8 100644
--- a/svtools/inc/svtools/accessiblefactory.hxx
+++ b/svtools/inc/svtools/accessiblefactory.hxx
@@ -2,7 +2,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/svtools/inc/svtools/accessibletable.hxx b/svtools/inc/svtools/accessibletable.hxx
index f29e83365b95..febe7d0f0a87 100644
--- a/svtools/inc/svtools/accessibletable.hxx
+++ b/svtools/inc/svtools/accessibletable.hxx
@@ -2,7 +2,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 @@ enum AccessibleTableControlObjType
// ============================================================================
-#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
+#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
/** This abstract class provides methods to implement an accessible table object.
*/
@@ -73,21 +73,21 @@ class IAccessibleTable
{
public:
/** @return The position of the current row. */
- virtual sal_Int32 GetCurrentRow() const = 0;
+ virtual sal_Int32 GetCurrentRow() const = 0;
/** @return The position of the current column. */
- virtual sal_Int32 GetCurrentColumn() const = 0;
+ virtual sal_Int32 GetCurrentColumn() const = 0;
/** Creates and returns the accessible object of the whole GridControl. */
virtual XACC CreateAccessible()= 0;
virtual XACC CreateAccessibleControl( sal_Int32 _nIndex )= 0;
virtual ::rtl::OUString GetAccessibleObjectName(AccessibleTableControlObjType eObjType, sal_Int32 _nRow, sal_Int32 _nCol) const= 0;
- virtual sal_Bool GoToCell( sal_Int32 _nColumnPos, sal_Int32 _nRow )= 0;
- virtual sal_Bool HasColHeader() = 0;
- virtual sal_Bool HasRowHeader() = 0;
+ virtual sal_Bool GoToCell( sal_Int32 _nColumnPos, sal_Int32 _nRow )= 0;
+ virtual sal_Bool HasColHeader() = 0;
+ virtual sal_Bool HasRowHeader() = 0;
/** return the description of the specified object.
- @param eObjType
+ @param eObjType
The type to ask for
- @param _nPosition
+ @param _nPosition
The position of a tablecell (index position), header bar colum/row cell
@return
The description of the specified object.
@@ -103,12 +103,12 @@ public:
virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0;
virtual void GrabFocus()= 0;
virtual XACC GetAccessible( BOOL bCreate = TRUE )= 0;
- virtual Window* GetAccessibleParentWindow() const= 0;
- virtual Window* GetWindowInstance()= 0;
+ virtual Window* GetAccessibleParentWindow() const= 0;
+ virtual Window* GetWindowInstance()= 0;
virtual sal_Int32 GetAccessibleControlCount() const = 0;
virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint )= 0;
- virtual long GetRowCount() const= 0;
- virtual long GetColumnCount() const= 0;
+ virtual long GetRowCount() const= 0;
+ virtual long GetColumnCount() const= 0;
virtual sal_Bool HasRowHeader() const= 0;
virtual sal_Int32 GetSelectedRowCount() const= 0;
virtual bool IsRowSelected( long _nRow ) const= 0;
@@ -118,10 +118,10 @@ public:
virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex)= 0;
virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint)= 0;
virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const= 0;
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
virtual ::rtl::OUString GetRowName(sal_Int32 _nIndex) const = 0;
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
- virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const = 0;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
+ virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const = 0;
virtual ::com::sun::star::uno::Any GetCellContent( sal_Int32 _nRowPos, sal_Int32 _nColPos) const = 0;
virtual std::vector<sal_Int32>& GetSelectedRows() = 0;
virtual void RemoveSelectedRow(sal_Int32 _nRowPos) = 0;
diff --git a/svtools/inc/svtools/accessibletableprovider.hxx b/svtools/inc/svtools/accessibletableprovider.hxx
index 1e06a36a5f86..e3ca62d4458a 100644
--- a/svtools/inc/svtools/accessibletableprovider.hxx
+++ b/svtools/inc/svtools/accessibletableprovider.hxx
@@ -2,7 +2,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,7 +60,7 @@ enum AccessibleTableChildIndex
// ============================================================================
-#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
+#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
/** This abstract class provides methods to implement an accessible table object.
*/
@@ -68,79 +68,79 @@ class IAccessibleTableProvider
{
public:
/** @return The count of the rows. */
- virtual long GetRowCount() const = 0;
+ virtual long GetRowCount() const = 0;
/** @return The count of the columns. */
- virtual sal_uInt16 GetColumnCount() const = 0;
+ virtual sal_uInt16 GetColumnCount() const = 0;
/** @return The position of the current row. */
- virtual sal_Int32 GetCurrRow() const = 0;
+ virtual sal_Int32 GetCurrRow() const = 0;
/** @return The position of the current column. */
- virtual sal_uInt16 GetCurrColumn() const = 0;
+ virtual sal_uInt16 GetCurrColumn() const = 0;
/** @return The description of a row.
@param _nRow The row which description is in demand. */
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
/** @return The description of a column.
@param _nColumn The column which description is in demand. */
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
/** @return <TRUE/>, if the object has a row header. */
- virtual sal_Bool HasRowHeader() const = 0; //GetColumnId
+ virtual sal_Bool HasRowHeader() const = 0; //GetColumnId
/** @return <TRUE/>, if the object can focus a cell. */
- virtual sal_Bool IsCellFocusable() const = 0;
+ virtual sal_Bool IsCellFocusable() const = 0;
virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0;
- virtual void SetNoSelection() = 0;
- virtual void SelectAll() = 0;
- virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE ) = 0;
- virtual void SelectColumn( sal_uInt16 _nColumnPos, sal_Bool _bSelect = sal_True ) = 0;
- virtual sal_Int32 GetSelectedRowCount() const = 0;
- virtual sal_Int32 GetSelectedColumnCount() const = 0;
+ virtual void SetNoSelection() = 0;
+ virtual void SelectAll() = 0;
+ virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE ) = 0;
+ virtual void SelectColumn( sal_uInt16 _nColumnPos, sal_Bool _bSelect = sal_True ) = 0;
+ virtual sal_Int32 GetSelectedRowCount() const = 0;
+ virtual sal_Int32 GetSelectedColumnCount() const = 0;
/** @return <TRUE/>, if the row is selected. */
- virtual bool IsRowSelected( long _nRow ) const = 0;
- virtual sal_Bool IsColumnSelected( long _nColumnPos ) const = 0;
- virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const = 0;
- virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const = 0;
+ virtual bool IsRowSelected( long _nRow ) const = 0;
+ virtual sal_Bool IsColumnSelected( long _nColumnPos ) const = 0;
+ virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const = 0;
+ virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const = 0;
/** @return <TRUE/>, if the cell is visible. */
- virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
- virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const = 0;
+ virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
+ virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const = 0;
- virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE ) = 0;
- virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE ) = 0;
- virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumnPos, BOOL _bIsHeader, BOOL _bOnScreen = TRUE ) = 0;
+ virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE ) = 0;
+ virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE ) = 0;
+ virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumnPos, BOOL _bIsHeader, BOOL _bOnScreen = TRUE ) = 0;
- virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0;
- virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow ) = 0;
- virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos ) = 0;
+ virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0;
+ virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow ) = 0;
+ virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos ) = 0;
- virtual sal_Int32 GetAccessibleControlCount() const = 0;
- virtual XACC CreateAccessibleControl( sal_Int32 _nIndex ) = 0;
- virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) = 0;
+ virtual sal_Int32 GetAccessibleControlCount() const = 0;
+ virtual XACC CreateAccessibleControl( sal_Int32 _nIndex ) = 0;
+ virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) = 0;
- virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
- virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint ) = 0;
- virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
+ virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
+ virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint ) = 0;
+ virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
- virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
- virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
+ virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
+ virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
- virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const = 0;
- virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
- virtual void GrabTableFocus() = 0;
+ virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const = 0;
+ virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
+ virtual void GrabTableFocus() = 0;
// OutputDevice
- virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) = 0;
+ virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) = 0;
// Window
- virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0;
- virtual void GrabFocus() = 0;
- virtual XACC GetAccessible( BOOL bCreate = TRUE ) = 0;
- virtual Window* GetAccessibleParentWindow() const = 0;
- virtual Window* GetWindowInstance() = 0;
-
- virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex) = 0;
- virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint) = 0;
+ virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0;
+ virtual void GrabFocus() = 0;
+ virtual XACC GetAccessible( BOOL bCreate = TRUE ) = 0;
+ virtual Window* GetAccessibleParentWindow() const = 0;
+ virtual Window* GetWindowInstance() = 0;
+
+ virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex) = 0;
+ virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint) = 0;
};
// ----------------------------------------------------------------------------
diff --git a/svtools/inc/svtools/brwbox.hxx b/svtools/inc/svtools/brwbox.hxx
index 6d15b186d931..6dbaba2dacb8 100644
--- a/svtools/inc/svtools/brwbox.hxx
+++ b/svtools/inc/svtools/brwbox.hxx
@@ -2,7 +2,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 @@ typedef ULONG BrowserMode;
#define BROWSER_MULTISELECTION 0x0002
#define BROWSER_THUMBDRAGGING 0x0004
#define BROWSER_KEEPHIGHLIGHT 0x0008
-#define BROWSER_KEEPSELECTION BROWSER_KEEPHIGHLIGHT // old, dont use!
+#define BROWSER_KEEPSELECTION BROWSER_KEEPHIGHLIGHT // old, dont use!
#define BROWSER_HLINES 0x0010
#define BROWSER_VLINES 0x0020
#define BROWSER_HLINESFULL BROWSER_HLINES // old, dont use!
@@ -82,25 +82,25 @@ typedef ULONG BrowserMode;
#define BROWSER_HLINESDOTS 0x0000 // old => dont use!
#define BROWSER_VLINESDOTS 0x0000 // old => dont use!
-#define BROWSER_HIDESELECT 0x0100 // old => dont use!
+#define BROWSER_HIDESELECT 0x0100 // old => dont use!
#define BROWSER_HIDECURSOR 0x0200
#define BROWSER_NO_HSCROLL 0x0400
#define BROWSER_NO_SCROLLBACK 0x0800
-#define BROWSER_AUTO_VSCROLL 0x1000
-#define BROWSER_AUTO_HSCROLL 0x2000
+#define BROWSER_AUTO_VSCROLL 0x1000
+#define BROWSER_AUTO_HSCROLL 0x2000
-#define BROWSER_TRACKING_TIPS 0x4000
+#define BROWSER_TRACKING_TIPS 0x4000
#define BROWSER_NO_VSCROLL 0x8000
#define BROWSER_HIGHLIGHT_NONE 0x0100 // == BROWSER_HIDESELECT
#define BROWSER_HIGHLIGHT_TOGGLE 0x00000000 // old default => NULL, dont use!
-#define BROWSER_HEADERBAR_NEW 0x00040000
+#define BROWSER_HEADERBAR_NEW 0x00040000
#define BROWSER_AUTOSIZE_LASTCOL 0x00080000
-#define BROWSER_OWN_DATACHANGED 0x00100000
+#define BROWSER_OWN_DATACHANGED 0x00100000
#define BROWSER_CURSOR_WO_FOCUS 0x00200000
// Allows a cursor which is shown even if the control does not have the focus. This does not affect other
@@ -114,7 +114,7 @@ typedef ULONG BrowserMode;
typedef int BrowserColumnMode;
#define BROWSER_COLUMN_TITLEABBREVATION 1
-#define BROWSER_COLUMN_STANDARD BROWSER_COLUMN_TITLEABBREVATION
+#define BROWSER_COLUMN_STANDARD BROWSER_COLUMN_TITLEABBREVATION
#define BROWSER_NONE 0
#define BROWSER_SELECT 720
@@ -139,11 +139,11 @@ typedef int BrowserColumnMode;
#define BROWSER_CURSOREND 746
#define BROWSER_SCROLLDOWN 751
#define BROWSER_SCROLLUP 752
-#define BROWSER_SELECTHOME 753
-#define BROWSER_SELECTEND 754
-#define BROWSER_SELECTCOLUMN 755
-#define BROWSER_MOVECOLUMNLEFT 756
-#define BROWSER_MOVECOLUMNRIGHT 757
+#define BROWSER_SELECTHOME 753
+#define BROWSER_SELECTEND 754
+#define BROWSER_SELECTCOLUMN 755
+#define BROWSER_MOVECOLUMNLEFT 756
+#define BROWSER_MOVECOLUMNRIGHT 757
// ---------------
// - BrowseEvent -
@@ -234,9 +234,9 @@ class SVT_DLLPUBLIC BrowseBox
,public DropTargetHelper
,public svt::IAccessibleTableProvider
{
- #define NO_CURSOR_HIDE 0
- #define HARD_CURSOR_HIDE 1
- #define SMART_CURSOR_HIDE 2
+ #define NO_CURSOR_HIDE 0
+ #define HARD_CURSOR_HIDE 1
+ #define SMART_CURSOR_HIDE 2
friend class BrowserDataWin;
friend class ::svt::BrowseBoxImpl;
@@ -265,7 +265,7 @@ class SVT_DLLPUBLIC BrowseBox
BOOL bVLines; // draw lines between columns
BOOL bHDots; // draw lines between rows dotted
BOOL bVDots; // draw lines between columns dotted
- Color aGridLineColor; // color for lines, default dark grey
+ Color aGridLineColor; // color for lines, default dark grey
BOOL bBootstrapped; // child windows resized etc.
long nTopRow; // no. of first visible row (0...)
long nCurRow; // no. of row with cursor
@@ -273,7 +273,7 @@ class SVT_DLLPUBLIC BrowseBox
USHORT nFirstCol; // no. of first visible scrollable column
USHORT nCurColId; // column id of cursor
- BOOL bSelecting;
+ BOOL bSelecting;
BOOL bRowDividerDrag;
BOOL bHit;
BOOL mbInteractiveRowHeight;
@@ -293,7 +293,7 @@ class SVT_DLLPUBLIC BrowseBox
BOOL bHasFocus; // set/unset in Get/LoseFocus
BOOL bHideSelect; // hide selection (highlight)
BOOL bHideCursor; // hide cursor (frame)
- Range aSelRange; // for selection expansion
+ Range aSelRange; // for selection expansion
BrowserColumns* pCols; // array of column-descriptions
union
@@ -303,11 +303,11 @@ class SVT_DLLPUBLIC BrowseBox
} uRow;
MultiSelection* pColSel; // selected column-ids
- ::std::auto_ptr< ::svt::BrowseBoxImpl > m_pImpl; // impl structure of the BrowseBox object
+ ::std::auto_ptr< ::svt::BrowseBoxImpl > m_pImpl; // impl structure of the BrowseBox object
- BOOL m_bFocusOnlyCursor; // hide cursor if we don't have the focus
- Color m_aCursorColor; // special color for cursor, COL_TRANSPARENT for usual (VCL-painted) "inverted" cursor
- BrowserMode m_nCurrentMode; // last argument of SetMode (redundant, as our other members represent the current settings, too)
+ BOOL m_bFocusOnlyCursor; // hide cursor if we don't have the focus
+ Color m_aCursorColor; // special color for cursor, COL_TRANSPARENT for usual (VCL-painted) "inverted" cursor
+ BrowserMode m_nCurrentMode; // last argument of SetMode (redundant, as our other members represent the current settings, too)
private:
SVT_DLLPRIVATE void ConstructImpl(BrowserMode nMode);
@@ -323,9 +323,9 @@ private:
SVT_DLLPRIVATE void ColumnInserted( USHORT nPos );
- DECL_DLLPRIVATE_LINK( ScrollHdl, ScrollBar * );
- DECL_DLLPRIVATE_LINK( EndScrollHdl, ScrollBar * );
- DECL_DLLPRIVATE_LINK( StartDragHdl, HeaderBar * );
+ DECL_DLLPRIVATE_LINK( ScrollHdl, ScrollBar * );
+ DECL_DLLPRIVATE_LINK( EndScrollHdl, ScrollBar * );
+ DECL_DLLPRIVATE_LINK( StartDragHdl, HeaderBar * );
SVT_DLLPRIVATE long GetFrozenWidth() const;
//#endif
@@ -337,12 +337,12 @@ private:
void SelectColumnId( USHORT nColId, BOOL _bSelect, BOOL bMakeVisible)
{ SelectColumnPos( GetColumnPos(nColId), _bSelect, bMakeVisible); }
- void ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL _bForeignDevice, BOOL _bDrawSelections);
+ void ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL _bForeignDevice, BOOL _bDrawSelections);
- BOOL PaintCursorIfHiddenOnce() const { return !m_bFocusOnlyCursor && !HasFocus(); }
+ BOOL PaintCursorIfHiddenOnce() const { return !m_bFocusOnlyCursor && !HasFocus(); }
- USHORT ToggleSelectedColumn();
- void SetToggledSelectedColumn(USHORT _nSelectedColumnId);
+ USHORT ToggleSelectedColumn();
+ void SetToggledSelectedColumn(USHORT _nSelectedColumnId);
protected:
/// retrieves the XAccessible implementation associated with the BrowseBox instance
@@ -360,7 +360,7 @@ public:
protected:
// fuer Anzeige im VScrollBar z.B. auf "?" oder setzen
- void SetRealRowCount( const String &rRealRowCount );
+ void SetRealRowCount( const String &rRealRowCount );
// Return Value muss immer TRUE sein - SeekRow *muss* klappen!
// (sonst ASSERT) MI: wer hat das eingebaut? Das darf nicht so sein!
@@ -371,7 +371,7 @@ protected:
*/
virtual sal_Bool SeekRow( long nRow ) = 0;
virtual void DrawCursor();
- virtual void PaintRow( OutputDevice &rDev, const Rectangle &rRect );
+ virtual void PaintRow( OutputDevice &rDev, const Rectangle &rRect );
virtual void PaintData( Window& rWin, const Rectangle& rRect );
virtual void PaintField( OutputDevice& rDev, const Rectangle& rRect,
USHORT nColumnId ) const = 0;
@@ -398,34 +398,34 @@ protected:
USHORT GetVisibleRows()
{ return (USHORT)((pDataWin->GetOutputSizePixel().Height() - 1 )/ GetDataRowHeight() + 1); }
long GetTopRow() { return nTopRow; }
- USHORT GetFirstVisibleColNumber() const { return nFirstCol; }
+ USHORT GetFirstVisibleColNumber() const { return nFirstCol; }
// Focus-Rect ein-/ausschalten
- void DoShowCursor( const char *pWhoLog );
- void DoHideCursor( const char *pWhoLog );
- short GetCursorHideCount() const;
+ void DoShowCursor( const char *pWhoLog );
+ void DoHideCursor( const char *pWhoLog );
+ short GetCursorHideCount() const;
- virtual BrowserHeader* CreateHeaderBar( BrowseBox* pParent );
+ virtual BrowserHeader* CreateHeaderBar( BrowseBox* pParent );
// HACK(virtuelles Create wird im Ctor nicht gerufen)
- void SetHeaderBar( BrowserHeader* );
+ void SetHeaderBar( BrowserHeader* );
- long CalcReverseZoom(long nVal);
+ long CalcReverseZoom(long nVal);
- HeaderBar* GetHeaderBar() const;
+ HeaderBar* GetHeaderBar() const;
// header bar access for derived classes
inline const DataFlavorExVector&
GetDataFlavors() const;
- sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ); // need this because the base class' IsDropFormatSupported is not const ...
- sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ) const;
+ sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ); // need this because the base class' IsDropFormatSupported is not const ...
+ sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ) const;
- sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ); // need this because the base class' IsDropFormatSupported is not const ...
- sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ) const;
+ sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ); // need this because the base class' IsDropFormatSupported is not const ...
+ sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ) const;
private:
- void* implGetDataFlavors() const;
+ void* implGetDataFlavors() const;
// with this we can make GetDataFlavors() inline, which is strongly needed as SVTOOLS does not export
// any sysbols containing an "_STL", so a non-inlined method would not be exported ....
@@ -443,7 +443,7 @@ public:
~BrowseBox();
// ererbte ueberladene Handler
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void StateChanged( StateChangedType nStateChange );
virtual void MouseButtonDown( const MouseEvent& rEvt );
virtual void MouseMove( const MouseEvent& rEvt );
virtual void MouseButtonUp( const MouseEvent& rEvt );
@@ -452,12 +452,12 @@ public:
virtual void GetFocus();
virtual void Resize();
virtual void Paint( const Rectangle& rRect );
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
virtual void Command( const CommandEvent& rEvt );
- virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel );
+ virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel );
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); // will forward everything got to the second AcceptDrop method
- virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); // will forward everything got to the second ExecuteDrop method
+ virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); // will forward everything got to the second AcceptDrop method
+ virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); // will forward everything got to the second ExecuteDrop method
virtual sal_Int8 AcceptDrop( const BrowserAcceptDropEvent& rEvt );
virtual sal_Int8 ExecuteDrop( const BrowserExecuteDropEvent& rEvt );
@@ -491,18 +491,18 @@ public:
const Font& GetTitleFont() const { return Control::GetFont(); }
// color for line painting
- void SetGridLineColor(const Color& rColor) {aGridLineColor = rColor;}
- const Color& GetGridLineColor() const {return aGridLineColor;}
+ void SetGridLineColor(const Color& rColor) {aGridLineColor = rColor;}
+ const Color& GetGridLineColor() const {return aGridLineColor;}
// inserting, changing, removing and freezing of columns
void InsertHandleColumn( ULONG nWidth );
- void InsertDataColumn( USHORT nItemId, const Image& rImage,
+ void InsertDataColumn( USHORT nItemId, const Image& rImage,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertDataColumn( USHORT nItemId, const XubString& rText,
+ void InsertDataColumn( USHORT nItemId, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertDataColumn( USHORT nItemId,
+ void InsertDataColumn( USHORT nItemId,
const Image& rImage, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND,
@@ -522,7 +522,7 @@ public:
long GetDataRowHeight() const;
void SetTitleLines( USHORT nLines );
USHORT GetTitleLines() const { return nTitleLines; }
- virtual long GetTitleHeight() const;
+ virtual long GetTitleHeight() const;
// access to dynamic values of cursor row
String GetColumnTitle( USHORT nColumnId ) const;
@@ -538,13 +538,13 @@ public:
long ScrollColumns( long nColumns );
long ScrollRows( long nRows );
long ScrollPages( long nPagesY );
- BOOL MakeFieldVisible( long nRow, USHORT nColId, BOOL bComplete = FALSE );
+ BOOL MakeFieldVisible( long nRow, USHORT nColId, BOOL bComplete = FALSE );
// access and movement of cursor
long GetCurRow() const { return nCurRow; }
USHORT GetCurColumnId() const { return nCurColId; }
BOOL GoToRow( long nRow );
- BOOL GoToRowAndDoNotModifySelection( long nRow );
+ BOOL GoToRowAndDoNotModifySelection( long nRow );
BOOL GoToColumnId( USHORT nColId );
BOOL GoToRowColumnId( long nRow, USHORT nColId );
@@ -568,12 +568,12 @@ public:
const MultiSelection* GetColumnSelection() const { return pColSel; }
const MultiSelection* GetSelection() const
{ return bMultiSelection ? uRow.pSel : 0; }
- void SetSelection( const MultiSelection &rSelection );
+ void SetSelection( const MultiSelection &rSelection );
- long FirstSelectedColumn( ) const;
- long NextSelectedColumn( ) const;
+ long FirstSelectedColumn( ) const;
+ long NextSelectedColumn( ) const;
- BOOL IsResizing() const { return bResizing; }
+ BOOL IsResizing() const { return bResizing; }
// access to positions of fields, column and rows
Window& GetEventWindow() const;
@@ -598,15 +598,15 @@ public:
// miscellanous
void ReserveControlArea( USHORT nWidth = USHRT_MAX );
Rectangle GetControlArea() const;
- BOOL ProcessKey( const KeyEvent& rEvt );
+ BOOL ProcessKey( const KeyEvent& rEvt );
void Dispatch( USHORT nId );
void SetMode( BrowserMode nMode = 0 );
- BrowserMode GetMode( ) const { return m_nCurrentMode; }
- bool IsInCommandEvent() const;
+ BrowserMode GetMode( ) const { return m_nCurrentMode; }
+ bool IsInCommandEvent() const;
- void SetCursorColor(const Color& _rCol);
- Color GetCursorColor() const { return m_aCursorColor; }
- void ResetSelecting() { bSelecting = FALSE; }
+ void SetCursorColor(const Color& _rCol);
+ Color GetCursorColor() const { return m_aCursorColor; }
+ void ResetSelecting() { bSelecting = FALSE; }
/** specifies that the user is allowed to interactively change the height of a row,
by simply dragging an arbitrary row separator.
@@ -631,14 +631,14 @@ public:
ULONG GetDefaultColumnWidth( const String& _rText ) const;
/** GetCellText returns the text at the given position
- @param _nRow
+ @param _nRow
the number of the row
- @param _nColId
+ @param _nColId
the ID of the column
@return
the text out of the cell
*/
- virtual String GetCellText(long _nRow, USHORT _nColId) const;
+ virtual String GetCellText(long _nRow, USHORT _nColId) const;
/** @return
the current column count
@@ -685,9 +685,9 @@ public:
);
/** returns the Rectangle for either the column header bar ot the row header bar
- @param _bIsColumnBar
+ @param _bIsColumnBar
<TRUE/> when column header bar is used
- @param _bOnScreen
+ @param _bOnScreen
<TRUE/> when the rectangle should be calculated OnScreen
@return
the Rectangle
@@ -695,7 +695,7 @@ public:
virtual Rectangle calcHeaderRect(sal_Bool _bIsColumnBar,BOOL _bOnScreen = TRUE);
/** calculates the Rectangle of the table
- @param _bOnScreen
+ @param _bOnScreen
<TRUE/> when the rectangle should be calculated OnScreen
@return
the Rectangle
@@ -703,11 +703,11 @@ public:
virtual Rectangle calcTableRect(BOOL _bOnScreen = TRUE);
/**
- @param _nRowId
+ @param _nRowId
the current row
- @param _nColId
+ @param _nColId
teh column id
- @param _bOnScreen
+ @param _bOnScreen
<TRUE/> when the rectangle should be calculated OnScreen
@return
the Rectangle
@@ -791,9 +791,9 @@ public:
// Object data and state --------------------------------------------------
/** return the name of the specified object.
- @param eObjType
+ @param eObjType
The type to ask for
- @param _nPosition
+ @param _nPosition
The position of a tablecell (index position), header bar colum/row cell
@return
The name of the specified object.
@@ -801,9 +801,9 @@ public:
virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition = -1) const;
/** return the description of the specified object.
- @param eObjType
+ @param eObjType
The type to ask for
- @param _nPosition
+ @param _nPosition
The position of a tablecell (index position), header bar colum/row cell
@return
The description of the specified object.
@@ -814,7 +814,7 @@ public:
virtual ::rtl::OUString GetRowDescription( sal_Int32 nRow ) const;
/** @return The header text of the specified column. */
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
/** Fills the StateSet with all states (except DEFUNC and SHOWING, done by
the accessible object), depending on the specified object type. */
@@ -832,25 +832,25 @@ public:
virtual void GrabTableFocus();
// IAccessibleTableProvider
- virtual sal_Int32 GetCurrRow() const;
- virtual sal_uInt16 GetCurrColumn() const;
- virtual sal_Bool HasRowHeader() const;
- virtual sal_Bool IsCellFocusable() const;
- virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
- virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
- virtual sal_Bool IsColumnSelected( long _nColumn ) const;
- virtual sal_Int32 GetSelectedRowCount() const;
- virtual sal_Int32 GetSelectedColumnCount() const;
- virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
- virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
- virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
- virtual String GetAccessibleCellText(long _nRow, USHORT _nColPos) const;
- virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
- virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
- virtual void GrabFocus();
- virtual XACC GetAccessible( BOOL bCreate = TRUE );
- virtual Window* GetAccessibleParentWindow() const;
- virtual Window* GetWindowInstance();
+ virtual sal_Int32 GetCurrRow() const;
+ virtual sal_uInt16 GetCurrColumn() const;
+ virtual sal_Bool HasRowHeader() const;
+ virtual sal_Bool IsCellFocusable() const;
+ virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
+ virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
+ virtual sal_Bool IsColumnSelected( long _nColumn ) const;
+ virtual sal_Int32 GetSelectedRowCount() const;
+ virtual sal_Int32 GetSelectedColumnCount() const;
+ virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
+ virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
+ virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
+ virtual String GetAccessibleCellText(long _nRow, USHORT _nColPos) const;
+ virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
+ virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
+ virtual void GrabFocus();
+ virtual XACC GetAccessible( BOOL bCreate = TRUE );
+ virtual Window* GetAccessibleParentWindow() const;
+ virtual Window* GetWindowInstance();
private:
// the following declares some Window/OutputDevice methods private. This happened in the course
diff --git a/svtools/inc/svtools/brwhead.hxx b/svtools/inc/svtools/brwhead.hxx
index ecd8d563f102..3fa93644e2b8 100644
--- a/svtools/inc/svtools/brwhead.hxx
+++ b/svtools/inc/svtools/brwhead.hxx
@@ -2,7 +2,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 BrowseBox;
class SVT_DLLPUBLIC BrowserHeader: public HeaderBar
{
- BrowseBox* _pBrowseBox;
+ BrowseBox* _pBrowseBox;
protected:
- virtual void Command( const CommandEvent& rCEvt );
+ virtual void Command( const CommandEvent& rCEvt );
virtual void Select();
virtual void EndDrag();
diff --git a/svtools/inc/svtools/chartprettypainter.hxx b/svtools/inc/svtools/chartprettypainter.hxx
index 23aacc6b7144..8181935913d3 100644
--- a/svtools/inc/svtools/chartprettypainter.hxx
+++ b/svtools/inc/svtools/chartprettypainter.hxx
@@ -2,7 +2,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 @@
namespace svt { class EmbeddedObjectRef; }
/** use this class for a correct view representation of charts
-see issues #i82893#, #i75867#: charts must be painted resolution dependent!!
+see issues #i82893#, #i75867#: charts must be painted resolution dependent!!
example usage when painting ole objects:
if( ChartPrettyPainter::IsChart(xObjRef) && ChartPrettyPainter::ShouldPrettyPaintChartOnThisDevice( pOutDev )
diff --git a/svtools/inc/svtools/colctrl.hxx b/svtools/inc/svtools/colctrl.hxx
index 69a372e07bb3..809c43c9e430 100644
--- a/svtools/inc/svtools/colctrl.hxx
+++ b/svtools/inc/svtools/colctrl.hxx
@@ -2,7 +2,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,16 +44,16 @@ class ColorHSB;
class SvColorControl : public Control
{
private:
- Bitmap* mpBitmap;
+ Bitmap* mpBitmap;
BitmapReadAccess* mpReadAccess;
- Color maColor;
- short mnLuminance;
- Point maPosition;
- Link maModifyHdl;
+ Color maColor;
+ short mnLuminance;
+ Point maPosition;
+ Link maModifyHdl;
- void Initialize();
- void CreateBitmap();
- void ShowPosition( const Point& aPos );
+ void Initialize();
+ void CreateBitmap();
+ void ShowPosition( const Point& aPos );
public:
SvColorControl( Window* pParent, WinBits nStyle = 0 );
@@ -71,12 +71,12 @@ public:
virtual void Modify();
- Color GetColor() const { return maColor; };
- void SetColor( const Color& rCol );
- void SetColor( const ColorHSB& rCol, BOOL bSetColor = TRUE );
+ Color GetColor() const { return maColor; };
+ void SetColor( const Color& rCol );
+ void SetColor( const ColorHSB& rCol, BOOL bSetColor = TRUE );
- short GetLuminance() const { return mnLuminance; };
- void SetLuminance( short nLum );
+ short GetLuminance() const { return mnLuminance; };
+ void SetLuminance( short nLum );
void SetModifyHdl( const Link& rLink ) { maModifyHdl = rLink; }
const Link& GetModifyHdl() const { return maModifyHdl; }
@@ -90,7 +90,7 @@ public:
class ColorPreviewControl : public Control
{
private:
- Color maColor;
+ Color maColor;
public:
ColorPreviewControl( Window* pParent, WinBits nStyle = 0 );
@@ -99,8 +99,8 @@ public:
virtual void Paint( const Rectangle& rRect );
- Color GetColor() const { return maColor; };
- void SetColor( const Color& rCol );
+ Color GetColor() const { return maColor; };
+ void SetColor( const Color& rCol );
};
// -----------------------
@@ -112,15 +112,15 @@ enum CMCPosition { CMC_TOPLEFT, CMC_TOPRIGHT, CMC_BOTTOMLEFT, CMC_BOTTOMRIGHT, C
class ColorMixingControl : public ValueSet
{
private:
- USHORT mnRows;
- USHORT mnColumns;
- Color maColor[4];
+ USHORT mnRows;
+ USHORT mnColumns;
+ Color maColor[4];
- void Initialize();
+ void Initialize();
- Color CalcDifferenceColor( USHORT nCol1, USHORT nCol2, USHORT nSteps );
- void FillRow( USHORT nRow );
- void FillColumn( USHORT nColumn );
+ Color CalcDifferenceColor( USHORT nCol1, USHORT nCol2, USHORT nSteps );
+ void FillRow( USHORT nRow );
+ void FillColumn( USHORT nColumn );
public:
ColorMixingControl( Window* pParent, WinBits nStyle = 0,
@@ -129,18 +129,18 @@ public:
USHORT nRows = 4, USHORT nColumns = 4 );
~ColorMixingControl();
- USHORT GetRows() const { return mnRows; };
- void SetRows( USHORT nRows );
- USHORT GetColumns() const { return mnColumns; };
- void SetColumns( USHORT nColumns );
+ USHORT GetRows() const { return mnRows; };
+ void SetRows( USHORT nRows );
+ USHORT GetColumns() const { return mnColumns; };
+ void SetColumns( USHORT nColumns );
using ValueSet::GetColor;
- Color GetColor( CMCPosition ePos ) const { return maColor[ ePos ]; };
+ Color GetColor( CMCPosition ePos ) const { return maColor[ ePos ]; };
using ValueSet::SetColor;
- void SetColor( CMCPosition ePos, const Color& rCol );
+ void SetColor( CMCPosition ePos, const Color& rCol );
- String GetRGBString( const Color& rColor );
- CMCPosition GetCMCPosition() const;
+ String GetRGBString( const Color& rColor );
+ CMCPosition GetCMCPosition() const;
};
// ------------
@@ -177,10 +177,10 @@ public:
class ColorCMYK
{
private:
- USHORT mnCyan;
- USHORT mnMagenta;
- USHORT mnYellow;
- USHORT mnKey;
+ USHORT mnCyan;
+ USHORT mnMagenta;
+ USHORT mnYellow;
+ USHORT mnKey;
public:
ColorCMYK()
diff --git a/svtools/inc/svtools/colorcfg.hxx b/svtools/inc/svtools/colorcfg.hxx
index d2fd175e7057..76b639b33438 100644
--- a/svtools/inc/svtools/colorcfg.hxx
+++ b/svtools/inc/svtools/colorcfg.hxx
@@ -2,7 +2,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 @@ enum ColorConfigEntry
APPBACKGROUND ,
OBJECTBOUNDARIES ,
TABLEBOUNDARIES ,
- FONTCOLOR ,
+ FONTCOLOR ,
LINKS ,
LINKSVISITED ,
ANCHOR ,
@@ -145,8 +145,8 @@ public:
sal_Bool IsModified()const{return m_bModified;}
void Commit();
- void DisableBroadcast();
- void EnableBroadcast();
+ void DisableBroadcast();
+ void EnableBroadcast();
};
}//namespace svtools
#endif
diff --git a/svtools/inc/svtools/colrdlg.hxx b/svtools/inc/svtools/colrdlg.hxx
index 8197bb81de28..0c1ceedbb062 100644
--- a/svtools/inc/svtools/colrdlg.hxx
+++ b/svtools/inc/svtools/colrdlg.hxx
@@ -2,7 +2,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,50 +43,50 @@
class SVT_DLLPUBLIC SvColorDialog : public ModalDialog
{
private:
- ColorMixingControl maColMixCtrl;
- PushButton maBtn1;
- PushButton maBtn2;
- //PushButton maBtn3;
- //PushButton maBtn4;
- //FixedText maFtRGB;
- SvColorControl maCtlColor;
+ ColorMixingControl maColMixCtrl;
+ PushButton maBtn1;
+ PushButton maBtn2;
+ //PushButton maBtn3;
+ //PushButton maBtn4;
+ //FixedText maFtRGB;
+ SvColorControl maCtlColor;
// CMYK controls.
- FixedText maFtCyan;
- MetricField maNumCyan;
- FixedText maFtMagenta;
- MetricField maNumMagenta;
- FixedText maFtYellow;
- MetricField maNumYellow;
- FixedText maFtKey;
- MetricField maNumKey;
+ FixedText maFtCyan;
+ MetricField maNumCyan;
+ FixedText maFtMagenta;
+ MetricField maNumMagenta;
+ FixedText maFtYellow;
+ MetricField maNumYellow;
+ FixedText maFtKey;
+ MetricField maNumKey;
// RGB controls.
- FixedText maFtRed;
- NumericField maNumRed;
- FixedText maFtGreen;
- NumericField maNumGreen;
- FixedText maFtBlue;
- NumericField maNumBlue;
+ FixedText maFtRed;
+ NumericField maNumRed;
+ FixedText maFtGreen;
+ NumericField maNumGreen;
+ FixedText maFtBlue;
+ NumericField maNumBlue;
// HSL controls.
- FixedText maFtHue;
- NumericField maNumHue;
- FixedText maFtSaturation;
- NumericField maNumSaturation;
- FixedText maFtLuminance;
- NumericField maNumLuminance;
+ FixedText maFtHue;
+ NumericField maNumHue;
+ FixedText maFtSaturation;
+ NumericField maNumSaturation;
+ FixedText maFtLuminance;
+ NumericField maNumLuminance;
- ColorPreviewControl maCtlPreview;
- ColorPreviewControl maCtlPreviewOld;
+ ColorPreviewControl maCtlPreview;
+ ColorPreviewControl maCtlPreviewOld;
- OKButton maBtnOK;
- CancelButton maBtnCancel;
- HelpButton maBtnHelp;
+ OKButton maBtnOK;
+ CancelButton maBtnCancel;
+ HelpButton maBtnHelp;
- Color maColor;
+ Color maColor;
- SVT_DLLPRIVATE void Initialize();
+ SVT_DLLPRIVATE void Initialize();
DECL_DLLPRIVATE_LINK( ColorModifyHdl, void * );
DECL_DLLPRIVATE_LINK( ClickBtnHdl, void * );
@@ -97,10 +97,10 @@ public:
SvColorDialog( Window* pParent );
~SvColorDialog();
- void SetColor( const Color& rColor );
- const Color& GetColor() const;
+ void SetColor( const Color& rColor );
+ const Color& GetColor() const;
- virtual short Execute();
+ virtual short Execute();
};
#endif // _SV_COLRDLG_HXX
diff --git a/svtools/inc/svtools/editbrowsebox.hxx b/svtools/inc/svtools/editbrowsebox.hxx
index 6ccab9ee6b65..5fb993694510 100644
--- a/svtools/inc/svtools/editbrowsebox.hxx
+++ b/svtools/inc/svtools/editbrowsebox.hxx
@@ -2,7 +2,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,20 +47,20 @@
//==================================================================
// EditBrowseBoxFlags (EBBF)
-#define EBBF_NONE ((sal_Int32)0x0000)
+#define EBBF_NONE ((sal_Int32)0x0000)
/** if this bit is _not_ set, the handle column will be invalidated upon
changing the row in the browse box. This is for forcing the row picture to
be repainted. If you do not have row pictures or text, you don't need this
invalidation, then you would specify this bit to prevent flicker
*/
-#define EBBF_NO_HANDLE_COLUMN_CONTENT ((sal_Int32)0x0001)
+#define EBBF_NO_HANDLE_COLUMN_CONTENT ((sal_Int32)0x0001)
/** set this bit to activate the cell on a MouseButtonDown, not a MouseButtonUp event
*/
-#define EBBF_ACTIVATE_ON_BUTTONDOWN ((sal_Int32)0x0002)
+#define EBBF_ACTIVATE_ON_BUTTONDOWN ((sal_Int32)0x0002)
/** if this bit is set and EBBF_NO_HANDLE_COLUMN_CONTENT is _not_ set, the handle
column is drawn with the text contained in column 0 instead of an image
*/
-#define EBBF_HANDLE_COLUMN_TEXT ((sal_Int32)0x0004)
+#define EBBF_HANDLE_COLUMN_TEXT ((sal_Int32)0x0004)
/** If this bit is set, tab traveling is somewhat modified<br/>
If the control gets the focus because the user pressed the TAB key, then the
@@ -69,10 +69,10 @@
@see Window::GetGetFocusFlags
@see GETFOCUS_*
*/
-#define EBBF_SMART_TAB_TRAVEL ((sal_Int32)0x0008)
+#define EBBF_SMART_TAB_TRAVEL ((sal_Int32)0x0008)
/// @deprecated
-#define EBBF_NOROWPICTURE EBBF_NO_HANDLE_COLUMN_CONTENT
+#define EBBF_NOROWPICTURE EBBF_NO_HANDLE_COLUMN_CONTENT
//==================================================================
@@ -97,8 +97,8 @@ namespace svt
friend class EditBrowseBox;
protected:
- Control* pWindow;
- sal_Bool bSuspended; // <TRUE> if the window is hidden and disabled
+ Control* pWindow;
+ sal_Bool bSuspended; // <TRUE> if the window is hidden and disabled
public:
TYPEINFO();
@@ -118,9 +118,9 @@ namespace svt
virtual void CommitModifications();
// suspending the controller is not culmulative!
- void suspend( );
- void resume( );
- inline sal_Bool isSuspended( ) const { return bSuspended; }
+ void suspend( );
+ void resume( );
+ inline sal_Bool isSuspended( ) const { return bSuspended; }
protected:
virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const;
@@ -290,9 +290,9 @@ namespace svt
//==================================================================
class SVT_DLLPUBLIC CheckBoxControl : public Control
{
- CheckBox* pBox;
- Rectangle aFocusRect;
- Link m_aClickLink,m_aModifyLink;
+ CheckBox* pBox;
+ Rectangle aFocusRect;
+ Link m_aClickLink,m_aModifyLink;
public:
CheckBoxControl(Window* pParent, WinBits nWinStyle = 0);
@@ -312,7 +312,7 @@ namespace svt
void SetModifyHdl(const Link& rHdl) {m_aModifyLink = rHdl;}
const Link& GetModifyHdl() const {return m_aModifyLink;}
- CheckBox& GetBox() {return *pBox;};
+ CheckBox& GetBox() {return *pBox;};
private:
DECL_LINK( OnClick, void* );
@@ -438,25 +438,25 @@ namespace svt
enum BrowseInfo
{
- COLSELECT = 1,
- ROWSELECT = 2,
- ROWCHANGE = 4,
- COLCHANGE = 8
+ COLSELECT = 1,
+ ROWSELECT = 2,
+ ROWCHANGE = 4,
+ COLCHANGE = 8
};
public:
enum RowStatus
{
- CLEAN = 0,
- CURRENT = 1,
- CURRENTNEW = 2,
- MODIFIED = 3,
- NEW = 4,
- DELETED = 5,
- PRIMARYKEY = 6,
- CURRENT_PRIMARYKEY = 7,
- FILTER = 8,
- HEADERFOOTER = 9
+ CLEAN = 0,
+ CURRENT = 1,
+ CURRENTNEW = 2,
+ MODIFIED = 3,
+ NEW = 4,
+ DELETED = 5,
+ PRIMARYKEY = 6,
+ CURRENT_PRIMARYKEY = 7,
+ FILTER = 8,
+ HEADERFOOTER = 9
};
private:
@@ -482,27 +482,27 @@ namespace svt
void Set(const BrowserMouseEvent* pEvt, sal_Bool bIsDown);
} aMouseEvent;
- const BrowserMouseEvent* pMouseEvent; // is set during a mouse event
- CellControllerRef aController,
+ const BrowserMouseEvent* pMouseEvent; // is set during a mouse event
+ CellControllerRef aController,
aOldController;
- ULONG nStartEvent, nEndEvent, nCellModifiedEvent; // event ids
- Window* m_pFocusWhileRequest;
+ ULONG nStartEvent, nEndEvent, nCellModifiedEvent; // event ids
+ Window* m_pFocusWhileRequest;
// In ActivateCell, we grab the focus asynchronously, but if between requesting activation
// and the asynchornous event the focus has changed, we won't grab it for ourself.
- long nPaintRow; // row beeing painted
- long nEditRow, nOldEditRow;
- sal_uInt16 nEditCol, nOldEditCol;
+ long nPaintRow; // row beeing painted
+ long nEditRow, nOldEditRow;
+ sal_uInt16 nEditCol, nOldEditCol;
sal_Bool bHasFocus : 1;
- mutable sal_Bool bPaintStatus : 1; // paint a status (image) in the handle column
+ mutable sal_Bool bPaintStatus : 1; // paint a status (image) in the handle column
sal_Bool bActiveBeforeTracking;
CheckBoxControl* pCheckBoxPaint;
- sal_Int32 m_nBrowserFlags;
- ImageList m_aStatusImages;
+ sal_Int32 m_nBrowserFlags;
+ ImageList m_aStatusImages;
::std::auto_ptr< EditBrowseBoxImpl> m_aImpl;
protected:
@@ -515,7 +515,7 @@ namespace svt
BrowserMouseEventPtr& getMouseEvent() { return aMouseEvent; }
protected:
- BrowserHeader* GetHeaderBar() const {return pHeader;}
+ BrowserHeader* GetHeaderBar() const {return pHeader;}
virtual BrowserHeader* CreateHeaderBar(BrowseBox* pParent);
@@ -562,16 +562,16 @@ namespace svt
virtual void ImplEndTracking();
// when changing a row:
- // CursorMoving: cursor is beeing moved, but GetCurRow() still provides the old row
+ // CursorMoving: cursor is beeing moved, but GetCurRow() still provides the old row
virtual sal_Bool CursorMoving(long nNewRow, sal_uInt16 nNewCol);
// cursor has been moved
virtual void CursorMoved();
- virtual void CellModified(); // called whenever a cell has been modified
- virtual sal_Bool SaveModified(); // called whenever a cell should be left, and it's content should be saved
+ virtual void CellModified(); // called whenever a cell has been modified
+ virtual sal_Bool SaveModified(); // called whenever a cell should be left, and it's content should be saved
// return sal_False prevents leaving the cell
- virtual sal_Bool SaveRow(); // commit the current row
+ virtual sal_Bool SaveRow(); // commit the current row
virtual sal_Bool IsModified() const {return aController.Is() && aController->IsModified();}
@@ -597,7 +597,7 @@ namespace svt
virtual sal_Bool IsCursorMoveAllowed(long nNewRow, sal_uInt16 nNewColId) const;
- void PaintTristate(OutputDevice& rDev, const Rectangle& rRect,const TriState& eState,sal_Bool _bEnabled=sal_True) const;
+ void PaintTristate(OutputDevice& rDev, const Rectangle& rRect,const TriState& eState,sal_Bool _bEnabled=sal_True) const;
void AsynchGetFocus();
// secure starting of StartEditHdl
@@ -617,19 +617,19 @@ namespace svt
virtual void Dispatch(sal_uInt16 nId);
CellControllerRef Controller() const { return aController; }
- sal_Int32 GetBrowserFlags() const { return m_nBrowserFlags; }
- void SetBrowserFlags(sal_Int32 nFlags);
+ sal_Int32 GetBrowserFlags() const { return m_nBrowserFlags; }
+ void SetBrowserFlags(sal_Int32 nFlags);
- virtual void ActivateCell(long nRow, sal_uInt16 nCol, sal_Bool bSetCellFocus = sal_True);
+ virtual void ActivateCell(long nRow, sal_uInt16 nCol, sal_Bool bSetCellFocus = sal_True);
virtual void DeactivateCell(sal_Bool bUpdate = sal_True);
// Children ---------------------------------------------------------------
/** Creates the accessible object of a data table cell.
- @param nRow
+ @param nRow
The row index of the cell.
- @param nColumnId
+ @param nColumnId
The column ID of the cell.
- @return
+ @return
The XAccessible interface of the specified cell. */
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
@@ -639,18 +639,18 @@ namespace svt
virtual sal_Int32 GetAccessibleControlCount() const;
/** Creates the accessible object of an additional control.
- @param nIndex
+ @param nIndex
The 0-based index of the control.
- @return
+ @return
The XAccessible interface of the specified control. */
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
CreateAccessibleControl( sal_Int32 nIndex );
/** Creates the accessible object of a column header.
- @param nColumnId
+ @param nColumnId
The column ID of the header.
- @return
+ @return
The XAccessible interface of the specified column header. */
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
@@ -666,7 +666,7 @@ namespace svt
::com::sun::star::accessibility::XAccessible > CreateAccessibleCheckBoxCell(long _nRow, USHORT _nColumnPos,const TriState& eState,sal_Bool _bEnabled=sal_True);
protected:
// creates the accessible which wraps the active cell
- void implCreateActiveAccessible( );
+ void implCreateActiveAccessible( );
private:
virtual void PaintField(OutputDevice& rDev, const Rectangle& rRect,
@@ -687,7 +687,7 @@ namespace svt
};
// .......................................................................
-} // namespace svt
+} // namespace svt
// .......................................................................
#undef SVTOOLS_IN_EDITBROWSEBOX_HXX
diff --git a/svtools/inc/svtools/editimplementation.hxx b/svtools/inc/svtools/editimplementation.hxx
index b2515bb6d067..9db0a26677a4 100644
--- a/svtools/inc/svtools/editimplementation.hxx
+++ b/svtools/inc/svtools/editimplementation.hxx
@@ -2,7 +2,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/svtools/inc/svtools/editsyntaxhighlighter.hxx b/svtools/inc/svtools/editsyntaxhighlighter.hxx
index 265e0bc4110c..9a834101fbf0 100644
--- a/svtools/inc/svtools/editsyntaxhighlighter.hxx
+++ b/svtools/inc/svtools/editsyntaxhighlighter.hxx
@@ -2,7 +2,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,16 +37,16 @@
class SVT_DLLPUBLIC MultiLineEditSyntaxHighlight : public MultiLineEdit
{
private:
- bool mbDoBracketHilight;
- SyntaxHighlighter aHighlighter;
+ bool mbDoBracketHilight;
+ SyntaxHighlighter aHighlighter;
svtools::ColorConfig m_aColorConfig;
-
+
private:
virtual void DoBracketHilight(USHORT aKey);
protected:
virtual long PreNotify( NotifyEvent& rNEvt );
-
+
public:
MultiLineEditSyntaxHighlight( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER , HighlighterLanguage aLanguage = HIGHLIGHT_SQL);
MultiLineEditSyntaxHighlight( Window* pParent, const ResId& rResId , HighlighterLanguage aLanguage = HIGHLIGHT_SQL);
@@ -58,7 +58,7 @@ class SVT_DLLPUBLIC MultiLineEditSyntaxHighlight : public MultiLineEdit
virtual void SetText(const String& rNewText);
virtual void SetText( const XubString& rStr, const Selection& rNewSelection )
{ SetText( rStr ); SetSelection( rNewSelection ); }
-
+
Color GetColorValue(TokenTypes aToken);
};
diff --git a/svtools/inc/svtools/ehdl.hxx b/svtools/inc/svtools/ehdl.hxx
index 835854b2f030..1fd3cfeb5e55 100644
--- a/svtools/inc/svtools/ehdl.hxx
+++ b/svtools/inc/svtools/ehdl.hxx
@@ -2,7 +2,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/svtools/inc/svtools/embedhlp.hxx b/svtools/inc/svtools/embedhlp.hxx
index fc2d12a3b3c3..2e15a7376963 100644
--- a/svtools/inc/svtools/embedhlp.hxx
+++ b/svtools/inc/svtools/embedhlp.hxx
@@ -2,7 +2,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
@@ -103,18 +103,18 @@ namespace svt
::rtl::OUString GetPersistName() const;
sal_Int64 GetViewAspect() const;
- void SetViewAspect( sal_Int64 nAspect );
+ void SetViewAspect( sal_Int64 nAspect );
Graphic* GetGraphic( ::rtl::OUString* pMediaType=0 ) const;
// the original size of the object ( size of the icon for iconified object )
// no conversion is done if no target mode is provided
- Size GetSize( MapMode* pTargetMapMode = NULL ) const;
+ Size GetSize( MapMode* pTargetMapMode = NULL ) const;
// the following method tries to get the HC graphic if it is possible, otherwise returns NULL
Graphic* GetHCGraphic() const;
void SetGraphic( const Graphic& rGraphic, const ::rtl::OUString& rMediaType );
- void SetGraphicStream(
+ void SetGraphicStream(
const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInGrStream,
const ::rtl::OUString& rMediaType );
@@ -130,8 +130,8 @@ namespace svt
// #i104867#
// Provides a graphic version number for the fetchable Graphic during this object's lifetime. Internally,
- // that number is incremented at each change of the Graphic. This mechanism is needed to identify if a
- // remembered Graphic (e.g. primitives) has changed compared to the current one, but without actively
+ // that number is incremented at each change of the Graphic. This mechanism is needed to identify if a
+ // remembered Graphic (e.g. primitives) has changed compared to the current one, but without actively
// fetching the Graphic what would be too expensive e.g. for charts
sal_uInt32 getGraphicVersion() const;
void SetDefaultSizeForChart( const Size& rSizeIn_100TH_MM );//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
diff --git a/svtools/inc/svtools/embedtransfer.hxx b/svtools/inc/svtools/embedtransfer.hxx
index 7c82a7302b84..4725da082dd3 100644
--- a/svtools/inc/svtools/embedtransfer.hxx
+++ b/svtools/inc/svtools/embedtransfer.hxx
@@ -2,7 +2,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,9 +44,9 @@ private:
protected:
- 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();
public:
// object, replacement image, and the aspect
diff --git a/svtools/inc/svtools/extensionlistbox.hxx b/svtools/inc/svtools/extensionlistbox.hxx
index a4b2d68198db..9c028f515c49 100644
--- a/svtools/inc/svtools/extensionlistbox.hxx
+++ b/svtools/inc/svtools/extensionlistbox.hxx
@@ -2,7 +2,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/svtools/inc/svtools/fileurlbox.hxx b/svtools/inc/svtools/fileurlbox.hxx
index 570c2cb82a2a..7a0f6754ec19 100644
--- a/svtools/inc/svtools/fileurlbox.hxx
+++ b/svtools/inc/svtools/fileurlbox.hxx
@@ -2,7 +2,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 @@ namespace svt
class SVT_DLLPUBLIC FileURLBox : public SvtURLBox
{
protected:
- String m_sPreservedText;
+ String m_sPreservedText;
public:
FileURLBox( Window* _pParent );
@@ -51,8 +51,8 @@ namespace svt
FileURLBox( Window* _pParent, const ResId& _rId );
protected:
- virtual long PreNotify( NotifyEvent& rNEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
public:
/** transforms the given URL content into a system-dependent notation, if possible, and
@@ -71,7 +71,7 @@ namespace svt
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SVTOOLS_FILEURLBOX_HXX
diff --git a/svtools/inc/svtools/filter.hxx b/svtools/inc/svtools/filter.hxx
index ceb966ac90ff..492ed852765a 100644
--- a/svtools/inc/svtools/filter.hxx
+++ b/svtools/inc/svtools/filter.hxx
@@ -2,7 +2,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,88 +52,88 @@ struct ImplDirEntryHelper
class Window;
class Graphic;
-#define OPT_FILTERSECTION "Graphic"
+#define OPT_FILTERSECTION "Graphic"
-#define GRFILTER_OK 0
-#define GRFILTER_OPENERROR 1
-#define GRFILTER_IOERROR 2
-#define GRFILTER_FORMATERROR 3
-#define GRFILTER_VERSIONERROR 4
-#define GRFILTER_FILTERERROR 5
-#define GRFILTER_ABORT 6
-#define GRFILTER_TOOBIG 7
+#define GRFILTER_OK 0
+#define GRFILTER_OPENERROR 1
+#define GRFILTER_IOERROR 2
+#define GRFILTER_FORMATERROR 3
+#define GRFILTER_VERSIONERROR 4
+#define GRFILTER_FILTERERROR 5
+#define GRFILTER_ABORT 6
+#define GRFILTER_TOOBIG 7
#define GRFILTER_OUTHINT_GREY 1
-#define GRFILTER_FORMAT_NOTFOUND ((USHORT)0xFFFF)
-#define GRFILTER_FORMAT_DONTKNOW ((USHORT)0xFFFF)
+#define GRFILTER_FORMAT_NOTFOUND ((USHORT)0xFFFF)
+#define GRFILTER_FORMAT_DONTKNOW ((USHORT)0xFFFF)
#define GRFILTER_I_FLAGS_SET_LOGSIZE_FOR_JPEG 00000001
#define GRFILTER_I_FLAGS_DONT_SET_LOGSIZE_FOR_JPEG 00000002
#define GRFILTER_I_FLAGS_FOR_PREVIEW 00000004
#define GRFILTER_I_FLAGS_ALLOW_PARTIAL_STREAMREAD 00000010
-#define IMP_BMP "SVBMP"
-#define IMP_SVMETAFILE "SVMETAFILE"
-#define IMP_WMF "SVWMF"
-#define IMP_EMF "SVEMF"
-#define IMP_SVSGF "SVSGF"
-#define IMP_SVSGV "SVSGV"
-#define IMP_GIF "SVIGIF"
-#define IMP_PNG "SVIPNG"
-#define IMP_JPEG "SVIJPEG"
-#define IMP_XBM "SVIXBM"
-#define IMP_XPM "SVIXPM"
-#define EXP_BMP "SVBMP"
-#define EXP_SVMETAFILE "SVMETAFILE"
-#define EXP_WMF "SVWMF"
-#define EXP_EMF "SVEMF"
-#define EXP_JPEG "SVEJPEG"
-#define EXP_SVG "SVESVG"
-#define EXP_PNG "SVEPNG"
-
-#define BMP_SHORTNAME "BMP"
-#define GIF_SHORTNAME "GIF"
-#define JPG_SHORTNAME "JPG"
-#define MET_SHORTNAME "MET"
-#define PCT_SHORTNAME "PCT"
-#define PNG_SHORTNAME "PNG"
-#define SVM_SHORTNAME "SVM"
-#define TIF_SHORTNAME "TIF"
-#define WMF_SHORTNAME "WMF"
-#define EMF_SHORTNAME "EMF"
+#define IMP_BMP "SVBMP"
+#define IMP_SVMETAFILE "SVMETAFILE"
+#define IMP_WMF "SVWMF"
+#define IMP_EMF "SVEMF"
+#define IMP_SVSGF "SVSGF"
+#define IMP_SVSGV "SVSGV"
+#define IMP_GIF "SVIGIF"
+#define IMP_PNG "SVIPNG"
+#define IMP_JPEG "SVIJPEG"
+#define IMP_XBM "SVIXBM"
+#define IMP_XPM "SVIXPM"
+#define EXP_BMP "SVBMP"
+#define EXP_SVMETAFILE "SVMETAFILE"
+#define EXP_WMF "SVWMF"
+#define EXP_EMF "SVEMF"
+#define EXP_JPEG "SVEJPEG"
+#define EXP_SVG "SVESVG"
+#define EXP_PNG "SVEPNG"
+
+#define BMP_SHORTNAME "BMP"
+#define GIF_SHORTNAME "GIF"
+#define JPG_SHORTNAME "JPG"
+#define MET_SHORTNAME "MET"
+#define PCT_SHORTNAME "PCT"
+#define PNG_SHORTNAME "PNG"
+#define SVM_SHORTNAME "SVM"
+#define TIF_SHORTNAME "TIF"
+#define WMF_SHORTNAME "WMF"
+#define EMF_SHORTNAME "EMF"
// ------------------------------------
// - Info-Klasse fuer alle von uns
-// unterstuetzten Grafik-Fileformate
+// unterstuetzten Grafik-Fileformate
// ------------------------------------
-#define GFF_NOT ( (USHORT)0x0000 )
-#define GFF_BMP ( (USHORT)0x0001 )
-#define GFF_GIF ( (USHORT)0x0002 )
-#define GFF_JPG ( (USHORT)0x0003 )
-#define GFF_PCD ( (USHORT)0x0004 )
-#define GFF_PCX ( (USHORT)0x0005 )
-#define GFF_PNG ( (USHORT)0x0006 )
-#define GFF_TIF ( (USHORT)0x0007 )
-#define GFF_XBM ( (USHORT)0x0008 )
-#define GFF_XPM ( (USHORT)0x0009 )
-#define GFF_PBM ( (USHORT)0x000a )
-#define GFF_PGM ( (USHORT)0x000b )
-#define GFF_PPM ( (USHORT)0x000c )
-#define GFF_RAS ( (USHORT)0x000d )
-#define GFF_TGA ( (USHORT)0x000e )
-#define GFF_PSD ( (USHORT)0x000f )
-#define GFF_EPS ( (USHORT)0x0010 )
-#define GFF_DXF ( (USHORT)0x00f1 )
-#define GFF_MET ( (USHORT)0x00f2 )
-#define GFF_PCT ( (USHORT)0x00f3 )
-#define GFF_SGF ( (USHORT)0x00f4 )
-#define GFF_SVM ( (USHORT)0x00f5 )
-#define GFF_WMF ( (USHORT)0x00f6 )
-#define GFF_SGV ( (USHORT)0x00f7 )
-#define GFF_EMF ( (USHORT)0x00f8 )
-#define GFF_XXX ( (USHORT)0xffff )
+#define GFF_NOT ( (USHORT)0x0000 )
+#define GFF_BMP ( (USHORT)0x0001 )
+#define GFF_GIF ( (USHORT)0x0002 )
+#define GFF_JPG ( (USHORT)0x0003 )
+#define GFF_PCD ( (USHORT)0x0004 )
+#define GFF_PCX ( (USHORT)0x0005 )
+#define GFF_PNG ( (USHORT)0x0006 )
+#define GFF_TIF ( (USHORT)0x0007 )
+#define GFF_XBM ( (USHORT)0x0008 )
+#define GFF_XPM ( (USHORT)0x0009 )
+#define GFF_PBM ( (USHORT)0x000a )
+#define GFF_PGM ( (USHORT)0x000b )
+#define GFF_PPM ( (USHORT)0x000c )
+#define GFF_RAS ( (USHORT)0x000d )
+#define GFF_TGA ( (USHORT)0x000e )
+#define GFF_PSD ( (USHORT)0x000f )
+#define GFF_EPS ( (USHORT)0x0010 )
+#define GFF_DXF ( (USHORT)0x00f1 )
+#define GFF_MET ( (USHORT)0x00f2 )
+#define GFF_PCT ( (USHORT)0x00f3 )
+#define GFF_SGF ( (USHORT)0x00f4 )
+#define GFF_SVM ( (USHORT)0x00f5 )
+#define GFF_WMF ( (USHORT)0x00f6 )
+#define GFF_SGV ( (USHORT)0x00f7 )
+#define GFF_EMF ( (USHORT)0x00f8 )
+#define GFF_XXX ( (USHORT)0xffff )
// ---------------
// - RequestInfo -
@@ -141,8 +141,8 @@ class Graphic;
struct RequestInfo
{
- BYTE* pBuffer;
- ULONG nRealBufferSize;
+ BYTE* pBuffer;
+ ULONG nRealBufferSize;
};
// ---------------------
@@ -151,62 +151,62 @@ struct RequestInfo
class SVT_DLLPUBLIC GraphicDescriptor
{
- SvStream* pFileStm;
- Link aReqLink;
- String aPathExt;
- Size aPixSize;
- Size aLogSize;
- SvStream* pMemStm;
- SvStream* pBaseStm;
- ULONG nStmPos;
- USHORT nBitsPerPixel;
- USHORT nPlanes;
- USHORT nFormat;
- BOOL bCompressed;
- BOOL bDataReady;
- BOOL bLinked;
- BOOL bLinkChanged;
- BOOL bWideSearch;
- BOOL bBaseStm;
- long nExtra1;
- long nExtra2;
-
- void ImpConstruct();
-
- BOOL ImpDetectBMP( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectGIF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPCD( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectTIF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectXBM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectXPM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPBM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPGM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPPM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectRAS( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectTGA( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPSD( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectEPS( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectDXF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectMET( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPCT( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectSGF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectSVM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectWMF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectSGV( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectEMF( SvStream& rStm, BOOL bExtendedInfo );
+ SvStream* pFileStm;
+ Link aReqLink;
+ String aPathExt;
+ Size aPixSize;
+ Size aLogSize;
+ SvStream* pMemStm;
+ SvStream* pBaseStm;
+ ULONG nStmPos;
+ USHORT nBitsPerPixel;
+ USHORT nPlanes;
+ USHORT nFormat;
+ BOOL bCompressed;
+ BOOL bDataReady;
+ BOOL bLinked;
+ BOOL bLinkChanged;
+ BOOL bWideSearch;
+ BOOL bBaseStm;
+ long nExtra1;
+ long nExtra2;
+
+ void ImpConstruct();
+
+ BOOL ImpDetectBMP( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectGIF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPCD( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectTIF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectXBM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectXPM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPBM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPGM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPPM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectRAS( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectTGA( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPSD( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectEPS( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectDXF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectMET( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPCT( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectSGF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectSVM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectWMF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectSGV( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectEMF( SvStream& rStm, BOOL bExtendedInfo );
GraphicDescriptor( const GraphicDescriptor& );
GraphicDescriptor& operator=( const GraphicDescriptor& );
protected:
- BOOL IsDataReady() const;
- BOOL IsWideSearch() const;
- SvStream& GetSearchStream() const;
- const String& GetPathExtension() const;
+ BOOL IsDataReady() const;
+ BOOL IsWideSearch() const;
+ SvStream& GetSearchStream() const;
+ const String& GetPathExtension() const;
public:
@@ -237,26 +237,26 @@ public:
// bei bExtendedInfo == TRUE werden soweit wie moeglich
// Daten aus dem jeweiligen FileHeader ermittelt
// ( Groesse, Farbtiefe usw. )
- virtual BOOL Detect( BOOL bExtendedInfo = FALSE );
+ virtual BOOL Detect( BOOL bExtendedInfo = FALSE );
// liefert das Fileformat nach erfolgreicher Detektion zurueck;
// wenn kein Format erkannt wurde, ist das Formart GFF_NOT
- USHORT GetFileFormat() const { return nFormat; }
+ USHORT GetFileFormat() const { return nFormat; }
// liefert die Pixel-Bildgroesse oder 0-Size zurueck
- const Size& GetSizePixel() const { return (Size&) aPixSize; }
+ const Size& GetSizePixel() const { return (Size&) aPixSize; }
// liefert die logische Bildgroesse in 1/100mm oder 0-Size zurueck
- const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; }
+ const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; }
// liefert die Bits/Pixel oder 0 zurueck
- USHORT GetBitsPerPixel() const { return nBitsPerPixel; }
+ USHORT GetBitsPerPixel() const { return nBitsPerPixel; }
// liefert die Anzahl der Planes oder 0 zurueck
- USHORT GetPlanes() const { return nPlanes; }
+ USHORT GetPlanes() const { return nPlanes; }
// zeigt an, ob das Bild evtl. komprimiert (wie auch immer) ist
- BOOL IsCompressed() const { return bCompressed; }
+ BOOL IsCompressed() const { return bCompressed; }
// setzt den LinkHdl zum Setzen der Bytes;
// der Handler muss einen Pointer auf die RequestInfo-Struktur
@@ -264,14 +264,14 @@ public:
// Daten muss im Handler ueber ::GetRequestedByteCount() erfragt werden;
// die tatsaechlich zur Verfuegung gestellte BYTE-Anzahl
// wird in der RequestInfo-Struktur gesetzt
- void SetRequestHdl( const Link& rRequestHdl );
+ void SetRequestHdl( const Link& rRequestHdl );
// gibt den LinkHdl zum Setzen der Bytes zurueck
- const Link& GetRequestHdl() const { return aReqLink; }
+ const Link& GetRequestHdl() const { return aReqLink; }
// muss im ReqHdl gerufen werden, um zu erfahren, wieviele
// Bytes _mindestens_ bereitgestellt werden muessen
- ULONG GetRequestedByteCount() const;
+ ULONG GetRequestedByteCount() const;
// gibt die Filternummer des Filters zurueck,
// der im GraphicFilter zum Lesen dieses Formats
@@ -285,12 +285,12 @@ public:
struct FilterErrorEx
{
- ULONG nFilterError;
- ULONG nStreamError;
- long nDummy1;
- long nDummy2;
- long nDummy3;
- long nDummy4;
+ ULONG nFilterError;
+ ULONG nStreamError;
+ long nDummy1;
+ long nDummy2;
+ long nDummy3;
+ long nDummy4;
FilterErrorEx() : nFilterError( 0UL ), nStreamError( 0UL ) {}
};
@@ -305,72 +305,72 @@ class SVT_DLLPUBLIC GraphicFilter
private:
- void ImplInit();
- ULONG ImplSetError( ULONG nError, const SvStream* pStm = NULL );
- sal_uInt16 ImpTestOrFindFormat( const String& rPath, SvStream& rStream, sal_uInt16& rFormat );
+ void ImplInit();
+ ULONG ImplSetError( ULONG nError, const SvStream* pStm = NULL );
+ sal_uInt16 ImpTestOrFindFormat( const String& rPath, SvStream& rStream, sal_uInt16& rFormat );
DECL_LINK( FilterCallback, ConvertData* pData );
protected:
- String aFilterPath;
- FilterConfigCache* pConfig;
- FilterErrorEx* pErrorEx;
- sal_Bool bAbort;
- sal_Bool bUseConfig;
- sal_Bool bDummy1;
- sal_Bool bDummy2;
- sal_Bool bDummy3;
- sal_Bool bDummy4;
- long nExpGraphHint;
- long nDummy2;
- void* pDummy1;
- void* pDummy2;
+ String aFilterPath;
+ FilterConfigCache* pConfig;
+ FilterErrorEx* pErrorEx;
+ sal_Bool bAbort;
+ sal_Bool bUseConfig;
+ sal_Bool bDummy1;
+ sal_Bool bDummy2;
+ sal_Bool bDummy3;
+ sal_Bool bDummy4;
+ long nExpGraphHint;
+ long nDummy2;
+ void* pDummy1;
+ void* pDummy2;
public:
GraphicFilter( sal_Bool bUseConfig = sal_True );
~GraphicFilter();
- void SetFilterPath( const String& rFilterPath ) { aFilterPath = rFilterPath; };
+ void SetFilterPath( const String& rFilterPath ) { aFilterPath = rFilterPath; };
USHORT GetImportFormatCount();
USHORT GetImportFormatNumber( const String& rFormatName );
- USHORT GetImportFormatNumberForMediaType( const String& rMediaType );
+ USHORT GetImportFormatNumberForMediaType( const String& rMediaType );
USHORT GetImportFormatNumberForShortName( const String& rShortName );
- sal_uInt16 GetImportFormatNumberForTypeName( const String& rType );
+ sal_uInt16 GetImportFormatNumberForTypeName( const String& rType );
String GetImportFormatName( USHORT nFormat );
String GetImportFormatTypeName( USHORT nFormat );
String GetImportFormatMediaType( USHORT nFormat );
String GetImportFormatShortName( USHORT nFormat );
- String GetImportOSFileType( USHORT nFormat );
- String GetImportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
- BOOL IsImportPixelFormat( USHORT nFormat );
+ String GetImportOSFileType( USHORT nFormat );
+ String GetImportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
+ BOOL IsImportPixelFormat( USHORT nFormat );
USHORT GetExportFormatCount();
USHORT GetExportFormatNumber( const String& rFormatName );
USHORT GetExportFormatNumberForMediaType( const String& rShortName );
USHORT GetExportFormatNumberForShortName( const String& rShortName );
- sal_uInt16 GetExportFormatNumberForTypeName( const String& rType );
+ sal_uInt16 GetExportFormatNumberForTypeName( const String& rType );
String GetExportFormatName( USHORT nFormat );
String GetExportFormatTypeName( USHORT nFormat );
String GetExportFormatMediaType( USHORT nFormat );
String GetExportFormatShortName( USHORT nFormat );
- String GetExportOSFileType( USHORT nFormat );
- String GetExportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
- BOOL IsExportPixelFormat( USHORT nFormat );
+ String GetExportOSFileType( USHORT nFormat );
+ String GetExportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
+ BOOL IsExportPixelFormat( USHORT nFormat );
- BOOL HasImportDialog( USHORT nFormat );
- BOOL DoImportDialog( Window* pWindow, USHORT nFormat );
+ BOOL HasImportDialog( USHORT nFormat );
+ BOOL DoImportDialog( Window* pWindow, USHORT nFormat );
- BOOL HasExportDialog( USHORT nFormat );
- BOOL DoExportDialog( Window* pWindow, USHORT nFormat );
- BOOL DoExportDialog( Window* pWindow, USHORT nFormat, FieldUnit eFieldUnit );
+ BOOL HasExportDialog( USHORT nFormat );
+ BOOL DoExportDialog( Window* pWindow, USHORT nFormat );
+ BOOL DoExportDialog( Window* pWindow, USHORT nFormat, FieldUnit eFieldUnit );
- USHORT ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
+ USHORT ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
USHORT nFormat = GRFILTER_FORMAT_DONTKNOW,
const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >* pFilterData = NULL );
- USHORT ExportGraphic( const Graphic& rGraphic, const String& rPath,
+ USHORT ExportGraphic( const Graphic& rGraphic, const String& rPath,
SvStream& rOStm, USHORT nFormat = GRFILTER_FORMAT_DONTKNOW,
const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >* pFilterData = NULL );
long GetExportGraphicHint() const { return nExpGraphHint; }
@@ -402,12 +402,12 @@ public:
void Abort() { bAbort = TRUE; }
- const FilterErrorEx& GetLastError() const;
- void ResetLastError();
+ const FilterErrorEx& GetLastError() const;
+ void ResetLastError();
const Link GetFilterCallback() const;
- static GraphicFilter* GetGraphicFilter();
- static int LoadGraphic( const String& rPath, const String& rFilter,
+ static GraphicFilter* GetGraphicFilter();
+ static int LoadGraphic( const String& rPath, const String& rFilter,
Graphic& rGraphic,
GraphicFilter* pFilter = NULL,
USHORT* pDeterminedFormat = NULL );
diff --git a/svtools/inc/svtools/fixedhyper.hxx b/svtools/inc/svtools/fixedhyper.hxx
index 6c34526dbb0b..633a67b81fa4 100644
--- a/svtools/inc/svtools/fixedhyper.hxx
+++ b/svtools/inc/svtools/fixedhyper.hxx
@@ -2,7 +2,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/svtools/inc/svtools/fltcall.hxx b/svtools/inc/svtools/fltcall.hxx
index aa973d629e79..09264b5a5993 100644
--- a/svtools/inc/svtools/fltcall.hxx
+++ b/svtools/inc/svtools/fltcall.hxx
@@ -2,7 +2,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,18 +42,18 @@ class Window;
struct FltCallDialogParameter
{
- Window* pWindow;
- ResMgr* pResMgr;
- FieldUnit eFieldUnit;
- String aFilterExt;
+ Window* pWindow;
+ ResMgr* pResMgr;
+ FieldUnit eFieldUnit;
+ String aFilterExt;
// In and Out PropertySequence for all filter dialogs
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aFilterData;
FltCallDialogParameter( Window* pW, ResMgr* pRsMgr, FieldUnit eFiUni ) :
- pWindow ( pW ),
- pResMgr ( pRsMgr ),
- eFieldUnit ( eFiUni ) {};
+ pWindow ( pW ),
+ pResMgr ( pRsMgr ),
+ eFieldUnit ( eFiUni ) {};
};
typedef BOOL (*PFilterCall)(SvStream & rStream, Graphic & rGraphic,
diff --git a/svtools/inc/svtools/fmtfield.hxx b/svtools/inc/svtools/fmtfield.hxx
index 406c827a7636..531b048e5321 100644
--- a/svtools/inc/svtools/fmtfield.hxx
+++ b/svtools/inc/svtools/fmtfield.hxx
@@ -2,7 +2,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 @@
#endif
typedef USHORT FORMAT_CHANGE_TYPE;
-#define FCT_KEYONLY 0x00 // only a new key was set
-#define FCT_FORMATTER 0x01 // a new formatter weas set, usually implies a change of the key, too
-#define FCT_PRECISION 0x02 // a new precision was set
-#define FCT_THOUSANDSSEP 0x03 // the thousands separator setting changed
+#define FCT_KEYONLY 0x00 // only a new key was set
+#define FCT_FORMATTER 0x01 // a new formatter weas set, usually implies a change of the key, too
+#define FCT_PRECISION 0x02 // a new precision was set
+#define FCT_THOUSANDSSEP 0x03 // the thousands separator setting changed
//------------------------------------------------------------------------------
class SVT_DLLPUBLIC FormattedField : public SpinField
@@ -60,8 +60,8 @@ private:
// einzige statische.
class StaticFormatter
{
- static SvNumberFormatter* s_cFormatter;
- static ULONG s_nReferences;
+ static SvNumberFormatter* s_cFormatter;
+ static ULONG s_nReferences;
public:
StaticFormatter();
~StaticFormatter();
@@ -71,44 +71,44 @@ private:
};
protected:
- String m_sLastValidText;
+ String m_sLastValidText;
// hat nichts mit dem current value zu tun, ist der letzte Text, der waehrend einer Eingabe als gueltig erkannt
// wurde (also durch CheckText geprueft, nicht durch den Formatter gejagt)
- Selection m_aLastSelection;
+ Selection m_aLastSelection;
- double m_dMinValue;
- double m_dMaxValue;
- BOOL m_bHasMin : 1;
- BOOL m_bHasMax : 1;
+ double m_dMinValue;
+ double m_dMaxValue;
+ BOOL m_bHasMin : 1;
+ BOOL m_bHasMax : 1;
- BOOL m_bStrictFormat : 1;
+ BOOL m_bStrictFormat : 1;
- BOOL m_bValueDirty : 1;
- BOOL m_bEnableEmptyField : 1;
- BOOL m_bAutoColor : 1;
- BOOL m_bEnableNaN : 1;
- double m_dCurrentValue;
- double m_dDefaultValue;
+ BOOL m_bValueDirty : 1;
+ BOOL m_bEnableEmptyField : 1;
+ BOOL m_bAutoColor : 1;
+ BOOL m_bEnableNaN : 1;
+ double m_dCurrentValue;
+ double m_dDefaultValue;
- ULONG m_nFormatKey;
- SvNumberFormatter* m_pFormatter;
- StaticFormatter m_aStaticFormatter;
+ ULONG m_nFormatKey;
+ SvNumberFormatter* m_pFormatter;
+ StaticFormatter m_aStaticFormatter;
- double m_dSpinSize;
- double m_dSpinFirst;
- double m_dSpinLast;
+ double m_dSpinSize;
+ double m_dSpinFirst;
+ double m_dSpinLast;
// es macht einen Unterschied, ob man bei eingestellter Textformatierung beim LostFocus den aktuellen String durch
// den Formatter jagt und das Ergebnis anzeigt oder erst aus dem String ein double macht, das formatiert und dann
// ausgibt
- BOOL m_bTreatAsNumber;
+ BOOL m_bTreatAsNumber;
// und mit den folgenden Members koennen wir das Ganze hier auch zur formatierten Text-Ausgabe benutzen ...
- String m_sCurrentTextValue;
- String m_sDefaultText;
+ String m_sCurrentTextValue;
+ String m_sDefaultText;
// die bei der letzten Ausgabe-Operation vom Formatter gelieferte Farbe (nicht dass wir sie beachten wuerden, aber
// man kann sie von aussen abfragen)
- Color* m_pLastOutputColor;
+ Color* m_pLastOutputColor;
bool m_bUseInputStringForFormatting;
@@ -118,63 +118,63 @@ public:
virtual ~FormattedField();
// Min-/Max-Verwaltung
- BOOL HasMinValue() const { return m_bHasMin; }
- void ClearMinValue() { m_bHasMin = FALSE; }
- void SetMinValue(double dMin);
- double GetMinValue() const { return m_dMinValue; }
+ BOOL HasMinValue() const { return m_bHasMin; }
+ void ClearMinValue() { m_bHasMin = FALSE; }
+ void SetMinValue(double dMin);
+ double GetMinValue() const { return m_dMinValue; }
- BOOL HasMaxValue() const { return m_bHasMax; }
- void ClearMaxValue() { m_bHasMax = FALSE; }
- void SetMaxValue(double dMax);
- double GetMaxValue() const { return m_dMaxValue; }
+ BOOL HasMaxValue() const { return m_bHasMax; }
+ void ClearMaxValue() { m_bHasMax = FALSE; }
+ void SetMaxValue(double dMax);
+ double GetMaxValue() const { return m_dMaxValue; }
// aktueller Wert
- virtual void SetValue(double dVal);
- virtual double GetValue();
+ virtual void SetValue(double dVal);
+ virtual double GetValue();
// die Standard-Implementierung jagt die Eingabe jeweils durch den Formatter, so einer vorhanden ist
- void GetColor() const;
+ void GetColor() const;
- void SetTextValue(const XubString& rText);
+ void SetTextValue(const XubString& rText);
// der String wird in ein double umgewandelt (durch den Formatter) und anschliessen in SetValue gesteckt
- BOOL IsEmptyFieldEnabled() const { return m_bEnableEmptyField; }
- void EnableEmptyField(BOOL bEnable);
+ BOOL IsEmptyFieldEnabled() const { return m_bEnableEmptyField; }
+ void EnableEmptyField(BOOL bEnable);
// wenn nicht enabled, wird beim Verlassen des Feldes der Text auf den letzten gueltigen zurueckgesetzt
- void SetDefaultValue(double dDefault) { m_dDefaultValue = dDefault; m_bValueDirty = TRUE; }
+ void SetDefaultValue(double dDefault) { m_dDefaultValue = dDefault; m_bValueDirty = TRUE; }
// wenn der aktuelle String ungueltig ist, liefert GetValue() diesen Default-Wert
- double GetDefaultValue() const { return m_dDefaultValue; }
+ double GetDefaultValue() const { return m_dDefaultValue; }
// Einstellungen fuer das Format
- ULONG GetFormatKey() const { return m_nFormatKey; }
- void SetFormatKey(ULONG nFormatKey);
+ ULONG GetFormatKey() const { return m_nFormatKey; }
+ void SetFormatKey(ULONG nFormatKey);
- SvNumberFormatter* GetFormatter() const { return m_pFormatter; }
- void SetFormatter(SvNumberFormatter* pFormatter, BOOL bResetFormat = TRUE);
+ SvNumberFormatter* GetFormatter() const { return m_pFormatter; }
+ void SetFormatter(SvNumberFormatter* pFormatter, BOOL bResetFormat = TRUE);
// wenn bResetFormat FALSE ist, wird versucht, das alte eingestellte Format mit 'hinueberzuretten' (teuer, wenn es sich nicht
// um eines der Standard-Formate handelt, die in allen Formattern gleich sind)
// wenn TRUE, wird als neuer FormatKey 0 gesetzt
- BOOL GetThousandsSep() const;
- void SetThousandsSep(BOOL _bUseSeparator);
+ BOOL GetThousandsSep() const;
+ void SetThousandsSep(BOOL _bUseSeparator);
// the is no check if the current format is numeric, so be cautious when calling these functions
- USHORT GetDecimalDigits() const;
- void SetDecimalDigits(USHORT _nPrecision);
+ USHORT GetDecimalDigits() const;
+ void SetDecimalDigits(USHORT _nPrecision);
// the is no check if the current format is numeric, so be cautious when calling these functions
- SvNumberFormatter* StandardFormatter() { return m_aStaticFormatter; }
+ SvNumberFormatter* StandardFormatter() { return m_aStaticFormatter; }
// Wenn man keinen eigenen Formatter explizit anlegen will, kann man diesen hier in SetFormatter stecken ...
// Das hier gelieferte Objekt wird allerdings zwischen allen Instanzen der Klasse geteilt (aus Zeit- und Platzgruenden),
// also ist etwas Vorsicht angebracht ...
- void GetFormat(XubString& rFormatString, LanguageType& eLang) const;
- BOOL SetFormat(const XubString& rFormatString, LanguageType eLang);
+ void GetFormat(XubString& rFormatString, LanguageType& eLang) const;
+ BOOL SetFormat(const XubString& rFormatString, LanguageType eLang);
// FALSE, wenn der FormatString nicht gesetzt werden konnte (also wahrscheinlich ungueltig ist)
- BOOL IsStrictFormat() const { return m_bStrictFormat; }
- void SetStrictFormat(BOOL bEnable) { m_bStrictFormat = bEnable; }
+ BOOL IsStrictFormat() const { return m_bStrictFormat; }
+ void SetStrictFormat(BOOL bEnable) { m_bStrictFormat = bEnable; }
// Formatueberpruefung waehrend der Eingabe ?
// Spin-Handling
@@ -185,50 +185,50 @@ public:
virtual void Last();
// Standard-Implementierung : aktuelles double setzen auf eingestellten first respektive last value
- void SetSpinSize(double dStep) { m_dSpinSize = dStep; }
- double GetSpinSize() const { return m_dSpinSize; }
+ void SetSpinSize(double dStep) { m_dSpinSize = dStep; }
+ double GetSpinSize() const { return m_dSpinSize; }
- void SetSpinFirst(double dFirst) { m_dSpinFirst = dFirst; }
- double GetSpinFirst() const { return m_dSpinFirst; }
+ void SetSpinFirst(double dFirst) { m_dSpinFirst = dFirst; }
+ double GetSpinFirst() const { return m_dSpinFirst; }
- void SetSpinLast(double dLast) { m_dSpinLast = dLast; }
- double GetSpinLast() const { return m_dSpinLast; }
+ void SetSpinLast(double dLast) { m_dSpinLast = dLast; }
+ double GetSpinLast() const { return m_dSpinLast; }
- BOOL TreatingAsNumber() const { return m_bTreatAsNumber; }
- void TreatAsNumber(BOOL bDoSo) { m_bTreatAsNumber = bDoSo; }
+ BOOL TreatingAsNumber() const { return m_bTreatAsNumber; }
+ void TreatAsNumber(BOOL bDoSo) { m_bTreatAsNumber = bDoSo; }
public:
virtual void SetText( const XubString& rStr );
virtual void SetText( const XubString& rStr, const Selection& rNewSelection );
- void SetValidateText(const XubString& rText, const String* pErrorText = NULL);
+ void SetValidateText(const XubString& rText, const String* pErrorText = NULL);
// die folgenden Methoden sind interesant, wenn m_bTreatAsNumber auf FALSE sitzt
- /** nehmen wir mal an, irgendjemand will das ganze schoene double-Handling gar nicht haben, sondern
+ /** nehmen wir mal an, irgendjemand will das ganze schoene double-Handling gar nicht haben, sondern
einfach den Text formatiert ausgeben ...
(der Text wird einfach nur durch den Formatter gejagt und dann gesetzt)
*/
void SetTextFormatted(const XubString& rText);
- String GetTextValue() const;
+ String GetTextValue() const;
- void SetDefaultText(const XubString& rDefault) { m_sDefaultText = rDefault; }
- String GetDefaultText() const { return m_sDefaultText; }
+ void SetDefaultText(const XubString& rDefault) { m_sDefaultText = rDefault; }
+ String GetDefaultText() const { return m_sDefaultText; }
// die bei der letzten Ausgabe-Operation vom Formatter gelieferte Farbe (Ausgabe-Operationen werden getriggert durch
// SetValue, SetTextValue, SetTextFormatted, also indirekt eventuell auch durch SetMin-/-MaxValue)
- Color* GetLastOutputColor() const { return m_pLastOutputColor; }
+ Color* GetLastOutputColor() const { return m_pLastOutputColor; }
/** reformats the current text. Interesting if the user entered some text in an "input format", and
this should be formatted in the "output format" (which may differ, e.g. by additional numeric
digits or such).
*/
- void Commit();
+ void Commit();
// enable automatic coloring. if set to TRUE, and the format the field is working with for any current value
// says that it has to be painted in a special color (e.g. a format where negative numbers should be printed
// red), the text is painted with that color automatically.
// The color used is the same as returned by GetLastOutputColor()
- void SetAutoColor(BOOL _bAutomatic);
- BOOL GetAutoColor() const { return m_bAutoColor; }
+ void SetAutoColor(BOOL _bAutomatic);
+ BOOL GetAutoColor() const { return m_bAutoColor; }
/** enables handling of not-a-number value.
@@ -271,8 +271,8 @@ protected:
void ImplSetFormatKey(ULONG nFormatKey);
// SetFormatKey without FormatChanged notification
- virtual SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; }
- SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); }
+ virtual SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; }
+ SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); }
long PreNotify(NotifyEvent& rNEvt);
@@ -284,9 +284,9 @@ class SVT_DLLPUBLIC DoubleNumericField : public FormattedField
{
protected:
#ifdef REGEXP_SUPPORT
- ::utl::TextSearch* m_pConformanceTester;
+ ::utl::TextSearch* m_pConformanceTester;
#else
- validation::NumberValidator* m_pNumberValidator;
+ validation::NumberValidator* m_pNumberValidator;
#endif
public:
@@ -321,25 +321,25 @@ protected:
};
//==============================================================================
-#define FCT_CURRENCY_SYMBOL 0x10
-#define FCT_CURRSYM_POSITION 0x20
+#define FCT_CURRENCY_SYMBOL 0x10
+#define FCT_CURRSYM_POSITION 0x20
//------------------------------------------------------------------------------
class DoubleCurrencyField : public FormattedField
{
- XubString m_sCurrencySymbol;
- BOOL m_bPrependCurrSym;
- BOOL m_bChangingFormat;
+ XubString m_sCurrencySymbol;
+ BOOL m_bPrependCurrSym;
+ BOOL m_bChangingFormat;
public:
DoubleCurrencyField(Window* pParent, WinBits nStyle = 0);
DoubleCurrencyField(Window* pParent, const ResId& rResId);
- XubString getCurrencySymbol() const { return m_sCurrencySymbol; }
- void setCurrencySymbol(const XubString& _sSymbol);
+ XubString getCurrencySymbol() const { return m_sCurrencySymbol; }
+ void setCurrencySymbol(const XubString& _sSymbol);
- BOOL getPrependCurrSym() const { return m_bPrependCurrSym; }
- void setPrependCurrSym(BOOL _bPrepend);
+ BOOL getPrependCurrSym() const { return m_bPrependCurrSym; }
+ void setPrependCurrSym(BOOL _bPrepend);
protected:
virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat);
diff --git a/svtools/inc/svtools/generictoolboxcontroller.hxx b/svtools/inc/svtools/generictoolboxcontroller.hxx
index 2e1aaa1a0cf1..166d4bfb475b 100644
--- a/svtools/inc/svtools/generictoolboxcontroller.hxx
+++ b/svtools/inc/svtools/generictoolboxcontroller.hxx
@@ -2,7 +2,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,7 +30,7 @@
#define __SVTOOLS_GENERICTOOLBOXCONTROLLER_HXX_
//_________________________________________________________________________________________________________________
-// includes of other projects
+// includes of other projects
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -44,7 +44,7 @@ struct ExecuteInfo;
class SVT_DLLPUBLIC GenericToolboxController : public svt::ToolboxController
{
public:
- GenericToolboxController( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager,
+ GenericToolboxController( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager,
const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame,
ToolBox* pToolBox,
USHORT nID,
@@ -55,12 +55,12 @@ class SVT_DLLPUBLIC GenericToolboxController : public svt::ToolboxController
virtual void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException );
// XToolbarController
- virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (::com::sun::star::uno::RuntimeException);
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
- DECL_STATIC_LINK( GenericToolboxController, ExecuteHdl_Impl, ExecuteInfo* );
+ DECL_STATIC_LINK( GenericToolboxController, ExecuteHdl_Impl, ExecuteInfo* );
private:
ToolBox* m_pToolbox;
diff --git a/svtools/inc/svtools/genericunodialog.hxx b/svtools/inc/svtools/genericunodialog.hxx
index fd4154816402..26fc3fc0946e 100644
--- a/svtools/inc/svtools/genericunodialog.hxx
+++ b/svtools/inc/svtools/genericunodialog.hxx
@@ -2,7 +2,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,20 +59,20 @@ namespace svt
//.........................................................................
//=========================================================================
-#define UNODIALOG_PROPERTY_ID_TITLE 1
-#define UNODIALOG_PROPERTY_ID_PARENT 2
+#define UNODIALOG_PROPERTY_ID_TITLE 1
+#define UNODIALOG_PROPERTY_ID_PARENT 2
-#define UNODIALOG_PROPERTY_TITLE "Title"
-#define UNODIALOG_PROPERTY_PARENT "ParentWindow"
+#define UNODIALOG_PROPERTY_TITLE "Title"
+#define UNODIALOG_PROPERTY_PARENT "ParentWindow"
//=========================================================================
- typedef ::cppu::WeakImplHelper3 < com::sun::star::ui::dialogs::XExecutableDialog
- , com::sun::star::lang::XServiceInfo
- , com::sun::star::lang::XInitialization
- > OGenericUnoDialogBase;
+ typedef ::cppu::WeakImplHelper3 < com::sun::star::ui::dialogs::XExecutableDialog
+ , com::sun::star::lang::XServiceInfo
+ , com::sun::star::lang::XInitialization
+ > OGenericUnoDialogBase;
- /** abstract base class for implementing UNO objects representing dialogs (<type scope="com.sun.star.awt">XDialog</type>)
+ /** abstract base class for implementing UNO objects representing dialogs (<type scope="com.sun.star.awt">XDialog</type>)
*/
class SVT_DLLPUBLIC OGenericUnoDialog
:public OGenericUnoDialogBase
@@ -80,19 +80,19 @@ namespace svt
,public ::comphelper::OPropertyContainer
{
private:
- ::osl::Mutex m_aExecutionMutex; /// acess safety for execute/cancel
+ ::osl::Mutex m_aExecutionMutex; /// acess safety for execute/cancel
protected:
- Dialog* m_pDialog; /// the dialog to execute
- sal_Bool m_bExecuting : 1; /// we're currently executing the dialog
- sal_Bool m_bCanceled : 1; /// endDialog was called while we were executing
- sal_Bool m_bTitleAmbiguous : 1; /// m_sTitle has not been set yet
+ Dialog* m_pDialog; /// the dialog to execute
+ sal_Bool m_bExecuting : 1; /// we're currently executing the dialog
+ sal_Bool m_bCanceled : 1; /// endDialog was called while we were executing
+ sal_Bool m_bTitleAmbiguous : 1; /// m_sTitle has not been set yet
bool m_bInitialized : 1; /// has "initialize" been called?
bool m_bNeedInitialization : 1; /// do we need to be initialized before any other API call is allowed?
// <properties>
- ::rtl::OUString m_sTitle; /// title of the dialog
- com::sun::star::uno::Reference<com::sun::star::awt::XWindow> m_xParent; /// parent window
+ ::rtl::OUString m_sTitle; /// title of the dialog
+ com::sun::star::uno::Reference<com::sun::star::awt::XWindow> m_xParent; /// parent window
// </properties>
::comphelper::ComponentContext m_aContext;
@@ -133,15 +133,15 @@ namespace svt
protected:
/** create the concret dialog instance. note that m_aMutex is not locked when this method get's called,
but the application-wide solar mutex is (to guard the not thread-safe ctor of the dialog).
- @param pParent the parent window for the new dialog
+ @param pParent the parent window for the new dialog
*/
- virtual Dialog* createDialog(Window* _pParent) = 0;
+ virtual Dialog* createDialog(Window* _pParent) = 0;
/// called to destroy the dialog used. the default implementation just deletes m_pDialog and resets it to NULL
virtual void destroyDialog();
- /** called after the dialog has been executed
- @param _nExecutionResult the execution result as returned by Dialog::Execute
+ /** called after the dialog has been executed
+ @param _nExecutionResult the execution result as returned by Dialog::Execute
*/
virtual void executedDialog(sal_Int16 /*_nExecutionResult*/) { }
@@ -188,7 +188,7 @@ namespace svt
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // _SVT_GENERICUNODIALOG_HXX_
diff --git a/svtools/inc/svtools/grfmgr.hxx b/svtools/inc/svtools/grfmgr.hxx
index 3eee508e5d70..dc833be1aa09 100644
--- a/svtools/inc/svtools/grfmgr.hxx
+++ b/svtools/inc/svtools/grfmgr.hxx
@@ -36,34 +36,34 @@
// - Defines -
// -----------
-#define GRFMGR_DRAW_NOTCACHED 0x00000000UL
-#define GRFMGR_DRAW_CACHED 0x00000001UL
-#define GRFMGR_DRAW_BILINEAR 0x00000002UL
-#define GRFMGR_DRAW_USE_DRAWMODE_SETTINGS 0x00000004UL
-#define GRFMGR_DRAW_SUBSTITUTE 0x00000008UL
-#define GRFMGR_DRAW_NO_SUBSTITUTE 0x00000010UL
-#define GRFMGR_DRAW_STANDARD (GRFMGR_DRAW_CACHED|GRFMGR_DRAW_BILINEAR)
+#define GRFMGR_DRAW_NOTCACHED 0x00000000UL
+#define GRFMGR_DRAW_CACHED 0x00000001UL
+#define GRFMGR_DRAW_BILINEAR 0x00000002UL
+#define GRFMGR_DRAW_USE_DRAWMODE_SETTINGS 0x00000004UL
+#define GRFMGR_DRAW_SUBSTITUTE 0x00000008UL
+#define GRFMGR_DRAW_NO_SUBSTITUTE 0x00000010UL
+#define GRFMGR_DRAW_STANDARD (GRFMGR_DRAW_CACHED|GRFMGR_DRAW_BILINEAR)
// --------------------
// - AutoSwap Defines -
// --------------------
-#define GRFMGR_AUTOSWAPSTREAM_LINK ((SvStream*)0x00000000UL)
-#define GRFMGR_AUTOSWAPSTREAM_LOADED ((SvStream*)0xfffffffdUL)
-#define GRFMGR_AUTOSWAPSTREAM_TEMP ((SvStream*)0xfffffffeUL)
-#define GRFMGR_AUTOSWAPSTREAM_NONE ((SvStream*)0xffffffffUL)
+#define GRFMGR_AUTOSWAPSTREAM_LINK ((SvStream*)0x00000000UL)
+#define GRFMGR_AUTOSWAPSTREAM_LOADED ((SvStream*)0xfffffffdUL)
+#define GRFMGR_AUTOSWAPSTREAM_TEMP ((SvStream*)0xfffffffeUL)
+#define GRFMGR_AUTOSWAPSTREAM_NONE ((SvStream*)0xffffffffUL)
// ----------------------
// - Adjustment Defines -
// ----------------------
-#define ADJUSTMENT_NONE 0x00000000UL
-#define ADJUSTMENT_DRAWMODE 0x00000001UL
-#define ADJUSTMENT_COLORS 0x00000002UL
-#define ADJUSTMENT_MIRROR 0x00000004UL
-#define ADJUSTMENT_ROTATE 0x00000008UL
-#define ADJUSTMENT_TRANSPARENCY 0x00000010UL
-#define ADJUSTMENT_ALL 0xFFFFFFFFUL
+#define ADJUSTMENT_NONE 0x00000000UL
+#define ADJUSTMENT_DRAWMODE 0x00000001UL
+#define ADJUSTMENT_COLORS 0x00000002UL
+#define ADJUSTMENT_MIRROR 0x00000004UL
+#define ADJUSTMENT_ROTATE 0x00000008UL
+#define ADJUSTMENT_TRANSPARENCY 0x00000010UL
+#define ADJUSTMENT_ALL 0xFFFFFFFFUL
// ---------
// - Enums -
@@ -97,87 +97,87 @@ class SVT_DLLPUBLIC GraphicAttr
{
private:
- long mnDummy1;
- long mnDummy2;
- double mfGamma;
- sal_uInt32 mnMirrFlags;
- long mnLeftCrop;
- long mnTopCrop;
- long mnRightCrop;
- long mnBottomCrop;
- USHORT mnRotate10;
- short mnContPercent;
- short mnLumPercent;
- short mnRPercent;
- short mnGPercent;
- short mnBPercent;
- BOOL mbInvert;
- BYTE mcTransparency;
- GraphicDrawMode meDrawMode;
-
- void* mpDummy;
+ long mnDummy1;
+ long mnDummy2;
+ double mfGamma;
+ sal_uInt32 mnMirrFlags;
+ long mnLeftCrop;
+ long mnTopCrop;
+ long mnRightCrop;
+ long mnBottomCrop;
+ USHORT mnRotate10;
+ short mnContPercent;
+ short mnLumPercent;
+ short mnRPercent;
+ short mnGPercent;
+ short mnBPercent;
+ BOOL mbInvert;
+ BYTE mcTransparency;
+ GraphicDrawMode meDrawMode;
+
+ void* mpDummy;
public:
GraphicAttr();
~GraphicAttr();
- BOOL operator==( const GraphicAttr& rAttr ) const;
- BOOL operator!=( const GraphicAttr& rAttr ) const { return !( *this == rAttr ); }
+ BOOL operator==( const GraphicAttr& rAttr ) const;
+ BOOL operator!=( const GraphicAttr& rAttr ) const { return !( *this == rAttr ); }
- void SetDrawMode( GraphicDrawMode eDrawMode ) { meDrawMode = eDrawMode; }
- GraphicDrawMode GetDrawMode() const { return meDrawMode; }
+ void SetDrawMode( GraphicDrawMode eDrawMode ) { meDrawMode = eDrawMode; }
+ GraphicDrawMode GetDrawMode() const { return meDrawMode; }
- void SetMirrorFlags( ULONG nMirrFlags ) { mnMirrFlags = nMirrFlags; }
- ULONG GetMirrorFlags() const { return mnMirrFlags; }
+ void SetMirrorFlags( ULONG nMirrFlags ) { mnMirrFlags = nMirrFlags; }
+ ULONG GetMirrorFlags() const { return mnMirrFlags; }
- void SetCrop( long nLeft_100TH_MM, long nTop_100TH_MM, long nRight_100TH_MM, long nBottom_100TH_MM )
+ void SetCrop( long nLeft_100TH_MM, long nTop_100TH_MM, long nRight_100TH_MM, long nBottom_100TH_MM )
{
mnLeftCrop = nLeft_100TH_MM; mnTopCrop = nTop_100TH_MM;
mnRightCrop = nRight_100TH_MM; mnBottomCrop = nBottom_100TH_MM;
}
- long GetLeftCrop() const { return mnLeftCrop; }
- long GetTopCrop() const { return mnTopCrop; }
- long GetRightCrop() const { return mnRightCrop; }
- long GetBottomCrop() const { return mnBottomCrop; }
+ long GetLeftCrop() const { return mnLeftCrop; }
+ long GetTopCrop() const { return mnTopCrop; }
+ long GetRightCrop() const { return mnRightCrop; }
+ long GetBottomCrop() const { return mnBottomCrop; }
- void SetRotation( USHORT nRotate10 ) { mnRotate10 = nRotate10; }
- USHORT GetRotation() const { return mnRotate10; }
+ void SetRotation( USHORT nRotate10 ) { mnRotate10 = nRotate10; }
+ USHORT GetRotation() const { return mnRotate10; }
- void SetLuminance( short nLuminancePercent ) { mnLumPercent = nLuminancePercent; }
- short GetLuminance() const { return mnLumPercent; }
+ void SetLuminance( short nLuminancePercent ) { mnLumPercent = nLuminancePercent; }
+ short GetLuminance() const { return mnLumPercent; }
- void SetContrast( short nContrastPercent ) { mnContPercent = nContrastPercent; }
- short GetContrast() const { return mnContPercent; }
+ void SetContrast( short nContrastPercent ) { mnContPercent = nContrastPercent; }
+ short GetContrast() const { return mnContPercent; }
- void SetChannelR( short nChannelRPercent ) { mnRPercent = nChannelRPercent; }
- short GetChannelR() const { return mnRPercent; }
+ void SetChannelR( short nChannelRPercent ) { mnRPercent = nChannelRPercent; }
+ short GetChannelR() const { return mnRPercent; }
- void SetChannelG( short nChannelGPercent ) { mnGPercent = nChannelGPercent; }
- short GetChannelG() const { return mnGPercent; }
+ void SetChannelG( short nChannelGPercent ) { mnGPercent = nChannelGPercent; }
+ short GetChannelG() const { return mnGPercent; }
- void SetChannelB( short nChannelBPercent ) { mnBPercent = nChannelBPercent; }
- short GetChannelB() const { return mnBPercent; }
+ void SetChannelB( short nChannelBPercent ) { mnBPercent = nChannelBPercent; }
+ short GetChannelB() const { return mnBPercent; }
- void SetGamma( double fGamma ) { mfGamma = fGamma; }
- double GetGamma() const { return mfGamma; }
+ void SetGamma( double fGamma ) { mfGamma = fGamma; }
+ double GetGamma() const { return mfGamma; }
- void SetInvert( BOOL bInvert ) { mbInvert = bInvert; }
- BOOL IsInvert() const { return mbInvert; }
+ void SetInvert( BOOL bInvert ) { mbInvert = bInvert; }
+ BOOL IsInvert() const { return mbInvert; }
- void SetTransparency( BYTE cTransparency ) { mcTransparency = cTransparency; }
- BYTE GetTransparency() const { return mcTransparency; }
+ void SetTransparency( BYTE cTransparency ) { mcTransparency = cTransparency; }
+ BYTE GetTransparency() const { return mcTransparency; }
- BOOL IsSpecialDrawMode() const { return( meDrawMode != GRAPHICDRAWMODE_STANDARD ); }
- BOOL IsMirrored() const { return( mnMirrFlags != 0UL ); }
- BOOL IsCropped() const
+ BOOL IsSpecialDrawMode() const { return( meDrawMode != GRAPHICDRAWMODE_STANDARD ); }
+ BOOL IsMirrored() const { return( mnMirrFlags != 0UL ); }
+ BOOL IsCropped() const
{
return( mnLeftCrop != 0 || mnTopCrop != 0 ||
mnRightCrop != 0 || mnBottomCrop != 0 );
}
- BOOL IsRotated() const { return( ( mnRotate10 % 3600 ) != 0 ); }
- BOOL IsTransparent() const { return( mcTransparency > 0 ); }
- BOOL IsAdjusted() const
+ BOOL IsRotated() const { return( ( mnRotate10 % 3600 ) != 0 ); }
+ BOOL IsTransparent() const { return( mcTransparency > 0 ); }
+ BOOL IsAdjusted() const
{
return( mnLumPercent != 0 || mnContPercent != 0 || mnRPercent != 0 ||
mnGPercent != 0 || mnBPercent != 0 || mfGamma != 1.0 || mbInvert );
@@ -197,40 +197,40 @@ class SVT_DLLPUBLIC GraphicObject : public SvDataCopyStream
private:
- static GraphicManager* mpGlobalMgr;
-
- Graphic maGraphic;
- GraphicAttr maAttr;
- Size maPrefSize;
- MapMode maPrefMapMode;
- ULONG mnSizeBytes;
- GraphicType meType;
- GraphicManager* mpMgr;
- String* mpLink;
- Link* mpSwapStreamHdl;
- String* mpUserData;
- Timer* mpSwapOutTimer;
- GrfSimpleCacheObj* mpSimpleCache;
+ static GraphicManager* mpGlobalMgr;
+
+ Graphic maGraphic;
+ GraphicAttr maAttr;
+ Size maPrefSize;
+ MapMode maPrefMapMode;
+ ULONG mnSizeBytes;
+ GraphicType meType;
+ GraphicManager* mpMgr;
+ String* mpLink;
+ Link* mpSwapStreamHdl;
+ String* mpUserData;
+ Timer* mpSwapOutTimer;
+ GrfSimpleCacheObj* mpSimpleCache;
ULONG mnAnimationLoopCount;
void* mpDummy1;
void* mpDummy2;
- BOOL mbAutoSwapped : 1;
- BOOL mbTransparent : 1;
- BOOL mbAnimated : 1;
- BOOL mbEPS : 1;
- BOOL mbIsInSwapIn : 1;
- BOOL mbIsInSwapOut : 1;
- BOOL mbAlpha : 1;
- BOOL mbDummyFlag8 : 1;
-
- void SVT_DLLPRIVATE ImplConstruct();
- void SVT_DLLPRIVATE ImplAssignGraphicData();
- void SVT_DLLPRIVATE ImplSetGraphicManager( const GraphicManager* pMgr,
+ BOOL mbAutoSwapped : 1;
+ BOOL mbTransparent : 1;
+ BOOL mbAnimated : 1;
+ BOOL mbEPS : 1;
+ BOOL mbIsInSwapIn : 1;
+ BOOL mbIsInSwapOut : 1;
+ BOOL mbAlpha : 1;
+ BOOL mbDummyFlag8 : 1;
+
+ void SVT_DLLPRIVATE ImplConstruct();
+ void SVT_DLLPRIVATE ImplAssignGraphicData();
+ void SVT_DLLPRIVATE ImplSetGraphicManager( const GraphicManager* pMgr,
const ByteString* pID = NULL,
const GraphicObject* pCopyObj = NULL );
- void SVT_DLLPRIVATE ImplAutoSwapIn();
- BOOL SVT_DLLPRIVATE ImplIsAutoSwapped() const { return mbAutoSwapped; }
- BOOL SVT_DLLPRIVATE ImplGetCropParams( OutputDevice* pOut, Point& rPt, Size& rSz, const GraphicAttr* pAttr,
+ void SVT_DLLPRIVATE ImplAutoSwapIn();
+ BOOL SVT_DLLPRIVATE ImplIsAutoSwapped() const { return mbAutoSwapped; }
+ BOOL SVT_DLLPRIVATE ImplGetCropParams( OutputDevice* pOut, Point& rPt, Size& rSz, const GraphicAttr* pAttr,
PolyPolygon& rClipPolyPoly, BOOL& bRectClipRegion ) const;
/** Render a given number of tiles in an optimized way
@@ -274,47 +274,47 @@ private:
@return true, if everything was successfully rendered.
*/
- bool SVT_DLLPRIVATE ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
+ bool SVT_DLLPRIVATE ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
int nNumTilesX, int nNumTilesY,
const Size& rTileSizePixel,
const GraphicAttr* pAttr, ULONG nFlags );
/// internally called by ImplRenderTempTile()
- bool SVT_DLLPRIVATE ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent, int nMSBFactor,
+ bool SVT_DLLPRIVATE ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent, int nMSBFactor,
int nNumOrigTilesX, int nNumOrigTilesY,
int nRemainderTilesX, int nRemainderTilesY,
const Size& rTileSizePixel, const GraphicAttr* pAttr,
ULONG nFlags, ImplTileInfo& rTileInfo );
- bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSizePixel,
+ bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSizePixel,
const Size& rOffset, const GraphicAttr* pAttr, ULONG nFlags, int nTileCacheSize1D );
- bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice& rOut, const Point& rPos,
+ bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice& rOut, const Point& rPos,
int nNumTilesX, int nNumTilesY,
const Size& rTileSize,
const GraphicAttr* pAttr, ULONG nFlags );
- void SVT_DLLPRIVATE ImplTransformBitmap( BitmapEx& rBmpEx,
+ void SVT_DLLPRIVATE ImplTransformBitmap( BitmapEx& rBmpEx,
const GraphicAttr& rAttr,
- const Size& rCropLeftTop,
- const Size& rCropRightBottom,
- const Rectangle& rCropRect,
- const Size& rDstSize,
- BOOL bEnlarge ) const;
+ const Size& rCropLeftTop,
+ const Size& rCropRightBottom,
+ const Rectangle& rCropRect,
+ const Size& rDstSize,
+ BOOL bEnlarge ) const;
DECL_LINK( ImplAutoSwapOutHdl, void* );
protected:
- virtual void GraphicManagerDestroyed();
- virtual SvStream* GetSwapStream() const;
+ virtual void GraphicManagerDestroyed();
+ virtual SvStream* GetSwapStream() const;
// !!! to be removed
- virtual ULONG GetReleaseFromCache() const;
+ virtual ULONG GetReleaseFromCache() const;
- virtual void Load( SvStream& );
- virtual void Save( SvStream& );
- virtual void Assign( const SvDataCopyStream& );
+ virtual void Load( SvStream& );
+ virtual void Save( SvStream& );
+ virtual void Assign( const SvDataCopyStream& );
public:
@@ -327,29 +327,29 @@ public:
GraphicObject( const ByteString& rUniqueID, const GraphicManager* pMgr = NULL );
~GraphicObject();
- GraphicObject& operator=( const GraphicObject& rCacheObj );
- BOOL operator==( const GraphicObject& rCacheObj ) const;
- BOOL operator!=( const GraphicObject& rCacheObj ) const { return !( *this == rCacheObj ); }
+ GraphicObject& operator=( const GraphicObject& rCacheObj );
+ BOOL operator==( const GraphicObject& rCacheObj ) const;
+ BOOL operator!=( const GraphicObject& rCacheObj ) const { return !( *this == rCacheObj ); }
- BOOL HasSwapStreamHdl() const { return( mpSwapStreamHdl != NULL && mpSwapStreamHdl->IsSet() ); }
- void SetSwapStreamHdl();
- void SetSwapStreamHdl( const Link& rHdl, const ULONG nSwapOutTimeout = 0UL );
- Link GetSwapStreamHdl() const;
- ULONG GetSwapOutTimeout() const { return( mpSwapOutTimer ? mpSwapOutTimer->GetTimeout() : 0 ); }
+ BOOL HasSwapStreamHdl() const { return( mpSwapStreamHdl != NULL && mpSwapStreamHdl->IsSet() ); }
+ void SetSwapStreamHdl();
+ void SetSwapStreamHdl( const Link& rHdl, const ULONG nSwapOutTimeout = 0UL );
+ Link GetSwapStreamHdl() const;
+ ULONG GetSwapOutTimeout() const { return( mpSwapOutTimer ? mpSwapOutTimer->GetTimeout() : 0 ); }
- void FireSwapInRequest();
- void FireSwapOutRequest();
+ void FireSwapInRequest();
+ void FireSwapOutRequest();
- void SetGraphicManager( const GraphicManager& rMgr );
- GraphicManager& GetGraphicManager() const { return *mpMgr; }
+ void SetGraphicManager( const GraphicManager& rMgr );
+ GraphicManager& GetGraphicManager() const { return *mpMgr; }
- BOOL IsCached( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL IsCached( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicAttr* pAttr = NULL, ULONG nFlags = GRFMGR_DRAW_STANDARD) const;
- void ReleaseFromCache();
+ void ReleaseFromCache();
- const Graphic& GetGraphic() const;
- void SetGraphic( const Graphic& rGraphic, const GraphicObject* pCopyObj = 0);
- void SetGraphic( const Graphic& rGraphic, const String& rLink );
+ const Graphic& GetGraphic() const;
+ void SetGraphic( const Graphic& rGraphic, const GraphicObject* pCopyObj = 0);
+ void SetGraphic( const Graphic& rGraphic, const String& rLink );
/** Get graphic transformed according to given attributes
@@ -376,51 +376,51 @@ public:
@return the readily transformed Graphic
*/
- Graphic GetTransformedGraphic( const Size& rDestSize, const MapMode& rDestMap, const GraphicAttr& rAttr ) const;
- Graphic GetTransformedGraphic( const GraphicAttr* pAttr = NULL ) const; // TODO: Change to Impl
-
- void SetAttr( const GraphicAttr& rAttr );
- const GraphicAttr& GetAttr() const { return maAttr; }
-
- BOOL HasLink() const { return( mpLink != NULL && mpLink->Len() > 0 ); }
- void SetLink();
- void SetLink( const String& rLink );
- String GetLink() const;
-
- BOOL HasUserData() const { return( mpUserData != NULL && mpUserData->Len() > 0 ); }
- void SetUserData();
- void SetUserData( const String& rUserData );
- String GetUserData() const;
-
- ByteString GetUniqueID() const;
-
- GraphicType GetType() const { return meType; }
- const Size& GetPrefSize() const { return maPrefSize; }
- const MapMode& GetPrefMapMode() const { return maPrefMapMode; }
- ULONG GetSizeBytes() const { return mnSizeBytes; }
- ULONG GetChecksum() const;
- BOOL IsTransparent() const { return mbTransparent; }
- BOOL IsAlpha() const { return mbAlpha; }
- BOOL IsAnimated() const { return mbAnimated; }
- BOOL IsEPS() const { return mbEPS; }
-
- void ResetAnimationLoopCount();
- List* GetAnimationInfoList() const;
- Link GetAnimationNotifyHdl() const { return maGraphic.GetAnimationNotifyHdl(); }
- void SetAnimationNotifyHdl( const Link& rLink );
-
- BOOL SwapOut();
- BOOL SwapOut( SvStream* pOStm );
- BOOL SwapIn();
- BOOL SwapIn( SvStream* pIStm );
-
- BOOL IsInSwapIn() const { return mbIsInSwapIn; }
- BOOL IsInSwapOut() const { return mbIsInSwapOut; }
- BOOL IsInSwap() const { return( mbIsInSwapOut || mbIsInSwapOut ); }
- BOOL IsSwappedOut() const { return( mbAutoSwapped || maGraphic.IsSwapOut() ); }
- void SetSwapState();
-
- BOOL Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ Graphic GetTransformedGraphic( const Size& rDestSize, const MapMode& rDestMap, const GraphicAttr& rAttr ) const;
+ Graphic GetTransformedGraphic( const GraphicAttr* pAttr = NULL ) const; // TODO: Change to Impl
+
+ void SetAttr( const GraphicAttr& rAttr );
+ const GraphicAttr& GetAttr() const { return maAttr; }
+
+ BOOL HasLink() const { return( mpLink != NULL && mpLink->Len() > 0 ); }
+ void SetLink();
+ void SetLink( const String& rLink );
+ String GetLink() const;
+
+ BOOL HasUserData() const { return( mpUserData != NULL && mpUserData->Len() > 0 ); }
+ void SetUserData();
+ void SetUserData( const String& rUserData );
+ String GetUserData() const;
+
+ ByteString GetUniqueID() const;
+
+ GraphicType GetType() const { return meType; }
+ const Size& GetPrefSize() const { return maPrefSize; }
+ const MapMode& GetPrefMapMode() const { return maPrefMapMode; }
+ ULONG GetSizeBytes() const { return mnSizeBytes; }
+ ULONG GetChecksum() const;
+ BOOL IsTransparent() const { return mbTransparent; }
+ BOOL IsAlpha() const { return mbAlpha; }
+ BOOL IsAnimated() const { return mbAnimated; }
+ BOOL IsEPS() const { return mbEPS; }
+
+ void ResetAnimationLoopCount();
+ List* GetAnimationInfoList() const;
+ Link GetAnimationNotifyHdl() const { return maGraphic.GetAnimationNotifyHdl(); }
+ void SetAnimationNotifyHdl( const Link& rLink );
+
+ BOOL SwapOut();
+ BOOL SwapOut( SvStream* pOStm );
+ BOOL SwapIn();
+ BOOL SwapIn( SvStream* pIStm );
+
+ BOOL IsInSwapIn() const { return mbIsInSwapIn; }
+ BOOL IsInSwapOut() const { return mbIsInSwapOut; }
+ BOOL IsInSwap() const { return( mbIsInSwapOut || mbIsInSwapOut ); }
+ BOOL IsSwappedOut() const { return( mbAutoSwapped || maGraphic.IsSwapOut() ); }
+ void SetSwapState();
+
+ BOOL Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicAttr* pAttr = NULL, ULONG nFlags = GRFMGR_DRAW_STANDARD );
BOOL DrawWithPDFHandling( OutputDevice& rOutDev,
@@ -461,18 +461,18 @@ public:
@return TRUE, if drawing completed successfully
*/
- BOOL DrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSize,
+ BOOL DrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSize,
const Size& rOffset, const GraphicAttr* pAttr = NULL,
ULONG nFlags = GRFMGR_DRAW_STANDARD, int nTileCacheSize1D=128 );
- BOOL StartAnimation( OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0L,
+ BOOL StartAnimation( OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0L,
const GraphicAttr* pAttr = NULL, ULONG nFlags = GRFMGR_DRAW_STANDARD,
OutputDevice* pFirstFrameOutDev = NULL );
- void StopAnimation( OutputDevice* pOut = NULL, long nExtraData = 0L );
+ void StopAnimation( OutputDevice* pOut = NULL, long nExtraData = 0L );
- friend SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj );
- friend SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj );
+ friend SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj );
+ friend SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj );
static GraphicObject CreateGraphicObjectFromURL( const ::rtl::OUString &rURL );
};
@@ -488,18 +488,18 @@ class SVT_DLLPUBLIC GraphicManager
private:
- List maObjList;
- GraphicCache* mpCache;
+ List maObjList;
+ GraphicCache* mpCache;
GraphicManager( const GraphicManager& ) {}
- GraphicManager& operator=( const GraphicManager& ) { return *this; }
+ GraphicManager& operator=( const GraphicManager& ) { return *this; }
- BOOL SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt,
+ BOOL SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt,
const Size& rSz, GraphicObject& rObj,
const GraphicAttr& rAttr,
const ULONG nFlags, BOOL& rCached );
- BOOL SVT_DLLPRIVATE ImplCreateOutput( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL SVT_DLLPRIVATE ImplCreateOutput( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const BitmapEx& rBmpEx, const GraphicAttr& rAttr,
const ULONG nFlags, BitmapEx* pBmpEx = NULL );
BOOL SVT_DLLPRIVATE ImplCreateOutput( OutputDevice* pOut,
@@ -507,63 +507,63 @@ private:
const GDIMetaFile& rMtf, const GraphicAttr& rAttr,
const ULONG nFlags, GDIMetaFile& rOutMtf, BitmapEx& rOutBmpEx );
- BOOL SVT_DLLPRIVATE ImplCreateScaled( const BitmapEx& rBmpEx,
+ BOOL SVT_DLLPRIVATE ImplCreateScaled( const BitmapEx& rBmpEx,
long* pMapIX, long* pMapFX, long* pMapIY, long* pMapFY,
long nStartX, long nEndX, long nStartY, long nEndY,
BitmapEx& rOutBmpEx );
- BOOL SVT_DLLPRIVATE ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
+ BOOL SVT_DLLPRIVATE ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
USHORT nRot10, const Size& rOutSzPix, const Size& rUntSzPix,
long* pMapIX, long* pMapFX, long* pMapIY, long* pMapFY,
long nStartX, long nEndX, long nStartY, long nEndY,
BitmapEx& rOutBmpEx );
- static void SVT_DLLPRIVATE ImplAdjust( BitmapEx& rBmpEx, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
- static void SVT_DLLPRIVATE ImplAdjust( GDIMetaFile& rMtf, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
- static void SVT_DLLPRIVATE ImplAdjust( Animation& rAnimation, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
+ static void SVT_DLLPRIVATE ImplAdjust( BitmapEx& rBmpEx, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
+ static void SVT_DLLPRIVATE ImplAdjust( GDIMetaFile& rMtf, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
+ static void SVT_DLLPRIVATE ImplAdjust( Animation& rAnimation, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
- static void SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ static void SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GDIMetaFile& rMtf, const GraphicAttr& rAttr );
// Only used by GraphicObject's Ctor's and Dtor's
- void SVT_DLLPRIVATE ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubstitute,
+ void SVT_DLLPRIVATE ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubstitute,
const ByteString* pID = NULL,
const GraphicObject* pCopyObj = NULL );
- void SVT_DLLPRIVATE ImplUnregisterObj( const GraphicObject& rObj );
- inline BOOL SVT_DLLPRIVATE ImplHasObjects() const { return( maObjList.Count() > 0UL ); }
+ void SVT_DLLPRIVATE ImplUnregisterObj( const GraphicObject& rObj );
+ inline BOOL SVT_DLLPRIVATE ImplHasObjects() const { return( maObjList.Count() > 0UL ); }
// Only used in swap case by GraphicObject
- void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedOut( const GraphicObject& rObj );
- BOOL SVT_DLLPRIVATE ImplFillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
- void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedIn( const GraphicObject& rObj );
+ void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedOut( const GraphicObject& rObj );
+ BOOL SVT_DLLPRIVATE ImplFillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
+ void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedIn( const GraphicObject& rObj );
- ByteString SVT_DLLPRIVATE ImplGetUniqueID( const GraphicObject& rObj ) const;
+ ByteString SVT_DLLPRIVATE ImplGetUniqueID( const GraphicObject& rObj ) const;
public:
GraphicManager( ULONG nCacheSize = 10000000UL, ULONG nMaxObjCacheSize = 2400000UL );
~GraphicManager();
- void SetMaxCacheSize( ULONG nNewCacheSize );
- ULONG GetMaxCacheSize() const;
+ void SetMaxCacheSize( ULONG nNewCacheSize );
+ ULONG GetMaxCacheSize() const;
- void SetMaxObjCacheSize( ULONG nNewMaxObjSize, BOOL bDestroyGreaterCached = FALSE );
- ULONG GetMaxObjCacheSize() const;
+ void SetMaxObjCacheSize( ULONG nNewMaxObjSize, BOOL bDestroyGreaterCached = FALSE );
+ ULONG GetMaxObjCacheSize() const;
- ULONG GetUsedCacheSize() const;
- ULONG GetFreeCacheSize() const;
+ ULONG GetUsedCacheSize() const;
+ ULONG GetFreeCacheSize() const;
void SetCacheTimeout( ULONG nTimeoutSeconds );
ULONG GetCacheTimeout() const;
- void ClearCache();
+ void ClearCache();
- void ReleaseFromCache( const GraphicObject& rObj );
+ void ReleaseFromCache( const GraphicObject& rObj );
- BOOL IsInCache( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL IsInCache( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr ) const;
- BOOL DrawObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL DrawObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
GraphicObject& rObj, const GraphicAttr& rAttr,
const ULONG nFlags, BOOL& rCached );
};
diff --git a/svtools/inc/svtools/headbar.hxx b/svtools/inc/svtools/headbar.hxx
index 5b994503d611..02a83e4f41f9 100644
--- a/svtools/inc/svtools/headbar.hxx
+++ b/svtools/inc/svtools/headbar.hxx
@@ -2,7 +2,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,72 +49,72 @@ dieses Control mit einer SvTabListBox zu verbinden.
WinBits
-WB_BORDER Oben und unten wird ein Border gezeichnet
-WB_BOTTOMBORDER Unten wird ein Border gezeichnet
-WB_BUTTONSTYLE Die Items sehen aus wie Buttons, ansonsten sind sie flach
-WB_3DLOOK 3D-Darstellung
-WB_DRAG Items koennen verschoben werden
-WB_STDHEADERBAR WB_BUTTONSTYLE | WB_BOTTOMBORDER
+WB_BORDER Oben und unten wird ein Border gezeichnet
+WB_BOTTOMBORDER Unten wird ein Border gezeichnet
+WB_BUTTONSTYLE Die Items sehen aus wie Buttons, ansonsten sind sie flach
+WB_3DLOOK 3D-Darstellung
+WB_DRAG Items koennen verschoben werden
+WB_STDHEADERBAR WB_BUTTONSTYLE | WB_BOTTOMBORDER
--------------------------------------------------------------------------
ItemBits
-HIB_LEFT Inhalt wird im Item linksbuendig ausgegeben
-HIB_CENTER Inhalt wird im Item zentriert ausgegeben
-HIB_RIGHT Inhalt wird im Item rechtsbuendig ausgegeben
-HIB_TOP Inhalt wird im Item an der oberen Kante ausgegeben
-HIB_VCENTER Inhalt wird im Item vertikal zentiert ausgegeben
-HIB_BOTTOM Inhalt wird im Item an der unteren Kante ausgegeben
-HIB_LEFTIMAGE Bei Text und Image, wird Image links vom Text ausgegeben
-HIB_RIGHTIMAGE Bei Text und Image, wird Image rechts vom Text ausgegeben
-HIB_FIXED Item laesst sich nicht in der Groesse aendern
-HIB_FIXEDPOS Item laesst sich nicht verschieben
-HIB_CLICKABLE Item laesst sich anklicken
+HIB_LEFT Inhalt wird im Item linksbuendig ausgegeben
+HIB_CENTER Inhalt wird im Item zentriert ausgegeben
+HIB_RIGHT Inhalt wird im Item rechtsbuendig ausgegeben
+HIB_TOP Inhalt wird im Item an der oberen Kante ausgegeben
+HIB_VCENTER Inhalt wird im Item vertikal zentiert ausgegeben
+HIB_BOTTOM Inhalt wird im Item an der unteren Kante ausgegeben
+HIB_LEFTIMAGE Bei Text und Image, wird Image links vom Text ausgegeben
+HIB_RIGHTIMAGE Bei Text und Image, wird Image rechts vom Text ausgegeben
+HIB_FIXED Item laesst sich nicht in der Groesse aendern
+HIB_FIXEDPOS Item laesst sich nicht verschieben
+HIB_CLICKABLE Item laesst sich anklicken
(Select-Handler wird erst bei MouseButtonUp gerufen)
-HIB_FLAT Item wird flach dargestellt, auch wenn WB_BUTTONSTYLE gesetzt ist
-HIB_DOWNARROW Es wird ein Pfeil nach unter hinter dem Text ausgegeben,
+HIB_FLAT Item wird flach dargestellt, auch wenn WB_BUTTONSTYLE gesetzt ist
+HIB_DOWNARROW Es wird ein Pfeil nach unter hinter dem Text ausgegeben,
welcher zum Beispiel angezeigt werden sollte, wenn nach
diesem Item eine dazugehoerende Liste absteigend sortiert
ist. Der Status des Pfeils kann mit SetItemBits()
gesetzt/zurueckgesetzt werden.
-HIB_UPARROW Es wird ein Pfeil nach oben hinter dem Text ausgegeben,
+HIB_UPARROW Es wird ein Pfeil nach oben hinter dem Text ausgegeben,
welcher zum Beispiel angezeigt werden sollte, wenn nach
diesem Item eine dazugehoerende Liste aufsteigend sortiert
ist.Der Status des Pfeils kann mit SetItemBits()
gesetzt/zurueckgesetzt werden.
-HIB_USERDRAW Zu diesem Item wird auch der UserDraw-Handler gerufen.
-HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
+HIB_USERDRAW Zu diesem Item wird auch der UserDraw-Handler gerufen.
+HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
--------------------------------------------------------------------------
Handler
-Select() Wird gerufen, wenn Item angeklickt wird. Wenn
+Select() Wird gerufen, wenn Item angeklickt wird. Wenn
HIB_CLICKABLE beim Item gesetzt ist und nicht HIB_FLAT,
wird der Handler erst im MouseButtonUp-Handler gerufen,
wenn die Maus ueber dem Item losgelassen wurde. Dann
verhaellt sich der Select-Handler wie bei einem
ToolBox-Button.
-DoubleClick() Dieser Handler wird gerufen, wenn ein Item
+DoubleClick() Dieser Handler wird gerufen, wenn ein Item
doppelt geklickt wird. Ob das Item oder der
Trenner angeklickt wurden, kann mit IsItemMode()
abgefragt werden. Wenn ein Trenner doppelt angeklickt
wird, sollte normalerweise die optimale Spaltenbreite
berechnet werden und diese gesetzt werden.
-StartDrag() Dieser Handler wird gerufen, wenn Draggen gestartet
+StartDrag() Dieser Handler wird gerufen, wenn Draggen gestartet
wird, bzw. wenn ein Item angeklickt wurde.
In diesem Handler sollte spaetestens mit SetDragSize()
die Groesse der Size-Linie gesetzt werden, wenn
IsItemMode() FALSE zurueckliefert.
-Drag() Dieser Handler wird gerufen, wenn gedraggt wird. Wenn
+Drag() Dieser Handler wird gerufen, wenn gedraggt wird. Wenn
mit SetDragSize() keine Groesse gesetzt wird, kann
dieser Handler dafuer benutzt werden, um die
Linie im angrenzenden Fenster selber zu zeichnen. Mit
GetDragPos() kann die aktuelle Drag-Position abgefragt
werden. Mit IsItemMode() sollte in diesem Fall
abgefragt werden, ob auch ein Trenner gedraggt wird.
-EndDrag() Dieser Handler wird gerufen, wenn ein Drag-Vorgang
+EndDrag() Dieser Handler wird gerufen, wenn ein Drag-Vorgang
beendet wurde. Wenn im EndDrag-Handler GetCurItemId()
0 zurueckliefert, wurde der Drag-Vorgang abgebrochen.
Wenn dies nicht der Fall ist und IsItemMode() FALSE
@@ -132,25 +132,25 @@ EndDrag() Dieser Handler wird gerufen, wenn ein Drag-Vorgang
Weitere Methoden, die fuer die Handler wichtig sind.
-GetCurItemId() Liefert die Id vom Item zurueck, fuer welches gerade
+GetCurItemId() Liefert die Id vom Item zurueck, fuer welches gerade
der Handler gerufen wurde. Liefert nur eine gueltige
Id in den Handlern Select(), DoubleClick(), StartDrag(),
Drag() und EndDrag(). Im EndDrag-Handler leifert
diese Methode die Id vom gedraggten Item zurueck oder
0, wenn der Drag-Vorgang abgebrochen wurde.
-GetItemDragPos() Liefert die Position zurueck, an der ein Item verschoben
+GetItemDragPos() Liefert die Position zurueck, an der ein Item verschoben
wird bzw. wurde. HEADERBAR_ITEM_NOTFOUND wird
zurueckgeliefert, wenn der Vorgang abgebrochen wurde
oder wenn kein ItemDrag aktiv ist.
-IsItemMode() Mit dieser Methode kann abgefragt werden, ob fuer ein
+IsItemMode() Mit dieser Methode kann abgefragt werden, ob fuer ein
Item oder einen Trenner der Handler gerufen wurde.
- TRUE - Handler wurde fuer das Item gerufen
- FALSE - Handler wurde fuer den Trenner gerufen
-IsItemDrag() Mit dieser Methode kann abgefragt werden, ob ein
+ TRUE - Handler wurde fuer das Item gerufen
+ FALSE - Handler wurde fuer den Trenner gerufen
+IsItemDrag() Mit dieser Methode kann abgefragt werden, ob ein
Item gedragt oder selektiert wurde.
- TRUE - Item wird verschoben
- FALSE - Item wird selektiert
-SetDragSize() Mit dieser Methode wird gesetzt, wir gross der
+ TRUE - Item wird verschoben
+ FALSE - Item wird selektiert
+SetDragSize() Mit dieser Methode wird gesetzt, wir gross der
Trennstrich sein soll, der vom Control gemalt wird.
Dies sollte so gross sein, wie das angrenzende Fenster
hoch ist. Die Hoehe vom HeaderBar wird automatisch
@@ -160,10 +160,10 @@ SetDragSize() Mit dieser Methode wird gesetzt, wir gross der
Weitere Methoden
-SetOffset() Mit dieser Methode wird der Offset gesetzt, ab dem
+SetOffset() Mit dieser Methode wird der Offset gesetzt, ab dem
die Items ausgegeben werden. Dies wird benoetigt,
wenn das dazugehoerige Fenster gescrollt wird.
-CalcWindowSizePixel() Mit dieser Methode kann man die Hoehe des Fensters
+CalcWindowSizePixel() Mit dieser Methode kann man die Hoehe des Fensters
berechnen, damit der Inhalt der Items ausgegeben
werden kann.
@@ -193,9 +193,9 @@ class ImplHeadItemList;
// - WinBits -
// -----------
-#define WB_BOTTOMBORDER ((WinBits)0x0400)
-#define WB_BUTTONSTYLE ((WinBits)0x0800)
-#define WB_STDHEADERBAR (WB_BUTTONSTYLE | WB_BOTTOMBORDER)
+#define WB_BOTTOMBORDER ((WinBits)0x0400)
+#define WB_BUTTONSTYLE ((WinBits)0x0800)
+#define WB_STDHEADERBAR (WB_BUTTONSTYLE | WB_BOTTOMBORDER)
// ---------------------
// - HeaderBarItemBits -
@@ -207,32 +207,32 @@ typedef USHORT HeaderBarItemBits;
// - Bits fuer HeaderBarItems -
// ----------------------------
-#define HIB_LEFT ((HeaderBarItemBits)0x0001)
-#define HIB_CENTER ((HeaderBarItemBits)0x0002)
-#define HIB_RIGHT ((HeaderBarItemBits)0x0004)
-#define HIB_TOP ((HeaderBarItemBits)0x0008)
-#define HIB_VCENTER ((HeaderBarItemBits)0x0010)
-#define HIB_BOTTOM ((HeaderBarItemBits)0x0020)
-#define HIB_LEFTIMAGE ((HeaderBarItemBits)0x0040)
-#define HIB_RIGHTIMAGE ((HeaderBarItemBits)0x0080)
-#define HIB_FIXED ((HeaderBarItemBits)0x0100)
-#define HIB_FIXEDPOS ((HeaderBarItemBits)0x0200)
-#define HIB_CLICKABLE ((HeaderBarItemBits)0x0400)
-#define HIB_FLAT ((HeaderBarItemBits)0x0800)
-#define HIB_DOWNARROW ((HeaderBarItemBits)0x1000)
-#define HIB_UPARROW ((HeaderBarItemBits)0x2000)
-#define HIB_USERDRAW ((HeaderBarItemBits)0x4000)
-#define HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
+#define HIB_LEFT ((HeaderBarItemBits)0x0001)
+#define HIB_CENTER ((HeaderBarItemBits)0x0002)
+#define HIB_RIGHT ((HeaderBarItemBits)0x0004)
+#define HIB_TOP ((HeaderBarItemBits)0x0008)
+#define HIB_VCENTER ((HeaderBarItemBits)0x0010)
+#define HIB_BOTTOM ((HeaderBarItemBits)0x0020)
+#define HIB_LEFTIMAGE ((HeaderBarItemBits)0x0040)
+#define HIB_RIGHTIMAGE ((HeaderBarItemBits)0x0080)
+#define HIB_FIXED ((HeaderBarItemBits)0x0100)
+#define HIB_FIXEDPOS ((HeaderBarItemBits)0x0200)
+#define HIB_CLICKABLE ((HeaderBarItemBits)0x0400)
+#define HIB_FLAT ((HeaderBarItemBits)0x0800)
+#define HIB_DOWNARROW ((HeaderBarItemBits)0x1000)
+#define HIB_UPARROW ((HeaderBarItemBits)0x2000)
+#define HIB_USERDRAW ((HeaderBarItemBits)0x4000)
+#define HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
// -------------------
// - HeaderBar-Types -
// -------------------
-#define HEADERBAR_APPEND ((USHORT)0xFFFF)
-#define HEADERBAR_ITEM_NOTFOUND ((USHORT)0xFFFF)
-#define HEADERBAR_FULLSIZE ((long)1000000000)
+#define HEADERBAR_APPEND ((USHORT)0xFFFF)
+#define HEADERBAR_ITEM_NOTFOUND ((USHORT)0xFFFF)
+#define HEADERBAR_FULLSIZE ((long)1000000000)
-#define HEADERBAR_TEXTOFF 2
+#define HEADERBAR_TEXTOFF 2
// -------------
// - HeaderBar -
@@ -241,30 +241,30 @@ typedef USHORT HeaderBarItemBits;
class SVT_DLLPUBLIC HeaderBar : public Window
{
private:
- ImplHeadItemList* mpItemList;
- long mnBorderOff1;
- long mnBorderOff2;
- long mnOffset;
- long mnDX;
- long mnDY;
- long mnDragSize;
- long mnStartPos;
- long mnDragPos;
- long mnMouseOff;
- USHORT mnCurItemId;
- USHORT mnItemDragPos;
- BOOL mbDragable;
- BOOL mbDrag;
- BOOL mbItemDrag;
- BOOL mbOutDrag;
- BOOL mbButtonStyle;
- BOOL mbItemMode;
- Link maStartDragHdl;
- Link maDragHdl;
- Link maEndDragHdl;
- Link maSelectHdl;
- Link maDoubleClickHdl;
- Link maCreateAccessibleHdl;
+ ImplHeadItemList* mpItemList;
+ long mnBorderOff1;
+ long mnBorderOff2;
+ long mnOffset;
+ long mnDX;
+ long mnDY;
+ long mnDragSize;
+ long mnStartPos;
+ long mnDragPos;
+ long mnMouseOff;
+ USHORT mnCurItemId;
+ USHORT mnItemDragPos;
+ BOOL mbDragable;
+ BOOL mbDrag;
+ BOOL mbItemDrag;
+ BOOL mbOutDrag;
+ BOOL mbButtonStyle;
+ BOOL mbItemMode;
+ Link maStartDragHdl;
+ Link maDragHdl;
+ Link maEndDragHdl;
+ Link maSelectHdl;
+ Link maDoubleClickHdl;
+ Link maCreateAccessibleHdl;
::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
@@ -272,26 +272,26 @@ private:
#ifdef _SV_HEADBAR_CXX
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
- SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- SVT_DLLPRIVATE long ImplGetItemPos( USHORT nPos ) const;
- SVT_DLLPRIVATE Rectangle ImplGetItemRect( USHORT nPos ) const;
+ SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
+ SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ SVT_DLLPRIVATE long ImplGetItemPos( USHORT nPos ) const;
+ SVT_DLLPRIVATE Rectangle ImplGetItemRect( USHORT nPos ) const;
using Window::ImplHitTest;
- SVT_DLLPRIVATE USHORT ImplHitTest( const Point& rPos, long& nMouseOff, USHORT& nPos ) const;
- SVT_DLLPRIVATE void ImplInvertDrag( USHORT nStartPos, USHORT nEndPos );
- SVT_DLLPRIVATE void ImplDrawItem( OutputDevice* pDev,
+ SVT_DLLPRIVATE USHORT ImplHitTest( const Point& rPos, long& nMouseOff, USHORT& nPos ) const;
+ SVT_DLLPRIVATE void ImplInvertDrag( USHORT nStartPos, USHORT nEndPos );
+ SVT_DLLPRIVATE void ImplDrawItem( OutputDevice* pDev,
USHORT nPos, BOOL bHigh, BOOL bDrag,
const Rectangle& rItemRect,
const Rectangle* pRect,
ULONG nFlags );
- SVT_DLLPRIVATE void ImplDrawItem( USHORT nPos, BOOL bHigh = FALSE,
+ SVT_DLLPRIVATE void ImplDrawItem( USHORT nPos, BOOL bHigh = FALSE,
BOOL bDrag = FALSE,
const Rectangle* pRect = NULL );
- SVT_DLLPRIVATE void ImplUpdate( USHORT nPos,
+ SVT_DLLPRIVATE void ImplUpdate( USHORT nPos,
BOOL bEnd = FALSE, BOOL bDirect = FALSE );
- SVT_DLLPRIVATE void ImplStartDrag( const Point& rPos, BOOL bCommand );
- SVT_DLLPRIVATE void ImplDrag( const Point& rPos );
- SVT_DLLPRIVATE void ImplEndDrag( BOOL bCancel );
+ SVT_DLLPRIVATE void ImplStartDrag( const Point& rPos, BOOL bCommand );
+ SVT_DLLPRIVATE void ImplDrag( const Point& rPos );
+ SVT_DLLPRIVATE void ImplEndDrag( BOOL bCancel );
#endif
public:
@@ -299,99 +299,99 @@ public:
HeaderBar( Window* pParent, const ResId& rResId );
~HeaderBar();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- virtual void Resize();
- virtual void Command( const CommandEvent& rCEvt );
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
- virtual void StartDrag();
- virtual void Drag();
- virtual void EndDrag();
- virtual void Select();
- virtual void DoubleClick();
-
- void InsertItem( USHORT nItemId, const Image& rImage,
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Resize();
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ virtual void StartDrag();
+ virtual void Drag();
+ virtual void EndDrag();
+ virtual void Select();
+ virtual void DoubleClick();
+
+ void InsertItem( USHORT nItemId, const Image& rImage,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertItem( USHORT nItemId, const XubString& rText,
+ void InsertItem( USHORT nItemId, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
const Image& rImage, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void RemoveItem( USHORT nItemId );
- void MoveItem( USHORT nItemId, USHORT nNewPos );
- void Clear();
-
- void SetOffset( long nNewOffset = 0 );
- long GetOffset() const { return mnOffset; }
- inline void SetDragSize( long nNewSize = 0 ) { mnDragSize = nNewSize; }
- long GetDragSize() const { return mnDragSize; }
-
- USHORT GetItemCount() const;
- USHORT GetItemPos( USHORT nItemId ) const;
- USHORT GetItemId( USHORT nPos ) const;
- USHORT GetItemId( const Point& rPos ) const;
- Rectangle GetItemRect( USHORT nItemId ) const;
- USHORT GetCurItemId() const { return mnCurItemId; }
- long GetDragPos() const { return mnDragPos; }
- USHORT GetItemDragPos() const { return mnItemDragPos; }
- BOOL IsItemMode() const { return mbItemMode; }
- BOOL IsItemDrag() const { return mbItemDrag; }
-
- void SetItemSize( USHORT nItemId, long nNewSize );
- long GetItemSize( USHORT nItemId ) const;
- void SetItemBits( USHORT nItemId, HeaderBarItemBits nNewBits );
- HeaderBarItemBits GetItemBits( USHORT nItemId ) const;
- void SetItemData( USHORT nItemId, void* pNewData );
- void* GetItemData( USHORT nItemId ) const;
-
- void SetItemImage( USHORT nItemId, const Image& rImage );
- Image GetItemImage( USHORT nItemId ) const;
- void SetItemText( USHORT nItemId, const XubString& rText );
- XubString GetItemText( USHORT nItemId ) const;
-
- void SetHelpText( USHORT nItemId, const XubString& rText );
- XubString GetHelpText( USHORT nItemId ) const;
- void SetHelpId( USHORT nItemId, ULONG nHelpId );
- ULONG GetHelpId( USHORT nItemId ) const;
-
- Size CalcWindowSizePixel() const;
-
- inline void SetHelpText( const String& rText ) { Window::SetHelpText( rText ); }
- inline const String& GetHelpText() const { return Window::GetHelpText(); }
- inline void SetHelpId( ULONG nId ) { Window::SetHelpId( nId ); }
- inline ULONG GetHelpId() const { return Window::GetHelpId(); }
-
- inline void SetStartDragHdl( const Link& rLink ) { maStartDragHdl = rLink; }
- inline const Link& GetStartDragHdl() const { return maStartDragHdl; }
- inline void SetDragHdl( const Link& rLink ) { maDragHdl = rLink; }
- inline const Link& GetDragHdl() const { return maDragHdl; }
- inline void SetEndDragHdl( const Link& rLink ) { maEndDragHdl = rLink; }
- inline const Link& GetEndDragHdl() const { return maEndDragHdl; }
- inline void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- inline const Link& GetSelectHdl() const { return maSelectHdl; }
- inline void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- inline const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- inline void SetCreateAccessibleHdl( const Link& rLink ) { maCreateAccessibleHdl = rLink; }
- inline const Link& GetCreateAccessibleHdl() const { return maCreateAccessibleHdl; }
-
- inline BOOL IsDragable() const { return mbDragable; }
+ void RemoveItem( USHORT nItemId );
+ void MoveItem( USHORT nItemId, USHORT nNewPos );
+ void Clear();
+
+ void SetOffset( long nNewOffset = 0 );
+ long GetOffset() const { return mnOffset; }
+ inline void SetDragSize( long nNewSize = 0 ) { mnDragSize = nNewSize; }
+ long GetDragSize() const { return mnDragSize; }
+
+ USHORT GetItemCount() const;
+ USHORT GetItemPos( USHORT nItemId ) const;
+ USHORT GetItemId( USHORT nPos ) const;
+ USHORT GetItemId( const Point& rPos ) const;
+ Rectangle GetItemRect( USHORT nItemId ) const;
+ USHORT GetCurItemId() const { return mnCurItemId; }
+ long GetDragPos() const { return mnDragPos; }
+ USHORT GetItemDragPos() const { return mnItemDragPos; }
+ BOOL IsItemMode() const { return mbItemMode; }
+ BOOL IsItemDrag() const { return mbItemDrag; }
+
+ void SetItemSize( USHORT nItemId, long nNewSize );
+ long GetItemSize( USHORT nItemId ) const;
+ void SetItemBits( USHORT nItemId, HeaderBarItemBits nNewBits );
+ HeaderBarItemBits GetItemBits( USHORT nItemId ) const;
+ void SetItemData( USHORT nItemId, void* pNewData );
+ void* GetItemData( USHORT nItemId ) const;
+
+ void SetItemImage( USHORT nItemId, const Image& rImage );
+ Image GetItemImage( USHORT nItemId ) const;
+ void SetItemText( USHORT nItemId, const XubString& rText );
+ XubString GetItemText( USHORT nItemId ) const;
+
+ void SetHelpText( USHORT nItemId, const XubString& rText );
+ XubString GetHelpText( USHORT nItemId ) const;
+ void SetHelpId( USHORT nItemId, ULONG nHelpId );
+ ULONG GetHelpId( USHORT nItemId ) const;
+
+ Size CalcWindowSizePixel() const;
+
+ inline void SetHelpText( const String& rText ) { Window::SetHelpText( rText ); }
+ inline const String& GetHelpText() const { return Window::GetHelpText(); }
+ inline void SetHelpId( ULONG nId ) { Window::SetHelpId( nId ); }
+ inline ULONG GetHelpId() const { return Window::GetHelpId(); }
+
+ inline void SetStartDragHdl( const Link& rLink ) { maStartDragHdl = rLink; }
+ inline const Link& GetStartDragHdl() const { return maStartDragHdl; }
+ inline void SetDragHdl( const Link& rLink ) { maDragHdl = rLink; }
+ inline const Link& GetDragHdl() const { return maDragHdl; }
+ inline void SetEndDragHdl( const Link& rLink ) { maEndDragHdl = rLink; }
+ inline const Link& GetEndDragHdl() const { return maEndDragHdl; }
+ inline void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ inline const Link& GetSelectHdl() const { return maSelectHdl; }
+ inline void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ inline const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ inline void SetCreateAccessibleHdl( const Link& rLink ) { maCreateAccessibleHdl = rLink; }
+ inline const Link& GetCreateAccessibleHdl() const { return maCreateAccessibleHdl; }
+
+ inline BOOL IsDragable() const { return mbDragable; }
/** Creates and returns the accessible object of the header bar. */
virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessible > CreateAccessible();
+ ::com::sun::star::accessibility::XAccessible > CreateAccessible();
void SetAccessible( ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > );
};
-#endif // _HEADBAR_HXX
+#endif // _HEADBAR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/helpid.hrc b/svtools/inc/svtools/helpid.hrc
index 1ffb7a99fb32..8f4c7329df9b 100644
--- a/svtools/inc/svtools/helpid.hrc
+++ b/svtools/inc/svtools/helpid.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,42 +34,42 @@
// Help-Ids --------------------------------------------------------------
-#define HID_FILEDLG_OPENDLG (HID_SVTOOLS_START + 0)
-#define HID_FILEDLG_PATHDLG (HID_SVTOOLS_START + 1)
-#define HID_FILEDLG_DIR (HID_SVTOOLS_START + 2)
-#define HID_FILEDLG_EDIT (HID_SVTOOLS_START + 3)
-#define HID_FILEDLG_DIRS (HID_SVTOOLS_START + 4)
-#define HID_FILEDLG_DRIVE (HID_SVTOOLS_START + 5)
-#define HID_FILEDLG_DRIVES (HID_SVTOOLS_START + 6)
-#define HID_FILEDLG_NEWDIR (HID_SVTOOLS_START + 7)
-#define HID_FILEDLG_HOME (HID_SVTOOLS_START + 8)
-#define HID_FILEDLG_FILE (HID_SVTOOLS_START + 9)
-#define HID_FILEDLG_FILES (HID_SVTOOLS_START + 10)
-#define HID_FILEDLG_PATH (HID_SVTOOLS_START + 11)
-#define HID_FILEDLG_TYPE (HID_SVTOOLS_START + 12)
-#define HID_FILEDLG_TYPES (HID_SVTOOLS_START + 13)
+#define HID_FILEDLG_OPENDLG (HID_SVTOOLS_START + 0)
+#define HID_FILEDLG_PATHDLG (HID_SVTOOLS_START + 1)
+#define HID_FILEDLG_DIR (HID_SVTOOLS_START + 2)
+#define HID_FILEDLG_EDIT (HID_SVTOOLS_START + 3)
+#define HID_FILEDLG_DIRS (HID_SVTOOLS_START + 4)
+#define HID_FILEDLG_DRIVE (HID_SVTOOLS_START + 5)
+#define HID_FILEDLG_DRIVES (HID_SVTOOLS_START + 6)
+#define HID_FILEDLG_NEWDIR (HID_SVTOOLS_START + 7)
+#define HID_FILEDLG_HOME (HID_SVTOOLS_START + 8)
+#define HID_FILEDLG_FILE (HID_SVTOOLS_START + 9)
+#define HID_FILEDLG_FILES (HID_SVTOOLS_START + 10)
+#define HID_FILEDLG_PATH (HID_SVTOOLS_START + 11)
+#define HID_FILEDLG_TYPE (HID_SVTOOLS_START + 12)
+#define HID_FILEDLG_TYPES (HID_SVTOOLS_START + 13)
// HelpID's fuer die Textkomponente
-#define HID_TEXTCPNT_OPEN_LINK (HID_SVTOOLS_START + 14)
-#define HID_TEXTCPNT_OPEN_LINK_NEW (HID_SVTOOLS_START + 15)
-#define HID_TEXTCPNT_DOWNLOAD (HID_SVTOOLS_START + 16)
-#define HID_TEXTCPNT_ADD_BOOKMARK (HID_SVTOOLS_START + 17)
-#define HID_TEXTCPNT_COPY_LINK (HID_SVTOOLS_START + 18)
+#define HID_TEXTCPNT_OPEN_LINK (HID_SVTOOLS_START + 14)
+#define HID_TEXTCPNT_OPEN_LINK_NEW (HID_SVTOOLS_START + 15)
+#define HID_TEXTCPNT_DOWNLOAD (HID_SVTOOLS_START + 16)
+#define HID_TEXTCPNT_ADD_BOOKMARK (HID_SVTOOLS_START + 17)
+#define HID_TEXTCPNT_COPY_LINK (HID_SVTOOLS_START + 18)
// HelpID's fuer RegisterDialog
-#define HID_LIMITED_DIALOG (HID_SVTOOLS_START + 20)
+#define HID_LIMITED_DIALOG (HID_SVTOOLS_START + 20)
// Help ids of template dialog
-#define HID_TEMPLATEDLG_DIALOG (HID_SVTOOLS_START + 21)
-#define HID_TEMPLATEDLG_ICONCTRL (HID_SVTOOLS_START + 22)
-#define HID_TEMPLATEDLG_FILEVIEW (HID_SVTOOLS_START + 23)
-#define HID_TEMPLATEDLG_TB_BACK (HID_SVTOOLS_START + 24)
-#define HID_TEMPLATEDLG_TB_PREV (HID_SVTOOLS_START + 25)
-#define HID_TEMPLATEDLG_TB_PRINT (HID_SVTOOLS_START + 26)
-#define HID_TEMPLATEDLG_TB_DOCINFO (HID_SVTOOLS_START + 27)
-#define HID_TEMPLATEDLG_TB_PREVIEW (HID_SVTOOLS_START + 28)
+#define HID_TEMPLATEDLG_DIALOG (HID_SVTOOLS_START + 21)
+#define HID_TEMPLATEDLG_ICONCTRL (HID_SVTOOLS_START + 22)
+#define HID_TEMPLATEDLG_FILEVIEW (HID_SVTOOLS_START + 23)
+#define HID_TEMPLATEDLG_TB_BACK (HID_SVTOOLS_START + 24)
+#define HID_TEMPLATEDLG_TB_PREV (HID_SVTOOLS_START + 25)
+#define HID_TEMPLATEDLG_TB_PRINT (HID_SVTOOLS_START + 26)
+#define HID_TEMPLATEDLG_TB_DOCINFO (HID_SVTOOLS_START + 27)
+#define HID_TEMPLATEDLG_TB_PREVIEW (HID_SVTOOLS_START + 28)
-#define HID_ADDRTEMPL_FIELD_ASSIGNMENT (HID_SVTOOLS_START + 29)
+#define HID_ADDRTEMPL_FIELD_ASSIGNMENT (HID_SVTOOLS_START + 29)
// Help ids for the filepicker dialogs
#define HID_EXPLORERDLG_FILE (HID_SVTOOLS_START + 30)
@@ -80,38 +80,38 @@
// help ids for the different modi of the file picker dialog
// FREE
-#define HID_FILESAVE_LEVELUP (HID_SVTOOLS_START + 34)
-#define HID_FILESAVE_CREATEDIRECTORY (HID_SVTOOLS_START + 35)
-#define HID_FILESAVE_DEFAULTDIRECTORY (HID_SVTOOLS_START + 36)
-#define HID_FILESAVE_FILEVIEW (HID_SVTOOLS_START + 37)
-#define HID_FILESAVE_TEMPLATE (HID_SVTOOLS_START + 38)
-#define HID_FILESAVE_FILEURL (HID_SVTOOLS_START + 39)
-#define HID_FILESAVE_FILETYPE (HID_SVTOOLS_START + 40)
-#define HID_FILESAVE_DOSAVE (HID_SVTOOLS_START + 41)
-#define HID_FILESAVE_AUTOEXTENSION (HID_SVTOOLS_START + 42)
-#define HID_FILESAVE_SAVEWITHPASSWORD (HID_SVTOOLS_START + 43)
-#define HID_FILESAVE_CUSTOMIZEFILTER (HID_SVTOOLS_START + 44)
-#define HID_FILESAVE_SELECTION (HID_SVTOOLS_START + 45)
-#define HID_FILESAVE_DIALOG (HID_SVTOOLS_START + 46)
-#define HID_FILESAVE_DOPLAY (HID_SVTOOLS_START + 47)
-
-#define HID_FILEOPEN_READONLY (HID_SVTOOLS_START + 48)
-#define HID_FILEOPEN_VERSION (HID_SVTOOLS_START + 49)
-#define HID_FILEOPEN_IMAGE_TEMPLATE (HID_SVTOOLS_START + 50)
-
-#define HID_FILEDLG_LINK_CB (HID_SFX_START + 276)
-#define HID_FILEDLG_PREVIEW_CB (HID_SFX_START + 277)
+#define HID_FILESAVE_LEVELUP (HID_SVTOOLS_START + 34)
+#define HID_FILESAVE_CREATEDIRECTORY (HID_SVTOOLS_START + 35)
+#define HID_FILESAVE_DEFAULTDIRECTORY (HID_SVTOOLS_START + 36)
+#define HID_FILESAVE_FILEVIEW (HID_SVTOOLS_START + 37)
+#define HID_FILESAVE_TEMPLATE (HID_SVTOOLS_START + 38)
+#define HID_FILESAVE_FILEURL (HID_SVTOOLS_START + 39)
+#define HID_FILESAVE_FILETYPE (HID_SVTOOLS_START + 40)
+#define HID_FILESAVE_DOSAVE (HID_SVTOOLS_START + 41)
+#define HID_FILESAVE_AUTOEXTENSION (HID_SVTOOLS_START + 42)
+#define HID_FILESAVE_SAVEWITHPASSWORD (HID_SVTOOLS_START + 43)
+#define HID_FILESAVE_CUSTOMIZEFILTER (HID_SVTOOLS_START + 44)
+#define HID_FILESAVE_SELECTION (HID_SVTOOLS_START + 45)
+#define HID_FILESAVE_DIALOG (HID_SVTOOLS_START + 46)
+#define HID_FILESAVE_DOPLAY (HID_SVTOOLS_START + 47)
+
+#define HID_FILEOPEN_READONLY (HID_SVTOOLS_START + 48)
+#define HID_FILEOPEN_VERSION (HID_SVTOOLS_START + 49)
+#define HID_FILEOPEN_IMAGE_TEMPLATE (HID_SVTOOLS_START + 50)
+
+#define HID_FILEDLG_LINK_CB (HID_SFX_START + 276)
+#define HID_FILEDLG_PREVIEW_CB (HID_SFX_START + 277)
// uniqueid for the helpagent window (testtool)
-#define HID_HELPAGENT_WINDOW (HID_SVTOOLS_START + 51)
+#define HID_HELPAGENT_WINDOW (HID_SVTOOLS_START + 51)
// registration dialog
-#define HID_REGISTRATION_DIALOG (HID_SVTOOLS_START + 52)
+#define HID_REGISTRATION_DIALOG (HID_SVTOOLS_START + 52)
-#define HID_PRINTDIALOG_TOFILE (HID_SVTOOLS_START + 53)
+#define HID_PRINTDIALOG_TOFILE (HID_SVTOOLS_START + 53)
-#define HID_WIZARD_NEXT (HID_SVTOOLS_START + 54)
-#define HID_WIZARD_PREVIOUS (HID_SVTOOLS_START + 55)
+#define HID_WIZARD_NEXT (HID_SVTOOLS_START + 54)
+#define HID_WIZARD_PREVIOUS (HID_SVTOOLS_START + 55)
#endif
diff --git a/svtools/inc/svtools/helpopt.hxx b/svtools/inc/svtools/helpopt.hxx
index 5947b8d034b1..3b62a95fc9fd 100644
--- a/svtools/inc/svtools/helpopt.hxx
+++ b/svtools/inc/svtools/helpopt.hxx
@@ -2,7 +2,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 @@ public:
void SetHelpAgentAutoStartMode( sal_Bool b );
sal_Bool IsHelpAgentAutoStartMode() const;
- void SetHelpAgentTimeoutPeriod( sal_Int32 _nSeconds );
- sal_Int32 GetHelpAgentTimeoutPeriod( ) const;
- void SetHelpAgentRetryLimit( sal_Int32 _nTrials );
- sal_Int32 GetHelpAgentRetryLimit( ) const;
+ void SetHelpAgentTimeoutPeriod( sal_Int32 _nSeconds );
+ sal_Int32 GetHelpAgentTimeoutPeriod( ) const;
+ void SetHelpAgentRetryLimit( sal_Int32 _nTrials );
+ sal_Int32 GetHelpAgentRetryLimit( ) const;
const String& GetHelpStyleSheet()const;
void SetHelpStyleSheet(const String& rStyleSheet);
/** retrieves the help agent's ignore counter for the given URL.
- <p> If the counter returned 0, the agent should silently drop any requests for this URL.<br/>
+ <p> If the counter returned 0, the agent should silently drop any requests for this URL.<br/>
If the counter is greater 0, the agent should display the URL and, if the user ignores it,
decrement the counter by 1.
</p>
*/
- sal_Int32 getAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ sal_Int32 getAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
/** decrements the help agent's ignore counter for the given URL
@see getAgentIgnoreURLCounter
*/
- void decAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ void decAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
/** resets the help agent's ignore counter for the given URL
*/
- void resetAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ void resetAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
/** resets the help agent's ignore counter for all URL's
*/
- void resetAgentIgnoreURLCounter();
+ void resetAgentIgnoreURLCounter();
void SetWelcomeScreen( sal_Bool b );
sal_Bool IsWelcomeScreen() const;
@@ -89,8 +89,8 @@ public:
void AddToPIStarterList( sal_Int32 nId );
void RemoveFromPIStarterList( sal_Int32 nId );
- String GetLocale() const;
- String GetSystem() const;
+ String GetLocale() const;
+ String GetSystem() const;
};
#endif
diff --git a/svtools/inc/svtools/htmlcfg.hxx b/svtools/inc/svtools/htmlcfg.hxx
index 3f57d275a705..e049101a62e1 100644
--- a/svtools/inc/svtools/htmlcfg.hxx
+++ b/svtools/inc/svtools/htmlcfg.hxx
@@ -2,7 +2,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,8 +37,8 @@
#define HTML_FONT_COUNT 7
// !!!be aware!!!: the following defines are _not_ used as values in the configuration file
-// this is because of compatibility reasons
-#define HTML_CFG_HTML32 0 // Html 3.2
+// this is because of compatibility reasons
+#define HTML_CFG_HTML32 0 // Html 3.2
#define HTML_CFG_MSIE_40 1 // Internet Explorer 4.0
#define HTML_CFG_MSIE HTML_CFG_MSIE_40
#define HTML_CFG_WRITER 2 // Writer
@@ -65,38 +65,38 @@ public:
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& _rPropertyNames);
- USHORT GetFontSize(USHORT nPos) const;
- void SetFontSize(USHORT nPos, USHORT nSize);
+ USHORT GetFontSize(USHORT nPos) const;
+ void SetFontSize(USHORT nPos, USHORT nSize);
- BOOL IsImportUnknown() const;
- void SetImportUnknown(BOOL bSet);
+ BOOL IsImportUnknown() const;
+ void SetImportUnknown(BOOL bSet);
- USHORT GetExportMode() const;
- void SetExportMode(USHORT nSet);
+ USHORT GetExportMode() const;
+ void SetExportMode(USHORT nSet);
- BOOL IsStarBasic() const;
- void SetStarBasic(BOOL bSet);
+ BOOL IsStarBasic() const;
+ void SetStarBasic(BOOL bSet);
- BOOL IsStarBasicWarning() const;
- void SetStarBasicWarning(BOOL bSet);
+ BOOL IsStarBasicWarning() const;
+ void SetStarBasicWarning(BOOL bSet);
- BOOL IsSaveGraphicsLocal() const;
- void SetSaveGraphicsLocal(BOOL bSet);
+ BOOL IsSaveGraphicsLocal() const;
+ void SetSaveGraphicsLocal(BOOL bSet);
- BOOL IsPrintLayoutExtension() const;
- void SetPrintLayoutExtension(BOOL bSet);
+ BOOL IsPrintLayoutExtension() const;
+ void SetPrintLayoutExtension(BOOL bSet);
- BOOL IsIgnoreFontFamily() const;
- void SetIgnoreFontFamily(BOOL bSet);
+ BOOL IsIgnoreFontFamily() const;
+ void SetIgnoreFontFamily(BOOL bSet);
sal_Bool IsDefaultTextEncoding() const;
rtl_TextEncoding GetTextEncoding() const;
- void SetTextEncoding( rtl_TextEncoding );
+ void SetTextEncoding( rtl_TextEncoding );
static SvxHtmlOptions* Get();
- BOOL IsNumbersEnglishUS() const;
- void SetNumbersEnglishUS(BOOL bSet);
-
+ BOOL IsNumbersEnglishUS() const;
+ void SetNumbersEnglishUS(BOOL bSet);
+
void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink );
};
diff --git a/svtools/inc/svtools/htmlout.hxx b/svtools/inc/svtools/htmlout.hxx
index c882d970946d..c73f307a5793 100644
--- a/svtools/inc/svtools/htmlout.hxx
+++ b/svtools/inc/svtools/htmlout.hxx
@@ -2,7 +2,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,9 +62,9 @@ struct SVT_DLLPUBLIC HTMLOutContext
struct HTMLOutFuncs
{
#if defined(MAC) || defined(UNX)
- static const sal_Char sNewLine; // nur \012 oder \015
+ static const sal_Char sNewLine; // nur \012 oder \015
#else
- static const sal_Char __FAR_DATA sNewLine[]; // \015\012
+ static const sal_Char __FAR_DATA sNewLine[]; // \015\012
#endif
SVT_DLLPUBLIC static void ConvertStringToHTML( const String& sSrc, ByteString& rDest,
@@ -75,7 +75,7 @@ struct HTMLOutFuncs
BOOL bOn = TRUE,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252);
SVT_DLLPUBLIC static SvStream& Out_Char( SvStream&, sal_Unicode cChar,
- HTMLOutContext& rContext,
+ HTMLOutContext& rContext,
String *pNonConvertableChars = 0 );
SVT_DLLPUBLIC static SvStream& Out_String( SvStream&, const String&,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
@@ -113,7 +113,7 @@ struct HTMLOutFuncs
String *pNonConvertableChars = 0 );
// <TD SDVAL="..." SDNUM="...">
- SVT_DLLPUBLIC static ByteString& CreateTableDataOptionsValNum( ByteString& aStrTD,
+ SVT_DLLPUBLIC static ByteString& CreateTableDataOptionsValNum( ByteString& aStrTD,
BOOL bValue, double fVal, ULONG nFormat,
SvNumberFormatter& rFormatter,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
diff --git a/svtools/inc/svtools/hyperlabel.hxx b/svtools/inc/svtools/hyperlabel.hxx
index a94a5ea99168..2cb89901a7a8 100644
--- a/svtools/inc/svtools/hyperlabel.hxx
+++ b/svtools/inc/svtools/hyperlabel.hxx
@@ -2,7 +2,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,11 +42,11 @@ namespace svt
//.........................................................................
class HyperLabelImpl;
-
+
class HyperLabel : public FixedText
{
protected:
- HyperLabelImpl* m_pImpl;
+ HyperLabelImpl* m_pImpl;
Link maClickHdl;
virtual void MouseMove( const MouseEvent& rMEvt );
@@ -64,8 +64,8 @@ namespace svt
HyperLabel( Window* _pParent, const ResId& _rId );
HyperLabel( Window* _pParent, WinBits _nWinStyle = 0 );
~HyperLabel( );
-
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
void SetID( sal_Int16 _ID );
sal_Int16 GetID() const;
@@ -74,11 +74,11 @@ namespace svt
sal_Int32 GetIndex() const;
void SetLabel( const ::rtl::OUString& _rText );
- sal_Int32 GetLogicWidth();
+ sal_Int32 GetLogicWidth();
::rtl::OUString GetLabel( );
-
- void ToggleBackgroundColor( const Color& _rGBColor );
+
+ void ToggleBackgroundColor( const Color& _rGBColor );
void SetInteractive( sal_Bool _bInteractive );
void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; }
@@ -87,7 +87,7 @@ namespace svt
Size CalcMinimumSize( long nMaxWidth = 0 ) const;
private:
-
+
DECL_LINK(ImplClickHdl, HyperLabel*);
private:
diff --git a/svtools/inc/svtools/imap.hxx b/svtools/inc/svtools/imap.hxx
index 043900e4c377..f47b303b6d3c 100644
--- a/svtools/inc/svtools/imap.hxx
+++ b/svtools/inc/svtools/imap.hxx
@@ -2,7 +2,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 @@ class IMapObject;
class SVT_DLLPUBLIC ImageMap
{
- List maList;
- String aName;
+ List maList;
+ String aName;
protected:
@@ -63,15 +63,15 @@ protected:
ULONG ImpReadNCSA( SvStream& rOStm, const String& rBaseURL );
void ImpReadCERNLine( const ByteString& rLine, const String& rBaseURL );
- Point ImpReadCERNCoords( const char** ppStr );
- long ImpReadCERNRadius( const char** ppStr );
+ Point ImpReadCERNCoords( const char** ppStr );
+ long ImpReadCERNRadius( const char** ppStr );
String ImpReadCERNURL( const char** ppStr, const String& rBaseURL );
void ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL );
String ImpReadNCSAURL( const char** ppStr, const String& rBaseURL );
- Point ImpReadNCSACoords( const char** ppStr );
+ Point ImpReadNCSACoords( const char** ppStr );
- ULONG ImpDetectFormat( SvStream& rIStm );
+ ULONG ImpDetectFormat( SvStream& rIStm );
public:
@@ -84,25 +84,25 @@ public:
// Der Dtor gibt den intern belegten
// Speicher wieder frei;
// alle IMapObjekte werden im Dtor zerstoert;
- virtual ~ImageMap();
+ virtual ~ImageMap();
// Zuweisungsoperator
- ImageMap& operator=( const ImageMap& rImageMap );
+ ImageMap& operator=( const ImageMap& rImageMap );
// Vergleichsoperator (es wird alles auf Gleichheit geprueft)
- BOOL operator==( const ImageMap& rImageMap );
- BOOL operator!=( const ImageMap& rImageMap );
+ BOOL operator==( const ImageMap& rImageMap );
+ BOOL operator!=( const ImageMap& rImageMap );
// In die Map wird ein neues IMap-Obkekt ans Ende eingefuegt
- void InsertIMapObject( const IMapObject& rIMapObject );
+ void InsertIMapObject( const IMapObject& rIMapObject );
// Zugriff auf einzelne IMapObjekte; die Objekte
// duerfen von aussen _nicht_ zerstoert werden
- IMapObject* GetFirstIMapObject() { return (IMapObject*) maList.First(); }
- IMapObject* GetNextIMapObject() { return (IMapObject*) maList.Next(); }
- IMapObject* GetLastIMapObject() { return (IMapObject*) maList.Last(); }
- IMapObject* GetPrevIMapObject() { return (IMapObject*) maList.Prev(); }
- IMapObject* GetIMapObject( USHORT nPos ) const { return (IMapObject*) maList.GetObject( nPos ); }
+ IMapObject* GetFirstIMapObject() { return (IMapObject*) maList.First(); }
+ IMapObject* GetNextIMapObject() { return (IMapObject*) maList.Next(); }
+ IMapObject* GetLastIMapObject() { return (IMapObject*) maList.Last(); }
+ IMapObject* GetPrevIMapObject() { return (IMapObject*) maList.Prev(); }
+ IMapObject* GetIMapObject( USHORT nPos ) const { return (IMapObject*) maList.GetObject( nPos ); }
// Gibt das Objekt zurueck, das zuerst getroffen wurde oder NULL;
// Groessen- und Positionsangaben sind in 1/100mm;
@@ -110,29 +110,29 @@ public:
// rDisplaySize die aktuelle Darstellungsgroesse;
// rRelPoint bezieht sich auf die Darstellungsgroesse
// und die linke oebere Ecke des Bildes
- IMapObject* GetHitIMapObject( const Size& rOriginalSize,
+ IMapObject* GetHitIMapObject( const Size& rOriginalSize,
const Size& rDisplaySize,
const Point& rRelHitPoint,
ULONG nFlags = 0 );
// Gibt die Gesamtanzahl der IMap-Objekte zurueck
- UINT16 GetIMapObjectCount() const { return (UINT16) maList.Count(); }
+ UINT16 GetIMapObjectCount() const { return (UINT16) maList.Count(); }
// Loescht alle internen Objekte
- void ClearImageMap();
+ void ClearImageMap();
// liefert die aktuelle Versionsnummer
- UINT16 GetVersion() const;
+ UINT16 GetVersion() const;
// liefert / setzt den Namen der ImageMap
- const String& GetName() const { return aName; }
- void SetName( const String& rName ) { aName = rName; }
+ const String& GetName() const { return aName; }
+ void SetName( const String& rName ) { aName = rName; }
// gibt das BoundRect aller IMap-Objekte in 1/100mm zurueck
- Rectangle GetBoundRect() const;
+ Rectangle GetBoundRect() const;
// skaliert alle Objekte der ImageMap entpr. dem uebergebenen Faktor
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
// Im-/Export
void Write ( SvStream& rOStm, const String& rBaseURL ) const;
@@ -150,15 +150,15 @@ public:
class IMapCompat
{
- SvStream* pRWStm;
- ULONG nCompatPos;
- ULONG nTotalSize;
- USHORT nStmMode;
+ SvStream* pRWStm;
+ ULONG nCompatPos;
+ ULONG nTotalSize;
+ USHORT nStmMode;
IMapCompat() {}
IMapCompat( const IMapCompat& ) {}
- IMapCompat& operator=( const IMapCompat& ) { return *this; }
- BOOL operator==( const IMapCompat& ) { return FALSE; }
+ IMapCompat& operator=( const IMapCompat& ) { return *this; }
+ BOOL operator==( const IMapCompat& ) { return FALSE; }
public:
diff --git a/svtools/inc/svtools/imapcirc.hxx b/svtools/inc/svtools/imapcirc.hxx
index 4181d8a4f7c5..4a4739a0691f 100644
--- a/svtools/inc/svtools/imapcirc.hxx
+++ b/svtools/inc/svtools/imapcirc.hxx
@@ -2,7 +2,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,16 +42,16 @@ class Fraction;
class SVT_DLLPUBLIC IMapCircleObject : public IMapObject
{
- Point aCenter;
- ULONG nRadius;
+ Point aCenter;
+ ULONG nRadius;
- void ImpConstruct( const Point& rCenter, ULONG nRad, BOOL bPixel );
+ void ImpConstruct( const Point& rCenter, ULONG nRad, BOOL bPixel );
protected:
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const;
- virtual void ReadIMapObject( SvStream& rIStm );
+ virtual void WriteIMapObject( SvStream& rOStm ) const;
+ virtual void ReadIMapObject( SvStream& rIStm );
public:
@@ -64,21 +64,21 @@ public:
const String& rName,
BOOL bActive = TRUE,
BOOL bPixelCoords = TRUE );
- virtual ~IMapCircleObject() {};
+ virtual ~IMapCircleObject() {};
- virtual UINT16 GetType() const;
- virtual BOOL IsHit( const Point& rPoint ) const;
+ virtual UINT16 GetType() const;
+ virtual BOOL IsHit( const Point& rPoint ) const;
- Point GetCenter( BOOL bPixelCoords = TRUE ) const;
- ULONG GetRadius( BOOL bPixelCoords = TRUE ) const;
+ Point GetCenter( BOOL bPixelCoords = TRUE ) const;
+ ULONG GetRadius( BOOL bPixelCoords = TRUE ) const;
// liefert das BoundRect des Kreis-Objektes in 1/100mm
- virtual Rectangle GetBoundRect() const;
+ virtual Rectangle GetBoundRect() const;
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
using IMapObject::IsEqual;
- BOOL IsEqual( const IMapCircleObject& rEqObj );
+ BOOL IsEqual( const IMapCircleObject& rEqObj );
// Im-/Export
void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const;
diff --git a/svtools/inc/svtools/imapobj.hxx b/svtools/inc/svtools/imapobj.hxx
index 6929e4d21291..2176782256a5 100644
--- a/svtools/inc/svtools/imapobj.hxx
+++ b/svtools/inc/svtools/imapobj.hxx
@@ -2,7 +2,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,26 +37,26 @@ class Point;
class Rectangle;
class SvStream;
-#define IMAP_OBJ_NONE ((UINT16)0x0000)
-#define IMAP_OBJ_RECTANGLE ((UINT16)0x0001)
-#define IMAP_OBJ_CIRCLE ((UINT16)0x0002)
-#define IMAP_OBJ_POLYGON ((UINT16)0x0003)
-#define IMAP_OBJ_VERSION ((UINT16)0x0005)
+#define IMAP_OBJ_NONE ((UINT16)0x0000)
+#define IMAP_OBJ_RECTANGLE ((UINT16)0x0001)
+#define IMAP_OBJ_CIRCLE ((UINT16)0x0002)
+#define IMAP_OBJ_POLYGON ((UINT16)0x0003)
+#define IMAP_OBJ_VERSION ((UINT16)0x0005)
-#define IMAGE_MAP_VERSION ((UINT16)0x0001)
+#define IMAGE_MAP_VERSION ((UINT16)0x0001)
-#define IMAPMAGIC "SDIMAP"
+#define IMAPMAGIC "SDIMAP"
-#define IMAP_MIRROR_HORZ 0x00000001L
-#define IMAP_MIRROR_VERT 0x00000002L
+#define IMAP_MIRROR_HORZ 0x00000001L
+#define IMAP_MIRROR_VERT 0x00000002L
-#define IMAP_FORMAT_BIN 0x00000001L
-#define IMAP_FORMAT_CERN 0x00000002L
-#define IMAP_FORMAT_NCSA 0x00000004L
-#define IMAP_FORMAT_DETECT 0xffffffffL
+#define IMAP_FORMAT_BIN 0x00000001L
+#define IMAP_FORMAT_CERN 0x00000002L
+#define IMAP_FORMAT_NCSA 0x00000004L
+#define IMAP_FORMAT_DETECT 0xffffffffL
-#define IMAP_ERR_OK 0x00000000L
-#define IMAP_ERR_FORMAT 0x00000001L
+#define IMAP_ERR_OK 0x00000000L
+#define IMAP_ERR_FORMAT 0x00000001L
/******************************************************************************
|*
@@ -66,33 +66,33 @@ class SvStream;
class SVT_DLLPUBLIC IMapObject
{
- friend class ImageMap;
+ friend class ImageMap;
- String aURL;
- String aAltText;
- String aDesc;
- String aTarget;
- String aName;
- SvxMacroTableDtor aEventList;
- BOOL bActive;
+ String aURL;
+ String aAltText;
+ String aDesc;
+ String aTarget;
+ String aName;
+ SvxMacroTableDtor aEventList;
+ BOOL bActive;
protected:
- UINT16 nReadVersion;
+ UINT16 nReadVersion;
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const = 0;
- virtual void ReadIMapObject( SvStream& rIStm ) = 0;
+ virtual void WriteIMapObject( SvStream& rOStm ) const = 0;
+ virtual void ReadIMapObject( SvStream& rIStm ) = 0;
// Hilfsmethoden
- void AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) const;
+ void AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) const;
void AppendCERNURL( ByteString& rStr, const String& rBaseURL ) const;
- void AppendNCSACoords( const Point& rPoint100, ByteString& rStr ) const;
+ void AppendNCSACoords( const Point& rPoint100, ByteString& rStr ) const;
void AppendNCSAURL( ByteString& rStr, const String& rBaseURL ) const;
public:
- static rtl_TextEncoding nActualTextEncoding;
+ static rtl_TextEncoding nActualTextEncoding;
IMapObject();
IMapObject( const String& rURL,
@@ -101,48 +101,48 @@ public:
const String& rTarget,
const String& rName,
BOOL bActive );
- virtual ~IMapObject() {};
+ virtual ~IMapObject() {};
- virtual UINT16 GetVersion() const;
- virtual UINT16 GetType() const = 0;
- virtual BOOL IsHit( const Point& rPoint ) const = 0;
+ virtual UINT16 GetVersion() const;
+ virtual UINT16 GetType() const = 0;
+ virtual BOOL IsHit( const Point& rPoint ) const = 0;
void Write ( SvStream& rOStm, const String& rBaseURL ) const;
void Read( SvStream& rIStm, const String& rBaseURL );
- virtual Rectangle GetBoundRect() const = 0;
+ virtual Rectangle GetBoundRect() const = 0;
- const String& GetURL() const { return aURL; }
- void SetURL( const String& rURL ) { aURL = rURL; }
+ const String& GetURL() const { return aURL; }
+ void SetURL( const String& rURL ) { aURL = rURL; }
- const String& GetAltText() const { return aAltText; }
- void SetAltText( const String& rAltText) { aAltText = rAltText; }
+ const String& GetAltText() const { return aAltText; }
+ void SetAltText( const String& rAltText) { aAltText = rAltText; }
- const String& GetDesc() const { return aDesc; }
- void SetDesc( const String& rDesc ) { aDesc = rDesc; }
+ const String& GetDesc() const { return aDesc; }
+ void SetDesc( const String& rDesc ) { aDesc = rDesc; }
- const String& GetTarget() const { return aTarget; }
- void SetTarget( const String& rTarget ) { aTarget = rTarget; }
+ const String& GetTarget() const { return aTarget; }
+ void SetTarget( const String& rTarget ) { aTarget = rTarget; }
- const String& GetName() const { return aName; }
- void SetName( const String& rName ) { aName = rName; }
+ const String& GetName() const { return aName; }
+ void SetName( const String& rName ) { aName = rName; }
- BOOL IsActive() const { return bActive; }
- void SetActive( BOOL bSetActive = TRUE ) { bActive = bSetActive; }
+ BOOL IsActive() const { return bActive; }
+ void SetActive( BOOL bSetActive = TRUE ) { bActive = bSetActive; }
- static Point GetPixelPoint( const Point& rLogPoint );
- static Point GetLogPoint( const Point& rPixelPoint );
+ static Point GetPixelPoint( const Point& rLogPoint );
+ static Point GetLogPoint( const Point& rPixelPoint );
- BOOL IsEqual( const IMapObject& rEqObj );
+ BOOL IsEqual( const IMapObject& rEqObj );
// IMap-Events
inline const SvxMacroTableDtor& GetMacroTable() const { return aEventList;}
inline void SetMacroTable( const SvxMacroTableDtor& rTbl ) { aEventList = rTbl; }
- inline const SvxMacro& GetEvent( USHORT nEvent ) const;
- inline BOOL HasEvent( USHORT nEvent ) const;
- void SetEvent( USHORT nEvent, const SvxMacro& );
- inline BOOL DelEvent( USHORT nEvent );
+ inline const SvxMacro& GetEvent( USHORT nEvent ) const;
+ inline BOOL HasEvent( USHORT nEvent ) const;
+ void SetEvent( USHORT nEvent, const SvxMacro& );
+ inline BOOL DelEvent( USHORT nEvent );
};
inline BOOL IMapObject::HasEvent( USHORT nEvent ) const
diff --git a/svtools/inc/svtools/imappoly.hxx b/svtools/inc/svtools/imappoly.hxx
index 655d180f6613..c8d0f2d93bd0 100644
--- a/svtools/inc/svtools/imappoly.hxx
+++ b/svtools/inc/svtools/imappoly.hxx
@@ -2,7 +2,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 Fraction;
class SVT_DLLPUBLIC IMapPolygonObject : public IMapObject
{
- Polygon aPoly;
- Rectangle aEllipse;
- BOOL bEllipse;
+ Polygon aPoly;
+ Rectangle aEllipse;
+ BOOL bEllipse;
- SVT_DLLPRIVATE void ImpConstruct( const Polygon& rPoly, BOOL bPixel );
+ SVT_DLLPRIVATE void ImpConstruct( const Polygon& rPoly, BOOL bPixel );
protected:
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const;
- virtual void ReadIMapObject( SvStream& rIStm );
+ virtual void WriteIMapObject( SvStream& rOStm ) const;
+ virtual void ReadIMapObject( SvStream& rIStm );
- BOOL ReadPreProLine( SvStream& rIStm, String& rStr );
+ BOOL ReadPreProLine( SvStream& rIStm, String& rStr );
public:
IMapPolygonObject() {};
@@ -67,24 +67,24 @@ public:
const String& rName,
BOOL bActive = TRUE,
BOOL bPixelCoords = TRUE );
- virtual ~IMapPolygonObject() {};
+ virtual ~IMapPolygonObject() {};
- virtual UINT16 GetType() const;
- virtual BOOL IsHit( const Point& rPoint ) const;
+ virtual UINT16 GetType() const;
+ virtual BOOL IsHit( const Point& rPoint ) const;
- Polygon GetPolygon( BOOL bPixelCoords = TRUE ) const;
+ Polygon GetPolygon( BOOL bPixelCoords = TRUE ) const;
// liefert das BoundRect des Polygon-Objektes in 1/100mm
- virtual Rectangle GetBoundRect() const { return aPoly.GetBoundRect(); }
+ virtual Rectangle GetBoundRect() const { return aPoly.GetBoundRect(); }
- BOOL HasExtraEllipse() const { return bEllipse; }
- const Rectangle& GetExtraEllipse() const { return aEllipse; }
- void SetExtraEllipse( const Rectangle& rEllipse );
+ BOOL HasExtraEllipse() const { return bEllipse; }
+ const Rectangle& GetExtraEllipse() const { return aEllipse; }
+ void SetExtraEllipse( const Rectangle& rEllipse );
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
using IMapObject::IsEqual;
- BOOL IsEqual( const IMapPolygonObject& rEqObj );
+ BOOL IsEqual( const IMapPolygonObject& rEqObj );
// Im-/Export
void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const;
diff --git a/svtools/inc/svtools/imaprect.hxx b/svtools/inc/svtools/imaprect.hxx
index f10000de3e92..c13e3e0c1cfd 100644
--- a/svtools/inc/svtools/imaprect.hxx
+++ b/svtools/inc/svtools/imaprect.hxx
@@ -2,7 +2,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,15 +42,15 @@ class Fraction;
class SVT_DLLPUBLIC IMapRectangleObject : public IMapObject
{
- Rectangle aRect;
+ Rectangle aRect;
- SVT_DLLPRIVATE void ImpConstruct( const Rectangle& rRect, BOOL bPixel );
+ SVT_DLLPRIVATE void ImpConstruct( const Rectangle& rRect, BOOL bPixel );
protected:
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const;
- virtual void ReadIMapObject( SvStream& rIStm );
+ virtual void WriteIMapObject( SvStream& rOStm ) const;
+ virtual void ReadIMapObject( SvStream& rIStm );
public:
@@ -63,20 +63,20 @@ public:
const String& rName,
BOOL bActive = TRUE,
BOOL bPixelCoords = TRUE );
- virtual ~IMapRectangleObject() {};
+ virtual ~IMapRectangleObject() {};
- virtual UINT16 GetType() const;
- virtual BOOL IsHit( const Point& rPoint ) const;
+ virtual UINT16 GetType() const;
+ virtual BOOL IsHit( const Point& rPoint ) const;
- Rectangle GetRectangle( BOOL bPixelCoords = TRUE ) const;
+ Rectangle GetRectangle( BOOL bPixelCoords = TRUE ) const;
// liefert das BoundRect des Rechteck-Objektes in 1/100mm
- virtual Rectangle GetBoundRect() const { return aRect; }
+ virtual Rectangle GetBoundRect() const { return aRect; }
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
using IMapObject::IsEqual;
- BOOL IsEqual( const IMapRectangleObject& rEqObj );
+ BOOL IsEqual( const IMapRectangleObject& rEqObj );
// Im-/Export
void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const;
diff --git a/svtools/inc/svtools/inettbc.hxx b/svtools/inc/svtools/inettbc.hxx
index ccf1848a0094..50bf33f08454 100644
--- a/svtools/inc/svtools/inettbc.hxx
+++ b/svtools/inc/svtools/inettbc.hxx
@@ -2,7 +2,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,33 +44,33 @@ class SVT_DLLPUBLIC SvtURLBox : public ComboBox
{
friend class SvtMatchContext_Impl;
friend class SvtURLBox_Impl;
- Link aOpenHdl;
- String aBaseURL;
- String aPlaceHolder;
- SvtMatchContext_Impl* pCtx;
- SvtURLBox_Impl* pImp;
- INetProtocol eSmartProtocol;
- BOOL bAutoCompleteMode : 1;
- BOOL bOnlyDirectories : 1;
- BOOL bModified : 1;
+ Link aOpenHdl;
+ String aBaseURL;
+ String aPlaceHolder;
+ SvtMatchContext_Impl* pCtx;
+ SvtURLBox_Impl* pImp;
+ INetProtocol eSmartProtocol;
+ BOOL bAutoCompleteMode : 1;
+ BOOL bOnlyDirectories : 1;
+ BOOL bModified : 1;
BOOL bTryAutoComplete : 1;
- BOOL bCtrlClick : 1;
- BOOL bHistoryDisabled : 1;
- BOOL bNoSelection : 1;
+ BOOL bCtrlClick : 1;
+ BOOL bHistoryDisabled : 1;
+ BOOL bNoSelection : 1;
BOOL bIsAutoCompleteEnabled : 1;
- SVT_DLLPRIVATE BOOL ProcessKey( const KeyCode& rCode );
- SVT_DLLPRIVATE void TryAutoComplete( BOOL bForce );
+ SVT_DLLPRIVATE BOOL ProcessKey( const KeyCode& rCode );
+ SVT_DLLPRIVATE void TryAutoComplete( BOOL bForce );
SVT_DLLPRIVATE void UpdatePicklistForSmartProtocol_Impl();
DECL_DLLPRIVATE_LINK( AutoCompleteHdl_Impl, void* );
using Window::ImplInit;
SVT_DLLPRIVATE void ImplInit();
protected:
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void Select();
- virtual void Modify();
- virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
+ virtual void Select();
+ virtual void Modify();
+ virtual long PreNotify( NotifyEvent& rNEvt );
public:
SvtURLBox( Window* pParent, INetProtocol eSmart = INET_PROT_NOT_VALID );
@@ -78,24 +78,24 @@ public:
SvtURLBox( Window* pParent, const ResId& _rResId, INetProtocol eSmart = INET_PROT_NOT_VALID );
~SvtURLBox();
- void SetBaseURL( const String& rURL );
- const String& GetBaseURL() const { return aBaseURL; }
- void SetOpenHdl( const Link& rLink ) { aOpenHdl = rLink; }
- const Link& GetOpenHdl() const { return aOpenHdl; }
- void SetOnlyDirectories( BOOL bDir = TRUE );
- void SetNoURLSelection( BOOL bSet = TRUE );
- INetProtocol GetSmartProtocol() const { return eSmartProtocol; }
+ void SetBaseURL( const String& rURL );
+ const String& GetBaseURL() const { return aBaseURL; }
+ void SetOpenHdl( const Link& rLink ) { aOpenHdl = rLink; }
+ const Link& GetOpenHdl() const { return aOpenHdl; }
+ void SetOnlyDirectories( BOOL bDir = TRUE );
+ void SetNoURLSelection( BOOL bSet = TRUE );
+ INetProtocol GetSmartProtocol() const { return eSmartProtocol; }
void SetSmartProtocol( INetProtocol eProt );
BOOL IsCtrlOpen()
{ return bCtrlClick; }
String GetURL();
- void DisableHistory();
+ void DisableHistory();
- void UpdatePickList( );
+ void UpdatePickList( );
static String ParseSmart( String aText, String aBaseURL, String aWorkDir );
- void SetFilter(const String& _sFilter);
+ void SetFilter(const String& _sFilter);
void SetUrlFilter( const IUrlFilter* _pFilter );
const IUrlFilter* GetUrlFilter( ) const;
diff --git a/svtools/inc/svtools/insdlg.hxx b/svtools/inc/svtools/insdlg.hxx
index e7d894122243..3e26d0f57ccc 100644
--- a/svtools/inc/svtools/insdlg.hxx
+++ b/svtools/inc/svtools/insdlg.hxx
@@ -2,7 +2,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 @@ class SVT_DLLPUBLIC SvObjectServerList
const SvObjectServer * Get( const String & rHumanName ) const;
const SvObjectServer * Get( const SvGlobalName & ) const;
void Remove( const SvGlobalName & );
- void FillInsertObjects();
+ void FillInsertObjects();
};
class SVT_DLLPUBLIC SvPasteObjectHelper
diff --git a/svtools/inc/svtools/javacontext.hxx b/svtools/inc/svtools/javacontext.hxx
index 7c32a49448b3..adde966c4d38 100644
--- a/svtools/inc/svtools/javacontext.hxx
+++ b/svtools/inc/svtools/javacontext.hxx
@@ -2,7 +2,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,10 +42,10 @@ namespace svt
// We cannot derive from cppu::WeakImplHelper because we would export the inline
//generated class. This conflicts with other libraries if they use the same inline
//class.
- class SVT_DLLPUBLIC JavaContext :
+ class SVT_DLLPUBLIC JavaContext :
public com::sun::star::uno::XCurrentContext
{
-
+
public:
/** The parameter bShowErrorsOnce controls whether a message box is
only displayed once for a reocurring Java error. That is only
@@ -75,8 +75,8 @@ namespace svt
SVT_DLLPRIVATE JavaContext(); //not implemented
SVT_DLLPRIVATE JavaContext(JavaContext&); //not implemented
SVT_DLLPRIVATE JavaContext& operator = (JavaContext&); //not implemented
-
- oslInterlockedCount m_aRefCount;
+
+ oslInterlockedCount m_aRefCount;
com::sun::star::uno::Reference<
com::sun::star::uno::XCurrentContext > m_xNextContext;
diff --git a/svtools/inc/svtools/javainteractionhandler.hxx b/svtools/inc/svtools/javainteractionhandler.hxx
index e3137f7bed2b..28391ca8fc08 100644
--- a/svtools/inc/svtools/javainteractionhandler.hxx
+++ b/svtools/inc/svtools/javainteractionhandler.hxx
@@ -2,7 +2,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 @@ namespace svt
//class.
class SVT_DLLPUBLIC JavaInteractionHandler:
- public com::sun::star::task::XInteractionHandler
+ public com::sun::star::task::XInteractionHandler
{
public:
JavaInteractionHandler(bool bReportErrorOnce = true);
@@ -65,7 +65,7 @@ public:
throw (com::sun::star::uno::RuntimeException);
private:
- oslInterlockedCount m_aRefCount;
+ oslInterlockedCount m_aRefCount;
SVT_DLLPRIVATE JavaInteractionHandler(JavaInteractionHandler const&); //not implemented
SVT_DLLPRIVATE JavaInteractionHandler& operator = (JavaInteractionHandler const &); //not implemented
SVT_DLLPRIVATE virtual ~JavaInteractionHandler();
diff --git a/svtools/inc/svtools/langhelp.hxx b/svtools/inc/svtools/langhelp.hxx
index ccc946c305b6..37a5b37d09fa 100644
--- a/svtools/inc/svtools/langhelp.hxx
+++ b/svtools/inc/svtools/langhelp.hxx
@@ -32,7 +32,7 @@
namespace rtl { class OUString; }
/** Localize a URI to one of the foundation's webservices
-
+
@param io_rURI
URI to localize - depending on your UI locale, a country local
part is appended to the URI (like "en", or "fr", or "es")
diff --git a/svtools/inc/svtools/langtab.hxx b/svtools/inc/svtools/langtab.hxx
index 9b38297433bf..d4212ba278af 100644
--- a/svtools/inc/svtools/langtab.hxx
+++ b/svtools/inc/svtools/langtab.hxx
@@ -2,7 +2,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,12 +43,12 @@ public:
SvtLanguageTable();
~SvtLanguageTable();
- const String& GetString( const LanguageType eType ) const;
- LanguageType GetType( const String& rStr ) const;
+ const String& GetString( const LanguageType eType ) const;
+ LanguageType GetType( const String& rStr ) const;
- sal_uInt32 GetEntryCount() const;
- LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const;
- static String GetLanguageString( const LanguageType eType );
+ sal_uInt32 GetEntryCount() const;
+ LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const;
+ static String GetLanguageString( const LanguageType eType );
};
// Add LRE or RLE embedding characters to the string based on the
diff --git a/svtools/inc/svtools/menuoptions.hxx b/svtools/inc/svtools/menuoptions.hxx
index eb0f83df22c0..1e985aaa2a9b 100644
--- a/svtools/inc/svtools/menuoptions.hxx
+++ b/svtools/inc/svtools/menuoptions.hxx
@@ -2,7 +2,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 INCLUDED_SVTOOLS_MENUOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -38,12 +38,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -52,45 +52,45 @@ class Link;
class SvtMenuOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about menu features
+ @short collect informations about menu features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtMenuOptions();
@@ -99,23 +99,23 @@ class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink );
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..."
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..."
@descr These options describe internal states to enable/disable features of installed office.
IsEntryHidingEnabled()
- SetEntryHidingState() => Activate this field for viewing all deactivated menu entries.
+ SetEntryHidingState() => Activate this field for viewing all deactivated menu entries.
Menu commands that are normally not necessary are hidden by default.
Default=false
IsFollowMouseEnabled()
- SetFollowMouseState() => Automatic selection while moving the mouse on a menu.
+ SetFollowMouseState() => Automatic selection while moving the mouse on a menu.
Default=true
- @seealso configuration package "org.openoffice.Office.Common/View/Menu"
+ @seealso configuration package "org.openoffice.Office.Common/View/Menu"
*//*-*****************************************************************************************************/
sal_Bool IsEntryHidingEnabled() const;
@@ -127,29 +127,29 @@ class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
void SetMenuIconsState( sal_Int16 bState );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SVT_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -162,11 +162,11 @@ class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtMenuOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtMenuOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtMenuOptions
+}; // class SvtMenuOptions
-#endif // #ifndef INCLUDED_SVTOOLS_MENUOPTIONS_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_MENUOPTIONS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/miscopt.hxx b/svtools/inc/svtools/miscopt.hxx
index eeabc624deff..3c2646af6b49 100644
--- a/svtools/inc/svtools/miscopt.hxx
+++ b/svtools/inc/svtools/miscopt.hxx
@@ -2,7 +2,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 INCLUDED_SVTOOLS_MISCOPT_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -40,12 +40,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -54,47 +54,47 @@ class SvtMiscOptions_Impl;
class Link;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about misc group
+ @short collect informations about misc group
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @ATTENTION This class is partially threadsafe.
+ @ATTENTION This class is partially threadsafe.
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtMiscOptions();
@@ -104,7 +104,7 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
void RemoveListenerLink( const Link& rLink );
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
sal_Bool UseSystemFileDialog() const;
@@ -154,29 +154,29 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
sal_Bool IsExperimentalMode() const;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -189,11 +189,11 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtMiscOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtMiscOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtMiscOptions
+}; // class SvtMiscOptions
-#endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/optionsdrawinglayer.hxx b/svtools/inc/svtools/optionsdrawinglayer.hxx
index d788c4d3e340..c8badca956a8 100644
--- a/svtools/inc/svtools/optionsdrawinglayer.hxx
+++ b/svtools/inc/svtools/optionsdrawinglayer.hxx
@@ -2,7 +2,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,7 +30,7 @@
#define INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -40,12 +40,12 @@
#include <tools/color.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -53,103 +53,103 @@
class SvtOptionsDrawinglayer_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about startup features
+ @short collect informations about startup features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class SVT_DLLPUBLIC SvtOptionsDrawinglayer
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtOptionsDrawinglayer();
~SvtOptionsDrawinglayer();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/Drawinglayer/..."
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/Drawinglayer/..."
@descr These options describe internal states to enable/disable features of installed office.
IsOverlayBuffer()
- SetOverlayBuffer() => Activate this field for letting Overlay use a buffer
+ SetOverlayBuffer() => Activate this field for letting Overlay use a buffer
IsPaintBuffer()
- SetPaintBuffer() => Activate this field for letting Paint use a prerender buffer
+ SetPaintBuffer() => Activate this field for letting Paint use a prerender buffer
GetStripeColorA()
- SetStripeColorA() => Set first of two colors which overlay uses to draw stripes
+ SetStripeColorA() => Set first of two colors which overlay uses to draw stripes
GetStripeColorB()
- SetStripeColorB() => Set second of two colors which overlay uses to draw stripes
+ SetStripeColorB() => Set second of two colors which overlay uses to draw stripes
GetStripeLength()
- SetStripeLength() => Set length of a single stripe in pixels
+ SetStripeLength() => Set length of a single stripe in pixels
- @seealso configuration package "org.openoffice.Office.Common/Drawinglayer"
+ @seealso configuration package "org.openoffice.Office.Common/Drawinglayer"
*//*-*****************************************************************************************************/
- sal_Bool IsOverlayBuffer() const;
- sal_Bool IsPaintBuffer() const;
- Color GetStripeColorA() const;
- Color GetStripeColorB() const;
- sal_uInt16 GetStripeLength() const;
+ sal_Bool IsOverlayBuffer() const;
+ sal_Bool IsPaintBuffer() const;
+ Color GetStripeColorA() const;
+ Color GetStripeColorB() const;
+ sal_uInt16 GetStripeLength() const;
- void SetOverlayBuffer( sal_Bool bState );
- void SetPaintBuffer( sal_Bool bState );
- void SetStripeColorA( Color aColor );
- void SetStripeColorB( Color aColor );
- void SetStripeLength( sal_uInt16 nLength );
+ void SetOverlayBuffer( sal_Bool bState );
+ void SetPaintBuffer( sal_Bool bState );
+ void SetStripeColorA( Color aColor );
+ void SetStripeColorB( Color aColor );
+ void SetStripeLength( sal_uInt16 nLength );
// #i73602#
- sal_Bool IsOverlayBuffer_Calc() const;
- sal_Bool IsOverlayBuffer_Writer() const;
- sal_Bool IsOverlayBuffer_DrawImpress() const;
- void SetOverlayBuffer_Calc( sal_Bool bState );
- void SetOverlayBuffer_Writer( sal_Bool bState );
- void SetOverlayBuffer_DrawImpress( sal_Bool bState );
+ sal_Bool IsOverlayBuffer_Calc() const;
+ sal_Bool IsOverlayBuffer_Writer() const;
+ sal_Bool IsOverlayBuffer_DrawImpress() const;
+ void SetOverlayBuffer_Calc( sal_Bool bState );
+ void SetOverlayBuffer_Writer( sal_Bool bState );
+ void SetOverlayBuffer_DrawImpress( sal_Bool bState );
// #i74769#, #i75172#
- sal_Bool IsPaintBuffer_Calc() const;
- sal_Bool IsPaintBuffer_Writer() const;
- sal_Bool IsPaintBuffer_DrawImpress() const;
- void SetPaintBuffer_Calc( sal_Bool bState );
- void SetPaintBuffer_Writer( sal_Bool bState );
- void SetPaintBuffer_DrawImpress( sal_Bool bState );
+ sal_Bool IsPaintBuffer_Calc() const;
+ sal_Bool IsPaintBuffer_Writer() const;
+ sal_Bool IsPaintBuffer_DrawImpress() const;
+ void SetPaintBuffer_Calc( sal_Bool bState );
+ void SetPaintBuffer_Writer( sal_Bool bState );
+ void SetPaintBuffer_DrawImpress( sal_Bool bState );
// #i4219#
sal_uInt32 GetMaximumPaperWidth() const;
@@ -158,7 +158,7 @@ class SVT_DLLPUBLIC SvtOptionsDrawinglayer
sal_uInt32 GetMaximumPaperRightMargin() const;
sal_uInt32 GetMaximumPaperTopMargin() const;
sal_uInt32 GetMaximumPaperBottomMargin() const;
-
+
void SetMaximumPaperWidth(sal_uInt32 nNew);
void SetMaximumPaperHeight(sal_uInt32 nNew);
void SetMaximumPaperLeftMargin(sal_uInt32 nNew);
@@ -166,59 +166,59 @@ class SVT_DLLPUBLIC SvtOptionsDrawinglayer
void SetMaximumPaperTopMargin(sal_uInt32 nNew);
void SetMaximumPaperBottomMargin(sal_uInt32 nNew);
- // #i95644# helper to check if AA is allowed on this system. Currently, for WIN its disabled
- // and OutDevSupport_TransparentRect is checked (this hits XRenderExtension, e.g.
+ // #i95644# helper to check if AA is allowed on this system. Currently, for WIN its disabled
+ // and OutDevSupport_TransparentRect is checked (this hits XRenderExtension, e.g.
// currently for SunRay as long as not supported there)
sal_Bool IsAAPossibleOnThisSystem() const;
// primitives
- sal_Bool IsAntiAliasing() const;
- sal_Bool IsSnapHorVerLinesToDiscrete() const;
- sal_Bool IsSolidDragCreate() const;
- sal_Bool IsRenderDecoratedTextDirect() const;
- sal_Bool IsRenderSimpleTextDirect() const;
+ sal_Bool IsAntiAliasing() const;
+ sal_Bool IsSnapHorVerLinesToDiscrete() const;
+ sal_Bool IsSolidDragCreate() const;
+ sal_Bool IsRenderDecoratedTextDirect() const;
+ sal_Bool IsRenderSimpleTextDirect() const;
sal_uInt32 GetQuadratic3DRenderLimit() const;
sal_uInt32 GetQuadraticFormControlRenderLimit() const;
- void SetAntiAliasing( sal_Bool bState );
- void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
- void SetSolidDragCreate( sal_Bool bState );
- void SetRenderDecoratedTextDirect( sal_Bool bState );
- void SetRenderSimpleTextDirect( sal_Bool bState );
+ void SetAntiAliasing( sal_Bool bState );
+ void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
+ void SetSolidDragCreate( sal_Bool bState );
+ void SetRenderDecoratedTextDirect( sal_Bool bState );
+ void SetRenderSimpleTextDirect( sal_Bool bState );
void SetQuadratic3DRenderLimit(sal_uInt32 nNew);
void SetQuadraticFormControlRenderLimit(sal_uInt32 nNew);
// #i97672# selection settings
- sal_Bool IsTransparentSelection() const;
- sal_uInt16 GetTransparentSelectionPercent() const;
- sal_uInt16 GetSelectionMaximumLuminancePercent() const;
+ sal_Bool IsTransparentSelection() const;
+ sal_uInt16 GetTransparentSelectionPercent() const;
+ sal_uInt16 GetSelectionMaximumLuminancePercent() const;
- void SetTransparentSelection( sal_Bool bState );
- void SetTransparentSelectionPercent( sal_uInt16 nPercent );
- void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
+ void SetTransparentSelection( sal_Bool bState );
+ void SetTransparentSelectionPercent( sal_uInt16 nPercent );
+ void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class use his own static mutex to be threadsafe.
+ @short return a reference to a static mutex
+ @descr These class use his own static mutex to be threadsafe.
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SVT_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -231,11 +231,11 @@ class SVT_DLLPUBLIC SvtOptionsDrawinglayer
Do it in your source only.
*/
- static SvtOptionsDrawinglayer_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtOptionsDrawinglayer_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtOptionsDrawinglayer
+}; // class SvtOptionsDrawinglayer
-#endif // #ifndef INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/parhtml.hxx b/svtools/inc/svtools/parhtml.hxx
index ddf0352c558a..087c605fbab9 100644
--- a/svtools/inc/svtools/parhtml.hxx
+++ b/svtools/inc/svtools/parhtml.hxx
@@ -2,7 +2,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,18 +63,18 @@ enum HTMLTableRules { HTML_TR_NONE, HTML_TR_GROUPS, HTML_TR_ROWS,
enum HTMLInputType
{
- HTML_IT_TEXT = 0x01,
- HTML_IT_PASSWORD = 0x02,
- HTML_IT_CHECKBOX = 0x03,
- HTML_IT_RADIO = 0x04,
- HTML_IT_RANGE = 0x05,
- HTML_IT_SCRIBBLE = 0x06,
- HTML_IT_FILE = 0x07,
- HTML_IT_HIDDEN = 0x08,
- HTML_IT_SUBMIT = 0x09,
- HTML_IT_IMAGE = 0x0a,
- HTML_IT_RESET = 0x0b,
- HTML_IT_BUTTON = 0x0c
+ HTML_IT_TEXT = 0x01,
+ HTML_IT_PASSWORD = 0x02,
+ HTML_IT_CHECKBOX = 0x03,
+ HTML_IT_RADIO = 0x04,
+ HTML_IT_RANGE = 0x05,
+ HTML_IT_SCRIBBLE = 0x06,
+ HTML_IT_FILE = 0x07,
+ HTML_IT_HIDDEN = 0x08,
+ HTML_IT_SUBMIT = 0x09,
+ HTML_IT_IMAGE = 0x0a,
+ HTML_IT_RESET = 0x0b,
+ HTML_IT_BUTTON = 0x0c
};
enum HTMLScriptLanguage
@@ -86,8 +86,8 @@ enum HTMLScriptLanguage
struct HTMLOptionEnum
{
- const sal_Char *pName; // Wert einer HTML-Option
- sal_uInt16 nValue; // und der dazugehoerige Wert eines Enums
+ const sal_Char *pName; // Wert einer HTML-Option
+ sal_uInt16 nValue; // und der dazugehoerige Wert eines Enums
};
// Repraesentation einer HTML-Option (=Atrribut in einem Start-Tag)
@@ -97,26 +97,26 @@ struct HTMLOptionEnum
class SVT_DLLPUBLIC HTMLOption
{
- String aValue; // der Wert der Option (immer als String)
- String aToken; // der Name der Option als String
- sal_uInt16 nToken; // und das entsprechende Token
+ String aValue; // der Wert der Option (immer als String)
+ String aToken; // der Name der Option als String
+ sal_uInt16 nToken; // und das entsprechende Token
public:
HTMLOption( sal_uInt16 nTyp, const String& rToken, const String& rValue );
// der Name der Option ...
- sal_uInt16 GetToken() const { return nToken; } // ... als Enum
+ sal_uInt16 GetToken() const { return nToken; } // ... als Enum
const String& GetTokenString() const { return aToken; } // ... als String
// der Wert der Option ...
- const String& GetString() const { return aValue; } // ... als String
+ const String& GetString() const { return aValue; } // ... als String
- sal_uInt32 GetNumber() const; // ... als Zahl
- sal_Int32 GetSNumber() const; // ... als Zahl
- void GetNumbers( SvULongs &rLongs, // ... als Zahlen
+ sal_uInt32 GetNumber() const; // ... als Zahl
+ sal_Int32 GetSNumber() const; // ... als Zahl
+ void GetNumbers( SvULongs &rLongs, // ... als Zahlen
sal_Bool bSpaceDelim=sal_False ) const;
- void GetColor( Color& ) const; // ... als Farbe
+ void GetColor( Color& ) const; // ... als Farbe
// ... als Enum pOptEnums ist ein HTMLOptionEnum-Array
sal_uInt16 GetEnum( const HTMLOptionEnum *pOptEnums,
@@ -124,10 +124,10 @@ public:
BOOL GetEnum( sal_uInt16 &rEnum, const HTMLOptionEnum *pOptEnums ) const;
// ... und als ein par spezielle Enums
- HTMLInputType GetInputType() const; // <INPUT TYPE=...>
- HTMLTableFrame GetTableFrame() const; // <TABLE FRAME=...>
- HTMLTableRules GetTableRules() const; // <TABLE RULES=...>
- //SvxAdjust GetAdjust() const; // <P,TH,TD ALIGN=>
+ HTMLInputType GetInputType() const; // <INPUT TYPE=...>
+ HTMLTableFrame GetTableFrame() const; // <TABLE FRAME=...>
+ HTMLTableRules GetTableRules() const; // <TABLE RULES=...>
+ //SvxAdjust GetAdjust() const; // <P,TH,TD ALIGN=>
};
typedef HTMLOption* HTMLOptionPtr;
@@ -135,28 +135,28 @@ SV_DECL_PTRARR(HTMLOptions,HTMLOptionPtr,16,16)
class SVT_DLLPUBLIC HTMLParser : public SvParser
{
- BOOL bNewDoc : 1; // neues Doc lesen ?
- BOOL bIsInHeader : 1; // scanne Header-Bereich
- BOOL bIsInBody : 1; // scanne Body-Bereich
- BOOL bReadListing : 1; // Lese Listings
- BOOL bReadXMP : 1; // Lese XMP
- BOOL bReadPRE : 1; // Lese preformatted Text
- BOOL bReadTextArea : 1; // Lese TEXTAREA
- BOOL bReadScript : 1; // Lesen von <SCRIPT>
- BOOL bReadStyle : 1; // Lesen von <STYLE>
- BOOL bEndTokenFound : 1; // </SCRIPT> oder </STYLE> gefunden
-
- BOOL bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen
- BOOL bReadNextChar : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
- BOOL bReadComment : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
-
- sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag
-
- HTMLOptions *pOptions; // die Optionen des Start-Tags
+ BOOL bNewDoc : 1; // neues Doc lesen ?
+ BOOL bIsInHeader : 1; // scanne Header-Bereich
+ BOOL bIsInBody : 1; // scanne Body-Bereich
+ BOOL bReadListing : 1; // Lese Listings
+ BOOL bReadXMP : 1; // Lese XMP
+ BOOL bReadPRE : 1; // Lese preformatted Text
+ BOOL bReadTextArea : 1; // Lese TEXTAREA
+ BOOL bReadScript : 1; // Lesen von <SCRIPT>
+ BOOL bReadStyle : 1; // Lesen von <STYLE>
+ BOOL bEndTokenFound : 1; // </SCRIPT> oder </STYLE> gefunden
+
+ BOOL bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen
+ BOOL bReadNextChar : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
+ BOOL bReadComment : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
+
+ sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag
+
+ HTMLOptions *pOptions; // die Optionen des Start-Tags
String aEndToken;
protected:
- String sSaveToken; // das gelesene Tag als String
+ String sSaveToken; // das gelesene Tag als String
int ScanText( const sal_Unicode cBreak = 0U );
@@ -174,17 +174,17 @@ public:
virtual SvParserState CallParser(); // Aufruf des Parsers
- BOOL IsNewDoc() const { return bNewDoc; }
- BOOL IsInHeader() const { return bIsInHeader; }
- BOOL IsInBody() const { return bIsInBody; }
- BOOL IsValidSyntax() const { return TRUE; }
- BOOL IsReadListing() const { return bReadListing; }
- BOOL IsReadXMP() const { return bReadXMP; }
- BOOL IsReadPRE() const { return bReadPRE; }
- BOOL IsReadScript() const { return bReadScript; }
- BOOL IsReadStyle() const { return bReadStyle; }
+ BOOL IsNewDoc() const { return bNewDoc; }
+ BOOL IsInHeader() const { return bIsInHeader; }
+ BOOL IsInBody() const { return bIsInBody; }
+ BOOL IsValidSyntax() const { return TRUE; }
+ BOOL IsReadListing() const { return bReadListing; }
+ BOOL IsReadXMP() const { return bReadXMP; }
+ BOOL IsReadPRE() const { return bReadPRE; }
+ BOOL IsReadScript() const { return bReadScript; }
+ BOOL IsReadStyle() const { return bReadStyle; }
- void SetReadNextChar() { bReadNextChar = TRUE; }
+ void SetReadNextChar() { bReadNextChar = TRUE; }
// PRE-/LISTING oder XMP-Modus starten/beenden oder Tags entsprechend
// filtern
@@ -226,8 +226,8 @@ public:
const HTMLOptions *GetOptions( sal_uInt16 *pNoConvertToken=0 ) const;
// fuers asynchrone lesen aus dem SvStream
-// virtual void SaveState( int nToken );
-// virtual void RestoreState();
+// virtual void SaveState( int nToken );
+// virtual void RestoreState();
virtual void Continue( int nToken );
diff --git a/svtools/inc/svtools/parrtf.hxx b/svtools/inc/svtools/parrtf.hxx
index 7bab3233f454..2cad738a867d 100644
--- a/svtools/inc/svtools/parrtf.hxx
+++ b/svtools/inc/svtools/parrtf.hxx
@@ -2,7 +2,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
@@ -70,11 +70,11 @@ protected:
virtual ~SvRTFParser();
- rtl_TextEncoding GetCodeSet() const { return eCodeSet; }
+ rtl_TextEncoding GetCodeSet() const { return eCodeSet; }
void SetEncoding( rtl_TextEncoding eEnc );
- rtl_TextEncoding GetUNICodeSet() const { return eUNICodeSet; }
- void SetUNICodeSet( rtl_TextEncoding eSet ) { eUNICodeSet = eSet; }
+ rtl_TextEncoding GetUNICodeSet() const { return eUNICodeSet; }
+ void SetUNICodeSet( rtl_TextEncoding eSet ) { eUNICodeSet = eSet; }
public:
SvRTFParser( SvStream& rIn, BYTE nStackSize = 3 );
@@ -84,8 +84,8 @@ public:
int GetOpenBrakets() const { return nOpenBrakets; }
// fuers asynchrone lesen aus dem SvStream
-// virtual void SaveState( int nToken );
-// virtual void RestoreState();
+// virtual void SaveState( int nToken );
+// virtual void RestoreState();
virtual void Continue( int nToken );
};
diff --git a/svtools/inc/svtools/popupmenucontrollerbase.hxx b/svtools/inc/svtools/popupmenucontrollerbase.hxx
index 5bd15cf68d25..cb1554d9f804 100644
--- a/svtools/inc/svtools/popupmenucontrollerbase.hxx
+++ b/svtools/inc/svtools/popupmenucontrollerbase.hxx
@@ -2,7 +2,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 "svtools/svtdllapi.h"
//_________________________________________________________________________________________________________________
-// interface includes
+// interface includes
//_________________________________________________________________________________________________________________
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
@@ -47,7 +47,7 @@
#include <com/sun/star/uri/XUriReference.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
//_________________________________________________________________________________________________________________
-// includes of other projects
+// includes of other projects
//_________________________________________________________________________________________________________________
#include <toolkit/awt/vclxmenu.hxx>
#include <cppuhelper/compbase7.hxx>
@@ -59,8 +59,8 @@ namespace svt
{
struct PopupMenuControllerBaseDispatchInfo;
- typedef ::cppu::WeakComponentImplHelper7<
- com::sun::star::lang::XServiceInfo ,
+ typedef ::cppu::WeakComponentImplHelper7<
+ com::sun::star::lang::XServiceInfo ,
com::sun::star::frame::XPopupMenuController ,
com::sun::star::lang::XInitialization ,
com::sun::star::frame::XStatusListener ,
@@ -68,7 +68,7 @@ namespace svt
com::sun::star::frame::XDispatchProvider ,
com::sun::star::frame::XDispatch > PopupMenuControllerBaseType;
- class SVT_DLLPUBLIC PopupMenuControllerBase : protected ::comphelper::OBaseMutex, // Struct for right initalization of mutex member! Must be first of baseclasses.
+ class SVT_DLLPUBLIC PopupMenuControllerBase : protected ::comphelper::OBaseMutex, // Struct for right initalization of mutex member! Must be first of baseclasses.
public PopupMenuControllerBaseType
{
public:
@@ -79,14 +79,14 @@ namespace svt
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException) = 0;
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException) = 0;
-
+
// XPopupMenuController
virtual void SAL_CALL setPopupMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu >& PopupMenu ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL updatePopupMenu() throw (::com::sun::star::uno::RuntimeException);
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
+
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ) = 0;
@@ -101,13 +101,13 @@ namespace svt
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches( const ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchDescriptor >& lDescriptor ) throw( ::com::sun::star::uno::RuntimeException );
// XDispatch
- virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& seqProperties ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& seqProperties ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL addStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL removeStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw( ::com::sun::star::uno::RuntimeException );
-
+ virtual void SAL_CALL removeStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw( ::com::sun::star::uno::RuntimeException );
+
// XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
void dispatchCommand( const ::rtl::OUString& sCommandURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArgs );
protected:
diff --git a/svtools/inc/svtools/popupwindowcontroller.hxx b/svtools/inc/svtools/popupwindowcontroller.hxx
index 1d9c2b4ba407..c5f0f15fbdf1 100644
--- a/svtools/inc/svtools/popupwindowcontroller.hxx
+++ b/svtools/inc/svtools/popupwindowcontroller.hxx
@@ -61,7 +61,7 @@ public:
virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException ) = 0;
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException ) = 0;
-
+
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
@@ -78,7 +78,7 @@ public:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createPopupWindow() throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createItemWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& Parent ) throw (::com::sun::star::uno::RuntimeException);
private:
- boost::scoped_ptr< PopupWindowControllerImpl > mpImpl;
+ boost::scoped_ptr< PopupWindowControllerImpl > mpImpl;
};
} // namespace svt
diff --git a/svtools/inc/svtools/printdlg.hxx b/svtools/inc/svtools/printdlg.hxx
index 575dc2830134..e4fdbe1d6f7a 100644
--- a/svtools/inc/svtools/printdlg.hxx
+++ b/svtools/inc/svtools/printdlg.hxx
@@ -2,7 +2,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,24 +66,24 @@ enum PrintSheetRange
class SVT_DLLPUBLIC PrintDialog : public ModalDialog
{
private:
- FixedLine maFlPrinter;
- FixedText maFtName;
- ListBox maLbName;
- PushButton maBtnProperties;
- FixedText maFtStatus;
- FixedInfo maFiStatus;
- FixedText maFtType;
- FixedInfo maFiType;
- FixedText maFtLocation;
- FixedInfo maFiLocation;
- FixedText maFtComment;
- FixedInfo maFiComment;
+ FixedLine maFlPrinter;
+ FixedText maFtName;
+ ListBox maLbName;
+ PushButton maBtnProperties;
+ FixedText maFtStatus;
+ FixedInfo maFiStatus;
+ FixedText maFtType;
+ FixedInfo maFiType;
+ FixedText maFtLocation;
+ FixedInfo maFiLocation;
+ FixedText maFtComment;
+ FixedInfo maFiComment;
// "Print to file" or "Fax number"
CheckBox maCbxFilePrint;
- FixedInfo maFiPrintFile;
- FixedText maFiFaxNo;
- Edit maEdtFaxNo;
+ FixedInfo maFiPrintFile;
+ FixedText maFiFaxNo;
+ Edit maEdtFaxNo;
//PushButton maBtnBrowse_nomore;
// "Print"
@@ -94,8 +94,8 @@ private:
// "Print range"
FixedLine maFlPrintRange;
- RadioButton maRbtAll;
- RadioButton maRbtPages;
+ RadioButton maRbtAll;
+ RadioButton maRbtPages;
RadioButton maRbtSelection;
Edit maEdtPages;
@@ -103,41 +103,41 @@ private:
// "Copies"
FixedLine maFlCopies;
- FixedText maFtCopies;
- NumericField maNumCopies;
- FixedImage maImgCollate;
- FixedImage maImgNotCollate;
- CheckBox maCbxCollate;
+ FixedText maFtCopies;
+ NumericField maNumCopies;
+ FixedImage maImgCollate;
+ FixedImage maImgNotCollate;
+ CheckBox maCbxCollate;
FixedLine maFlSepButtonLine;
PushButton maBtnOptions;
- OKButton maBtnOK;
- CancelButton maBtnCancel;
- HelpButton maBtnHelp;
+ OKButton maBtnOK;
+ CancelButton maBtnCancel;
+ HelpButton maBtnHelp;
AutoTimer maStatusTimer;
- Printer* mpPrinter;
+ Printer* mpPrinter;
SvtPrinterImpl* mpPrinterImpl;
- XubString maRangeText;
- USHORT mnCopyCount;
- USHORT mnFirstPage;
- USHORT mnLastPage;
- USHORT mnMinPage;
- USHORT mnMaxPage;
- PrintDialogRange meCheckRange;
- BOOL mbAll;
- BOOL mbSelection;
- BOOL mbFromTo;
- BOOL mbRange;
- BOOL mbCollate;
- BOOL mbCollateCheck;
- BOOL mbOptions;
+ XubString maRangeText;
+ USHORT mnCopyCount;
+ USHORT mnFirstPage;
+ USHORT mnLastPage;
+ USHORT mnMinPage;
+ USHORT mnMaxPage;
+ PrintDialogRange meCheckRange;
+ BOOL mbAll;
+ BOOL mbSelection;
+ BOOL mbFromTo;
+ BOOL mbRange;
+ BOOL mbCollate;
+ BOOL mbCollateCheck;
+ BOOL mbOptions;
bool mbWithSheetsAndCells;
- Link maOptionsHdlLink; // Link zum Options-Handler
- Link maOKHdlLink; // Link zum OK-Handler
+ Link maOptionsHdlLink; // Link zum Options-Handler
+ Link maOKHdlLink; // Link zum OK-Handler
- String maAllFilterStr;
+ String maAllFilterStr;
SVT_DLLPRIVATE void ImplCheckOK();
SVT_DLLPRIVATE void ImplInitControls();
@@ -155,11 +155,11 @@ public:
PrintDialog( Window* pWindow, bool bWithSheetsAndCells );
~PrintDialog();
- virtual long OK();
- virtual long ClickOptionsHdl();
+ virtual long OK();
+ virtual long ClickOptionsHdl();
- void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
- Printer* GetPrinter() const { return mpPrinter; }
+ void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
+ Printer* GetPrinter() const { return mpPrinter; }
inline bool IsSheetRangeAvailable() const { return mbWithSheetsAndCells; }
void EnableSheetRange( bool bEnable, PrintSheetRange eRange );
@@ -169,53 +169,53 @@ public:
bool IsSheetRangeChecked( PrintSheetRange eRange ) const;
void EnableRange( PrintDialogRange eRange );
- void DisableRange( PrintDialogRange eRange );
- BOOL IsRangeEnabled( PrintDialogRange eRange ) const;
+ void DisableRange( PrintDialogRange eRange );
+ BOOL IsRangeEnabled( PrintDialogRange eRange ) const;
- void CheckRange( PrintDialogRange eRange = PRINTDIALOG_ALL )
+ void CheckRange( PrintDialogRange eRange = PRINTDIALOG_ALL )
{ meCheckRange = eRange; }
- PrintDialogRange GetCheckedRange() const { return meCheckRange; }
- BOOL IsRangeChecked( PrintDialogRange eRange ) const;
+ PrintDialogRange GetCheckedRange() const { return meCheckRange; }
+ BOOL IsRangeChecked( PrintDialogRange eRange ) const;
- void SetRangeText( const XubString& rRange ) { maRangeText = rRange; }
- const XubString& GetRangeText() const { return maRangeText; }
+ void SetRangeText( const XubString& rRange ) { maRangeText = rRange; }
+ const XubString& GetRangeText() const { return maRangeText; }
- void SetFirstPage( USHORT nPage = 0 );
- USHORT GetFirstPage() const { return mnFirstPage; }
- void SetLastPage( USHORT nPage = 0 );
- USHORT GetLastPage() const { return mnLastPage; }
+ void SetFirstPage( USHORT nPage = 0 );
+ USHORT GetFirstPage() const { return mnFirstPage; }
+ void SetLastPage( USHORT nPage = 0 );
+ USHORT GetLastPage() const { return mnLastPage; }
- void SetMinPage( USHORT nPage = 1 ) { mnMinPage = nPage; }
- USHORT GetMinPage() const { return mnMinPage; }
- void SetMaxPage( USHORT nPage = 65535 ) { mnMaxPage = nPage; }
- USHORT GetMaxPage() const { return mnMaxPage; }
+ void SetMinPage( USHORT nPage = 1 ) { mnMinPage = nPage; }
+ USHORT GetMinPage() const { return mnMinPage; }
+ void SetMaxPage( USHORT nPage = 65535 ) { mnMaxPage = nPage; }
+ USHORT GetMaxPage() const { return mnMaxPage; }
- void SetCopyCount( USHORT nCopies = 1 ) { mnCopyCount = nCopies; }
- USHORT GetCopyCount() const { return mnCopyCount; }
+ void SetCopyCount( USHORT nCopies = 1 ) { mnCopyCount = nCopies; }
+ USHORT GetCopyCount() const { return mnCopyCount; }
- void EnableCollate( BOOL bEnable = TRUE )
+ void EnableCollate( BOOL bEnable = TRUE )
{ mbCollate = bEnable; }
- BOOL IsCollateEnabled() const { return mbCollate; }
- void CheckCollate( BOOL bCheck = TRUE )
+ BOOL IsCollateEnabled() const { return mbCollate; }
+ void CheckCollate( BOOL bCheck = TRUE )
{ mbCollateCheck = bCheck; }
- BOOL IsCollateChecked() const { return mbCollateCheck; }
+ BOOL IsCollateChecked() const { return mbCollateCheck; }
- void ShowOptionsButton( BOOL bShow = TRUE )
+ void ShowOptionsButton( BOOL bShow = TRUE )
{ mbOptions = bShow; }
- BOOL IsOptionsButtonVisible() const { return mbOptions; }
+ BOOL IsOptionsButtonVisible() const { return mbOptions; }
- void SetOptionsHdl( const Link& rLink ) { maOptionsHdlLink = rLink; }
- const Link& GetOptionsHdl() const { return maOptionsHdlLink; }
+ void SetOptionsHdl( const Link& rLink ) { maOptionsHdlLink = rLink; }
+ const Link& GetOptionsHdl() const { return maOptionsHdlLink; }
- void SetOKHdl( const Link& rLink ) { maOKHdlLink = rLink; }
- const Link& GetOKHdl() const { return maOKHdlLink; }
+ void SetOKHdl( const Link& rLink ) { maOKHdlLink = rLink; }
+ const Link& GetOKHdl() const { return maOKHdlLink; }
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
- virtual short Execute();
+ virtual short Execute();
- void DisableHelp();
+ void DisableHelp();
};
inline void PrintDialog::EnableRange( PrintDialogRange eRange )
diff --git a/svtools/inc/svtools/printoptions.hxx b/svtools/inc/svtools/printoptions.hxx
index cf0be185c23a..fe1e1791ba4c 100644
--- a/svtools/inc/svtools/printoptions.hxx
+++ b/svtools/inc/svtools/printoptions.hxx
@@ -2,7 +2,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,18 +60,18 @@ public:
SvtBasePrintOptions();
virtual ~SvtBasePrintOptions();
- sal_Bool IsReduceTransparency() const;
+ sal_Bool IsReduceTransparency() const;
sal_Int16 GetReducedTransparencyMode() const;
- sal_Bool IsReduceGradients() const;
+ sal_Bool IsReduceGradients() const;
sal_Int16 GetReducedGradientMode() const;
sal_Int16 GetReducedGradientStepCount() const;
- sal_Bool IsReduceBitmaps() const;
+ sal_Bool IsReduceBitmaps() const;
sal_Int16 GetReducedBitmapMode() const;
sal_Int16 GetReducedBitmapResolution() const;
- sal_Bool IsReducedBitmapIncludesTransparency() const;
- sal_Bool IsConvertToGreyscales() const;
+ sal_Bool IsReducedBitmapIncludesTransparency() const;
+ sal_Bool IsConvertToGreyscales() const;
- void SetReduceTransparency( sal_Bool bState );
+ void SetReduceTransparency( sal_Bool bState );
void SetReducedTransparencyMode( sal_Int16 nMode );
void SetReduceGradients( sal_Bool bState );
void SetReducedGradientMode( sal_Int16 nMode );
@@ -96,8 +96,8 @@ class SVT_DLLPUBLIC SvtPrinterOptions : public SvtBasePrintOptions
{
private:
- static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount; /// internal ref count mechanism
+ static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount; /// internal ref count mechanism
public:
@@ -113,8 +113,8 @@ class SVT_DLLPUBLIC SvtPrintFileOptions : public SvtBasePrintOptions
{
private:
- static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount; /// internal ref count mechanism
+ static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount; /// internal ref count mechanism
public:
diff --git a/svtools/inc/svtools/prnsetup.hxx b/svtools/inc/svtools/prnsetup.hxx
index 46542b9081e9..a8968b2def03 100644
--- a/svtools/inc/svtools/prnsetup.hxx
+++ b/svtools/inc/svtools/prnsetup.hxx
@@ -2,7 +2,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,28 +49,28 @@ class QueueInfo;
class SVT_DLLPUBLIC PrinterSetupDialog : public ModalDialog
{
private:
- FixedLine maFlPrinter;
- FixedText maFtName;
- ListBox maLbName;
- PushButton maBtnProperties;
+ FixedLine maFlPrinter;
+ FixedText maFtName;
+ ListBox maLbName;
+ PushButton maBtnProperties;
PushButton maBtnOptions;
- FixedText maFtStatus;
- FixedInfo maFiStatus;
- FixedText maFtType;
- FixedInfo maFiType;
- FixedText maFtLocation;
- FixedInfo maFiLocation;
- FixedText maFtComment;
- FixedInfo maFiComment;
- FixedLine maFlSepButton;
- OKButton maBtnOK;
- CancelButton maBtnCancel;
- HelpButton maBtnHelp;
- AutoTimer maStatusTimer;
- Printer* mpPrinter;
- Printer* mpTempPrinter;
-
- SVT_DLLPRIVATE void ImplSetInfo();
+ FixedText maFtStatus;
+ FixedInfo maFiStatus;
+ FixedText maFtType;
+ FixedInfo maFiType;
+ FixedText maFtLocation;
+ FixedInfo maFiLocation;
+ FixedText maFtComment;
+ FixedInfo maFiComment;
+ FixedLine maFlSepButton;
+ OKButton maBtnOK;
+ CancelButton maBtnCancel;
+ HelpButton maBtnHelp;
+ AutoTimer maStatusTimer;
+ Printer* mpPrinter;
+ Printer* mpTempPrinter;
+
+ SVT_DLLPRIVATE void ImplSetInfo();
DECL_DLLPRIVATE_LINK( ImplPropertiesHdl, void* );
DECL_DLLPRIVATE_LINK( ImplOptionsHdl, void* );
@@ -81,23 +81,23 @@ public:
PrinterSetupDialog( Window* pWindow );
~PrinterSetupDialog();
- void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
- Printer* GetPrinter() const { return mpPrinter; }
+ void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
+ Printer* GetPrinter() const { return mpPrinter; }
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
- virtual short Execute();
+ virtual short Execute();
- void SetOptionsHdl( const Link& rLink );
- const Link& GetOptionsHdl() const;
+ void SetOptionsHdl( const Link& rLink );
+ const Link& GetOptionsHdl() const;
};
// --------------------------------------
// - Hilfsfunktionen fuer Print-Dialoge -
// --------------------------------------
-#define IMPL_PRINTDLG_STATUS_UPDATE 15000
+#define IMPL_PRINTDLG_STATUS_UPDATE 15000
void ImplFillPrnDlgListBox( const Printer* pPrinter,
ListBox* pBox, PushButton* pPropBtn );
diff --git a/svtools/inc/svtools/roadmapwizard.hxx b/svtools/inc/svtools/roadmapwizard.hxx
index 6dd2b5302987..e4adbc0d0289 100644
--- a/svtools/inc/svtools/roadmapwizard.hxx
+++ b/svtools/inc/svtools/roadmapwizard.hxx
@@ -2,7 +2,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
@@ -88,8 +88,8 @@ namespace svt
);
~RoadmapWizard( );
- void SetRoadmapBitmap( const BitmapEx& _rBitmap );
- const BitmapEx& GetRoadmapBitmap( ) const;
+ void SetRoadmapBitmap( const BitmapEx& _rBitmap );
+ const BitmapEx& GetRoadmapBitmap( ) const;
void SetRoadmapSmartHelpId( const SmartId& _rId, SmartIdUpdateMode _aMode = SMART_SET_SMART );
SmartId GetRoadmapSmartHelpId() const;
@@ -97,7 +97,7 @@ namespace svt
void SetRoadmapInteractive( sal_Bool _bInteractive );
sal_Bool IsRoadmapInteractive();
virtual void Resize();
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void StateChanged( StateChangedType nStateChange );
// returns whether a given state is enabled
bool isStateEnabled( WizardState _nState ) const;
@@ -224,7 +224,7 @@ protected:
This member is inherited from OWizardMachine, and default-implemented in this class
for all states which have been described using describeState.
*/
- virtual TabPage* createPage( WizardState _nState );
+ virtual TabPage* createPage( WizardState _nState );
/** asks for a new label of the wizard page
diff --git a/svtools/inc/svtools/stdctrl.hxx b/svtools/inc/svtools/stdctrl.hxx
index b8f6a12019cd..9582943b3130 100644
--- a/svtools/inc/svtools/stdctrl.hxx
+++ b/svtools/inc/svtools/stdctrl.hxx
@@ -2,7 +2,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/svtools/inc/svtools/stringtransfer.hxx b/svtools/inc/svtools/stringtransfer.hxx
index 7295dec2a261..06ace6e803c2 100644
--- a/svtools/inc/svtools/stringtransfer.hxx
+++ b/svtools/inc/svtools/stringtransfer.hxx
@@ -2,7 +2,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,15 +43,15 @@ namespace svt
class SVT_DLLPUBLIC OStringTransferable : public TransferableHelper
{
protected:
- ::rtl::OUString m_sContent;
+ ::rtl::OUString m_sContent;
public:
OStringTransferable(const ::rtl::OUString& _rContent);
protected:
// TransferableHelper overridables
- virtual void AddSupportedFormats();
- virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor );
+ virtual void AddSupportedFormats();
+ virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor );
};
//====================================================================
@@ -64,20 +64,20 @@ namespace svt
<p>Beware: In opposite to the old DragServer::CopyString, this method does not <em>add</em> the string
to the clipboard, instead the old clipboard content is <em>replaced</em>!</p>
*/
- SVT_DLLPUBLIC static void CopyString( const ::rtl::OUString& _rContent, Window* _pWindow = NULL );
+ SVT_DLLPUBLIC static void CopyString( const ::rtl::OUString& _rContent, Window* _pWindow = NULL );
/** extracts a string from the system clipboard given
@return <TRUE/> if the extraction was successfull, i.e. if the clipboard contained a string content
*/
- SVT_DLLPUBLIC static sal_Bool PasteString( ::rtl::OUString& _rContent, Window* _pWindow = NULL );
+ SVT_DLLPUBLIC static sal_Bool PasteString( ::rtl::OUString& _rContent, Window* _pWindow = NULL );
/** starts dragging a simple string
*/
- SVT_DLLPUBLIC static void StartStringDrag( const ::rtl::OUString& _rContent, Window* _pWindow, sal_Int8 _nDragSourceActions );
+ SVT_DLLPUBLIC static void StartStringDrag( const ::rtl::OUString& _rContent, Window* _pWindow, sal_Int8 _nDragSourceActions );
};
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
#endif // _SVTOOLS_STRINGTRANSFER_HXX_
diff --git a/svtools/inc/svtools/svicnvw.hxx b/svtools/inc/svtools/svicnvw.hxx
index ea09cbf62c6d..c63bf82325c6 100644
--- a/svtools/inc/svtools/svicnvw.hxx
+++ b/svtools/inc/svtools/svicnvw.hxx
@@ -2,7 +2,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 SvLBoxString;
class SvLBoxContextBmp;
class SvPtrarr;
-#define WB_ICON 0x0001
-#define WB_NAME 0x0002
-#define WB_TEXT 0x0004
-#define WB_FLOW 0x0008
+#define WB_ICON 0x0001
+#define WB_NAME 0x0002
+#define WB_TEXT 0x0004
+#define WB_FLOW 0x0008
-#define ICNVW_FLAG_POS_LOCKED 0x0001
-#define ICNVW_FLAG_USER1 0x1000
-#define ICNVW_FLAG_USER2 0x2000
-#define ICNVW_FLAG_USER3 0x4000
-#define ICNVW_FLAG_USER4 0x8000
+#define ICNVW_FLAG_POS_LOCKED 0x0001
+#define ICNVW_FLAG_USER1 0x1000
+#define ICNVW_FLAG_USER2 0x2000
+#define ICNVW_FLAG_USER3 0x4000
+#define ICNVW_FLAG_USER4 0x8000
enum SvIconViewTextMode
{
ShowTextFull = 1,
ShowTextShort,
- ShowTextSmart, // not implemented
- ShowTextDontKnow // nur fuer Eintraege (->Einstellung der View
+ ShowTextSmart, // not implemented
+ ShowTextDontKnow // nur fuer Eintraege (->Einstellung der View
// wird genommen)
};
class SvIcnVwDataEntry : public SvViewDataEntry
{
friend class SvImpIconView;
- USHORT nIcnVwFlags;
+ USHORT nIcnVwFlags;
SvIconViewTextMode eTextMode;
public:
- Rectangle aRect; // Bounding-Rect des Entries
- Rectangle aGridRect; // gesetzt im Grid-Modus
- Size aTextSize; // nur gesetzt im Grid-Modus
- USHORT nX,nY; // fuer Tastatursteuerung
+ Rectangle aRect; // Bounding-Rect des Entries
+ Rectangle aGridRect; // gesetzt im Grid-Modus
+ Size aTextSize; // nur gesetzt im Grid-Modus
+ USHORT nX,nY; // fuer Tastatursteuerung
SvIcnVwDataEntry();
- virtual ~SvIcnVwDataEntry();
+ virtual ~SvIcnVwDataEntry();
- BOOL IsEntryPosLocked() const { return (BOOL)((nIcnVwFlags & ICNVW_FLAG_POS_LOCKED) !=0); }
- void ClearVwFlags( USHORT nMask ) { nIcnVwFlags &= (~nMask); }
- void SetVwFlags( USHORT nMask ) { nIcnVwFlags |= nMask; }
- USHORT GetVwFlags() const { return nIcnVwFlags; }
+ BOOL IsEntryPosLocked() const { return (BOOL)((nIcnVwFlags & ICNVW_FLAG_POS_LOCKED) !=0); }
+ void ClearVwFlags( USHORT nMask ) { nIcnVwFlags &= (~nMask); }
+ void SetVwFlags( USHORT nMask ) { nIcnVwFlags |= nMask; }
+ USHORT GetVwFlags() const { return nIcnVwFlags; }
SvIconViewTextMode GetTextMode() const { return eTextMode; }
};
@@ -85,31 +85,31 @@ class SvIconView : public SvLBox
{
friend class SvImpIconView;
- SvImpIconView* pImp;
- Image aCollapsedEntryBmp;
- Image aExpandedEntryBmp;
- WinBits nWinBits;
- USHORT nIcnVwFlags;
- void SetModel( SvLBoxTreeList* );
+ SvImpIconView* pImp;
+ Image aCollapsedEntryBmp;
+ Image aExpandedEntryBmp;
+ WinBits nWinBits;
+ USHORT nIcnVwFlags;
+ void SetModel( SvLBoxTreeList* );
protected:
using SvLBox::CreateEntry;
- SvLBoxEntry* CreateEntry( const XubString&, const Image&, const Image&);
- void ViewDataInitialized( SvLBoxEntry* );
- virtual SvViewData* CreateViewData( SvListEntry* );
- virtual void InitViewData( SvViewData* pData, SvListEntry* pEntry );
-
- void EditingRequest(SvLBoxEntry*,SvLBoxItem*,const Point& );
- void EditedText( const XubString& );
- void EditItemText( SvLBoxEntry*,SvLBoxItem*,const Selection& );
- SvLBoxEntry* pCurEdEntry;
- SvLBoxItem* pCurEdItem;
-
- virtual void WriteDragServerInfo( const Point&, SvLBoxDDInfo* );
- virtual void ReadDragServerInfo( const Point&, SvLBoxDDInfo* );
+ SvLBoxEntry* CreateEntry( const XubString&, const Image&, const Image&);
+ void ViewDataInitialized( SvLBoxEntry* );
+ virtual SvViewData* CreateViewData( SvListEntry* );
+ virtual void InitViewData( SvViewData* pData, SvListEntry* pEntry );
+
+ void EditingRequest(SvLBoxEntry*,SvLBoxItem*,const Point& );
+ void EditedText( const XubString& );
+ void EditItemText( SvLBoxEntry*,SvLBoxItem*,const Selection& );
+ SvLBoxEntry* pCurEdEntry;
+ SvLBoxItem* pCurEdItem;
+
+ virtual void WriteDragServerInfo( const Point&, SvLBoxDDInfo* );
+ virtual void ReadDragServerInfo( const Point&, SvLBoxDDInfo* );
virtual void Command( const CommandEvent& rCEvt );
- virtual void PreparePaint( SvLBoxEntry* );
+ virtual void PreparePaint( SvLBoxEntry* );
public:
@@ -119,35 +119,35 @@ public:
void DisconnectFromModel();
- SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
+ SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos=LIST_APPEND );
- SvLBoxEntry* InsertEntry( const XubString& rText,
+ SvLBoxEntry* InsertEntry( const XubString& rText,
const Image& rExpandedEntryBmp,
const Image& rCollapsedEntryBmp,
SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos = LIST_APPEND );
- const Image& GetDefaultExpandedEntryBmp() const { return aExpandedEntryBmp;}
- const Image& GetDefaultCollapsedEntryBmp() const { return aCollapsedEntryBmp;}
- void SetDefaultExpandedEntryBmp( const Image& rBmp) { aExpandedEntryBmp=rBmp;}
- void SetDefaultCollapsedEntryBmp( const Image& rBmp ) { aCollapsedEntryBmp=rBmp;}
+ const Image& GetDefaultExpandedEntryBmp() const { return aExpandedEntryBmp;}
+ const Image& GetDefaultCollapsedEntryBmp() const { return aCollapsedEntryBmp;}
+ void SetDefaultExpandedEntryBmp( const Image& rBmp) { aExpandedEntryBmp=rBmp;}
+ void SetDefaultCollapsedEntryBmp( const Image& rBmp ) { aCollapsedEntryBmp=rBmp;}
- void SetEntryText(SvLBoxEntry*, const XubString& );
- void SetExpandedEntryBmp(SvLBoxEntry*, const Image& );
- void SetCollapsedEntryBmp(SvLBoxEntry*, const Image& );
+ void SetEntryText(SvLBoxEntry*, const XubString& );
+ void SetExpandedEntryBmp(SvLBoxEntry*, const Image& );
+ void SetCollapsedEntryBmp(SvLBoxEntry*, const Image& );
- XubString GetEntryText(SvLBoxEntry*) const;
- Image GetExpandedEntryBmp(SvLBoxEntry*) const;
- Image GetCollapsedEntryBmp(SvLBoxEntry*) const;
+ XubString GetEntryText(SvLBoxEntry*) const;
+ Image GetExpandedEntryBmp(SvLBoxEntry*) const;
+ Image GetCollapsedEntryBmp(SvLBoxEntry*) const;
virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
- virtual USHORT IsA();
+ virtual USHORT IsA();
- virtual void RequestingChilds( SvLBoxEntry* pParent );
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
virtual void Paint( const Rectangle& rRect );
virtual void MouseButtonDown( const MouseEvent& rMEvt );
@@ -157,117 +157,117 @@ public:
virtual void Resize();
virtual void GetFocus();
virtual void LoseFocus();
- void SetUpdateMode( BOOL );
+ void SetUpdateMode( BOOL );
using SvListView::SetModel;
- virtual void SetModel( SvLBoxTreeList*, SvLBoxEntry* pParent );
- virtual void ModelHasCleared();
- virtual void ModelHasInserted( SvListEntry* pEntry );
- virtual void ModelHasInsertedTree( SvListEntry* pEntry );
- virtual void ModelIsMoving(SvListEntry* pSource,
+ virtual void SetModel( SvLBoxTreeList*, SvLBoxEntry* pParent );
+ virtual void ModelHasCleared();
+ virtual void ModelHasInserted( SvListEntry* pEntry );
+ virtual void ModelHasInsertedTree( SvListEntry* pEntry );
+ virtual void ModelIsMoving(SvListEntry* pSource,
SvListEntry* pTargetParent, ULONG nChildPos );
- virtual void ModelHasMoved(SvListEntry* pSource );
- virtual void ModelIsRemoving( SvListEntry* pEntry );
- virtual void ModelHasRemoved( SvListEntry* pEntry );
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void ModelHasMoved(SvListEntry* pSource );
+ virtual void ModelIsRemoving( SvListEntry* pEntry );
+ virtual void ModelHasRemoved( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
- virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
+ virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
using Window::GetDropTarget;
virtual SvLBoxEntry* GetDropTarget( const Point& );
- virtual Region GetDragRegion() const;
+ virtual Region GetDragRegion() const;
// NotifyMoving/Copying ueberladen, da wir bei GetDropTarget
// einen "magic pointer" zurueckgeben, falls in einen leeren
// Bereich auf der IconView gedroppt wird.
- virtual BOOL NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
+ virtual BOOL NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent, ULONG& rNewChildPos);
- virtual BOOL NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
+ virtual BOOL NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent, ULONG& rNewChildPos);
// gibt TopLeft des BoundingRects zurueck
// Konvertierung in Fensterposition: MapMode.Origin addieren
- Point GetEntryPosition( SvLBoxEntry* ) const;
- void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos);
- void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos,
+ Point GetEntryPosition( SvLBoxEntry* ) const;
+ void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos);
+ void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos,
BOOL bAdjustAtGrid );
- void SetFont( const Font& rFont );
- void SetDefaultFont();
+ void SetFont( const Font& rFont );
+ void SetDefaultFont();
using SvLBox::GetEntry;
- SvLBoxEntry* GetEntry( const Point& rPixPos, BOOL ) const;
+ SvLBoxEntry* GetEntry( const Point& rPixPos, BOOL ) const;
// Gibt den naechsten ueber pCurEntry liegenden Eintrag (ZOrder)
- SvLBoxEntry* GetNextEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
+ SvLBoxEntry* GetNextEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
// Gibt den naechsten unter pCurEntry liegenden Eintrag (ZOrder)
- SvLBoxEntry* GetPrevEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
+ SvLBoxEntry* GetPrevEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
- SvLBoxEntry* GetEntryFromLogicPos( const Point& rDocPos ) const;
+ SvLBoxEntry* GetEntryFromLogicPos( const Point& rDocPos ) const;
- void SetWindowBits( WinBits nWinStyle );
- virtual void PaintEntry( SvLBoxEntry* );
- virtual void PaintEntry( SvLBoxEntry*, const Point& rDocPos );
- Rectangle GetFocusRect( SvLBoxEntry* );
- void InvalidateEntry( SvLBoxEntry* );
- void MakeVisible( SvLBoxEntry* );
+ void SetWindowBits( WinBits nWinStyle );
+ virtual void PaintEntry( SvLBoxEntry* );
+ virtual void PaintEntry( SvLBoxEntry*, const Point& rDocPos );
+ Rectangle GetFocusRect( SvLBoxEntry* );
+ void InvalidateEntry( SvLBoxEntry* );
+ void MakeVisible( SvLBoxEntry* );
- void SetDragDropMode( DragDropMode );
- void SetSelectionMode( SelectionMode );
+ void SetDragDropMode( DragDropMode );
+ void SetSelectionMode( SelectionMode );
using SvListView::Select;
BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
- void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
+ void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
virtual void SetCurEntry( SvLBoxEntry* _pEntry );
virtual SvLBoxEntry*
GetCurEntry() const;
// logische Koordinaten
- void SelectRect(
+ void SelectRect(
const Rectangle& rRect,
BOOL bAdd = FALSE,
// die Schnittmenge mit rRect wird invertiert
// wird bei bAdd == FALSE ignoriert
SvPtrarr* pOtherRects = 0,
short nBorderOffs = -5 );
- ULONG GetSelectionCount() const;
+ ULONG GetSelectionCount() const;
- virtual void Arrange();
- void SetSpaceBetweenEntries( long nHor, long Ver );
- long GetHorSpaceBetweenEntries();
- long GetVerSpaceBetweenEntries();
+ virtual void Arrange();
+ void SetSpaceBetweenEntries( long nHor, long Ver );
+ long GetHorSpaceBetweenEntries();
+ long GetVerSpaceBetweenEntries();
- void EnableInplaceEditing( BOOL bEnable );
- void EditEntry( SvLBoxEntry* pEntry = 0 );
- virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
- virtual BOOL EditedEntry( SvLBoxEntry*, const XubString& rNewText );
+ void EnableInplaceEditing( BOOL bEnable );
+ void EditEntry( SvLBoxEntry* pEntry = 0 );
+ virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
+ virtual BOOL EditedEntry( SvLBoxEntry*, const XubString& rNewText );
- void SetCurParent( SvLBoxEntry* pNewParent );
- SvLBoxEntry* GetCurParent() const;
+ void SetCurParent( SvLBoxEntry* pNewParent );
+ SvLBoxEntry* GetCurParent() const;
- virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
+ virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
SvListEntry* pEntry2, ULONG nPos );
// 0,0: Grid-Modus ausschalten
- void SetGrid( long nDX, long nDY );
+ void SetGrid( long nDX, long nDY );
// nDeltaY < 0 : View bewegt sich auf dem Doc nach oben
// nDeltaY > 0 : View bewegt sich auf dem Doc nach unten
// nDeltaX < 0 : View bewegt sich auf dem Doc nach links
// nDeltaX > 0 : View bewegt sich auf dem Doc nach rechts
using Window::Scroll;
- virtual void Scroll( long nDeltaX, long nDeltaY, USHORT nFlags = 0 );
+ virtual void Scroll( long nDeltaX, long nDeltaY, USHORT nFlags = 0 );
- virtual void PrepareCommandEvent( const CommandEvent& );
- virtual void StartDrag( sal_Int8 nAction, const Point& );
- virtual void DragFinished( sal_Int8 );
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
+ virtual void PrepareCommandEvent( const CommandEvent& );
+ virtual void StartDrag( sal_Int8 nAction, const Point& );
+ virtual void DragFinished( sal_Int8 );
+ virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
using SvLBox::ExecuteDrop;
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
- void ShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
- void HideDDIcon();
- void HideShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
+ void ShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
+ void HideDDIcon();
+ void HideShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
// fuers Scrollen beim D&D
- void CalcScrollOffsets(
+ void CalcScrollOffsets(
const Point& rRefPosPixel,
long& rScrollX,
long& rScrollY,
@@ -275,15 +275,15 @@ public:
USHORT nBorderWidth = 10 );
using Window::EndTracking;
- void EndTracking();
- void AdjustAtGrid( SvLBoxEntry* pEntry = 0 );
- void LockEntryPos( SvLBoxEntry* pEntry, BOOL bLock = TRUE );
- BOOL IsEntryPosLocked( const SvLBoxEntry* pEntry ) const;
+ void EndTracking();
+ void AdjustAtGrid( SvLBoxEntry* pEntry = 0 );
+ void LockEntryPos( SvLBoxEntry* pEntry, BOOL bLock = TRUE );
+ BOOL IsEntryPosLocked( const SvLBoxEntry* pEntry ) const;
- void SetTextMode( SvIconViewTextMode, SvLBoxEntry* pEntry = 0 );
+ void SetTextMode( SvIconViewTextMode, SvLBoxEntry* pEntry = 0 );
SvIconViewTextMode GetTextMode( const SvLBoxEntry* pEntry = 0 ) const;
- void ShowFocusRect( const SvLBoxEntry* pEntry );
+ void ShowFocusRect( const SvLBoxEntry* pEntry );
};
#endif
diff --git a/svtools/inc/svtools/svlbitm.hxx b/svtools/inc/svtools/svlbitm.hxx
index f84c457abc4d..bdc2e2e78d01 100644
--- a/svtools/inc/svtools/svlbitm.hxx
+++ b/svtools/inc/svtools/svlbitm.hxx
@@ -2,7 +2,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,19 +39,19 @@
class SvLBoxEntry;
-#define SV_ITEM_ID_LBOXSTRING 1
-#define SV_ITEM_ID_LBOXBMP 2
-#define SV_ITEM_ID_LBOXBUTTON 3
-#define SV_ITEM_ID_LBOXCONTEXTBMP 4
+#define SV_ITEM_ID_LBOXSTRING 1
+#define SV_ITEM_ID_LBOXBMP 2
+#define SV_ITEM_ID_LBOXBUTTON 3
+#define SV_ITEM_ID_LBOXCONTEXTBMP 4
enum SvButtonState { SV_BUTTON_UNCHECKED, SV_BUTTON_CHECKED, SV_BUTTON_TRISTATE };
-#define SV_BMP_UNCHECKED 0
-#define SV_BMP_CHECKED 1
-#define SV_BMP_TRISTATE 2
-#define SV_BMP_HIUNCHECKED 3
-#define SV_BMP_HICHECKED 4
-#define SV_BMP_HITRISTATE 5
+#define SV_BMP_UNCHECKED 0
+#define SV_BMP_CHECKED 1
+#define SV_BMP_TRISTATE 2
+#define SV_BMP_HIUNCHECKED 3
+#define SV_BMP_HICHECKED 4
+#define SV_BMP_HITRISTATE 5
#define SV_BMP_STATICIMAGE 6
struct SvLBoxButtonData_Impl;
@@ -59,15 +59,15 @@ struct SvLBoxButtonData_Impl;
class SVT_DLLPUBLIC SvLBoxButtonData
{
private:
- Link aLink;
- long nWidth;
- long nHeight;
- SvLBoxButtonData_Impl* pImpl;
- BOOL bDataOk;
- SvButtonState eState;
-
- SVT_DLLPRIVATE void SetWidthAndHeight();
- SVT_DLLPRIVATE void InitData( BOOL bImagesFromDefault,
+ Link aLink;
+ long nWidth;
+ long nHeight;
+ SvLBoxButtonData_Impl* pImpl;
+ BOOL bDataOk;
+ SvButtonState eState;
+
+ SVT_DLLPRIVATE void SetWidthAndHeight();
+ SVT_DLLPRIVATE void InitData( BOOL bImagesFromDefault,
bool _bRadioBtn, const Control* pControlForSettings = NULL );
public:
// include creating default images (CheckBox or RadioButton)
@@ -77,27 +77,27 @@ public:
SvLBoxButtonData();
~SvLBoxButtonData();
- USHORT GetIndex( USHORT nItemState );
- inline long Width();
- inline long Height();
- void SetLink( const Link& rLink) { aLink=rLink; }
- const Link& GetLink() const { return aLink; }
- BOOL IsRadio();
+ USHORT GetIndex( USHORT nItemState );
+ inline long Width();
+ inline long Height();
+ void SetLink( const Link& rLink) { aLink=rLink; }
+ const Link& GetLink() const { return aLink; }
+ BOOL IsRadio();
// weil Buttons nicht von LinkHdl abgeleitet sind
- void CallLink();
+ void CallLink();
- void StoreButtonState( SvLBoxEntry* pEntry, USHORT nItemFlags );
- SvButtonState ConvertToButtonState( USHORT nItemFlags ) const;
+ void StoreButtonState( SvLBoxEntry* pEntry, USHORT nItemFlags );
+ SvButtonState ConvertToButtonState( USHORT nItemFlags ) const;
- inline SvButtonState GetActButtonState() const;
- SvLBoxEntry* GetActEntry() const;
+ inline SvButtonState GetActButtonState() const;
+ SvLBoxEntry* GetActEntry() const;
Image aBmps[24]; // Indizes siehe Konstanten BMP_ ....
- void SetDefaultImages( const Control* pControlForSettings = NULL );
+ void SetDefaultImages( const Control* pControlForSettings = NULL );
// set images acording to the color scheeme of the Control
// pControlForSettings == NULL: settings are taken from Application
- BOOL HasDefaultImages( void ) const;
+ BOOL HasDefaultImages( void ) const;
};
inline long SvLBoxButtonData::Width()
@@ -127,14 +127,14 @@ class SVT_DLLPUBLIC SvLBoxString : public SvLBoxItem
public:
SvLBoxString( SvLBoxEntry*,USHORT nFlags,const XubString& rStr);
SvLBoxString();
- virtual ~SvLBoxString();
- virtual USHORT IsA();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- XubString GetText() const { return aStr; }
- void SetText( SvLBoxEntry*, const XubString& rStr );
- void Paint( const Point&, SvLBox& rDev, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
+ virtual ~SvLBoxString();
+ virtual USHORT IsA();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ XubString GetText() const { return aStr; }
+ void SetText( SvLBoxEntry*, const XubString& rStr );
+ void Paint( const Point&, SvLBox& rDev, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
};
class SvLBoxBmp : public SvLBoxItem
@@ -143,20 +143,20 @@ class SvLBoxBmp : public SvLBoxItem
public:
SvLBoxBmp( SvLBoxEntry*, USHORT nFlags, Image );
SvLBoxBmp();
- virtual ~SvLBoxBmp();
- virtual USHORT IsA();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- void SetBitmap( SvLBoxEntry*, Image );
- void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
+ virtual ~SvLBoxBmp();
+ virtual USHORT IsA();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ void SetBitmap( SvLBoxEntry*, Image );
+ void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
};
-#define SV_ITEMSTATE_UNCHECKED 0x0001
-#define SV_ITEMSTATE_CHECKED 0x0002
-#define SV_ITEMSTATE_TRISTATE 0x0004
-#define SV_ITEMSTATE_HILIGHTED 0x0008
+#define SV_ITEMSTATE_UNCHECKED 0x0001
+#define SV_ITEMSTATE_CHECKED 0x0002
+#define SV_ITEMSTATE_TRISTATE 0x0004
+#define SV_ITEMSTATE_HILIGHTED 0x0008
#define SV_STATE_MASK 0xFFF8 // zum Loeschen von UNCHECKED,CHECKED,TRISTATE
enum SvLBoxButtonKind
@@ -168,7 +168,7 @@ enum SvLBoxButtonKind
class SVT_DLLPUBLIC SvLBoxButton : public SvLBoxItem
{
- SvLBoxButtonData* pData;
+ SvLBoxButtonData* pData;
SvLBoxButtonKind eKind;
USHORT nItemFlags;
USHORT nImgArrOffs;
@@ -183,45 +183,45 @@ public:
SvLBoxButtonKind eTheKind, USHORT nFlags,
SvLBoxButtonData* pBData );
SvLBoxButton();
- virtual ~SvLBoxButton();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- virtual USHORT IsA();
- void Check( SvLBox* pView, SvLBoxEntry*, BOOL bCheck );
- virtual BOOL ClickHdl(SvLBox* pView, SvLBoxEntry* );
- void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
- USHORT GetButtonFlags() const { return nItemFlags; }
- BOOL IsStateChecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_CHECKED)!=0; }
- BOOL IsStateUnchecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_UNCHECKED)!=0; }
- BOOL IsStateTristate() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_TRISTATE)!=0; }
- BOOL IsStateHilighted() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_HILIGHTED)!=0; }
- void SetStateChecked();
- void SetStateUnchecked();
- void SetStateTristate();
- void SetStateHilighted( BOOL bHilight );
+ virtual ~SvLBoxButton();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ virtual USHORT IsA();
+ void Check( SvLBox* pView, SvLBoxEntry*, BOOL bCheck );
+ virtual BOOL ClickHdl(SvLBox* pView, SvLBoxEntry* );
+ void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
+ USHORT GetButtonFlags() const { return nItemFlags; }
+ BOOL IsStateChecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_CHECKED)!=0; }
+ BOOL IsStateUnchecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_UNCHECKED)!=0; }
+ BOOL IsStateTristate() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_TRISTATE)!=0; }
+ BOOL IsStateHilighted() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_HILIGHTED)!=0; }
+ void SetStateChecked();
+ void SetStateUnchecked();
+ void SetStateTristate();
+ void SetStateHilighted( BOOL bHilight );
SvLBoxButtonKind GetKind() const { return eKind; }
- void SetBaseOffs( USHORT nOffs ) { nBaseOffs = nOffs; }
- USHORT GetBaseOffs() const { return nBaseOffs; }
+ void SetBaseOffs( USHORT nOffs ) { nBaseOffs = nOffs; }
+ USHORT GetBaseOffs() const { return nBaseOffs; }
// Check whether this button can be modified via UI, sounding a beep if it
// cannot be modified:
bool CheckModification() const;
};
-inline void SvLBoxButton::SetStateChecked()
+inline void SvLBoxButton::SetStateChecked()
{
nItemFlags &= SV_STATE_MASK;
nItemFlags |= SV_ITEMSTATE_CHECKED;
}
-inline void SvLBoxButton::SetStateUnchecked()
+inline void SvLBoxButton::SetStateUnchecked()
{
nItemFlags &= SV_STATE_MASK;
nItemFlags |= SV_ITEMSTATE_UNCHECKED;
}
-inline void SvLBoxButton::SetStateTristate()
+inline void SvLBoxButton::SetStateTristate()
{
nItemFlags &= SV_STATE_MASK;
nItemFlags |= SV_ITEMSTATE_TRISTATE;
@@ -238,26 +238,26 @@ inline void SvLBoxButton::SetStateHilighted( BOOL bHilight )
struct SvLBoxContextBmp_Impl;
class SVT_DLLPUBLIC SvLBoxContextBmp : public SvLBoxItem
{
- SvLBoxContextBmp_Impl* m_pImpl;
+ SvLBoxContextBmp_Impl* m_pImpl;
public:
SvLBoxContextBmp( SvLBoxEntry*,USHORT nFlags,Image,Image,
USHORT nEntryFlagsBmp1);
SvLBoxContextBmp();
- virtual ~SvLBoxContextBmp();
- virtual USHORT IsA();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
+ virtual ~SvLBoxContextBmp();
+ virtual USHORT IsA();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
- BOOL SetModeImages( const Image& _rBitmap1, const Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void GetModeImages( Image& _rBitmap1, Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ BOOL SetModeImages( const Image& _rBitmap1, const Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void GetModeImages( Image& _rBitmap1, Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- inline void SetBitmap1( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline void SetBitmap2( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline const Image& GetBitmap1( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- inline const Image& GetBitmap2( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ inline void SetBitmap1( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline void SetBitmap2( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline const Image& GetBitmap1( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ inline const Image& GetBitmap2( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
private:
Image& implGetImageStore( sal_Bool _bFirst, BmpColorMode _eMode );
@@ -268,12 +268,12 @@ inline void SvLBoxContextBmp::SetBitmap1( const Image& _rImage, BmpColorMode _eM
implGetImageStore( sal_True, _eMode ) = _rImage;
}
-inline void SvLBoxContextBmp::SetBitmap2( const Image& _rImage, BmpColorMode _eMode )
+inline void SvLBoxContextBmp::SetBitmap2( const Image& _rImage, BmpColorMode _eMode )
{
implGetImageStore( sal_False, _eMode ) = _rImage;
}
-inline const Image& SvLBoxContextBmp::GetBitmap1( BmpColorMode _eMode ) const
+inline const Image& SvLBoxContextBmp::GetBitmap1( BmpColorMode _eMode ) const
{
Image& rImage = const_cast< SvLBoxContextBmp* >( this )->implGetImageStore( sal_True, _eMode );
if ( !rImage )
@@ -282,7 +282,7 @@ inline const Image& SvLBoxContextBmp::GetBitmap1( BmpColorMode _eMode ) const
return rImage;
}
-inline const Image& SvLBoxContextBmp::GetBitmap2( BmpColorMode _eMode ) const
+inline const Image& SvLBoxContextBmp::GetBitmap2( BmpColorMode _eMode ) const
{
Image& rImage = const_cast< SvLBoxContextBmp* >( this )->implGetImageStore( sal_False, _eMode );
if ( !rImage )
diff --git a/svtools/inc/svtools/svlbox.hxx b/svtools/inc/svtools/svlbox.hxx
index bd58c3e0735d..b247519e6131 100644
--- a/svtools/inc/svtools/svlbox.hxx
+++ b/svtools/inc/svtools/svlbox.hxx
@@ -2,7 +2,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,23 +68,23 @@ namespace utl {
// *************************** Tabulatoren *****************************
// *********************************************************************
-#define SV_LBOXTAB_DYNAMIC 0x0001 // Ausgabespalte des Items verschiebt
+#define SV_LBOXTAB_DYNAMIC 0x0001 // Ausgabespalte des Items verschiebt
// sich entsprechend Child-Tiefe
-#define SV_LBOXTAB_ADJUST_RIGHT 0x0002 // rechter Rand des Items am Tabulator
-#define SV_LBOXTAB_ADJUST_LEFT 0x0004 // linker Rand ...
-#define SV_LBOXTAB_ADJUST_CENTER 0x0008 // Item am Tabulator zentrieren
-#define SV_LBOXTAB_ADJUST_NUMERIC 0x0010 // Dezimalpunkt am Tabulator (Strings)
+#define SV_LBOXTAB_ADJUST_RIGHT 0x0002 // rechter Rand des Items am Tabulator
+#define SV_LBOXTAB_ADJUST_LEFT 0x0004 // linker Rand ...
+#define SV_LBOXTAB_ADJUST_CENTER 0x0008 // Item am Tabulator zentrieren
+#define SV_LBOXTAB_ADJUST_NUMERIC 0x0010 // Dezimalpunkt am Tabulator (Strings)
// wird nicht mehr unterstuetzt! Fokus richtet sich jetzt nach Selektion!
-#define SV_LBOXTAB_SHOW_FOCUS 0x0020 // Fokus visualisieren
+#define SV_LBOXTAB_SHOW_FOCUS 0x0020 // Fokus visualisieren
-#define SV_LBOXTAB_SHOW_SELECTION 0x0040 // Selektionszustand visualisieren
+#define SV_LBOXTAB_SHOW_SELECTION 0x0040 // Selektionszustand visualisieren
// Item muss umschliessendes Polygon
// zurueckgeben koennen (D&D-Cursor)
-#define SV_LBOXTAB_EDITABLE 0x0100 // Item an Tabulator editierbar
-#define SV_LBOXTAB_PUSHABLE 0x0200 // Item verhaelt sich wie ein Button
-#define SV_LBOXTAB_INV_ALWAYS 0x0400 // Hintergrund immer loeschen
-#define SV_LBOXTAB_FORCE 0x0800 // Default-Berechnung des ersten Tabulators
+#define SV_LBOXTAB_EDITABLE 0x0100 // Item an Tabulator editierbar
+#define SV_LBOXTAB_PUSHABLE 0x0200 // Item verhaelt sich wie ein Button
+#define SV_LBOXTAB_INV_ALWAYS 0x0400 // Hintergrund immer loeschen
+#define SV_LBOXTAB_FORCE 0x0800 // Default-Berechnung des ersten Tabulators
// (auf die sich Abo-Tabpage, Extras/Optionen/Anpassen,
// etc. verlassen) ausschalten. Die Position des ersten
// Tabs entspricht jetzt exakt den eingestellten Flags &
@@ -92,25 +92,25 @@ namespace utl {
class SvLBoxTab
{
- long nPos;
- void* pUserData;
+ long nPos;
+ void* pUserData;
public:
SvLBoxTab();
SvLBoxTab( long nPos, USHORT nFlags=SV_LBOXTAB_ADJUST_LEFT );
SvLBoxTab( const SvLBoxTab& );
~SvLBoxTab();
- USHORT nFlags;
-
- void SetUserData( void* pPtr ) { pUserData = pPtr; }
- void* GetUserData() const { return pUserData; }
- BOOL IsDynamic() const { return (BOOL)((nFlags & SV_LBOXTAB_DYNAMIC)!=0); }
- void SetPos( long nNewPos) { nPos = nNewPos; }
- long GetPos() const { return nPos; }
- long CalcOffset( long nItemLength, long nTabWidth );
- // long CalcOffset( const String&, const OutputDevice& );
- BOOL IsEditable() const { return (BOOL)((nFlags & SV_LBOXTAB_EDITABLE)!=0); }
- BOOL IsPushable() const { return (BOOL)((nFlags & SV_LBOXTAB_PUSHABLE)!=0); }
+ USHORT nFlags;
+
+ void SetUserData( void* pPtr ) { pUserData = pPtr; }
+ void* GetUserData() const { return pUserData; }
+ BOOL IsDynamic() const { return (BOOL)((nFlags & SV_LBOXTAB_DYNAMIC)!=0); }
+ void SetPos( long nNewPos) { nPos = nNewPos; }
+ long GetPos() const { return nPos; }
+ long CalcOffset( long nItemLength, long nTabWidth );
+ // long CalcOffset( const String&, const OutputDevice& );
+ BOOL IsEditable() const { return (BOOL)((nFlags & SV_LBOXTAB_EDITABLE)!=0); }
+ BOOL IsPushable() const { return (BOOL)((nFlags & SV_LBOXTAB_PUSHABLE)!=0); }
};
// *********************************************************************
@@ -120,7 +120,7 @@ public:
class SvViewDataItem
{
public:
- Size aSize;
+ Size aSize;
SvViewDataItem();
~SvViewDataItem();
};
@@ -132,10 +132,10 @@ class SvViewDataEntry : public SvViewData
{
public:
SvViewDataItem* pItemData; // ein Array von SvViewDataItems
- USHORT nItmCnt; // Anzahl Items fuer delete-operator
+ USHORT nItmCnt; // Anzahl Items fuer delete-operator
SvViewDataEntry();
- virtual ~SvViewDataEntry();
+ virtual ~SvViewDataEntry();
};
// *********************************************************************
@@ -147,101 +147,101 @@ class SVT_DLLPUBLIC SvLBoxItem
public:
SvLBoxItem( SvLBoxEntry*, USHORT nFlags );
SvLBoxItem();
- virtual ~SvLBoxItem();
- virtual USHORT IsA() = 0;
- const Size& GetSize( SvLBox* pView, SvLBoxEntry* pEntry );
- const Size& GetSize( SvLBoxEntry*, SvViewDataEntry* );
- const Size& GetSize( SvViewDataEntry* pData, USHORT nItemPos )
+ virtual ~SvLBoxItem();
+ virtual USHORT IsA() = 0;
+ const Size& GetSize( SvLBox* pView, SvLBoxEntry* pEntry );
+ const Size& GetSize( SvLBoxEntry*, SvViewDataEntry* );
+ const Size& GetSize( SvViewDataEntry* pData, USHORT nItemPos )
{
SvViewDataItem* pIData=pData->pItemData+nItemPos;
return pIData->aSize;
}
- virtual void Paint( const Point& rPos, SvLBox& rOutDev,
+ virtual void Paint( const Point& rPos, SvLBox& rOutDev,
USHORT nViewDataEntryFlags,
SvLBoxEntry* pEntry ) = 0;
- virtual void InitViewData( SvLBox* pView, SvLBoxEntry* pEntry,
+ virtual void InitViewData( SvLBox* pView, SvLBoxEntry* pEntry,
// wenn != 0 muss dieser Pointer benutzt werden!
// wenn == 0 muss er ueber die View geholt werden
SvViewDataItem* pViewData = 0) = 0;
virtual SvLBoxItem* Create() const = 0;
// view-abhaengige Daten werden nicht geklont
- virtual void Clone( SvLBoxItem* pSource ) = 0;
+ virtual void Clone( SvLBoxItem* pSource ) = 0;
};
// Flags, die am Model haengen
-#define SV_ENTRYFLAG_CHILDS_ON_DEMAND 0x0001
-#define SV_ENTRYFLAG_DISABLE_DROP 0x0002
-#define SV_ENTRYFLAG_IN_USE 0x0004
+#define SV_ENTRYFLAG_CHILDS_ON_DEMAND 0x0001
+#define SV_ENTRYFLAG_DISABLE_DROP 0x0002
+#define SV_ENTRYFLAG_IN_USE 0x0004
// wird gesetzt, wenn RequestingChilds keine Childs gestzt hat
-#define SV_ENTRYFLAG_NO_NODEBMP 0x0008
+#define SV_ENTRYFLAG_NO_NODEBMP 0x0008
// Eintrag hatte oder hat Kinder
-#define SV_ENTRYFLAG_HAD_CHILDREN 0x0010
+#define SV_ENTRYFLAG_HAD_CHILDREN 0x0010
-#define SV_ENTRYFLAG_USER_FLAGS 0xF000
-#define SV_ENTRYFLAG_SEMITRANSPARENT 0x8000 // draw semi-transparent entry bitmaps
+#define SV_ENTRYFLAG_USER_FLAGS 0xF000
+#define SV_ENTRYFLAG_SEMITRANSPARENT 0x8000 // draw semi-transparent entry bitmaps
class SVT_DLLPUBLIC SvLBoxEntry : public SvListEntry
{
friend class SvLBox;
- SvPtrarr aItems;
- void* pUserData;
- USHORT nEntryFlags;
- SVT_DLLPRIVATE void DeleteItems_Impl();
+ SvPtrarr aItems;
+ void* pUserData;
+ USHORT nEntryFlags;
+ SVT_DLLPRIVATE void DeleteItems_Impl();
public:
SvLBoxEntry();
- virtual ~SvLBoxEntry();
+ virtual ~SvLBoxEntry();
- USHORT ItemCount() const { return (USHORT)aItems.Count(); }
+ USHORT ItemCount() const { return (USHORT)aItems.Count(); }
// DARF NUR GERUFEN WERDEN, WENN DER EINTRAG NOCH NICHT IM MODEL
// EINGEFUEGT IST, DA SONST FUER DAS ITEM KEINE VIEW-ABHAENGIGEN
// DATEN ALLOZIERT WERDEN!
- void AddItem( SvLBoxItem* pItem );
- void ReplaceItem( SvLBoxItem* pNewItem, USHORT nPos );
- SvLBoxItem* GetItem( USHORT nPos ) const { return (SvLBoxItem*)aItems.GetObject(nPos ); }
+ void AddItem( SvLBoxItem* pItem );
+ void ReplaceItem( SvLBoxItem* pNewItem, USHORT nPos );
+ SvLBoxItem* GetItem( USHORT nPos ) const { return (SvLBoxItem*)aItems.GetObject(nPos ); }
SvLBoxItem* GetFirstItem( USHORT nId );
- USHORT GetPos( SvLBoxItem* pItem ) const { return aItems.GetPos( pItem ); }
- void* GetUserData() const { return pUserData; }
- void SetUserData( void* pPtr ) { pUserData = pPtr; }
+ USHORT GetPos( SvLBoxItem* pItem ) const { return aItems.GetPos( pItem ); }
+ void* GetUserData() const { return pUserData; }
+ void SetUserData( void* pPtr ) { pUserData = pPtr; }
virtual void Clone( SvListEntry* pSource );
- void EnableChildsOnDemand( BOOL bEnable=TRUE );
- BOOL HasChildsOnDemand() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_CHILDS_ON_DEMAND)!=0); }
- BOOL HasInUseEmphasis() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_IN_USE)!=0); }
+ void EnableChildsOnDemand( BOOL bEnable=TRUE );
+ BOOL HasChildsOnDemand() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_CHILDS_ON_DEMAND)!=0); }
+ BOOL HasInUseEmphasis() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_IN_USE)!=0); }
- USHORT GetFlags() const { return nEntryFlags; }
- void SetFlags( USHORT nFlags ) { nEntryFlags = nFlags; }
+ USHORT GetFlags() const { return nEntryFlags; }
+ void SetFlags( USHORT nFlags ) { nEntryFlags = nFlags; }
};
// *********************************************************************
// ****************************** SvLBox *******************************
// *********************************************************************
-#define WB_FORCE_SELECTION ((WinBits)0x8000)
+#define WB_FORCE_SELECTION ((WinBits)0x8000)
#define DragDropMode USHORT
-#define SV_DRAGDROP_NONE (DragDropMode)0x0000
-#define SV_DRAGDROP_CTRL_MOVE (DragDropMode)0x0001
-#define SV_DRAGDROP_CTRL_COPY (DragDropMode)0x0002
-#define SV_DRAGDROP_APP_MOVE (DragDropMode)0x0004
-#define SV_DRAGDROP_APP_COPY (DragDropMode)0x0008
-#define SV_DRAGDROP_APP_DROP (DragDropMode)0x0010
+#define SV_DRAGDROP_NONE (DragDropMode)0x0000
+#define SV_DRAGDROP_CTRL_MOVE (DragDropMode)0x0001
+#define SV_DRAGDROP_CTRL_COPY (DragDropMode)0x0002
+#define SV_DRAGDROP_APP_MOVE (DragDropMode)0x0004
+#define SV_DRAGDROP_APP_COPY (DragDropMode)0x0008
+#define SV_DRAGDROP_APP_DROP (DragDropMode)0x0010
// Entries duerfen ueber den obersten Eintrag gedroppt werden.
// Das Drop-Target ist in diesem Fall 0
-#define SV_DRAGDROP_ENABLE_TOP (DragDropMode)0x0020
+#define SV_DRAGDROP_ENABLE_TOP (DragDropMode)0x0020
DECLARE_SVTREELIST(SvLBoxTreeList, SvLBoxEntry*)
#define SVLISTBOX_ID_LBOX 0 // fuer SvLBox::IsA()
-#define SVLBOX_IN_EDT 0x0001
-#define SVLBOX_EDT_ENABLED 0x0002
-#define SVLBOX_IS_EXPANDING 0x0004
-#define SVLBOX_IS_TRAVELSELECT 0x0008
-#define SVLBOX_TARGEMPH_VIS 0x0010
-#define SVLBOX_EDTEND_CALLED 0x0020
+#define SVLBOX_IN_EDT 0x0001
+#define SVLBOX_EDT_ENABLED 0x0002
+#define SVLBOX_IS_EXPANDING 0x0004
+#define SVLBOX_IS_TRAVELSELECT 0x0008
+#define SVLBOX_TARGEMPH_VIS 0x0010
+#define SVLBOX_EDTEND_CALLED 0x0020
class SvLBox;
struct SvLBox_Impl
@@ -281,29 +281,29 @@ class SVT_DLLPUBLIC SvLBox
protected:
- WinBits nWindowStyle;
- Link aExpandedHdl;
- Link aExpandingHdl;
- Link aSelectHdl;
- Link aDeselectHdl;
- Link aDoubleClickHdl;
- SvLBoxEntry* pHdlEntry;
- SvLBoxItem* pHdlItem;
- SvLBoxEntry* pTargetEntry;
+ WinBits nWindowStyle;
+ Link aExpandedHdl;
+ Link aExpandingHdl;
+ Link aSelectHdl;
+ Link aDeselectHdl;
+ Link aDoubleClickHdl;
+ SvLBoxEntry* pHdlEntry;
+ SvLBoxItem* pHdlItem;
+ SvLBoxEntry* pTargetEntry;
SvLBox_Impl* pLBoxImpl;
- USHORT nImpFlags;
+ USHORT nImpFlags;
// Move/CopySelection: Position des aktuellen Eintrags in Selektionsliste
- USHORT nCurEntrySelPos;
+ USHORT nCurEntrySelPos;
- DragDropMode nDragDropMode;
- SelectionMode eSelMode;
- sal_Int8 nDragOptions;
+ DragDropMode nDragDropMode;
+ SelectionMode eSelMode;
+ sal_Int8 nDragOptions;
- BOOL CheckDragAndDropMode( SvLBox* pSource, sal_Int8 );
- void ImplShowTargetEmphasis( SvLBoxEntry* pEntry, BOOL bShow);
- void EnableSelectionAsDropTarget( BOOL bEnable = TRUE,
+ BOOL CheckDragAndDropMode( SvLBox* pSource, sal_Int8 );
+ void ImplShowTargetEmphasis( SvLBoxEntry* pEntry, BOOL bShow);
+ void EnableSelectionAsDropTarget( BOOL bEnable = TRUE,
BOOL bWithChilds = TRUE );
// standard impl gibt 0 zurueck; muss von abgeleiteten Klassen, die
// D&D unterstuetzen, ueberladen werden
@@ -318,43 +318,43 @@ protected:
// invalidate children on enable/disable
virtual void StateChanged( StateChangedType );
-
+
virtual ULONG Insert( SvLBoxEntry* pEnt,SvLBoxEntry* pPar,ULONG nPos=LIST_APPEND);
virtual ULONG Insert( SvLBoxEntry* pEntry,ULONG nRootPos = LIST_APPEND );
- void InsertTree( SvLBoxEntry* pTree, SvLBoxEntry* pTarget) {pModel->InsertTree( pTree, pTarget ); }
+ void InsertTree( SvLBoxEntry* pTree, SvLBoxEntry* pTarget) {pModel->InsertTree( pTree, pTarget ); }
// Inplace-Editing
SvInplaceEdit2* pEdCtrl;
- void EnableInplaceEditing( BOOL bEnable){if(bEnable)nImpFlags|=SVLBOX_EDT_ENABLED; else nImpFlags&=~SVLBOX_EDT_ENABLED;}
- BOOL IsInplaceEditingEnabled() const { return (BOOL)((nImpFlags&SVLBOX_EDT_ENABLED)!=0); }
- virtual void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
+ void EnableInplaceEditing( BOOL bEnable){if(bEnable)nImpFlags|=SVLBOX_EDT_ENABLED; else nImpFlags&=~SVLBOX_EDT_ENABLED;}
+ BOOL IsInplaceEditingEnabled() const { return (BOOL)((nImpFlags&SVLBOX_EDT_ENABLED)!=0); }
+ virtual void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
const Point& rMousePos );
- void EditText( const String&, const Rectangle&,const Selection&);
- void EditText( const String&, const Rectangle&,const Selection&, BOOL bMulti);
- void EditTextMultiLine( const String&, const Rectangle&,const Selection&);
- void CancelTextEditing();
- BOOL IsEditingActive() const { return (BOOL)((nImpFlags & SVLBOX_IN_EDT)!=0); }
- BOOL EditingCanceled() const;
- void EndEditing( BOOL bCancel = FALSE );
+ void EditText( const String&, const Rectangle&,const Selection&);
+ void EditText( const String&, const Rectangle&,const Selection&, BOOL bMulti);
+ void EditTextMultiLine( const String&, const Rectangle&,const Selection&);
+ void CancelTextEditing();
+ BOOL IsEditingActive() const { return (BOOL)((nImpFlags & SVLBOX_IN_EDT)!=0); }
+ BOOL EditingCanceled() const;
+ void EndEditing( BOOL bCancel = FALSE );
bool IsEmptyTextAllowed() const;
void ForbidEmptyText();
// Callback EditText
- virtual void EditedText( const String& );
+ virtual void EditedText( const String& );
// Rueckgabewert muss von SvViewDataEntry abgeleitet sein!
- virtual SvViewData* CreateViewData( SvListEntry* );
+ virtual SvViewData* CreateViewData( SvListEntry* );
// InitViewData wird direkt nach CreateViewData aufgerufen
// In InitViewData ist der Entry noch nicht in die View eingefuegt!
virtual void InitViewData( SvViewData*, SvListEntry* pEntry );
// ruft fuer Items aller Entries InitViewData auf
- void RecalcViewData();
+ void RecalcViewData();
// Callback von RecalcViewData
- virtual void ViewDataInitialized( SvLBoxEntry* );
+ virtual void ViewDataInitialized( SvLBoxEntry* );
virtual void Command( const CommandEvent& rCEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
virtual SvLBoxEntry* GetEntry( const Point& rPos, BOOL bHit=FALSE ) const;
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
// handler and methods for Drag - finished handler. This link can be set
// to the TransferDataContainer. The AddBox/RemoveBox methods must be
@@ -365,74 +365,74 @@ protected:
Link GetDragFinishedHdl() const;
// for asynchronous D&D
- sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt, SvLBox* pSourceView );
+ sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt, SvLBox* pSourceView );
// IMnemonicEntryList
virtual const void* FirstSearchEntry( String& _rEntryText );
virtual const void* NextSearchEntry( const void* _pCurrentSearchEntry, String& _rEntryText );
virtual void SelectSearchEntry( const void* _pEntry );
virtual void ExecuteSearchEntry( const void* _pEntry );
-
+
public:
SvLBox( Window* pParent, WinBits nWinStyle=0 );
SvLBox( Window* pParent, const ResId& rResId );
~SvLBox();
- SvLBoxTreeList* GetModel() const { return (SvLBoxTreeList*)pModel; }
+ SvLBoxTreeList* GetModel() const { return (SvLBoxTreeList*)pModel; }
using SvListView::SetModel;
- void SetModel( SvLBoxTreeList* );
- void DisconnectFromModel();
+ void SetModel( SvLBoxTreeList* );
+ void DisconnectFromModel();
- virtual USHORT IsA();
- ULONG GetEntryCount() const {return pModel->GetEntryCount();}
+ virtual USHORT IsA();
+ ULONG GetEntryCount() const {return pModel->GetEntryCount();}
SvLBoxEntry* First() const { return (SvLBoxEntry*)(pModel->First()); }
SvLBoxEntry* Next( SvLBoxEntry* pEntry, USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Next(pEntry,pDepth));}
- SvLBoxEntry* Prev( SvLBoxEntry* pEntry, USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Prev(pEntry,pDepth));}
- SvLBoxEntry* Last( USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Last(pDepth));}
+ SvLBoxEntry* Prev( SvLBoxEntry* pEntry, USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Prev(pEntry,pDepth));}
+ SvLBoxEntry* Last( USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Last(pDepth));}
- SvLBoxEntry* FirstChild(SvLBoxEntry* pParent ) const { return (SvLBoxEntry*)(pModel->FirstChild(pParent)); }
- SvLBoxEntry* NextSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->NextSibling( pEntry )); }
- SvLBoxEntry* PrevSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->PrevSibling( pEntry )); }
+ SvLBoxEntry* FirstChild(SvLBoxEntry* pParent ) const { return (SvLBoxEntry*)(pModel->FirstChild(pParent)); }
+ SvLBoxEntry* NextSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->NextSibling( pEntry )); }
+ SvLBoxEntry* PrevSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->PrevSibling( pEntry )); }
- SvLBoxEntry* FirstSelected() const { return (SvLBoxEntry*)SvListView::FirstSelected(); }
+ SvLBoxEntry* FirstSelected() const { return (SvLBoxEntry*)SvListView::FirstSelected(); }
using SvListView::NextSelected;
SvLBoxEntry* NextSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::NextSelected(pEntry)); }
using SvListView::PrevSelected;
- SvLBoxEntry* PrevSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::PrevSelected(pEntry)); }
- SvLBoxEntry* LastSelected() const { return (SvLBoxEntry*)(SvListView::LastSelected()); }
+ SvLBoxEntry* PrevSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::PrevSelected(pEntry)); }
+ SvLBoxEntry* LastSelected() const { return (SvLBoxEntry*)(SvListView::LastSelected()); }
- BOOL CopySelection( SvLBox* pSource, SvLBoxEntry* pTarget );
- BOOL MoveSelection( SvLBox* pSource, SvLBoxEntry* pTarget );
- BOOL MoveSelectionCopyFallbackPossible( SvLBox* pSource, SvLBoxEntry* pTarget, sal_Bool bAllowCopyFallback );
- void RemoveSelection();
+ BOOL CopySelection( SvLBox* pSource, SvLBoxEntry* pTarget );
+ BOOL MoveSelection( SvLBox* pSource, SvLBoxEntry* pTarget );
+ BOOL MoveSelectionCopyFallbackPossible( SvLBox* pSource, SvLBoxEntry* pTarget, sal_Bool bAllowCopyFallback );
+ void RemoveSelection();
- DragDropMode GetDragDropMode() const { return nDragDropMode; }
- virtual void SetDragDropMode( DragDropMode );
- SelectionMode GetSelectionMode() const { return eSelMode; }
- virtual void SetSelectionMode( SelectionMode );
+ DragDropMode GetDragDropMode() const { return nDragDropMode; }
+ virtual void SetDragDropMode( DragDropMode );
+ SelectionMode GetSelectionMode() const { return eSelMode; }
+ virtual void SetSelectionMode( SelectionMode );
// pParent==0 -> Root-Ebene
- SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(pParent,nPos)); }
- SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(nRootPos)); }
+ SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(pParent,nPos)); }
+ SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(nRootPos)); }
- SvLBoxEntry* GetEntryFromPath( const ::std::deque< sal_Int32 >& _rPath ) const;
- void FillEntryPath( SvLBoxEntry* pEntry, ::std::deque< sal_Int32 >& _rPath ) const;
- virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
+ SvLBoxEntry* GetEntryFromPath( const ::std::deque< sal_Int32 >& _rPath ) const;
+ void FillEntryPath( SvLBoxEntry* pEntry, ::std::deque< sal_Int32 >& _rPath ) const;
+ virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
using Window::GetParent;
- SvLBoxEntry* GetParent( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetParent(pEntry)); }
- SvLBoxEntry* GetRootLevelParent(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetRootLevelParent( pEntry ));}
+ SvLBoxEntry* GetParent( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetParent(pEntry)); }
+ SvLBoxEntry* GetRootLevelParent(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetRootLevelParent( pEntry ));}
using Window::GetChildCount;
- ULONG GetChildCount( SvLBoxEntry* pParent ) const { return pModel->GetChildCount(pParent); }
- ULONG GetLevelChildCount( SvLBoxEntry* pParent ) const;
+ ULONG GetChildCount( SvLBoxEntry* pParent ) const { return pModel->GetChildCount(pParent); }
+ ULONG GetLevelChildCount( SvLBoxEntry* pParent ) const;
SvViewDataEntry* GetViewDataEntry( SvListEntry* pEntry ) const { return (SvViewDataEntry*)SvListView::GetViewData(pEntry); }
- SvViewDataItem* GetViewDataItem( SvListEntry*, SvLBoxItem* ) const;
+ SvViewDataItem* GetViewDataItem( SvListEntry*, SvLBoxItem* ) const;
- virtual void MakeVisible( SvLBoxEntry* pEntry );
- void Clear();
+ virtual void MakeVisible( SvLBoxEntry* pEntry );
+ void Clear();
/** enables or disables mnemonic characters in the entry texts.
@@ -472,37 +472,37 @@ public:
virtual BOOL Expand( SvLBoxEntry* pParent );
virtual BOOL Collapse( SvLBoxEntry* pParent );
virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
- virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
- virtual void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
+ virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
+ virtual void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
virtual void SetCurEntry( SvLBoxEntry* _pEntry ) = 0;
virtual SvLBoxEntry*
GetCurEntry() const = 0;
// Model
- void SetInUseEmphasis( SvLBoxEntry* pEntry, BOOL bInUse=TRUE);
+ void SetInUseEmphasis( SvLBoxEntry* pEntry, BOOL bInUse=TRUE);
// View
- void SetCursorEmphasis( SvLBoxEntry* pEntry, BOOL bCursored=TRUE);
- BOOL HasCursorEmphasis( SvLBoxEntry* pEntry ) const;
+ void SetCursorEmphasis( SvLBoxEntry* pEntry, BOOL bCursored=TRUE);
+ BOOL HasCursorEmphasis( SvLBoxEntry* pEntry ) const;
void SetSelectHdl( const Link& rNewHdl ) {aSelectHdl=rNewHdl; }
void SetDeselectHdl( const Link& rNewHdl ) {aDeselectHdl=rNewHdl; }
- void SetDoubleClickHdl(const Link& rNewHdl) {aDoubleClickHdl=rNewHdl;}
+ void SetDoubleClickHdl(const Link& rNewHdl) {aDoubleClickHdl=rNewHdl;}
const Link& GetSelectHdl() const { return aSelectHdl; }
const Link& GetDeselectHdl() const { return aDeselectHdl; }
- const Link& GetDoubleClickHdl() const { return aDoubleClickHdl; }
+ const Link& GetDoubleClickHdl() const { return aDoubleClickHdl; }
void SetExpandingHdl(const Link& rNewHdl){aExpandingHdl=rNewHdl;}
- void SetExpandedHdl(const Link& rNewHdl){aExpandedHdl=rNewHdl;}
+ void SetExpandedHdl(const Link& rNewHdl){aExpandedHdl=rNewHdl;}
const Link& GetExpandingHdl() const { return aExpandingHdl; }
- virtual void ExpandedHdl();
- virtual long ExpandingHdl();
- virtual void SelectHdl();
- virtual void DeselectHdl();
- virtual BOOL DoubleClickHdl();
- BOOL IsTravelSelect() const { return (BOOL)((nImpFlags&SVLBOX_IS_TRAVELSELECT)!=0);}
- SvLBoxEntry* GetHdlEntry() const { return pHdlEntry; }
- SvLBoxItem* GetHdlItem() const;
+ virtual void ExpandedHdl();
+ virtual long ExpandingHdl();
+ virtual void SelectHdl();
+ virtual void DeselectHdl();
+ virtual BOOL DoubleClickHdl();
+ BOOL IsTravelSelect() const { return (BOOL)((nImpFlags&SVLBOX_IS_TRAVELSELECT)!=0);}
+ SvLBoxEntry* GetHdlEntry() const { return pHdlEntry; }
+ SvLBoxItem* GetHdlItem() const;
// wird aufgerufen, wenn ein Eintrag mit gesetztem
// ENTRYFLAG_CHILDS_ON_DEMAND expandiert wird.
@@ -511,40 +511,40 @@ public:
// Drag & Drop
//JP 28.3.2001: new Drag & Drop API
- 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 DragDropMode NotifyStartDrag( TransferDataContainer& rData,
+ virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
+ virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData,
SvLBoxEntry* );
- virtual void DragFinished( sal_Int8 nDropAction );
- virtual BOOL NotifyAcceptDrop( SvLBoxEntry* );
+ virtual void DragFinished( sal_Int8 nDropAction );
+ virtual BOOL NotifyAcceptDrop( SvLBoxEntry* );
- void SetDragOptions( sal_Int8 nOptions ) { nDragOptions = nOptions; }
- sal_Int8 GetDragOptions() const { return nDragOptions; }
+ void SetDragOptions( sal_Int8 nOptions ) { nDragOptions = nOptions; }
+ sal_Int8 GetDragOptions() const { return nDragOptions; }
- SvLBox* GetSourceView() const;
- SvLBox* GetTargetView() const;
+ SvLBox* GetSourceView() const;
+ SvLBox* GetTargetView() const;
- virtual void NotifyRemoving( SvLBoxEntry* );
- virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
+ virtual void NotifyRemoving( SvLBoxEntry* );
+ virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
virtual SvLBoxEntry* CreateEntry() const; // zum 'new'en von Entries
// Rueckgabe: TRUE==Ok, FALSE==Abbrechen
- virtual BOOL NotifyMoving(
- SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
- SvLBoxEntry* pEntry, // Zu verschiebender Entry aus
+ virtual BOOL NotifyMoving(
+ SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
+ SvLBoxEntry* pEntry, // Zu verschiebender Entry aus
// GetSourceListBox()->GetModel()
SvLBoxEntry*& rpNewParent, // Neuer Target-Parent
- ULONG& rNewChildPos); // Position in Childlist des Target-Parents
+ ULONG& rNewChildPos); // Position in Childlist des Target-Parents
// Rueckgabe: TRUE==Ok, FALSE==Abbrechen
- virtual BOOL NotifyCopying(
- SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
- SvLBoxEntry* pEntry, // Zu kopierender Entry aus
+ virtual BOOL NotifyCopying(
+ SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
+ SvLBoxEntry* pEntry, // Zu kopierender Entry aus
// GetSourceListBox()->GetModel()
SvLBoxEntry*& rpNewParent, // Neuer Target-Parent
- ULONG& rNewChildPos); // Position in Childlist des Target-Parents
+ ULONG& rNewChildPos); // Position in Childlist des Target-Parents
// ACCESSIBILITY ==========================================================
@@ -559,7 +559,7 @@ public:
@param pEntry
The entry.
@return The bounding rectangle of an entry. */
- virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
+ virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
protected:
using SvListView::Expand;
@@ -572,24 +572,24 @@ protected:
#define SV_LBOX_DD_FORMAT "SV_LBOX_DD_FORMAT"
struct SvLBoxDDInfo
{
- Application* pApp;
- SvLBox* pSource;
- SvLBoxEntry* pDDStartEntry;
+ Application* pApp;
+ SvLBox* pSource;
+ SvLBoxEntry* pDDStartEntry;
// relative Position im Eintrag bei Drag-Beginn (IconView)
- long nMouseRelX,nMouseRelY;
- ULONG nRes1,nRes2,nRes3,nRes4;
+ long nMouseRelX,nMouseRelY;
+ ULONG nRes1,nRes2,nRes3,nRes4;
};
class SvInplaceEdit : public Edit
{
- Link aCallBackHdl;
+ Link aCallBackHdl;
Accelerator aAccReturn;
Accelerator aAccEscape;
- Timer aTimer;
- BOOL bCanceled;
- BOOL bAlreadyInCallBack;
+ Timer aTimer;
+ BOOL bCanceled;
+ BOOL bAlreadyInCallBack;
- void CallCallBackHdl_Impl();
+ void CallCallBackHdl_Impl();
DECL_LINK( Timeout_Impl, Timer * );
DECL_LINK( ReturnHdl_Impl, Accelerator * );
DECL_LINK( EscapeHdl_Impl, Accelerator * );
@@ -600,25 +600,25 @@ public:
const Selection& );
~SvInplaceEdit();
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void LoseFocus();
- BOOL EditingCanceled() const { return bCanceled; }
- String GetText() const { return Edit::GetText(); }
- void StopEditing( BOOL bCancel = FALSE );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void LoseFocus();
+ BOOL EditingCanceled() const { return bCanceled; }
+ String GetText() const { return Edit::GetText(); }
+ void StopEditing( BOOL bCancel = FALSE );
};
class SvInplaceEdit2
{
- Link aCallBackHdl;
+ Link aCallBackHdl;
Accelerator aAccReturn;
Accelerator aAccEscape;
- Timer aTimer;
- Edit* pEdit;
- BOOL bCanceled;
- BOOL bAlreadyInCallBack;
- BOOL bMultiLine;
+ Timer aTimer;
+ Edit* pEdit;
+ BOOL bCanceled;
+ BOOL bAlreadyInCallBack;
+ BOOL bMultiLine;
- void CallCallBackHdl_Impl();
+ void CallCallBackHdl_Impl();
DECL_LINK( Timeout_Impl, Timer * );
DECL_LINK( ReturnHdl_Impl, Accelerator * );
DECL_LINK( EscapeHdl_Impl, Accelerator * );
@@ -628,13 +628,13 @@ public:
const String& rData, const Link& rNotifyEditEnd,
const Selection&, BOOL bMultiLine = FALSE );
~SvInplaceEdit2();
- BOOL KeyInput( const KeyEvent& rKEvt );
- void LoseFocus();
- BOOL EditingCanceled() const { return bCanceled; }
- String GetText() const;
- String GetSavedValue() const;
- void StopEditing( BOOL bCancel = FALSE );
- void Hide();
+ BOOL KeyInput( const KeyEvent& rKEvt );
+ void LoseFocus();
+ BOOL EditingCanceled() const { return bCanceled; }
+ String GetText() const;
+ String GetSavedValue() const;
+ void StopEditing( BOOL bCancel = FALSE );
+ void Hide();
};
inline SvViewDataItem* SvLBox::GetViewDataItem( SvListEntry* pEntry,
diff --git a/svtools/inc/svtools/svmedit.hxx b/svtools/inc/svtools/svmedit.hxx
index 7deaa8e1a93a..420a72fac997 100644
--- a/svtools/inc/svtools/svmedit.hxx
+++ b/svtools/inc/svtools/svmedit.hxx
@@ -2,7 +2,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,29 +44,29 @@ class ExtTextView;
class SVT_DLLPUBLIC MultiLineEdit : public Edit
{
private:
- ImpSvMEdit* pImpSvMEdit;
+ ImpSvMEdit* pImpSvMEdit;
- XubString aSaveValue;
- Link aModifyHdlLink;
+ XubString aSaveValue;
+ Link aModifyHdlLink;
- Timer* pUpdateDataTimer;
- Link aUpdateDataHdlLink;
+ Timer* pUpdateDataTimer;
+ Link aUpdateDataHdlLink;
protected:
- DECL_LINK( ImpUpdateDataHdl, Timer* );
- void StateChanged( StateChangedType nType );
- void DataChanged( const DataChangedEvent& rDCEvt );
- virtual long PreNotify( NotifyEvent& rNEvt );
- long Notify( NotifyEvent& rNEvt );
+ DECL_LINK( ImpUpdateDataHdl, Timer* );
+ void StateChanged( StateChangedType nType );
+ void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ long Notify( NotifyEvent& rNEvt );
using Control::ImplInitSettings;
- void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- WinBits ImplInitStyle( WinBits nStyle );
+ void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ WinBits ImplInitStyle( WinBits nStyle );
- ExtTextEngine* GetTextEngine() const;
- ExtTextView* GetTextView() const;
- ScrollBar* GetHScrollBar() const;
- ScrollBar* GetVScrollBar() const;
+ ExtTextEngine* GetTextEngine() const;
+ ExtTextView* GetTextView() const;
+ ScrollBar* GetHScrollBar() const;
+ ScrollBar* GetVScrollBar() const;
public:
MultiLineEdit( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER );
@@ -74,71 +74,71 @@ public:
~MultiLineEdit();
- virtual void Modify();
- virtual void UpdateData();
+ virtual void Modify();
+ virtual void UpdateData();
- virtual void SetModifyFlag();
- virtual void ClearModifyFlag();
- virtual BOOL IsModified() const;
+ virtual void SetModifyFlag();
+ virtual void ClearModifyFlag();
+ virtual BOOL IsModified() const;
- virtual void EnableUpdateData( ULONG nTimeout = EDIT_UPDATEDATA_TIMEOUT );
- virtual void DisableUpdateData() { delete pUpdateDataTimer; pUpdateDataTimer = NULL; }
- virtual ULONG IsUpdateDataEnabled() const;
+ virtual void EnableUpdateData( ULONG nTimeout = EDIT_UPDATEDATA_TIMEOUT );
+ virtual void DisableUpdateData() { delete pUpdateDataTimer; pUpdateDataTimer = NULL; }
+ virtual ULONG IsUpdateDataEnabled() const;
- virtual void SetReadOnly( BOOL bReadOnly = TRUE );
- virtual BOOL IsReadOnly() const;
+ virtual void SetReadOnly( BOOL bReadOnly = TRUE );
+ virtual BOOL IsReadOnly() const;
- void EnableFocusSelectionHide( BOOL bHide );
- BOOL IsFocusSelectionHideEnabled() const;
+ void EnableFocusSelectionHide( BOOL bHide );
+ BOOL IsFocusSelectionHideEnabled() const;
- virtual void SetMaxTextLen( xub_StrLen nMaxLen = 0 );
+ virtual void SetMaxTextLen( xub_StrLen nMaxLen = 0 );
virtual xub_StrLen GetMaxTextLen() const;
- virtual void SetSelection( const Selection& rSelection );
+ virtual void SetSelection( const Selection& rSelection );
virtual const Selection& GetSelection() const;
- virtual void ReplaceSelected( const XubString& rStr );
- virtual void DeleteSelected();
- virtual XubString GetSelected() const;
- virtual XubString GetSelected( LineEnd aSeparator ) const;
+ virtual void ReplaceSelected( const XubString& rStr );
+ virtual void DeleteSelected();
+ virtual XubString GetSelected() const;
+ virtual XubString GetSelected( LineEnd aSeparator ) const;
- virtual void Cut();
- virtual void Copy();
- virtual void Paste();
+ virtual void Cut();
+ virtual void Copy();
+ virtual void Paste();
virtual void SetText( const XubString& rStr );
virtual void SetText( const XubString& rStr, const Selection& rNewSelection )
{ SetText( rStr ); SetSelection( rNewSelection ); }
- String GetText() const;
- String GetText( LineEnd aSeparator ) const;
- String GetTextLines() const;
- String GetTextLines( LineEnd aSeparator ) const;
+ String GetText() const;
+ String GetText( LineEnd aSeparator ) const;
+ String GetTextLines() const;
+ String GetTextLines( LineEnd aSeparator ) const;
void SetRightToLeft( BOOL bRightToLeft );
BOOL IsRightToLeft() const;
- void SaveValue() { aSaveValue = GetText(); }
- const XubString& GetSavedValue() const { return aSaveValue; }
+ void SaveValue() { aSaveValue = GetText(); }
+ const XubString& GetSavedValue() const { return aSaveValue; }
- void SetModifyHdl( const Link& rLink ) { aModifyHdlLink = rLink; }
- const Link& GetModifyHdl() const { return aModifyHdlLink; }
+ void SetModifyHdl( const Link& rLink ) { aModifyHdlLink = rLink; }
+ const Link& GetModifyHdl() const { return aModifyHdlLink; }
- void SetUpdateDataHdl( const Link& rLink ) { aUpdateDataHdlLink = rLink; }
- const Link& GetUpdateDataHdl() const { return aUpdateDataHdlLink; }
+ void SetUpdateDataHdl( const Link& rLink ) { aUpdateDataHdlLink = rLink; }
+ const Link& GetUpdateDataHdl() const { return aUpdateDataHdlLink; }
- virtual void Resize();
- virtual void GetFocus();
+ virtual void Resize();
+ virtual void GetFocus();
- Size CalcMinimumSize() const;
- Size CalcAdjustedSize( const Size& rPrefSize ) const;
+ Size CalcMinimumSize() const;
+ Size CalcAdjustedSize( const Size& rPrefSize ) const;
using Edit::CalcSize;
- Size CalcSize( USHORT nColumns, USHORT nLines ) const;
- void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
+ Size CalcSize( USHORT nColumns, USHORT nLines ) const;
+ void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
- void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- void SetLeftMargin( USHORT n );
- USHORT GetLeftMargin() const;
+ void SetLeftMargin( USHORT n );
+ USHORT GetLeftMargin() const;
virtual
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >
diff --git a/svtools/inc/svtools/svmedit2.hxx b/svtools/inc/svtools/svmedit2.hxx
index 5df3669c5656..2391cdf999af 100644
--- a/svtools/inc/svtools/svmedit2.hxx
+++ b/svtools/inc/svtools/svmedit2.hxx
@@ -2,7 +2,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,14 +41,14 @@ public:
~ExtMultiLineEdit();
// methods of TextView
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
- void SetAutoScroll( BOOL bAutoScroll );
- void EnableCursor( BOOL bEnable );
+ void InsertText( const String& rNew, BOOL bSelect = FALSE );
+ void SetAutoScroll( BOOL bAutoScroll );
+ void EnableCursor( BOOL bEnable );
// methods of TextEngine
- void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd );
- void SetLeftMargin( USHORT nLeftMargin );
- ULONG GetParagraphCount() const;
+ void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd );
+ void SetLeftMargin( USHORT nLeftMargin );
+ ULONG GetParagraphCount() const;
};
#endif
diff --git a/svtools/inc/svtools/svparser.hxx b/svtools/inc/svtools/svparser.hxx
index 182c77878490..3a403b26cb3d 100644
--- a/svtools/inc/svtools/svparser.hxx
+++ b/svtools/inc/svtools/svparser.hxx
@@ -2,7 +2,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,55 +55,55 @@ class SVT_DLLPUBLIC SvParser : public SvRefBase
DECL_STATIC_LINK( SvParser, NewDataRead, void* );
protected:
- SvStream& rInput;
- String aToken; // gescanntes Token
- ULONG nlLineNr; // akt. Zeilen Nummer
- ULONG nlLinePos; // akt. Spalten Nummer
+ SvStream& rInput;
+ String aToken; // gescanntes Token
+ ULONG nlLineNr; // akt. Zeilen Nummer
+ ULONG nlLinePos; // akt. Spalten Nummer
- SvParser_Impl *pImplData; // interne Daten
- long nTokenValue; // zusaetzlicher Wert (RTF)
+ SvParser_Impl *pImplData; // interne Daten
+ long nTokenValue; // zusaetzlicher Wert (RTF)
BOOL bTokenHasValue; // indicates whether nTokenValue is valid
- SvParserState eState; // Status auch in abgl. Klassen
+ SvParserState eState; // Status auch in abgl. Klassen
- rtl_TextEncoding eSrcEnc; // Source encoding
+ rtl_TextEncoding eSrcEnc; // Source encoding
ULONG nNextChPos;
- sal_Unicode nNextCh; // Akt. Zeichen fuer die "lex"
+ sal_Unicode nNextCh; // Akt. Zeichen fuer die "lex"
- BOOL bDownloadingFile : 1;// TRUE: Es wird gerade ein externes
- // File geladen. d.h. alle
- // DataAvailable Links muessen
- // ignoriert werden.
+ BOOL bDownloadingFile : 1;// TRUE: Es wird gerade ein externes
+ // File geladen. d.h. alle
+ // DataAvailable Links muessen
+ // ignoriert werden.
// Wenn keibes der folgenden
// Flags gesetzt ist, wird der
// Stream als ANSI gelesen,
// aber als CharSet DONTKNOW
// zurueckgegeben.
- BOOL bUCS2BSrcEnc : 1; // oder als big-endian UCS2
- BOOL bSwitchToUCS2 : 1; // Umschalten des ist erlaubt
+ BOOL bUCS2BSrcEnc : 1; // oder als big-endian UCS2
+ BOOL bSwitchToUCS2 : 1; // Umschalten des ist erlaubt
- BOOL bRTF_InTextRead : 1; // only for RTF-Parser!!!
+ BOOL bRTF_InTextRead : 1; // only for RTF-Parser!!!
struct TokenStackType
{
- String sToken;
- long nTokenValue;
- BOOL bTokenHasValue;
- int nTokenId;
+ String sToken;
+ long nTokenValue;
+ BOOL bTokenHasValue;
+ int nTokenId;
inline TokenStackType() { nTokenId = 0; }
inline ~TokenStackType() { }
};
// Methoden fuer Token-Stack
- int SkipToken( short nCnt = -1 ); // n Tokens zurueck "skippen"
+ int SkipToken( short nCnt = -1 ); // n Tokens zurueck "skippen"
TokenStackType* GetStackPtr( short nCnt );
inline BYTE GetStackPos() const;
// scanne das naechste Token:
- // Tokenstack abarbeiten und ggfs. _GetNextToken() rufen. Diese
- // ist fuers erkennen von neuen Token verantwortlich
+ // Tokenstack abarbeiten und ggfs. _GetNextToken() rufen. Diese
+ // ist fuers erkennen von neuen Token verantwortlich
int GetNextToken();
virtual int _GetNextToken() = 0;
@@ -111,7 +111,7 @@ protected:
virtual void NextToken( int nToken );
// zu Zeiten der SvRefBase-Ableitung darf nicht jeder loeschen
- virtual ~SvParser();
+ virtual ~SvParser();
void ClearTxtConvContext();
@@ -124,21 +124,21 @@ public:
// Konstruktor
SvParser( SvStream& rIn, BYTE nStackSize = 3 );
- virtual SvParserState CallParser() = 0; // Aufruf des Parsers
+ virtual SvParserState CallParser() = 0; // Aufruf des Parsers
- inline SvParserState GetStatus() const { return eState; } // StatusInfo
+ inline SvParserState GetStatus() const { return eState; } // StatusInfo
- inline ULONG GetLineNr() const { return nlLineNr; }
- inline ULONG GetLinePos() const { return nlLinePos; }
- inline ULONG IncLineNr() { return ++nlLineNr; }
- inline ULONG IncLinePos() { return ++nlLinePos; }
- inline ULONG SetLineNr( ULONG nlNum ); // inline unten
- inline ULONG SetLinePos( ULONG nlPos ); // inline unten
+ inline ULONG GetLineNr() const { return nlLineNr; }
+ inline ULONG GetLinePos() const { return nlLinePos; }
+ inline ULONG IncLineNr() { return ++nlLineNr; }
+ inline ULONG IncLinePos() { return ++nlLinePos; }
+ inline ULONG SetLineNr( ULONG nlNum ); // inline unten
+ inline ULONG SetLinePos( ULONG nlPos ); // inline unten
- sal_Unicode GetNextChar();
+ sal_Unicode GetNextChar();
void RereadLookahead();
- inline int IsParserWorking() const { return SVPAR_WORKING == eState; }
+ inline int IsParserWorking() const { return SVPAR_WORKING == eState; }
Link GetAsynchCallLink() const
{ return STATIC_LINK( this, SvParser, NewDataRead ); }
@@ -189,13 +189,13 @@ SV_IMPL_REF(SvParser)
inline ULONG SvParser::SetLineNr( ULONG nlNum )
-{ ULONG nlOld = nlLineNr; nlLineNr = nlNum; return nlOld; }
+{ ULONG nlOld = nlLineNr; nlLineNr = nlNum; return nlOld; }
inline ULONG SvParser::SetLinePos( ULONG nlPos )
-{ ULONG nlOld = nlLinePos; nlLinePos = nlPos; return nlOld; }
+{ ULONG nlOld = nlLinePos; nlLinePos = nlPos; return nlOld; }
inline BYTE SvParser::GetStackPos() const
-{ return nTokenStackPos; }
+{ return nTokenStackPos; }
inline USHORT SvParser::GetCharSize() const
{
diff --git a/svtools/inc/svtools/svtabbx.hxx b/svtools/inc/svtools/svtabbx.hxx
index e47d64f8ceed..5825164075fb 100644
--- a/svtools/inc/svtools/svtabbx.hxx
+++ b/svtools/inc/svtools/svtabbx.hxx
@@ -2,7 +2,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,41 +58,41 @@ struct TabListBoxEventData
class SVT_DLLPUBLIC SvTabListBox : public SvTreeListBox
{
private:
- SvLBoxTab* pTabList;
- USHORT nTabCount;
- XubString aCurEntry;
- ULONG nDummy1;
- ULONG nDummy2;
+ SvLBoxTab* pTabList;
+ USHORT nTabCount;
+ XubString aCurEntry;
+ ULONG nDummy1;
+ ULONG nDummy2;
protected:
- SvLBoxEntry* pViewParent;
+ SvLBoxEntry* pViewParent;
- static const xub_Unicode* GetToken( const xub_Unicode* pPtr, USHORT& rLen );
+ static const xub_Unicode* GetToken( const xub_Unicode* pPtr, USHORT& rLen );
- virtual void SetTabs();
- virtual void InitEntry( SvLBoxEntry*, const XubString&, const Image&, const Image&, SvLBoxButtonKind );
+ virtual void SetTabs();
+ virtual void InitEntry( SvLBoxEntry*, const XubString&, const Image&, const Image&, SvLBoxButtonKind );
- String GetTabEntryText( ULONG nPos, USHORT nCol ) const;
- SvLBoxEntry* GetEntryOnPos( ULONG _nEntryPos ) const;
- SvLBoxEntry* GetChildOnPos( SvLBoxEntry* _pParent, ULONG _nEntryPos, ULONG& _rPos ) const;
+ String GetTabEntryText( ULONG nPos, USHORT nCol ) const;
+ SvLBoxEntry* GetEntryOnPos( ULONG _nEntryPos ) const;
+ SvLBoxEntry* GetChildOnPos( SvLBoxEntry* _pParent, ULONG _nEntryPos, ULONG& _rPos ) const;
public:
SvTabListBox( Window* pParent, WinBits = WB_BORDER );
SvTabListBox( Window* pParent, const ResId& );
~SvTabListBox();
- void SetTabs( long* pTabs, MapUnit = MAP_APPFONT );
- USHORT TabCount() const { return (USHORT)nTabCount; }
+ void SetTabs( long* pTabs, MapUnit = MAP_APPFONT );
+ USHORT TabCount() const { return (USHORT)nTabCount; }
using SvTreeListBox::GetTab;
- long GetTab( USHORT nTab ) const;
- void SetTab( USHORT nTab, long nValue, MapUnit = MAP_APPFONT );
- long GetLogicTab( USHORT nTab );
+ long GetTab( USHORT nTab ) const;
+ void SetTab( USHORT nTab, long nValue, MapUnit = MAP_APPFONT );
+ long GetLogicTab( USHORT nTab );
- virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos=LIST_APPEND, void* pUserData = 0,
SvLBoxButtonKind eButtonKind = SvLBoxButtonKind_enabledCheckbox );
- virtual SvLBoxEntry* InsertEntry( const XubString& rText,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText,
const Image& rExpandedEntryBmp,
const Image& rCollapsedEntryBmp,
SvLBoxEntry* pParent = 0,
@@ -108,19 +108,19 @@ public:
const Image& rCollapsedEntryBmp, SvLBoxEntry* pParent = NULL,
ULONG nPos = LIST_APPEND, USHORT nCol = 0xffff, void* pUserData = NULL );
- virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
- String GetEntryText( SvLBoxEntry*, USHORT nCol ) const;
- String GetEntryText( ULONG nPos, USHORT nCol = 0xffff ) const;
+ virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
+ String GetEntryText( SvLBoxEntry*, USHORT nCol ) const;
+ String GetEntryText( ULONG nPos, USHORT nCol = 0xffff ) const;
using SvTreeListBox::SetEntryText;
- void SetEntryText( const XubString&, ULONG, USHORT nCol=0xffff );
- void SetEntryText(const XubString&,SvLBoxEntry*,USHORT nCol=0xffff);
+ void SetEntryText( const XubString&, ULONG, USHORT nCol=0xffff );
+ void SetEntryText(const XubString&,SvLBoxEntry*,USHORT nCol=0xffff);
String GetCellText( ULONG nPos, USHORT nCol ) const;
- ULONG GetEntryPos( const XubString&, USHORT nCol = 0xffff );
- ULONG GetEntryPos( const SvLBoxEntry* pEntry ) const;
+ ULONG GetEntryPos( const XubString&, USHORT nCol = 0xffff );
+ ULONG GetEntryPos( const SvLBoxEntry* pEntry ) const;
- virtual void Resize();
- void SetTabJustify( USHORT nTab, SvTabJustify );
- SvTabJustify GetTabJustify( USHORT nTab ) const;
+ virtual void Resize();
+ void SetTabJustify( USHORT nTab, SvTabJustify );
+ SvTabJustify GetTabJustify( USHORT nTab ) const;
};
inline long SvTabListBox::GetTab( USHORT nTab ) const
@@ -141,12 +141,12 @@ namespace svt {
class SVT_DLLPUBLIC SvHeaderTabListBox : public SvTabListBox, public svt::IAccessibleTableProvider
{
private:
- typedef ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > > AccessibleChildren;
+ typedef ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > > AccessibleChildren;
- sal_Bool m_bFirstPaint;
+ sal_Bool m_bFirstPaint;
::svt::SvHeaderTabListBoxImpl* m_pImpl;
::svt::IAccessibleTabListBox* m_pAccessible;
- AccessibleChildren m_aAccessibleChildren;
+ AccessibleChildren m_aAccessibleChildren;
DECL_DLLPRIVATE_LINK( ScrollHdl_Impl, SvTabListBox* );
DECL_DLLPRIVATE_LINK( CreateAccessibleHdl_Impl, HeaderBar* );
@@ -158,9 +158,9 @@ public:
SvHeaderTabListBox( Window* pParent, const ResId& );
~SvHeaderTabListBox();
- virtual void Paint( const Rectangle& );
+ virtual void Paint( const Rectangle& );
- void InitHeaderBar( HeaderBar* pHeaderBar );
+ void InitHeaderBar( HeaderBar* pHeaderBar );
sal_Bool IsItemChecked( SvLBoxEntry* pEntry, USHORT nCol ) const;
virtual SvLBoxEntry* InsertEntryToColumn( const XubString&, ULONG nPos = LIST_APPEND,
@@ -183,85 +183,85 @@ public:
sal_Bool IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, TriState& _rState );
/** @return The count of the rows. */
- virtual long GetRowCount() const;
+ virtual long GetRowCount() const;
/** @return The count of the columns. */
- virtual sal_uInt16 GetColumnCount() const;
+ virtual sal_uInt16 GetColumnCount() const;
/** @return The position of the current row. */
- virtual sal_Int32 GetCurrRow() const;
+ virtual sal_Int32 GetCurrRow() const;
/** @return The position of the current column. */
- virtual sal_uInt16 GetCurrColumn() const;
+ virtual sal_uInt16 GetCurrColumn() const;
/** @return The description of a row.
@param _nRow The row which description is in demand. */
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
/** @return The description of a column.
@param _nColumn The column which description is in demand. */
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
/** @return <TRUE/>, if the object has a row header. */
- virtual sal_Bool HasRowHeader() const; //GetColumnId
+ virtual sal_Bool HasRowHeader() const; //GetColumnId
/** @return <TRUE/>, if the object can focus a cell. */
- virtual sal_Bool IsCellFocusable() const;
+ virtual sal_Bool IsCellFocusable() const;
virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
- virtual void SetNoSelection();
+ virtual void SetNoSelection();
using SvListView::SelectAll;
- virtual void SelectAll();
- virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
- virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE );
- virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
- virtual sal_Int32 GetSelectedRowCount() const;
- virtual sal_Int32 GetSelectedColumnCount() const;
+ virtual void SelectAll();
+ virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
+ virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE );
+ virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
+ virtual sal_Int32 GetSelectedRowCount() const;
+ virtual sal_Int32 GetSelectedColumnCount() const;
/** @return <TRUE/>, if the row is selected. */
- virtual bool IsRowSelected( long _nRow ) const;
- virtual sal_Bool IsColumnSelected( long _nColumn ) const;
- virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
- virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
+ virtual bool IsRowSelected( long _nRow ) const;
+ virtual sal_Bool IsColumnSelected( long _nColumn ) const;
+ virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
+ virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
/** @return <TRUE/>, if the cell is visible. */
- virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
- virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const;
+ virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
+ virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const;
- virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE );
- virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE );
- virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumn, BOOL _bIsHeader, BOOL _bOnScreen = TRUE );
+ virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE );
+ virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE );
+ virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumn, BOOL _bIsHeader, BOOL _bOnScreen = TRUE );
- virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
- virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow );
- virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos );
+ virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
+ virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow );
+ virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos );
- virtual sal_Int32 GetAccessibleControlCount() const;
- virtual XACC CreateAccessibleControl( sal_Int32 _nIndex );
- virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint );
+ virtual sal_Int32 GetAccessibleControlCount() const;
+ virtual XACC CreateAccessibleControl( sal_Int32 _nIndex );
+ virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint );
- virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint );
- virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint );
- virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint );
+ virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint );
+ virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint );
+ virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint );
- virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
- virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
- virtual Window* GetWindowInstance();
+ virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
+ virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
+ virtual Window* GetWindowInstance();
using SvTreeListBox::FillAccessibleStateSet;
- virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const;
- virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
- virtual void GrabTableFocus();
+ virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const;
+ virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
+ virtual void GrabTableFocus();
// OutputDevice
- virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
+ virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
// Window
- virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
- virtual void GrabFocus();
- virtual XACC GetAccessible( BOOL bCreate = TRUE );
- virtual Window* GetAccessibleParentWindow() const;
+ virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
+ virtual void GrabFocus();
+ virtual XACC GetAccessible( BOOL bCreate = TRUE );
+ virtual Window* GetAccessibleParentWindow() const;
/** Creates and returns the accessible object of the whole BrowseBox. */
- virtual XACC CreateAccessible();
+ virtual XACC CreateAccessible();
- virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex);
- virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint);
+ virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex);
+ virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint);
};
#endif // #ifndef _SVTABBX_HXX
diff --git a/svtools/inc/svtools/svtdata.hxx b/svtools/inc/svtools/svtdata.hxx
index 5c1900b2493a..458068685018 100644
--- a/svtools/inc/svtools/svtdata.hxx
+++ b/svtools/inc/svtools/svtdata.hxx
@@ -2,7 +2,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,8 +40,8 @@ class ImpSvtData
{
public:
SfxItemDesruptorList_Impl * pItemDesruptList;
- ResMgr * pResMgr;
- ResMgr * pPatchResMgr;
+ ResMgr * pResMgr;
+ ResMgr * pPatchResMgr;
private:
ImpSvtData():
diff --git a/svtools/inc/svtools/svtdllapi.h b/svtools/inc/svtools/svtdllapi.h
index 5a15b20c2020..3fe56747fea8 100644
--- a/svtools/inc/svtools/svtdllapi.h
+++ b/svtools/inc/svtools/svtdllapi.h
@@ -2,7 +2,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/svtools/inc/svtools/svtools.hrc b/svtools/inc/svtools/svtools.hrc
index 107c3655ed84..d6e679a9f2fa 100644
--- a/svtools/inc/svtools/svtools.hrc
+++ b/svtools/inc/svtools/svtools.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
@@ -32,29 +32,29 @@
#include <svl/solar.hrc>
-#define RID_SVTOOLS_BITMAP_START (RID_SVTOOLS_START + 0)
-#define RID_SVTOOLS_IMAGELIST_START (RID_SVTOOLS_START + 0)
+#define RID_SVTOOLS_BITMAP_START (RID_SVTOOLS_START + 0)
+#define RID_SVTOOLS_IMAGELIST_START (RID_SVTOOLS_START + 0)
//.............................................................................
// various unsorted stuff
-#define DLG_EXPORT_PIX (RID_SVTOOLS_START+1)
-#define DLG_EXPORT_VEC (RID_SVTOOLS_START+2)
-#define DLG_TWAIN_SOURCE (RID_SVTOOLS_START+3)
+#define DLG_EXPORT_PIX (RID_SVTOOLS_START+1)
+#define DLG_EXPORT_VEC (RID_SVTOOLS_START+2)
+#define DLG_TWAIN_SOURCE (RID_SVTOOLS_START+3)
#define DLG_SVT_EXPLORERFILE (RID_SVTOOLS_START+4)
#define DLG_SVT_QUERYFOLDERNAME (RID_SVTOOLS_START+5)
#define DLG_SVT_QUERYDELETE (RID_SVTOOLS_START+6)
-#define EXPORT_DIALOG_TITLE (RID_SVTOOLS_START+4)
-#define KEY_MODE (RID_SVTOOLS_START+5)
-#define KEY_RES (RID_SVTOOLS_START+6)
-#define KEY_SIZE (RID_SVTOOLS_START+7)
+#define EXPORT_DIALOG_TITLE (RID_SVTOOLS_START+4)
+#define KEY_MODE (RID_SVTOOLS_START+5)
+#define KEY_RES (RID_SVTOOLS_START+6)
+#define KEY_SIZE (RID_SVTOOLS_START+7)
-#define KEY_COLORS (RID_SVTOOLS_START+9)
-#define KEY_RLE_CODING (RID_SVTOOLS_START+10)
+#define KEY_COLORS (RID_SVTOOLS_START+9)
+#define KEY_RLE_CODING (RID_SVTOOLS_START+10)
-#define STR_SVT_AUTOMATIC_COLOR (RID_SVTOOLS_START+16)
+#define STR_SVT_AUTOMATIC_COLOR (RID_SVTOOLS_START+16)
#define STR_SVT_FILEVIEW_COLUMN_TITLE (RID_SVTOOLS_START + 20)
#define STR_SVT_FILEVIEW_COLUMN_SIZE (RID_SVTOOLS_START + 21)
@@ -69,219 +69,219 @@
#define STR_SVT_NEW_FOLDER (RID_SVTOOLS_START + 30)
#define STR_SVT_ALREADYEXISTOVERWRITE (RID_SVTOOLS_START + 31)
#define STR_SVT_FILEVIEW_COLUMN_TYPE (RID_SVTOOLS_START + 32)
-#define RID_FILEVIEW_CONTEXTMENU (RID_SVTOOLS_START + 33)
-#define RID_FILEOPEN_INVALIDFOLDER (RID_SVTOOLS_START + 34)
-#define RID_FILEOPEN_NOTEXISTENTFILE (RID_SVTOOLS_START + 35)
+#define RID_FILEVIEW_CONTEXTMENU (RID_SVTOOLS_START + 33)
+#define RID_FILEOPEN_INVALIDFOLDER (RID_SVTOOLS_START + 34)
+#define RID_FILEOPEN_NOTEXISTENTFILE (RID_SVTOOLS_START + 35)
#define STR_SVT_NOREMOVABLEDEVICE (RID_SVTOOLS_START + 36)
-#define STR_SVT_ALLFORMATS (RID_SVTOOLS_START + 37)
+#define STR_SVT_ALLFORMATS (RID_SVTOOLS_START + 37)
// doc template dialog
-#define DLG_DOCTEMPLATE (RID_SVTOOLS_START+50)
-#define CTRL_FILEVIEW (RID_SVTOOLS_START+51)
-#define STR_SVT_NEWDOC (RID_SVTOOLS_START+52)
-#define STR_SVT_MYDOCS (RID_SVTOOLS_START+53)
-#define STR_SVT_TEMPLATES (RID_SVTOOLS_START+54)
-#define STR_SVT_SAMPLES (RID_SVTOOLS_START+55)
-#define TB_SVT_FILEVIEW (RID_SVTOOLS_START+56)
-#define TB_SVT_FRAMEWIN (RID_SVTOOLS_START+57)
-#define STRARY_SVT_DOCINFO (RID_SVTOOLS_START+58)
-#define STR_SVT_NEWDOC_HELP (RID_SVTOOLS_START+63)
-#define STR_SVT_MYDOCS_HELP (RID_SVTOOLS_START+64)
-#define STR_SVT_TEMPLATES_HELP (RID_SVTOOLS_START+65)
-#define STR_SVT_SAMPLES_HELP (RID_SVTOOLS_START+66)
-
-#define STR_WARNING_ITEM (RID_SVTOOLS_START+90)
-
-#define CONFIG_BASIC_FORMAT_START (RID_SVTOOLS_START+102)
-#define STR_BASICKEY_FORMAT_ON (RID_SVTOOLS_START+103)
-#define STR_BASICKEY_FORMAT_OFF (RID_SVTOOLS_START+104)
-#define STR_BASICKEY_FORMAT_YES (RID_SVTOOLS_START+105)
-#define STR_BASICKEY_FORMAT_NO (RID_SVTOOLS_START+106)
-#define STR_BASICKEY_FORMAT_TRUE (RID_SVTOOLS_START+107)
-#define STR_BASICKEY_FORMAT_FALSE (RID_SVTOOLS_START+108)
-#define CONFIG_BASIC_FORMAT_END (RID_SVTOOLS_START+109)
-
-#define STR_INVALIDTRYBUY (RID_SVTOOLS_START+120)
-#define STR_OLDTRYBUY (RID_SVTOOLS_START+121)
-#define STR_TRYBUY (RID_SVTOOLS_START+122)
-#define STR_PVER_LANGUAGECODE (RID_SVTOOLS_START+124)
-#define STR_PVER_LONG_LANGUAGECODE (RID_SVTOOLS_START+125)
-#define STR_INVALIDPUFF (RID_SVTOOLS_START+126)
-#define STR_LIMITEDPUFF (RID_SVTOOLS_START+127)
-#define STR_OLDLIMITEDPUFF (RID_SVTOOLS_START+128)
-#define RID_REGISTER_DIALOG (RID_SVTOOLS_START+129)
-#define STR_BASICKEY_FORMAT_CURRENCY (RID_SVTOOLS_START+130)
-#define STR_KEYERR_GENERAL_HELP (RID_SVTOOLS_START+131)
-#define STR_KEYERR_INVALID_KEY (RID_SVTOOLS_START+132)
-#define STR_KEYERR_INVALID_USERDATA (RID_SVTOOLS_START+133)
-#define STR_KEYERR_INVALID_ADDRESSDATA (RID_SVTOOLS_START+134)
-#define STR_KEYERR_INVALID_LICENSE (RID_SVTOOLS_START+135)
-#define STR_KEYERR_INVALID_LANGUAGE (RID_SVTOOLS_START+136)
-#define STR_KEYERR_INVALID_OS (RID_SVTOOLS_START+137)
-#define STR_KEYERR_INVALID_NO_CNR (RID_SVTOOLS_START+138)
-#define STR_KEYERR_INVALID_CNR (RID_SVTOOLS_START+139)
-#define RID_LIMITED_DIALOG (RID_SVTOOLS_START+140)
-
-#define STR_SVT_PRNDLG_START (RID_SVTOOLS_START+141)
-#define DLG_SVT_PRNDLG_PRNSETUPDLG (STR_SVT_PRNDLG_START+0)
-#define DLG_SVT_PRNDLG_PRINTDLG (STR_SVT_PRNDLG_START+1)
-#define STR_SVT_PRNDLG_READY (STR_SVT_PRNDLG_START+2)
-#define STR_SVT_PRNDLG_PAUSED (STR_SVT_PRNDLG_START+3)
-#define STR_SVT_PRNDLG_PENDING (STR_SVT_PRNDLG_START+4)
-#define STR_SVT_PRNDLG_BUSY (STR_SVT_PRNDLG_START+5)
-#define STR_SVT_PRNDLG_INITIALIZING (STR_SVT_PRNDLG_START+6)
-#define STR_SVT_PRNDLG_WAITING (STR_SVT_PRNDLG_START+7)
-#define STR_SVT_PRNDLG_WARMING_UP (STR_SVT_PRNDLG_START+8)
-#define STR_SVT_PRNDLG_PROCESSING (STR_SVT_PRNDLG_START+9)
-#define STR_SVT_PRNDLG_PRINTING (STR_SVT_PRNDLG_START+10)
-#define STR_SVT_PRNDLG_OFFLINE (STR_SVT_PRNDLG_START+11)
-#define STR_SVT_PRNDLG_ERROR (STR_SVT_PRNDLG_START+12)
-#define STR_SVT_PRNDLG_SERVER_UNKNOWN (STR_SVT_PRNDLG_START+13)
-#define STR_SVT_PRNDLG_PAPER_JAM (STR_SVT_PRNDLG_START+14)
-#define STR_SVT_PRNDLG_PAPER_OUT (STR_SVT_PRNDLG_START+15)
-#define STR_SVT_PRNDLG_MANUAL_FEED (STR_SVT_PRNDLG_START+16)
-#define STR_SVT_PRNDLG_PAPER_PROBLEM (STR_SVT_PRNDLG_START+17)
-#define STR_SVT_PRNDLG_IO_ACTIVE (STR_SVT_PRNDLG_START+18)
-#define STR_SVT_PRNDLG_OUTPUT_BIN_FULL (STR_SVT_PRNDLG_START+19)
-#define STR_SVT_PRNDLG_TONER_LOW (STR_SVT_PRNDLG_START+20)
-#define STR_SVT_PRNDLG_NO_TONER (STR_SVT_PRNDLG_START+21)
-#define STR_SVT_PRNDLG_PAGE_PUNT (STR_SVT_PRNDLG_START+22)
-#define STR_SVT_PRNDLG_USER_INTERVENTION (STR_SVT_PRNDLG_START+23)
-#define STR_SVT_PRNDLG_OUT_OF_MEMORY (STR_SVT_PRNDLG_START+24)
-#define STR_SVT_PRNDLG_DOOR_OPEN (STR_SVT_PRNDLG_START+25)
-#define STR_SVT_PRNDLG_POWER_SAVE (STR_SVT_PRNDLG_START+26)
-#define STR_SVT_PRNDLG_DEFPRINTER (STR_SVT_PRNDLG_START+27)
-#define STR_SVT_PRNDLG_JOBCOUNT (STR_SVT_PRNDLG_START+28)
-#define STR_SVT_PRNDLG_END (RID_IMG_PRNDLG_NOCOLLATE_HC)
-
-#define STR_SVT_CALENDAR_START (STR_SVT_PRNDLG_END+1)
-#define STR_SVT_CALENDAR_DAY (STR_SVT_CALENDAR_START+0)
-#define STR_SVT_CALENDAR_WEEK (STR_SVT_CALENDAR_START+1)
-#define STR_SVT_CALENDAR_TODAY (STR_SVT_CALENDAR_START+2)
-#define STR_SVT_CALENDAR_NONE (STR_SVT_CALENDAR_START+3)
-#define STR_SVT_CALENDAR_END (STR_SVT_CALENDAR_NONE)
-
-#define STR_SVT_PVER_START (STR_SVT_CALENDAR_END+1)
-#define STR_SVT_PVER_INTERNAL (STR_SVT_PVER_START+0)
-#define STR_SVT_PVER_PERSONAL_DELUXE (STR_SVT_PVER_START+1)
-#define STR_SVT_PVER_PERSONAL (STR_SVT_PVER_START+2)
-#define STR_SVT_PVER_PROFESSIONAL (STR_SVT_PVER_START+3)
-#define STR_SVT_PVER_BUSINESS (STR_SVT_PVER_START+4)
-#define STR_SVT_PVER_ENTERPRICE (STR_SVT_PVER_START+5)
-#define STR_SVT_PVER_EDUCATION (STR_SVT_PVER_START+6)
-#define STR_SVT_PVER_DEMO (STR_SVT_PVER_START+7)
-#define STR_SVT_PVER_BETA (STR_SVT_PVER_START+8)
-#define STR_SVT_PVER_OEM (STR_SVT_PVER_START+9)
-#define STR_SVT_PVER_NOT_REGISTERED (STR_SVT_PVER_START+10)
-#define STR_SVT_PVER_PILOT (STR_SVT_PVER_START+11)
-#define STR_SVT_PVER_CAMPUS (STR_SVT_PVER_START+12)
-#define STR_SVT_PVER_EVALUATION (STR_SVT_PVER_START+13)
-#define STR_SVT_PVER_PARTNER (STR_SVT_PVER_START+14)
-#define STR_SVT_PVER_SMALLBUSINESS (STR_SVT_PVER_START+15)
-#define STR_SVT_PVER_OEM_PROFESSIONAL (STR_SVT_PVER_START+16)
-#define STR_SVT_PVER_END (STR_SVT_PVER_OEM_PROFESSIONAL)
-
-#define STR_SVT_STYLE_START (STR_SVT_PVER_END+1)
-#define STR_SVT_STYLE_LIGHT (STR_SVT_STYLE_START+0)
-#define STR_SVT_STYLE_LIGHT_ITALIC (STR_SVT_STYLE_START+1)
-#define STR_SVT_STYLE_NORMAL (STR_SVT_STYLE_START+2)
-#define STR_SVT_STYLE_NORMAL_ITALIC (STR_SVT_STYLE_START+3)
-#define STR_SVT_STYLE_BOLD (STR_SVT_STYLE_START+4)
-#define STR_SVT_STYLE_BOLD_ITALIC (STR_SVT_STYLE_START+5)
-#define STR_SVT_STYLE_BLACK (STR_SVT_STYLE_START+6)
-#define STR_SVT_STYLE_BLACK_ITALIC (STR_SVT_STYLE_START+7)
-#define STR_SVT_STYLE_END (STR_SVT_STYLE_BLACK_ITALIC)
-
-#define STR_SVT_FONTMAP_START (STR_SVT_STYLE_END+1)
-#define STR_SVT_FONTMAP_BOTH (STR_SVT_FONTMAP_START+0)
-#define STR_SVT_FONTMAP_PRINTERONLY (STR_SVT_FONTMAP_START+1)
-#define STR_SVT_FONTMAP_SCREENONLY (STR_SVT_FONTMAP_START+2)
-#define STR_SVT_FONTMAP_SIZENOTAVAILABLE (STR_SVT_FONTMAP_START+3)
-#define STR_SVT_FONTMAP_STYLENOTAVAILABLE (STR_SVT_FONTMAP_START+4)
-#define STR_SVT_FONTMAP_NOTAVAILABLE (STR_SVT_FONTMAP_START+5)
-#define STR_SVT_FONTMAP_END (STR_SVT_FONTMAP_NOTAVAILABLE)
-
-#define STR_SVT_ERRORCONTEXT_START (STR_SVT_FONTMAP_END+1)
-#define STR_ERR_HDLMESS (STR_SVT_ERRORCONTEXT_START+0)
-#define RID_ERRHDL_CLASS (STR_SVT_ERRORCONTEXT_START+1)
+#define DLG_DOCTEMPLATE (RID_SVTOOLS_START+50)
+#define CTRL_FILEVIEW (RID_SVTOOLS_START+51)
+#define STR_SVT_NEWDOC (RID_SVTOOLS_START+52)
+#define STR_SVT_MYDOCS (RID_SVTOOLS_START+53)
+#define STR_SVT_TEMPLATES (RID_SVTOOLS_START+54)
+#define STR_SVT_SAMPLES (RID_SVTOOLS_START+55)
+#define TB_SVT_FILEVIEW (RID_SVTOOLS_START+56)
+#define TB_SVT_FRAMEWIN (RID_SVTOOLS_START+57)
+#define STRARY_SVT_DOCINFO (RID_SVTOOLS_START+58)
+#define STR_SVT_NEWDOC_HELP (RID_SVTOOLS_START+63)
+#define STR_SVT_MYDOCS_HELP (RID_SVTOOLS_START+64)
+#define STR_SVT_TEMPLATES_HELP (RID_SVTOOLS_START+65)
+#define STR_SVT_SAMPLES_HELP (RID_SVTOOLS_START+66)
+
+#define STR_WARNING_ITEM (RID_SVTOOLS_START+90)
+
+#define CONFIG_BASIC_FORMAT_START (RID_SVTOOLS_START+102)
+#define STR_BASICKEY_FORMAT_ON (RID_SVTOOLS_START+103)
+#define STR_BASICKEY_FORMAT_OFF (RID_SVTOOLS_START+104)
+#define STR_BASICKEY_FORMAT_YES (RID_SVTOOLS_START+105)
+#define STR_BASICKEY_FORMAT_NO (RID_SVTOOLS_START+106)
+#define STR_BASICKEY_FORMAT_TRUE (RID_SVTOOLS_START+107)
+#define STR_BASICKEY_FORMAT_FALSE (RID_SVTOOLS_START+108)
+#define CONFIG_BASIC_FORMAT_END (RID_SVTOOLS_START+109)
+
+#define STR_INVALIDTRYBUY (RID_SVTOOLS_START+120)
+#define STR_OLDTRYBUY (RID_SVTOOLS_START+121)
+#define STR_TRYBUY (RID_SVTOOLS_START+122)
+#define STR_PVER_LANGUAGECODE (RID_SVTOOLS_START+124)
+#define STR_PVER_LONG_LANGUAGECODE (RID_SVTOOLS_START+125)
+#define STR_INVALIDPUFF (RID_SVTOOLS_START+126)
+#define STR_LIMITEDPUFF (RID_SVTOOLS_START+127)
+#define STR_OLDLIMITEDPUFF (RID_SVTOOLS_START+128)
+#define RID_REGISTER_DIALOG (RID_SVTOOLS_START+129)
+#define STR_BASICKEY_FORMAT_CURRENCY (RID_SVTOOLS_START+130)
+#define STR_KEYERR_GENERAL_HELP (RID_SVTOOLS_START+131)
+#define STR_KEYERR_INVALID_KEY (RID_SVTOOLS_START+132)
+#define STR_KEYERR_INVALID_USERDATA (RID_SVTOOLS_START+133)
+#define STR_KEYERR_INVALID_ADDRESSDATA (RID_SVTOOLS_START+134)
+#define STR_KEYERR_INVALID_LICENSE (RID_SVTOOLS_START+135)
+#define STR_KEYERR_INVALID_LANGUAGE (RID_SVTOOLS_START+136)
+#define STR_KEYERR_INVALID_OS (RID_SVTOOLS_START+137)
+#define STR_KEYERR_INVALID_NO_CNR (RID_SVTOOLS_START+138)
+#define STR_KEYERR_INVALID_CNR (RID_SVTOOLS_START+139)
+#define RID_LIMITED_DIALOG (RID_SVTOOLS_START+140)
+
+#define STR_SVT_PRNDLG_START (RID_SVTOOLS_START+141)
+#define DLG_SVT_PRNDLG_PRNSETUPDLG (STR_SVT_PRNDLG_START+0)
+#define DLG_SVT_PRNDLG_PRINTDLG (STR_SVT_PRNDLG_START+1)
+#define STR_SVT_PRNDLG_READY (STR_SVT_PRNDLG_START+2)
+#define STR_SVT_PRNDLG_PAUSED (STR_SVT_PRNDLG_START+3)
+#define STR_SVT_PRNDLG_PENDING (STR_SVT_PRNDLG_START+4)
+#define STR_SVT_PRNDLG_BUSY (STR_SVT_PRNDLG_START+5)
+#define STR_SVT_PRNDLG_INITIALIZING (STR_SVT_PRNDLG_START+6)
+#define STR_SVT_PRNDLG_WAITING (STR_SVT_PRNDLG_START+7)
+#define STR_SVT_PRNDLG_WARMING_UP (STR_SVT_PRNDLG_START+8)
+#define STR_SVT_PRNDLG_PROCESSING (STR_SVT_PRNDLG_START+9)
+#define STR_SVT_PRNDLG_PRINTING (STR_SVT_PRNDLG_START+10)
+#define STR_SVT_PRNDLG_OFFLINE (STR_SVT_PRNDLG_START+11)
+#define STR_SVT_PRNDLG_ERROR (STR_SVT_PRNDLG_START+12)
+#define STR_SVT_PRNDLG_SERVER_UNKNOWN (STR_SVT_PRNDLG_START+13)
+#define STR_SVT_PRNDLG_PAPER_JAM (STR_SVT_PRNDLG_START+14)
+#define STR_SVT_PRNDLG_PAPER_OUT (STR_SVT_PRNDLG_START+15)
+#define STR_SVT_PRNDLG_MANUAL_FEED (STR_SVT_PRNDLG_START+16)
+#define STR_SVT_PRNDLG_PAPER_PROBLEM (STR_SVT_PRNDLG_START+17)
+#define STR_SVT_PRNDLG_IO_ACTIVE (STR_SVT_PRNDLG_START+18)
+#define STR_SVT_PRNDLG_OUTPUT_BIN_FULL (STR_SVT_PRNDLG_START+19)
+#define STR_SVT_PRNDLG_TONER_LOW (STR_SVT_PRNDLG_START+20)
+#define STR_SVT_PRNDLG_NO_TONER (STR_SVT_PRNDLG_START+21)
+#define STR_SVT_PRNDLG_PAGE_PUNT (STR_SVT_PRNDLG_START+22)
+#define STR_SVT_PRNDLG_USER_INTERVENTION (STR_SVT_PRNDLG_START+23)
+#define STR_SVT_PRNDLG_OUT_OF_MEMORY (STR_SVT_PRNDLG_START+24)
+#define STR_SVT_PRNDLG_DOOR_OPEN (STR_SVT_PRNDLG_START+25)
+#define STR_SVT_PRNDLG_POWER_SAVE (STR_SVT_PRNDLG_START+26)
+#define STR_SVT_PRNDLG_DEFPRINTER (STR_SVT_PRNDLG_START+27)
+#define STR_SVT_PRNDLG_JOBCOUNT (STR_SVT_PRNDLG_START+28)
+#define STR_SVT_PRNDLG_END (RID_IMG_PRNDLG_NOCOLLATE_HC)
+
+#define STR_SVT_CALENDAR_START (STR_SVT_PRNDLG_END+1)
+#define STR_SVT_CALENDAR_DAY (STR_SVT_CALENDAR_START+0)
+#define STR_SVT_CALENDAR_WEEK (STR_SVT_CALENDAR_START+1)
+#define STR_SVT_CALENDAR_TODAY (STR_SVT_CALENDAR_START+2)
+#define STR_SVT_CALENDAR_NONE (STR_SVT_CALENDAR_START+3)
+#define STR_SVT_CALENDAR_END (STR_SVT_CALENDAR_NONE)
+
+#define STR_SVT_PVER_START (STR_SVT_CALENDAR_END+1)
+#define STR_SVT_PVER_INTERNAL (STR_SVT_PVER_START+0)
+#define STR_SVT_PVER_PERSONAL_DELUXE (STR_SVT_PVER_START+1)
+#define STR_SVT_PVER_PERSONAL (STR_SVT_PVER_START+2)
+#define STR_SVT_PVER_PROFESSIONAL (STR_SVT_PVER_START+3)
+#define STR_SVT_PVER_BUSINESS (STR_SVT_PVER_START+4)
+#define STR_SVT_PVER_ENTERPRICE (STR_SVT_PVER_START+5)
+#define STR_SVT_PVER_EDUCATION (STR_SVT_PVER_START+6)
+#define STR_SVT_PVER_DEMO (STR_SVT_PVER_START+7)
+#define STR_SVT_PVER_BETA (STR_SVT_PVER_START+8)
+#define STR_SVT_PVER_OEM (STR_SVT_PVER_START+9)
+#define STR_SVT_PVER_NOT_REGISTERED (STR_SVT_PVER_START+10)
+#define STR_SVT_PVER_PILOT (STR_SVT_PVER_START+11)
+#define STR_SVT_PVER_CAMPUS (STR_SVT_PVER_START+12)
+#define STR_SVT_PVER_EVALUATION (STR_SVT_PVER_START+13)
+#define STR_SVT_PVER_PARTNER (STR_SVT_PVER_START+14)
+#define STR_SVT_PVER_SMALLBUSINESS (STR_SVT_PVER_START+15)
+#define STR_SVT_PVER_OEM_PROFESSIONAL (STR_SVT_PVER_START+16)
+#define STR_SVT_PVER_END (STR_SVT_PVER_OEM_PROFESSIONAL)
+
+#define STR_SVT_STYLE_START (STR_SVT_PVER_END+1)
+#define STR_SVT_STYLE_LIGHT (STR_SVT_STYLE_START+0)
+#define STR_SVT_STYLE_LIGHT_ITALIC (STR_SVT_STYLE_START+1)
+#define STR_SVT_STYLE_NORMAL (STR_SVT_STYLE_START+2)
+#define STR_SVT_STYLE_NORMAL_ITALIC (STR_SVT_STYLE_START+3)
+#define STR_SVT_STYLE_BOLD (STR_SVT_STYLE_START+4)
+#define STR_SVT_STYLE_BOLD_ITALIC (STR_SVT_STYLE_START+5)
+#define STR_SVT_STYLE_BLACK (STR_SVT_STYLE_START+6)
+#define STR_SVT_STYLE_BLACK_ITALIC (STR_SVT_STYLE_START+7)
+#define STR_SVT_STYLE_END (STR_SVT_STYLE_BLACK_ITALIC)
+
+#define STR_SVT_FONTMAP_START (STR_SVT_STYLE_END+1)
+#define STR_SVT_FONTMAP_BOTH (STR_SVT_FONTMAP_START+0)
+#define STR_SVT_FONTMAP_PRINTERONLY (STR_SVT_FONTMAP_START+1)
+#define STR_SVT_FONTMAP_SCREENONLY (STR_SVT_FONTMAP_START+2)
+#define STR_SVT_FONTMAP_SIZENOTAVAILABLE (STR_SVT_FONTMAP_START+3)
+#define STR_SVT_FONTMAP_STYLENOTAVAILABLE (STR_SVT_FONTMAP_START+4)
+#define STR_SVT_FONTMAP_NOTAVAILABLE (STR_SVT_FONTMAP_START+5)
+#define STR_SVT_FONTMAP_END (STR_SVT_FONTMAP_NOTAVAILABLE)
+
+#define STR_SVT_ERRORCONTEXT_START (STR_SVT_FONTMAP_END+1)
+#define STR_ERR_HDLMESS (STR_SVT_ERRORCONTEXT_START+0)
+#define RID_ERRHDL_CLASS (STR_SVT_ERRORCONTEXT_START+1)
#define RID_ERRCTX (STR_SVT_ERRORCONTEXT_START+2)
#define RID_ERRHDL (STR_SVT_ERRORCONTEXT_START+3)
-#define STR_SVT_ERRORCONTEXT_END (RID_ERRHDL)
+#define STR_SVT_ERRORCONTEXT_END (RID_ERRHDL)
-#define STR_WIZARDDIALOG_START (STR_SVT_ERRORCONTEXT_END + 1)
-#define STR_WIZDLG_FINISH (STR_WIZARDDIALOG_START + 0)
-#define STR_WIZDLG_NEXT (STR_WIZARDDIALOG_START + 1)
-#define STR_WIZDLG_PREVIOUS (STR_WIZARDDIALOG_START + 2)
+#define STR_WIZARDDIALOG_START (STR_SVT_ERRORCONTEXT_END + 1)
+#define STR_WIZDLG_FINISH (STR_WIZARDDIALOG_START + 0)
+#define STR_WIZDLG_NEXT (STR_WIZARDDIALOG_START + 1)
+#define STR_WIZDLG_PREVIOUS (STR_WIZARDDIALOG_START + 2)
#define STR_WIZDLG_ROADMAP_TITLE (STR_WIZARDDIALOG_START + 3)
-#define STR_WIZARDDIALOG_END (STR_WIZDLG_ROADMAP_TITLE)
-
-#define STR_SVT_COLLATE_START (STR_WIZARDDIALOG_END+1)
-#define STR_SVT_COLLATE_NORMAL (STR_SVT_COLLATE_START+0)
-#define STR_SVT_COLLATE_DICTIONARY (STR_SVT_COLLATE_START+1)
-#define STR_SVT_COLLATE_PINYIN (STR_SVT_COLLATE_START+2)
-#define STR_SVT_COLLATE_STROKE (STR_SVT_COLLATE_START+3)
-#define STR_SVT_COLLATE_RADICAL (STR_SVT_COLLATE_START+4)
-#define STR_SVT_COLLATE_CHARSET (STR_SVT_COLLATE_START+5)
-#define STR_SVT_COLLATE_ZHUYIN (STR_SVT_COLLATE_START+6)
-#define STR_SVT_COLLATE_ALPHANUMERIC (STR_SVT_COLLATE_START+7)
-#define STR_SVT_COLLATE_UNICODE (STR_SVT_COLLATE_START+8)
-#define STR_SVT_COLLATE_PHONEBOOK (STR_SVT_COLLATE_START+9)
-#define STR_SVT_COLLATE_PHONETIC_F (STR_SVT_COLLATE_START+10)
-#define STR_SVT_COLLATE_PHONETIC_L (STR_SVT_COLLATE_START+11)
-#define STR_SVT_COLLATE_END (STR_SVT_COLLATE_PHONETIC_L)
-
-#define STR_SVT_FILEPICKER_START (STR_SVT_COLLATE_END+1)
-#define STR_SVT_FILEPICKER_AUTO_EXTENSION (STR_SVT_FILEPICKER_START+ 0)
-#define STR_SVT_FILEPICKER_PASSWORD (STR_SVT_FILEPICKER_START+ 1)
-#define STR_SVT_FILEPICKER_FILTER_OPTIONS (STR_SVT_FILEPICKER_START+ 2)
-#define STR_SVT_FILEPICKER_READONLY (STR_SVT_FILEPICKER_START+ 3)
-#define STR_SVT_FILEPICKER_INSERT_AS_LINK (STR_SVT_FILEPICKER_START+ 4)
-#define STR_SVT_FILEPICKER_SHOW_PREVIEW (STR_SVT_FILEPICKER_START+ 5)
-#define STR_SVT_FILEPICKER_PLAY (STR_SVT_FILEPICKER_START+ 6)
-#define STR_SVT_FILEPICKER_VERSION (STR_SVT_FILEPICKER_START+ 7)
-#define STR_SVT_FILEPICKER_TEMPLATES (STR_SVT_FILEPICKER_START+ 8)
-#define STR_SVT_FILEPICKER_IMAGE_TEMPLATE (STR_SVT_FILEPICKER_START+ 9)
-#define STR_SVT_FILEPICKER_SELECTION (STR_SVT_FILEPICKER_START+10)
-#define STR_SVT_FILEPICKER_FILTER_TITLE (STR_SVT_FILEPICKER_START+11)
-#define STR_SVT_FOLDERPICKER_DEFAULT_TITLE (STR_SVT_FILEPICKER_START+12)
-#define STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION (STR_SVT_FILEPICKER_START+13)
-#define STR_SVT_FILEPICKER_END (STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION)
+#define STR_WIZARDDIALOG_END (STR_WIZDLG_ROADMAP_TITLE)
+
+#define STR_SVT_COLLATE_START (STR_WIZARDDIALOG_END+1)
+#define STR_SVT_COLLATE_NORMAL (STR_SVT_COLLATE_START+0)
+#define STR_SVT_COLLATE_DICTIONARY (STR_SVT_COLLATE_START+1)
+#define STR_SVT_COLLATE_PINYIN (STR_SVT_COLLATE_START+2)
+#define STR_SVT_COLLATE_STROKE (STR_SVT_COLLATE_START+3)
+#define STR_SVT_COLLATE_RADICAL (STR_SVT_COLLATE_START+4)
+#define STR_SVT_COLLATE_CHARSET (STR_SVT_COLLATE_START+5)
+#define STR_SVT_COLLATE_ZHUYIN (STR_SVT_COLLATE_START+6)
+#define STR_SVT_COLLATE_ALPHANUMERIC (STR_SVT_COLLATE_START+7)
+#define STR_SVT_COLLATE_UNICODE (STR_SVT_COLLATE_START+8)
+#define STR_SVT_COLLATE_PHONEBOOK (STR_SVT_COLLATE_START+9)
+#define STR_SVT_COLLATE_PHONETIC_F (STR_SVT_COLLATE_START+10)
+#define STR_SVT_COLLATE_PHONETIC_L (STR_SVT_COLLATE_START+11)
+#define STR_SVT_COLLATE_END (STR_SVT_COLLATE_PHONETIC_L)
+
+#define STR_SVT_FILEPICKER_START (STR_SVT_COLLATE_END+1)
+#define STR_SVT_FILEPICKER_AUTO_EXTENSION (STR_SVT_FILEPICKER_START+ 0)
+#define STR_SVT_FILEPICKER_PASSWORD (STR_SVT_FILEPICKER_START+ 1)
+#define STR_SVT_FILEPICKER_FILTER_OPTIONS (STR_SVT_FILEPICKER_START+ 2)
+#define STR_SVT_FILEPICKER_READONLY (STR_SVT_FILEPICKER_START+ 3)
+#define STR_SVT_FILEPICKER_INSERT_AS_LINK (STR_SVT_FILEPICKER_START+ 4)
+#define STR_SVT_FILEPICKER_SHOW_PREVIEW (STR_SVT_FILEPICKER_START+ 5)
+#define STR_SVT_FILEPICKER_PLAY (STR_SVT_FILEPICKER_START+ 6)
+#define STR_SVT_FILEPICKER_VERSION (STR_SVT_FILEPICKER_START+ 7)
+#define STR_SVT_FILEPICKER_TEMPLATES (STR_SVT_FILEPICKER_START+ 8)
+#define STR_SVT_FILEPICKER_IMAGE_TEMPLATE (STR_SVT_FILEPICKER_START+ 9)
+#define STR_SVT_FILEPICKER_SELECTION (STR_SVT_FILEPICKER_START+10)
+#define STR_SVT_FILEPICKER_FILTER_TITLE (STR_SVT_FILEPICKER_START+11)
+#define STR_SVT_FOLDERPICKER_DEFAULT_TITLE (STR_SVT_FILEPICKER_START+12)
+#define STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION (STR_SVT_FILEPICKER_START+13)
+#define STR_SVT_FILEPICKER_END (STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION)
// String-Ids for accessibility
-#define STR_SVT_ACC_BEGIN (STR_SVT_FILEPICKER_END+1)
+#define STR_SVT_ACC_BEGIN (STR_SVT_FILEPICKER_END+1)
#define STR_SVT_TOOL_PANEL_BUTTON_FWD (STR_SVT_ACC_BEGIN+0)
#define STR_SVT_TOOL_PANEL_BUTTON_BACK (STR_SVT_ACC_BEGIN+1)
-#define STR_SVT_ACC_DESC_TABLISTBOX (STR_SVT_ACC_BEGIN+2)
-#define STR_SVT_ACC_DESC_FILEVIEW (STR_SVT_ACC_BEGIN+3)
-#define STR_SVT_ACC_DESC_FOLDER (STR_SVT_ACC_BEGIN+4)
-#define STR_SVT_ACC_DESC_FILE (STR_SVT_ACC_BEGIN+5)
-#define STR_SVT_ACC_EMPTY_FIELD (STR_SVT_ACC_BEGIN+6)
-#define STR_SVT_ACC_END (STR_SVT_ACC_EMPTY_FIELD)
-
-#define STR_SVT_INDEXENTRY_START (STR_SVT_ACC_END + 1)
-#define STR_SVT_INDEXENTRY_ALPHANUMERIC (STR_SVT_INDEXENTRY_START+0)
-#define STR_SVT_INDEXENTRY_DICTIONARY (STR_SVT_INDEXENTRY_START+1)
-#define STR_SVT_INDEXENTRY_PINYIN (STR_SVT_INDEXENTRY_START+2)
-#define STR_SVT_INDEXENTRY_RADICAL (STR_SVT_INDEXENTRY_START+3)
-#define STR_SVT_INDEXENTRY_STROKE (STR_SVT_INDEXENTRY_START+4)
-#define STR_SVT_INDEXENTRY_ZHUYIN (STR_SVT_INDEXENTRY_START+5)
-#define STR_SVT_INDEXENTRY_PHONETIC_FS (STR_SVT_INDEXENTRY_START+6)
-#define STR_SVT_INDEXENTRY_PHONETIC_FC (STR_SVT_INDEXENTRY_START+7)
-#define STR_SVT_INDEXENTRY_PHONETIC_LS (STR_SVT_INDEXENTRY_START+8)
-#define STR_SVT_INDEXENTRY_PHONETIC_LC (STR_SVT_INDEXENTRY_START+9)
-#define STR_SVT_INDEXENTRY_END (STR_SVT_INDEXENTRY_PHONETIC_LC)
+#define STR_SVT_ACC_DESC_TABLISTBOX (STR_SVT_ACC_BEGIN+2)
+#define STR_SVT_ACC_DESC_FILEVIEW (STR_SVT_ACC_BEGIN+3)
+#define STR_SVT_ACC_DESC_FOLDER (STR_SVT_ACC_BEGIN+4)
+#define STR_SVT_ACC_DESC_FILE (STR_SVT_ACC_BEGIN+5)
+#define STR_SVT_ACC_EMPTY_FIELD (STR_SVT_ACC_BEGIN+6)
+#define STR_SVT_ACC_END (STR_SVT_ACC_EMPTY_FIELD)
+
+#define STR_SVT_INDEXENTRY_START (STR_SVT_ACC_END + 1)
+#define STR_SVT_INDEXENTRY_ALPHANUMERIC (STR_SVT_INDEXENTRY_START+0)
+#define STR_SVT_INDEXENTRY_DICTIONARY (STR_SVT_INDEXENTRY_START+1)
+#define STR_SVT_INDEXENTRY_PINYIN (STR_SVT_INDEXENTRY_START+2)
+#define STR_SVT_INDEXENTRY_RADICAL (STR_SVT_INDEXENTRY_START+3)
+#define STR_SVT_INDEXENTRY_STROKE (STR_SVT_INDEXENTRY_START+4)
+#define STR_SVT_INDEXENTRY_ZHUYIN (STR_SVT_INDEXENTRY_START+5)
+#define STR_SVT_INDEXENTRY_PHONETIC_FS (STR_SVT_INDEXENTRY_START+6)
+#define STR_SVT_INDEXENTRY_PHONETIC_FC (STR_SVT_INDEXENTRY_START+7)
+#define STR_SVT_INDEXENTRY_PHONETIC_LS (STR_SVT_INDEXENTRY_START+8)
+#define STR_SVT_INDEXENTRY_PHONETIC_LC (STR_SVT_INDEXENTRY_START+9)
+#define STR_SVT_INDEXENTRY_END (STR_SVT_INDEXENTRY_PHONETIC_LC)
//String - Ids for Java errors, messages
//These strings come from project desktop
//There was no time for translation, therefore the defines needed to
//remain the same.
#define STR_SVT_JAVAERROR_START (STR_SVT_INDEXENTRY_END + 1)
-#define STR_QUESTION_JAVADISABLED (STR_SVT_JAVAERROR_START+0)
-#define STR_ERROR_JVMCREATIONFAILED (STR_SVT_JAVAERROR_START+1)
+#define STR_QUESTION_JAVADISABLED (STR_SVT_JAVAERROR_START+0)
+#define STR_ERROR_JVMCREATIONFAILED (STR_SVT_JAVAERROR_START+1)
#define STR_WARNING_JAVANOTFOUND (STR_SVT_JAVAERROR_START+2)
#define STR_WARNING_INVALIDJAVASETTINGS (STR_SVT_JAVAERROR_START+3)
#define STR_ERROR_RESTARTREQUIRED (STR_SVT_JAVAERROR_START+4)
-#define STR_SVT_JAVAERROR_END (STR_ERROR_RESTARTREQUIRED)
+#define STR_SVT_JAVAERROR_END (STR_ERROR_RESTARTREQUIRED)
// String array to match UI language names to LanguageType values and vice versa
#define STR_ARR_SVT_LANGUAGE_TABLE_START (STR_SVT_JAVAERROR_END + 1)
@@ -291,112 +291,112 @@
//.............................................................................
// dialogs
-#define DLG_EXPORT_JPG_START (RID_SVTOOLS_START+110)
-#define DLG_EXPORT_JPG (RID_SVTOOLS_START+111)
-#define DLG_EXPORT_JPG_END (RID_SVTOOLS_START+112)
+#define DLG_EXPORT_JPG_START (RID_SVTOOLS_START+110)
+#define DLG_EXPORT_JPG (RID_SVTOOLS_START+111)
+#define DLG_EXPORT_JPG_END (RID_SVTOOLS_START+112)
-#define DLG_LOGIN (RID_SVTOOLS_START+113)
-#define DLG_ADDRESSBOOKSOURCE (RID_SVTOOLS_START+114)
+#define DLG_LOGIN (RID_SVTOOLS_START+113)
+#define DLG_ADDRESSBOOKSOURCE (RID_SVTOOLS_START+114)
-#define DLG_REGISTRATION_REQUEST (RID_SVTOOLS_START+115)
+#define DLG_REGISTRATION_REQUEST (RID_SVTOOLS_START+115)
-#define DLG_EXPORT_EPNG (RID_SVTOOLS_START+116)
+#define DLG_EXPORT_EPNG (RID_SVTOOLS_START+116)
//.............................................................................
// bitmaps
-#define BMP_DEMO_FINGER (RID_SVTOOLS_BITMAP_START + 0)
-#define BMP_HELP_AGENT_IMAGE (RID_SVTOOLS_BITMAP_START + 1)
-#define BMP_HELP_AGENT_CLOSER (RID_SVTOOLS_BITMAP_START + 2)
+#define BMP_DEMO_FINGER (RID_SVTOOLS_BITMAP_START + 0)
+#define BMP_HELP_AGENT_IMAGE (RID_SVTOOLS_BITMAP_START + 1)
+#define BMP_HELP_AGENT_CLOSER (RID_SVTOOLS_BITMAP_START + 2)
#define BMP_PLUGIN (RID_SVTOOLS_BITMAP_START + 3)
#define BMP_LIST_ADD (RID_SVTOOLS_BITMAP_START + 4)
//.............................................................................
// image lists
-#define RID_IMG_EXPANDER (RID_SVTOOLS_IMAGELIST_START + 0)
-#define RID_SVTOOLS_IMAGELIST_BIG (RID_SVTOOLS_IMAGELIST_START + 1)
-#define RID_SVTOOLS_IMAGELIST_SMALL (RID_SVTOOLS_IMAGELIST_START + 2)
-#define RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX (RID_SVTOOLS_IMAGELIST_START + 3)
-#define RID_SVTOOLS_IMAGELIST_BIG_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 4)
-#define RID_SVTOOLS_IMAGELIST_SMALL_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 5)
-#define RID_SVTOOLS_IMAGELIST_EDITBWSEBOX_H (RID_SVTOOLS_IMAGELIST_START + 6)
-#define RID_FILEPICKER_IMAGES (RID_SVTOOLS_IMAGELIST_START + 7)
-#define RID_FILEPICKER_IMAGES_HC (RID_SVTOOLS_IMAGELIST_START + 8)
+#define RID_IMG_EXPANDER (RID_SVTOOLS_IMAGELIST_START + 0)
+#define RID_SVTOOLS_IMAGELIST_BIG (RID_SVTOOLS_IMAGELIST_START + 1)
+#define RID_SVTOOLS_IMAGELIST_SMALL (RID_SVTOOLS_IMAGELIST_START + 2)
+#define RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX (RID_SVTOOLS_IMAGELIST_START + 3)
+#define RID_SVTOOLS_IMAGELIST_BIG_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 4)
+#define RID_SVTOOLS_IMAGELIST_SMALL_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 5)
+#define RID_SVTOOLS_IMAGELIST_EDITBWSEBOX_H (RID_SVTOOLS_IMAGELIST_START + 6)
+#define RID_FILEPICKER_IMAGES (RID_SVTOOLS_IMAGELIST_START + 7)
+#define RID_FILEPICKER_IMAGES_HC (RID_SVTOOLS_IMAGELIST_START + 8)
//.............................................................................
// error boxes
-#define ERRBOX_REG_NOSYSBROWSER ( RID_SVTOOLS_START + 0 )
-#define ERRBOX_CHECK_PLZ ( RID_SVTOOLS_START + 11 )
+#define ERRBOX_REG_NOSYSBROWSER ( RID_SVTOOLS_START + 0 )
+#define ERRBOX_CHECK_PLZ ( RID_SVTOOLS_START + 11 )
// Java message boxes
//These strings come from project desktop
//There was no time for translation, therefore the defines needed to
//remain the same.
-#define QBX_JAVADISABLED (RID_SVTOOLS_START+20)
-#define ERRORBOX_JVMCREATIONFAILED (RID_SVTOOLS_START+21)
+#define QBX_JAVADISABLED (RID_SVTOOLS_START+20)
+#define ERRORBOX_JVMCREATIONFAILED (RID_SVTOOLS_START+21)
#define WARNINGBOX_JAVANOTFOUND (RID_SVTOOLS_START+22)
#define WARNINGBOX_INVALIDJAVASETTINGS (RID_SVTOOLS_START+23)
#define ERRORBOX_RESTARTREQUIRED (RID_SVTOOLS_START+24)
//.............................................................................
// images
-#define RID_IMG_TREENODE_COLLAPSED (RID_SVTOOLS_START + 0)
-#define RID_IMG_TREENODE_EXPANDED (RID_SVTOOLS_START + 1)
-#define RID_IMG_TREENODE_COLLAPSED_HC (RID_SVTOOLS_START + 2)
-#define RID_IMG_TREENODE_EXPANDED_HC (RID_SVTOOLS_START + 3)
-
-#define RID_IMG_PRINTERFONT (RID_SVTOOLS_START + 12)
-#define RID_IMG_BITMAPFONT (RID_SVTOOLS_START + 13)
-#define RID_IMG_SCALABLEFONT (RID_SVTOOLS_START + 14)
-#define RID_IMG_PRINTERFONT_HC (RID_SVTOOLS_START + 15)
-#define RID_IMG_BITMAPFONT_HC (RID_SVTOOLS_START + 16)
-#define RID_IMG_SCALABLEFONT_HC (RID_SVTOOLS_START + 17)
+#define RID_IMG_TREENODE_COLLAPSED (RID_SVTOOLS_START + 0)
+#define RID_IMG_TREENODE_EXPANDED (RID_SVTOOLS_START + 1)
+#define RID_IMG_TREENODE_COLLAPSED_HC (RID_SVTOOLS_START + 2)
+#define RID_IMG_TREENODE_EXPANDED_HC (RID_SVTOOLS_START + 3)
+
+#define RID_IMG_PRINTERFONT (RID_SVTOOLS_START + 12)
+#define RID_IMG_BITMAPFONT (RID_SVTOOLS_START + 13)
+#define RID_IMG_SCALABLEFONT (RID_SVTOOLS_START + 14)
+#define RID_IMG_PRINTERFONT_HC (RID_SVTOOLS_START + 15)
+#define RID_IMG_BITMAPFONT_HC (RID_SVTOOLS_START + 16)
+#define RID_IMG_SCALABLEFONT_HC (RID_SVTOOLS_START + 17)
#define IMG_TRIANGLE_RIGHT (RID_SVTOOLS_START + 18)
#define IMG_TRIANGLE_RIGHT_HC (RID_SVTOOLS_START + 19)
#define IMG_TRIANGLE_DOWN (RID_SVTOOLS_START + 20)
#define IMG_TRIANGLE_DOWN_HC (RID_SVTOOLS_START + 21)
-#define IMG_SVT_FOLDER (RID_SVTOOLS_START + 40)
-
-#define IMG_SVT_NEWDOC (RID_SVTOOLS_START + 52)
-#define IMG_SVT_MYDOCS (RID_SVTOOLS_START + 53)
-#define IMG_SVT_TEMPLATES (RID_SVTOOLS_START + 54)
-#define IMG_SVT_SAMPLES (RID_SVTOOLS_START + 55)
-
-#define IMG_SVT_NEWDOC_HC (RID_SVTOOLS_START + 59)
-#define IMG_SVT_MYDOCS_HC (RID_SVTOOLS_START + 60)
-#define IMG_SVT_TEMPLATES_HC (RID_SVTOOLS_START + 61)
-#define IMG_SVT_SAMPLES_HC (RID_SVTOOLS_START + 62)
-
-#define IMG_SVT_DOCTEMPLATE_BACK_SMALL (RID_SVTOOLS_START + 70)
-#define IMG_SVT_DOCTEMPLATE_BACK_LARGE (RID_SVTOOLS_START + 71)
-#define IMG_SVT_DOCTEMPLATE_PREV_SMALL (RID_SVTOOLS_START + 72)
-#define IMG_SVT_DOCTEMPLATE_PREV_LARGE (RID_SVTOOLS_START + 73)
-#define IMG_SVT_DOCTEMPLATE_PRINT_SMALL (RID_SVTOOLS_START + 74)
-#define IMG_SVT_DOCTEMPLATE_PRINT_LARGE (RID_SVTOOLS_START + 75)
-#define IMG_SVT_DOCTEMPLATE_DOCINFO_SMALL (RID_SVTOOLS_START + 76)
-#define IMG_SVT_DOCTEMPLATE_DOCINFO_LARGE (RID_SVTOOLS_START + 77)
-#define IMG_SVT_DOCTEMPLATE_PREVIEW_SMALL (RID_SVTOOLS_START + 78)
-#define IMG_SVT_DOCTEMPLATE_PREVIEW_LARGE (RID_SVTOOLS_START + 79)
-
-#define IMG_SVT_DOCTEMPL_HC_BACK_SMALL (RID_SVTOOLS_START + 80)
-#define IMG_SVT_DOCTEMPL_HC_BACK_LARGE (RID_SVTOOLS_START + 81)
-#define IMG_SVT_DOCTEMPL_HC_PREV_SMALL (RID_SVTOOLS_START + 82)
-#define IMG_SVT_DOCTEMPL_HC_PREV_LARGE (RID_SVTOOLS_START + 83)
-#define IMG_SVT_DOCTEMPL_HC_PRINT_SMALL (RID_SVTOOLS_START + 84)
-#define IMG_SVT_DOCTEMPL_HC_PRINT_LARGE (RID_SVTOOLS_START + 85)
-#define IMG_SVT_DOCTEMPL_HC_DOCINFO_SMALL (RID_SVTOOLS_START + 86)
-#define IMG_SVT_DOCTEMPL_HC_DOCINFO_LARGE (RID_SVTOOLS_START + 87)
-#define IMG_SVT_DOCTEMPL_HC_PREVIEW_SMALL (RID_SVTOOLS_START + 88)
-#define IMG_SVT_DOCTEMPL_HC_PREVIEW_LARGE (RID_SVTOOLS_START + 89)
+#define IMG_SVT_FOLDER (RID_SVTOOLS_START + 40)
+
+#define IMG_SVT_NEWDOC (RID_SVTOOLS_START + 52)
+#define IMG_SVT_MYDOCS (RID_SVTOOLS_START + 53)
+#define IMG_SVT_TEMPLATES (RID_SVTOOLS_START + 54)
+#define IMG_SVT_SAMPLES (RID_SVTOOLS_START + 55)
+
+#define IMG_SVT_NEWDOC_HC (RID_SVTOOLS_START + 59)
+#define IMG_SVT_MYDOCS_HC (RID_SVTOOLS_START + 60)
+#define IMG_SVT_TEMPLATES_HC (RID_SVTOOLS_START + 61)
+#define IMG_SVT_SAMPLES_HC (RID_SVTOOLS_START + 62)
+
+#define IMG_SVT_DOCTEMPLATE_BACK_SMALL (RID_SVTOOLS_START + 70)
+#define IMG_SVT_DOCTEMPLATE_BACK_LARGE (RID_SVTOOLS_START + 71)
+#define IMG_SVT_DOCTEMPLATE_PREV_SMALL (RID_SVTOOLS_START + 72)
+#define IMG_SVT_DOCTEMPLATE_PREV_LARGE (RID_SVTOOLS_START + 73)
+#define IMG_SVT_DOCTEMPLATE_PRINT_SMALL (RID_SVTOOLS_START + 74)
+#define IMG_SVT_DOCTEMPLATE_PRINT_LARGE (RID_SVTOOLS_START + 75)
+#define IMG_SVT_DOCTEMPLATE_DOCINFO_SMALL (RID_SVTOOLS_START + 76)
+#define IMG_SVT_DOCTEMPLATE_DOCINFO_LARGE (RID_SVTOOLS_START + 77)
+#define IMG_SVT_DOCTEMPLATE_PREVIEW_SMALL (RID_SVTOOLS_START + 78)
+#define IMG_SVT_DOCTEMPLATE_PREVIEW_LARGE (RID_SVTOOLS_START + 79)
+
+#define IMG_SVT_DOCTEMPL_HC_BACK_SMALL (RID_SVTOOLS_START + 80)
+#define IMG_SVT_DOCTEMPL_HC_BACK_LARGE (RID_SVTOOLS_START + 81)
+#define IMG_SVT_DOCTEMPL_HC_PREV_SMALL (RID_SVTOOLS_START + 82)
+#define IMG_SVT_DOCTEMPL_HC_PREV_LARGE (RID_SVTOOLS_START + 83)
+#define IMG_SVT_DOCTEMPL_HC_PRINT_SMALL (RID_SVTOOLS_START + 84)
+#define IMG_SVT_DOCTEMPL_HC_PRINT_LARGE (RID_SVTOOLS_START + 85)
+#define IMG_SVT_DOCTEMPL_HC_DOCINFO_SMALL (RID_SVTOOLS_START + 86)
+#define IMG_SVT_DOCTEMPL_HC_DOCINFO_LARGE (RID_SVTOOLS_START + 87)
+#define IMG_SVT_DOCTEMPL_HC_PREVIEW_SMALL (RID_SVTOOLS_START + 88)
+#define IMG_SVT_DOCTEMPL_HC_PREVIEW_LARGE (RID_SVTOOLS_START + 89)
#define RID_IMG_PRNDLG_COLLATE (STR_SVT_PRNDLG_START + 29)
#define RID_IMG_PRNDLG_NOCOLLATE (STR_SVT_PRNDLG_START + 30)
#define RID_IMG_PRNDLG_COLLATE_HC (STR_SVT_PRNDLG_START + 31)
#define RID_IMG_PRNDLG_NOCOLLATE_HC (STR_SVT_PRNDLG_START + 32)
-#endif // #ifndef _SVTOOLS_HRC
+#endif // #ifndef _SVTOOLS_HRC
// ******************************************************************* EOF
diff --git a/svtools/inc/svtools/svtreebx.hxx b/svtools/inc/svtools/svtreebx.hxx
index cc7520d0ef8c..a9326c51d0c5 100644
--- a/svtools/inc/svtools/svtreebx.hxx
+++ b/svtools/inc/svtools/svtreebx.hxx
@@ -2,7 +2,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,17 +41,17 @@ class TabBar;
#define SV_TAB_BORDER 8
#define WB_HASBUTTONSATROOT ((WinBits)0x0800)
-#define WB_NOINITIALSELECTION WB_DROPDOWN
-#define WB_HIDESELECTION WB_NOHIDESELECTION
-#define WB_FORCE_MAKEVISIBLE WB_SPIN
+#define WB_NOINITIALSELECTION WB_DROPDOWN
+#define WB_HIDESELECTION WB_NOHIDESELECTION
+#define WB_FORCE_MAKEVISIBLE WB_SPIN
#define SV_LISTBOX_ID_TREEBOX 1 // fuer SvLBox::IsA()
#define SV_ENTRYHEIGHTOFFS_PIXEL 2
-#define TREEFLAG_CHKBTN 0x0001
-#define TREEFLAG_USESEL 0x0002
-#define TREEFLAG_MANINS 0x0004
-#define TREEFLAG_RECALCTABS 0x0008
+#define TREEFLAG_CHKBTN 0x0001
+#define TREEFLAG_USESEL 0x0002
+#define TREEFLAG_MANINS 0x0004
+#define TREEFLAG_RECALCTABS 0x0008
typedef sal_Int64 ExtendedWinBits;
@@ -66,106 +66,106 @@ class SVT_DLLPUBLIC SvTreeListBox : public SvLBox
friend class ImpLBSelEng;
friend class TreeControlPeer;
- SvImpLBox* pImp;
- Link aCheckButtonHdl;
- Link aScrolledHdl;
- Accelerator aInpEditAcc;
- Image aPrevInsertedExpBmp;
- Image aPrevInsertedColBmp;
- Image aCurInsertedExpBmp;
- Image aCurInsertedColBmp;
-
- short nContextBmpWidthMax;
- USHORT nFirstSelTab, nLastSelTab;
- short nEntryHeight;
- short nEntryHeightOffs;
- short nIndent;
- short nFocusWidth;
- USHORT aContextBmpMode;
+ SvImpLBox* pImp;
+ Link aCheckButtonHdl;
+ Link aScrolledHdl;
+ Accelerator aInpEditAcc;
+ Image aPrevInsertedExpBmp;
+ Image aPrevInsertedColBmp;
+ Image aCurInsertedExpBmp;
+ Image aCurInsertedColBmp;
+
+ short nContextBmpWidthMax;
+ USHORT nFirstSelTab, nLastSelTab;
+ short nEntryHeight;
+ short nEntryHeightOffs;
+ short nIndent;
+ short nFocusWidth;
+ USHORT aContextBmpMode;
#ifdef _SVTREEBX_CXX
DECL_DLLPRIVATE_LINK( CheckButtonClick, SvLBoxButtonData * );
- SVT_DLLPRIVATE short GetHeightOffset( const Image& rBmp, Size& rLogicSize);
- SVT_DLLPRIVATE short GetHeightOffset( const Font& rFont, Size& rLogicSize);
+ SVT_DLLPRIVATE short GetHeightOffset( const Image& rBmp, Size& rLogicSize);
+ SVT_DLLPRIVATE short GetHeightOffset( const Font& rFont, Size& rLogicSize);
- SVT_DLLPRIVATE void SetEntryHeight( SvLBoxEntry* pEntry );
- SVT_DLLPRIVATE void AdjustEntryHeight( const Image& rBmp );
- SVT_DLLPRIVATE void AdjustEntryHeight( const Font& rFont );
+ SVT_DLLPRIVATE void SetEntryHeight( SvLBoxEntry* pEntry );
+ SVT_DLLPRIVATE void AdjustEntryHeight( const Image& rBmp );
+ SVT_DLLPRIVATE void AdjustEntryHeight( const Font& rFont );
- SVT_DLLPRIVATE void ImpEntryInserted( SvLBoxEntry* pEntry );
- SVT_DLLPRIVATE long PaintEntry1( SvLBoxEntry*, long nLine,
+ SVT_DLLPRIVATE void ImpEntryInserted( SvLBoxEntry* pEntry );
+ SVT_DLLPRIVATE long PaintEntry1( SvLBoxEntry*, long nLine,
USHORT nTabFlagMask=0xffff,
BOOL bHasClipRegion=FALSE );
- SVT_DLLPRIVATE void InitTreeView( WinBits nWinStyle );
- SVT_DLLPRIVATE SvLBoxItem* GetItem_Impl( SvLBoxEntry*, long nX, SvLBoxTab** ppTab,
+ SVT_DLLPRIVATE void InitTreeView( WinBits nWinStyle );
+ SVT_DLLPRIVATE SvLBoxItem* GetItem_Impl( SvLBoxEntry*, long nX, SvLBoxTab** ppTab,
USHORT nEmptyWidth );
#endif
protected:
- SvLBoxButtonData* pCheckButtonData;
- USHORT nTreeFlags;
+ SvLBoxButtonData* pCheckButtonData;
+ USHORT nTreeFlags;
- SvLBoxEntry* pEdEntry;
- SvLBoxItem* pEdItem;
+ SvLBoxEntry* pEdEntry;
+ SvLBoxItem* pEdItem;
- void EditItemText( SvLBoxEntry* pEntry, SvLBoxString* pItem,
+ void EditItemText( SvLBoxEntry* pEntry, SvLBoxString* pItem,
const Selection& );
- void EditedText( const XubString& );
- void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
+ void EditedText( const XubString& );
+ void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
const Point& rMousePos );
- SvPtrarr aTabs;
+ SvPtrarr aTabs;
// berechnet abhaengig von TreeList-Style & Bitmap-Groessen
// alle Tabulatoren neu; wird beim Einfuegen/Austauschen von
// Bitmaps, beim Wechsel des Models usw. automatisch gerufen
- virtual void SetTabs();
- void SetTabs_Impl();
- void AddTab( long nPos,USHORT nFlags=SV_LBOXTAB_ADJUST_LEFT,
+ virtual void SetTabs();
+ void SetTabs_Impl();
+ void AddTab( long nPos,USHORT nFlags=SV_LBOXTAB_ADJUST_LEFT,
void* pUserData = 0 );
- USHORT TabCount() const { return aTabs.Count(); }
- SvLBoxTab* GetFirstDynamicTab() const;
- SvLBoxTab* GetFirstDynamicTab( USHORT& rTabPos ) const;
- SvLBoxTab* GetFirstTab( USHORT nFlagMask, USHORT& rTabPos );
- SvLBoxTab* GetLastTab( USHORT nFlagMask, USHORT& rTabPos );
- SvLBoxTab* GetTab( SvLBoxEntry*, SvLBoxItem* ) const;
- void ClearTabList();
+ USHORT TabCount() const { return aTabs.Count(); }
+ SvLBoxTab* GetFirstDynamicTab() const;
+ SvLBoxTab* GetFirstDynamicTab( USHORT& rTabPos ) const;
+ SvLBoxTab* GetFirstTab( USHORT nFlagMask, USHORT& rTabPos );
+ SvLBoxTab* GetLastTab( USHORT nFlagMask, USHORT& rTabPos );
+ SvLBoxTab* GetTab( SvLBoxEntry*, SvLBoxItem* ) const;
+ void ClearTabList();
virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&,SvLBoxButtonKind);
- virtual void NotifyBeginScroll();
- virtual void NotifyEndScroll();
+ virtual void NotifyBeginScroll();
+ virtual void NotifyEndScroll();
// nLines == 0 => horizontales Scrolling
- virtual void NotifyScrolling( long nLines );
- virtual void NotifyScrolled();
- void SetScrolledHdl( const Link& rLink ) { aScrolledHdl = rLink; }
- const Link& GetScrolledHdl() const { return aScrolledHdl; }
- long GetXOffset() const { return GetMapMode().GetOrigin().X(); }
+ virtual void NotifyScrolling( long nLines );
+ virtual void NotifyScrolled();
+ void SetScrolledHdl( const Link& rLink ) { aScrolledHdl = rLink; }
+ const Link& GetScrolledHdl() const { return aScrolledHdl; }
+ long GetXOffset() const { return GetMapMode().GetOrigin().X(); }
// wird aufgerufen, _bevor_ Bereiche im Control invalidiert werden,
// kann zum Hiden von Elementen benutzt werden, die von aussen
// in das Control hineingezeichnet werden
- virtual void NotifyInvalidating();
+ virtual void NotifyInvalidating();
- virtual ULONG GetAscInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
- virtual ULONG GetDescInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
+ virtual ULONG GetAscInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
+ virtual ULONG GetDescInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
virtual void Command( const CommandEvent& rCEvt );
virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void CursorMoved( SvLBoxEntry* pNewCursor );
- virtual void PreparePaint( SvLBoxEntry* );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void CursorMoved( SvLBoxEntry* pNewCursor );
+ virtual void PreparePaint( SvLBoxEntry* );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual void StateChanged( StateChangedType nStateChange );
- void InitSettings(BOOL bFont,BOOL bForeground,BOOL bBackground);
- BOOL IsCellFocusEnabled() const;
- bool SetCurrentTabPos( USHORT _nNewPos );
- USHORT GetCurrentTabPos() const;
- void CallImplEventListeners(ULONG nEvent, void* pData);
+ void InitSettings(BOOL bFont,BOOL bForeground,BOOL bBackground);
+ BOOL IsCellFocusEnabled() const;
+ bool SetCurrentTabPos( USHORT _nNewPos );
+ USHORT GetCurrentTabPos() const;
+ void CallImplEventListeners(ULONG nEvent, void* pData);
- void ImplEditEntry( SvLBoxEntry* pEntry );
+ void ImplEditEntry( SvLBoxEntry* pEntry );
sal_Bool AreChildrenTransient() const;
void SetChildrenNotTransient();
@@ -178,37 +178,37 @@ public:
void SetExtendedWinBits( ExtendedWinBits _nBits );
ExtendedWinBits GetExtendedWinBits() const;
- void DisconnectFromModel();
+ void DisconnectFromModel();
- void EnableCheckButton( SvLBoxButtonData* );
- void SetCheckButtonData( SvLBoxButtonData* );
- void SetNodeBitmaps( const Image& rCollapsedNodeBmp, const Image& rExpandedNodeBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetDontKnowNodeBitmap( const Image& rDontKnowBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void EnableCheckButton( SvLBoxButtonData* );
+ void SetCheckButtonData( SvLBoxButtonData* );
+ void SetNodeBitmaps( const Image& rCollapsedNodeBmp, const Image& rExpandedNodeBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetDontKnowNodeBitmap( const Image& rDontKnowBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
/** returns the default image which clients should use for expanded nodes, to have a consistent user
interface experience in the whole product.
*/
- static const Image& GetDefaultExpandedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ static const Image& GetDefaultExpandedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
/** returns the default image which clients should use for expanded nodes, to have a consistent user
interface experience in the whole product.
*/
- static const Image& GetDefaultCollapsedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ static const Image& GetDefaultCollapsedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
/** sets default bitmaps for collapsed and expanded nodes.
*/
- inline void SetNodeDefaultImages( )
+ inline void SetNodeDefaultImages( )
{
SetNodeBitmaps( GetDefaultCollapsedNodeImage( BMP_COLOR_NORMAL ), GetDefaultExpandedNodeImage( BMP_COLOR_NORMAL ), BMP_COLOR_NORMAL );
SetNodeBitmaps( GetDefaultCollapsedNodeImage( BMP_COLOR_HIGHCONTRAST ), GetDefaultExpandedNodeImage( BMP_COLOR_HIGHCONTRAST ), BMP_COLOR_HIGHCONTRAST );
}
- virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos=LIST_APPEND, void* pUserData = 0,
SvLBoxButtonKind eButtonKind = SvLBoxButtonKind_enabledCheckbox );
- virtual SvLBoxEntry* InsertEntry( const XubString& rText,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText,
const Image& rExpandedEntryBmp,
const Image& rCollapsedEntryBmp,
SvLBoxEntry* pParent = 0,
@@ -217,52 +217,52 @@ public:
SvLBoxButtonKind eButtonKind = SvLBoxButtonKind_enabledCheckbox );
const Image& GetDefaultExpandedEntryBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- const Image& GetDefaultCollapsedEntryBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ const Image& GetDefaultCollapsedEntryBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- void SetDefaultExpandedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetDefaultCollapsedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetDefaultExpandedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetDefaultCollapsedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetCheckButtonState( SvLBoxEntry*, SvButtonState );
- SvButtonState GetCheckButtonState( SvLBoxEntry* ) const;
+ void SetCheckButtonState( SvLBoxEntry*, SvButtonState );
+ SvButtonState GetCheckButtonState( SvLBoxEntry* ) const;
void ShowExpandBitmapOnCursor( BOOL );
- BOOL IsExpandBitmapOnCursor() const { return (BOOL)(aContextBmpMode & SVLISTENTRYFLAG_FOCUSED)!=0; }
+ BOOL IsExpandBitmapOnCursor() const { return (BOOL)(aContextBmpMode & SVLISTENTRYFLAG_FOCUSED)!=0; }
- void SetEntryText(SvLBoxEntry*, const XubString& );
- void SetExpandedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetCollapsedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetEntryText(SvLBoxEntry*, const XubString& );
+ void SetExpandedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetCollapsedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
- String SearchEntryText( SvLBoxEntry* pEntry ) const;
- const Image& GetExpandedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- const Image& GetCollapsedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
+ String SearchEntryText( SvLBoxEntry* pEntry ) const;
+ const Image& GetExpandedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ const Image& GetCollapsedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- void SetCheckButtonHdl( const Link& rLink ) { aCheckButtonHdl=rLink; }
- Link GetCheckButtonHdl() const { return aCheckButtonHdl; }
- virtual void CheckButtonHdl();
+ void SetCheckButtonHdl( const Link& rLink ) { aCheckButtonHdl=rLink; }
+ Link GetCheckButtonHdl() const { return aCheckButtonHdl; }
+ virtual void CheckButtonHdl();
- virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
+ virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
- virtual USHORT IsA();
+ virtual USHORT IsA();
- void SetSublistOpenWithReturn( BOOL bMode = TRUE ); // open/close sublist with return/enter
- BOOL IsSublistOpenWithReturn() const;
- void SetSublistOpenWithLeftRight( BOOL bMode = TRUE ); // open/close sublist with cursor left/right
- BOOL IsSublistOpenWithLeftRight() const;
+ void SetSublistOpenWithReturn( BOOL bMode = TRUE ); // open/close sublist with return/enter
+ BOOL IsSublistOpenWithReturn() const;
+ void SetSublistOpenWithLeftRight( BOOL bMode = TRUE ); // open/close sublist with cursor left/right
+ BOOL IsSublistOpenWithLeftRight() const;
- void EnableInplaceEditing( BOOL bEnable );
- BOOL IsInplaceEditingEnabled() const { return SvLBox::IsInplaceEditingEnabled(); }
+ void EnableInplaceEditing( BOOL bEnable );
+ BOOL IsInplaceEditingEnabled() const { return SvLBox::IsInplaceEditingEnabled(); }
inline void ForbidEmptyText() { SvLBox::ForbidEmptyText(); }
// Editiert das erste StringItem des Entries, 0==Cursor
- void EditEntry( SvLBoxEntry* pEntry = NULL );
- void CancelEditing();
- virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
- virtual BOOL EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText );
- BOOL IsEditingActive() const { return SvLBox::IsEditingActive(); }
- void EndEditing( BOOL bCancel = FALSE ) { SvLBox::EndEditing( bCancel ); }
- BOOL EditingCanceled() const { return SvLBox::EditingCanceled(); }
+ void EditEntry( SvLBoxEntry* pEntry = NULL );
+ void CancelEditing();
+ virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
+ virtual BOOL EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText );
+ BOOL IsEditingActive() const { return SvLBox::IsEditingActive(); }
+ void EndEditing( BOOL bCancel = FALSE ) { SvLBox::EndEditing( bCancel ); }
+ BOOL EditingCanceled() const { return SvLBox::EditingCanceled(); }
- virtual void RequestingChilds( SvLBoxEntry* pParent );
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
virtual void Paint( const Rectangle& rRect );
virtual void MouseButtonDown( const MouseEvent& rMEvt );
@@ -272,121 +272,121 @@ public:
virtual void Resize();
virtual void GetFocus();
virtual void LoseFocus();
- void SetUpdateMode( BOOL );
+ void SetUpdateMode( BOOL );
// aktualisiert nicht die vertikale ScrollBar
- void SetUpdateModeFast( BOOL );
+ void SetUpdateModeFast( BOOL );
using SvListView::SetModel;
- void SetModel( SvLBoxTreeList* );
- virtual void ModelHasCleared();
- virtual void ModelHasInserted( SvListEntry* pEntry );
- virtual void ModelHasInsertedTree( SvListEntry* pEntry );
- virtual void ModelIsMoving(SvListEntry* pSource,
+ void SetModel( SvLBoxTreeList* );
+ virtual void ModelHasCleared();
+ virtual void ModelHasInserted( SvListEntry* pEntry );
+ virtual void ModelHasInsertedTree( SvListEntry* pEntry );
+ virtual void ModelIsMoving(SvListEntry* pSource,
SvListEntry* pTargetParent, ULONG nChildPos );
- virtual void ModelHasMoved(SvListEntry* pSource );
- virtual void ModelIsRemoving( SvListEntry* pEntry );
- virtual void ModelHasRemoved( SvListEntry* pEntry );
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void ModelHasMoved(SvListEntry* pSource );
+ virtual void ModelIsRemoving( SvListEntry* pEntry );
+ virtual void ModelHasRemoved( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
- void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
+ void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
using Window::GetDropTarget;
- SvLBoxEntry* GetDropTarget( const Point& );
- void ScrollOutputArea( short nDeltaEntries );
-
- short GetEntryHeight() const { return nEntryHeight; }
- void SetEntryHeight( short nHeight, BOOL bAlways = FALSE );
- Size GetOutputSizePixel() const;
- short GetIndent() const { return nIndent; }
- void SetIndent( short nIndent );
- void SetSpaceBetweenEntries( short nSpace );
- short GetSpaceBetweenEntries() const {return nEntryHeightOffs;}
- Point GetEntryPosition( SvLBoxEntry* ) const;
- void ShowEntry( SvLBoxEntry* ); // !!!OBSOLETE, use MakeVisible
- virtual void MakeVisible( SvLBoxEntry* );
- void MakeVisible( SvLBoxEntry*, BOOL bMoveToTop );
-
- void SetCollapsedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetExpandedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- Image GetCollapsedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- Image GetExpandedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
-
- void SetFont( const Font& rFont );
+ SvLBoxEntry* GetDropTarget( const Point& );
+ void ScrollOutputArea( short nDeltaEntries );
+
+ short GetEntryHeight() const { return nEntryHeight; }
+ void SetEntryHeight( short nHeight, BOOL bAlways = FALSE );
+ Size GetOutputSizePixel() const;
+ short GetIndent() const { return nIndent; }
+ void SetIndent( short nIndent );
+ void SetSpaceBetweenEntries( short nSpace );
+ short GetSpaceBetweenEntries() const {return nEntryHeightOffs;}
+ Point GetEntryPosition( SvLBoxEntry* ) const;
+ void ShowEntry( SvLBoxEntry* ); // !!!OBSOLETE, use MakeVisible
+ virtual void MakeVisible( SvLBoxEntry* );
+ void MakeVisible( SvLBoxEntry*, BOOL bMoveToTop );
+
+ void SetCollapsedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetExpandedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ Image GetCollapsedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ Image GetExpandedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+
+ void SetFont( const Font& rFont );
using Window::SetCursor;
- void SetCursor( SvLBoxEntry* pEntry, BOOL bForceNoSelect = FALSE );
+ void SetCursor( SvLBoxEntry* pEntry, BOOL bForceNoSelect = FALSE );
- SvLBoxEntry* GetEntry( const Point& rPos, BOOL bHit = FALSE ) const;
- SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return SvLBox::GetEntry(pParent,nPos); }
- SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return SvLBox::GetEntry(nRootPos);}
+ SvLBoxEntry* GetEntry( const Point& rPos, BOOL bHit = FALSE ) const;
+ SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return SvLBox::GetEntry(pParent,nPos); }
+ SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return SvLBox::GetEntry(nRootPos);}
- void SetWindowBits( WinBits nWinStyle );
- WinBits GetWindowBits() const { return nWindowStyle; }
+ void SetWindowBits( WinBits nWinStyle );
+ WinBits GetWindowBits() const { return nWindowStyle; }
- void PaintEntry( SvLBoxEntry* );
- long PaintEntry( SvLBoxEntry*, long nLine,
+ void PaintEntry( SvLBoxEntry* );
+ long PaintEntry( SvLBoxEntry*, long nLine,
USHORT nTabFlagMask=0xffff );
virtual Rectangle GetFocusRect( SvLBoxEntry*, long nLine );
// Beruecksichtigt Einrueckung
- virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
- void InvalidateEntry( SvLBoxEntry* );
- SvLBoxItem* GetItem( SvLBoxEntry*, long nX, SvLBoxTab** ppTab);
- SvLBoxItem* GetItem( SvLBoxEntry*, long nX );
- SvLBoxItem* GetFirstDynamicItem( SvLBoxEntry* pEntry );
+ virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
+ void InvalidateEntry( SvLBoxEntry* );
+ SvLBoxItem* GetItem( SvLBoxEntry*, long nX, SvLBoxTab** ppTab);
+ SvLBoxItem* GetItem( SvLBoxEntry*, long nX );
+ SvLBoxItem* GetFirstDynamicItem( SvLBoxEntry* pEntry );
- void SetDragDropMode( DragDropMode );
- void SetSelectionMode( SelectionMode );
- void SetAddMode( BOOL bAdd );
- BOOL IsAddMode() const;
+ void SetDragDropMode( DragDropMode );
+ void SetSelectionMode( SelectionMode );
+ void SetAddMode( BOOL bAdd );
+ BOOL IsAddMode() const;
virtual BOOL Expand( SvLBoxEntry* pParent );
virtual BOOL Collapse( SvLBoxEntry* pParent );
virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
- virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
- virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
+ virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
+ virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
virtual void SetCurEntry( SvLBoxEntry* _pEntry );
virtual SvLBoxEntry*
GetCurEntry() const;
using Window::Invalidate;
- virtual void Invalidate( USHORT nFlags = 0);
- virtual void Invalidate( const Rectangle&, USHORT nFlags = 0 );
+ virtual void Invalidate( USHORT nFlags = 0);
+ virtual void Invalidate( const Rectangle&, USHORT nFlags = 0 );
- void SetHighlightRange(USHORT nFirstTab=0,USHORT nLastTab=0xffff);
- void RemoveHighlightRange();
+ void SetHighlightRange(USHORT nFirstTab=0,USHORT nLastTab=0xffff);
+ void RemoveHighlightRange();
- virtual Region GetDragRegion() const;
+ virtual Region GetDragRegion() const;
// Childs des Parents werden Childs des naechstoberen Parents
- void RemoveParentKeepChilds( SvLBoxEntry* pParent );
+ void RemoveParentKeepChilds( SvLBoxEntry* pParent );
DECL_LINK( DefaultCompare, SvSortData* );
- virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
+ virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
SvListEntry* pEntry2, ULONG nPos );
- long GetTextOffset() const;
- void EndSelection();
- BOOL IsNodeButton( const Point& rPos ) const;
- void RepaintScrollBars() const;
- ScrollBar* GetVScroll();
- ScrollBar* GetHScroll();
- void EnableAsyncDrag( BOOL b );
+ long GetTextOffset() const;
+ void EndSelection();
+ BOOL IsNodeButton( const Point& rPos ) const;
+ void RepaintScrollBars() const;
+ ScrollBar* GetVScroll();
+ ScrollBar* GetHScroll();
+ void EnableAsyncDrag( BOOL b );
- SvLBoxEntry* GetFirstEntryInView() const;
- SvLBoxEntry* GetNextEntryInView(SvLBoxEntry*) const;
+ SvLBoxEntry* GetFirstEntryInView() const;
+ SvLBoxEntry* GetNextEntryInView(SvLBoxEntry*) const;
- void ShowFocusRect( const SvLBoxEntry* pEntry );
- void SetTabBar( TabBar* pTabBar );
- void InitStartEntry();
+ void ShowFocusRect( const SvLBoxEntry* pEntry );
+ void SetTabBar( TabBar* pTabBar );
+ void InitStartEntry();
// reset all what could lead to editingText in e.g. a contextmenu call
- void CancelPendingEdit();
+ void CancelPendingEdit();
virtual PopupMenu* CreateContextMenu( void );
- virtual void ExcecuteContextMenuAction( USHORT nSelectedPopupEntry );
+ virtual void ExcecuteContextMenuAction( USHORT nSelectedPopupEntry );
- void EnableContextMenuHandling( void );
- void EnableContextMenuHandling( BOOL bEnable );
- BOOL IsContextMenuHandlingEnabled( void ) const;
+ void EnableContextMenuHandling( void );
+ void EnableContextMenuHandling( BOOL bEnable );
+ BOOL IsContextMenuHandlingEnabled( void ) const;
void EnableList( bool _bEnable );
@@ -406,10 +406,10 @@ public:
@param pEntry
The entry.
@return The bounding rectangle of an entry. */
- virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
+ virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
/** Enables, that one cell of a tablistbox entry can be focused */
- void EnableCellFocus();
+ void EnableCellFocus();
protected:
using SvListView::Expand;
diff --git a/svtools/inc/svtools/svxbox.hxx b/svtools/inc/svtools/svxbox.hxx
index 271213bda9fc..d7c163bbc5c1 100644
--- a/svtools/inc/svtools/svxbox.hxx
+++ b/svtools/inc/svtools/svxbox.hxx
@@ -2,7 +2,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,12 +55,12 @@ public:
SvxBoxEntry( const SvxBoxEntry& rOrg );
SvxBoxEntry();
- String aName;
- USHORT nId;
+ String aName;
+ USHORT nId;
private:
- BOOL bModified;
- BOOL bNew;
+ BOOL bModified;
+ BOOL bNew;
};
// class SvxListBox ------------------------------------------------------
@@ -78,45 +78,45 @@ public:
SvxListBox( Window* pParent, const ResId& rId );
~SvxListBox();
- void InsertNewEntry( const SvxBoxEntry& rEntry );
- void InsertEntry( const SvxBoxEntry& rEntry,
+ void InsertNewEntry( const SvxBoxEntry& rEntry );
+ void InsertEntry( const SvxBoxEntry& rEntry,
USHORT nId = LISTBOX_ENTRY_NOTFOUND );
- void RemoveEntry( USHORT nPos );
- void RemoveEntry( const SvxBoxEntry& rEntry );
+ void RemoveEntry( USHORT nPos );
+ void RemoveEntry( const SvxBoxEntry& rEntry );
- void Clear();
+ void Clear();
- USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
+ USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
const SvxBoxEntry& GetSvxBoxEntry( USHORT nIdx ) const;
- inline BOOL IsEntrySelected( const SvxBoxEntry& rEntry ) const;
+ inline BOOL IsEntrySelected( const SvxBoxEntry& rEntry ) const;
const SvxBoxEntry& GetSelectSvxBoxEntry( USHORT nIdx = 0 ) const;
- inline void SelectEntry( const SvxBoxEntry& rEntry,
+ inline void SelectEntry( const SvxBoxEntry& rEntry,
BOOL bSelect = TRUE );
- void ModifyEntry( USHORT nPos, const String& aName );
- USHORT GetModifiedCount() const;
- const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
+ void ModifyEntry( USHORT nPos, const String& aName );
+ USHORT GetModifiedCount() const;
+ const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
- USHORT GetRemovedCount() const;
- const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
+ USHORT GetRemovedCount() const;
+ const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
- USHORT GetNewCount() const;
- const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
+ USHORT GetNewCount() const;
+ const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
private:
- SvxEntryLst aEntryLst;
- SvxEntryLst aDelEntryLst;
- SvxBoxEntry aDefault;
+ SvxEntryLst aEntryLst;
+ SvxEntryLst aDelEntryLst;
+ SvxBoxEntry aDefault;
- void InitListBox();
- void InsertSorted( SvxBoxEntry* pEntry );
+ void InitListBox();
+ void InsertSorted( SvxBoxEntry* pEntry );
};
// inlines ---------------------------------------------------------------
-inline BOOL SvxListBox::IsEntrySelected( const SvxBoxEntry& aEntry ) const
+inline BOOL SvxListBox::IsEntrySelected( const SvxBoxEntry& aEntry ) const
{ return ListBox::IsEntrySelected( aEntry.aName ); }
inline void SvxListBox::SelectEntry( const SvxBoxEntry& aEntry, BOOL bSelect )
@@ -126,10 +126,10 @@ inline void SvxListBox::SelectEntry( const SvxBoxEntry& aEntry, BOOL bSelect )
enum SvxComboBoxStyle
{
- SVX_CBS_UPPER = 0x01,
- SVX_CBS_LOWER = 0x02,
- SVX_CBS_ALL = 0x04,
- SVX_CBS_FILENAME = 0x08,
+ SVX_CBS_UPPER = 0x01,
+ SVX_CBS_LOWER = 0x02,
+ SVX_CBS_ALL = 0x04,
+ SVX_CBS_FILENAME = 0x08,
#ifdef WIN
SVX_CBS_SW_FILENAME = SVX_CBS_FILENAME | SVX_CBS_LOWER
#else
@@ -152,42 +152,42 @@ public:
SvxComboBox( Window* pParent, const ResId& rId, USHORT nStyleBits = SVX_CBS_ALL );
~SvxComboBox();
- void InsertNewEntry( const SvxBoxEntry& );
- void InsertEntry( const SvxBoxEntry& );
+ void InsertNewEntry( const SvxBoxEntry& );
+ void InsertEntry( const SvxBoxEntry& );
- void RemoveEntry( USHORT nPos );
- void RemoveEntry( const SvxBoxEntry& rEntry );
+ void RemoveEntry( USHORT nPos );
+ void RemoveEntry( const SvxBoxEntry& rEntry );
- void Clear();
+ void Clear();
- USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
+ USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
const SvxBoxEntry& GetEntry( USHORT nIdx ) const;
- void ModifyEntry( USHORT nPos, const String& aName );
- USHORT GetModifiedCount() const;
- const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
+ void ModifyEntry( USHORT nPos, const String& aName );
+ USHORT GetModifiedCount() const;
+ const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
- USHORT GetRemovedCount() const;
- const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
+ USHORT GetRemovedCount() const;
+ const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
- USHORT GetNewCount() const;
- const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
+ USHORT GetNewCount() const;
+ const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
- USHORT GetStyle() const { return nStyle; }
- void SetStyle( const USHORT nSt ) { nStyle = nSt; }
+ USHORT GetStyle() const { return nStyle; }
+ void SetStyle( const USHORT nSt ) { nStyle = nSt; }
- String GetText() const;
+ String GetText() const;
private:
- SvxEntryLst aEntryLst;
- SvxEntryLst aDelEntryLst;
- SvxBoxEntry aDefault;
- USHORT nStyle;
+ SvxEntryLst aEntryLst;
+ SvxEntryLst aDelEntryLst;
+ SvxBoxEntry aDefault;
+ USHORT nStyle;
- virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
- void InitComboBox();
- void InsertSorted( SvxBoxEntry* pEntry );
+ void InitComboBox();
+ void InsertSorted( SvxBoxEntry* pEntry );
};
#endif
diff --git a/svtools/inc/svtools/syntaxhighlight.hxx b/svtools/inc/svtools/syntaxhighlight.hxx
index 75af1ccd5bdd..146bf59c042c 100644
--- a/svtools/inc/svtools/syntaxhighlight.hxx
+++ b/svtools/inc/svtools/syntaxhighlight.hxx
@@ -2,7 +2,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
@@ -86,19 +86,19 @@ SV_DECL_VARARR(HighlightPortions, HighlightPortion, 0, 16)
// Hilfsklasse zur Untersuchung von JavaScript-Modulen, zunaechst zum
// Heraussuchen der Funktionen, spaeter auch zum Syntax-Highlighting verwenden
-// Flags fuer Zeichen-Eigenschaften
-#define CHAR_START_IDENTIFIER 0x0001
-#define CHAR_IN_IDENTIFIER 0x0002
-#define CHAR_START_NUMBER 0x0004
-#define CHAR_IN_NUMBER 0x0008
-#define CHAR_IN_HEX_NUMBER 0x0010
-#define CHAR_IN_OCT_NUMBER 0x0020
-#define CHAR_START_STRING 0x0040
-#define CHAR_OPERATOR 0x0080
-#define CHAR_SPACE 0x0100
-#define CHAR_EOL 0x0200
+// Flags fuer Zeichen-Eigenschaften
+#define CHAR_START_IDENTIFIER 0x0001
+#define CHAR_IN_IDENTIFIER 0x0002
+#define CHAR_START_NUMBER 0x0004
+#define CHAR_IN_NUMBER 0x0008
+#define CHAR_IN_HEX_NUMBER 0x0010
+#define CHAR_IN_OCT_NUMBER 0x0020
+#define CHAR_START_STRING 0x0040
+#define CHAR_OPERATOR 0x0080
+#define CHAR_SPACE 0x0100
+#define CHAR_EOL 0x0200
-#define CHAR_EOF 0x00
+#define CHAR_EOF 0x00
// Sprachmodus des HighLighters (spaeter eventuell feiner
@@ -122,8 +122,8 @@ class SimpleTokenizer_Impl
UINT32 nLine;
UINT32 nCol;
- sal_Unicode peekChar( void ) { return *mpActualPos; }
- sal_Unicode getChar( void ) { nCol++; return *mpActualPos++; }
+ sal_Unicode peekChar( void ) { return *mpActualPos; }
+ sal_Unicode getChar( void ) { nCol++; return *mpActualPos++; }
// Hilfsfunktion: Zeichen-Flag Testen
BOOL testCharFlags( sal_Unicode c, USHORT nTestFlags );
@@ -168,7 +168,7 @@ class SVT_DLLPUBLIC SyntaxHighlighter
char* m_pKeyWords;
UINT16 m_nKeyWordCount;
-// void initializeKeyWords( HighlighterLanguage eLanguage );
+// void initializeKeyWords( HighlighterLanguage eLanguage );
public:
SyntaxHighlighter( void );
diff --git a/svtools/inc/svtools/table/abstracttablecontrol.hxx b/svtools/inc/svtools/table/abstracttablecontrol.hxx
index dbe9e0a86346..bd7139d23f9f 100644
--- a/svtools/inc/svtools/table/abstracttablecontrol.hxx
+++ b/svtools/inc/svtools/table/abstracttablecontrol.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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
@@ -98,7 +98,7 @@ namespace svt { namespace table
virtual void hideCursor() = 0;
/** shows the cell cursor
-
+
@see hideCursor
*/
virtual void showCursor() = 0;
diff --git a/svtools/inc/svtools/table/defaultinputhandler.hxx b/svtools/inc/svtools/table/defaultinputhandler.hxx
index 5b035b041a8d..ec219500d236 100644
--- a/svtools/inc/svtools/table/defaultinputhandler.hxx
+++ b/svtools/inc/svtools/table/defaultinputhandler.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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 @@ namespace svt { namespace table
friend class TableDataWindow;
private:
DefaultInputHandler_Impl* m_pImpl;
- bool m_bResize;
+ bool m_bResize;
public:
DefaultInputHandler();
diff --git a/svtools/inc/svtools/table/gridtablerenderer.hxx b/svtools/inc/svtools/table/gridtablerenderer.hxx
index 5430e6859c60..468fd70e176c 100644
--- a/svtools/inc/svtools/table/gridtablerenderer.hxx
+++ b/svtools/inc/svtools/table/gridtablerenderer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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 @@ namespace svt { namespace table
public:
/** creates a table renderer associated with the given model
-
+
@param _rModel
the model which should be rendered. The caller is responsible
for lifetime control, that is, the model instance must live
diff --git a/svtools/inc/svtools/table/tablecontrol.hxx b/svtools/inc/svtools/table/tablecontrol.hxx
index 9ef8d583f273..57405c193d22 100644
--- a/svtools/inc/svtools/table/tablecontrol.hxx
+++ b/svtools/inc/svtools/table/tablecontrol.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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
@@ -110,7 +110,7 @@ namespace svt { namespace table
/** returns the row, which contains the input point*/
- ColPos GetCurrentRow (const Point& rPoint);
+ ColPos GetCurrentRow (const Point& rPoint);
/** retrieves the current column
@@ -158,11 +158,11 @@ namespace svt { namespace table
{
return GoTo( GetCurrentColumn(), _nRow );
}
- SVT_DLLPRIVATE virtual void Resize();
+ SVT_DLLPRIVATE virtual void Resize();
virtual void Select();
- SVT_DLLPRIVATE void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return m_aSelectHdl; }
-
+ SVT_DLLPRIVATE void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return m_aSelectHdl; }
+
/**invalidates the table if table has been changed e.g. new row added
*/
void InvalidateDataWindow(RowPos _nRowStart, RowPos _nRowEnd, bool _bRemoved);
@@ -178,9 +178,9 @@ namespace svt { namespace table
// Window overridables
virtual void GetFocus();
virtual void LoseFocus();
- virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
virtual void StateChanged( StateChangedType i_nStateChange );
-
+
/** Creates and returns the accessible object of the whole GridControl. */
SVT_DLLPRIVATE virtual XACC CreateAccessible();
SVT_DLLPRIVATE virtual XACC CreateAccessibleControl( sal_Int32 _nIndex );
@@ -194,12 +194,12 @@ namespace svt { namespace table
virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
virtual void GrabFocus();
virtual XACC GetAccessible( BOOL bCreate = TRUE );
- virtual Window* GetAccessibleParentWindow() const;
- virtual Window* GetWindowInstance();
+ virtual Window* GetAccessibleParentWindow() const;
+ virtual Window* GetWindowInstance();
virtual sal_Int32 GetAccessibleControlCount() const;
virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint );
- virtual long GetRowCount() const;
- virtual long GetColumnCount() const;
+ virtual long GetRowCount() const;
+ virtual long GetColumnCount() const;
virtual sal_Bool HasRowHeader() const;
virtual sal_Int32 GetSelectedRowCount() const;
virtual bool IsRowSelected( long _nRow ) const;
@@ -209,10 +209,10 @@ namespace svt { namespace table
virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex);
virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint);
virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const;
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
virtual ::rtl::OUString GetRowName(sal_Int32 _nIndex) const;
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const;
- virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const;
+ virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const;
virtual ::com::sun::star::uno::Any GetCellContent( sal_Int32 _nRowPos, sal_Int32 _nColPos) const;
virtual sal_Bool HasRowHeader();
virtual sal_Bool HasColHeader();
diff --git a/svtools/inc/svtools/table/tabledatawindow.hxx b/svtools/inc/svtools/table/tabledatawindow.hxx
index ea59e05f4e97..b0bca8bf9106 100644
--- a/svtools/inc/svtools/table/tabledatawindow.hxx
+++ b/svtools/inc/svtools/table/tabledatawindow.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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,32 +51,32 @@ namespace svt { namespace table
friend class TableFunctionSet;
private:
TableControl_Impl& m_rTableControl;
- Link m_aMouseButtonDownHdl;
- Link m_aMouseButtonUpHdl;
- Link m_aSelectHdl;
+ Link m_aMouseButtonDownHdl;
+ Link m_aMouseButtonUpHdl;
+ Link m_aSelectHdl;
public:
TableDataWindow( TableControl_Impl& _rTableControl );
- inline void SetMouseButtonDownHdl( const Link& rLink ) { m_aMouseButtonDownHdl = rLink; }
- inline const Link& GetMouseButtonDownHdl() const { return m_aMouseButtonDownHdl; }
- inline void SetMouseButtonUpHdl( const Link& rLink ) { m_aMouseButtonUpHdl = rLink; }
- inline const Link& GetMouseButtonUpHdl() const { return m_aMouseButtonUpHdl; }
- inline void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
- inline const Link& GetSelectHdl() const { return m_aSelectHdl; }
+ inline void SetMouseButtonDownHdl( const Link& rLink ) { m_aMouseButtonDownHdl = rLink; }
+ inline const Link& GetMouseButtonDownHdl() const { return m_aMouseButtonDownHdl; }
+ inline void SetMouseButtonUpHdl( const Link& rLink ) { m_aMouseButtonUpHdl = rLink; }
+ inline const Link& GetMouseButtonUpHdl() const { return m_aMouseButtonUpHdl; }
+ inline void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
+ inline const Link& GetSelectHdl() const { return m_aSelectHdl; }
// Window overridables
virtual void Paint( const Rectangle& rRect );
- virtual void MouseMove( const MouseEvent& rMEvt);
- virtual void MouseButtonDown( const MouseEvent& rMEvt);
- virtual void MouseButtonUp( const MouseEvent& rMEvt);
- virtual void SetPointer( const Pointer& rPointer );
- virtual void CaptureMouse();
- virtual void ReleaseMouse();
- virtual long Notify(NotifyEvent& rNEvt);
- virtual void SetControlBackground(const Color& rColor);
- virtual void SetControlBackground();
+ virtual void MouseMove( const MouseEvent& rMEvt);
+ virtual void MouseButtonDown( const MouseEvent& rMEvt);
+ virtual void MouseButtonUp( const MouseEvent& rMEvt);
+ virtual void SetPointer( const Pointer& rPointer );
+ virtual void CaptureMouse();
+ virtual void ReleaseMouse();
+ virtual long Notify(NotifyEvent& rNEvt);
+ virtual void SetControlBackground(const Color& rColor);
+ virtual void SetControlBackground();
- void SetBackground(const Wallpaper& rColor);
- void SetBackground();
+ void SetBackground(const Wallpaper& rColor);
+ void SetBackground();
};
//........................................................................
} } // namespace svt::table
diff --git a/svtools/inc/svtools/table/tableinputhandler.hxx b/svtools/inc/svtools/table/tableinputhandler.hxx
index 32d7f06b6482..3bda1092b292 100644
--- a/svtools/inc/svtools/table/tableinputhandler.hxx
+++ b/svtools/inc/svtools/table/tableinputhandler.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/table/tablemodel.hxx b/svtools/inc/svtools/table/tablemodel.hxx
index c463b8da91ab..b2efac8c6c11 100644
--- a/svtools/inc/svtools/table/tablemodel.hxx
+++ b/svtools/inc/svtools/table/tablemodel.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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,14 +44,14 @@ namespace svt { namespace table
{
//........................................................................
-
+
//====================================================================
- //= cell data
+ //= cell data
//====================================================================
struct TableContentType
{
- ::rtl::OUString sContent;
- Image* pImage;
+ ::rtl::OUString sContent;
+ Image* pImage;
TableContentType() :
sContent(),
pImage( )
@@ -85,7 +85,7 @@ namespace svt { namespace table
class SAL_NO_VTABLE ITableModelListener
{
public:
- //virtual void onTableModelChanged(PTableModel pTableModel) = 0;
+ //virtual void onTableModelChanged(PTableModel pTableModel) = 0;
/** notifies the listener that one or more rows have been inserted into
the table
@@ -220,7 +220,7 @@ namespace svt { namespace table
/** returns the width of the column, in 1/100 millimeters
The returned value must be a positive ->TableMetrics value.
-
+
It can also be COLWIDTH_FIT_TO_VIEW, to indicate that the width of the column
should automatically be adjusted to completely fit the view. For instance, a
model's last column could return this value, to indicate that it is to occupy
@@ -285,7 +285,7 @@ namespace svt { namespace table
virtual void setMaxWidth( TableMetrics _nMaxWidth ) = 0;
/** returns the preferred width of the column, or 0 if the column
- does not have a preferred width.
+ does not have a preferred width.
@see setMaxWidth
@see getMinWidth
@@ -323,8 +323,8 @@ namespace svt { namespace table
*/
virtual TableSize getRowCount() const = 0;
- SVT_DLLPRIVATE virtual void setColumnCount(TableSize _nColCount) = 0;
- SVT_DLLPRIVATE virtual void setRowCount(TableSize _nRowCount) = 0;
+ SVT_DLLPRIVATE virtual void setColumnCount(TableSize _nColCount) = 0;
+ SVT_DLLPRIVATE virtual void setRowCount(TableSize _nRowCount) = 0;
/** determines whether the table has column headers
@@ -337,12 +337,12 @@ namespace svt { namespace table
/** sets whether the table should have row headers
@see IColumnRenderer
*/
- SVT_DLLPRIVATE virtual void setRowHeaders( bool rowHeaders) = 0;
-
+ SVT_DLLPRIVATE virtual void setRowHeaders( bool rowHeaders) = 0;
+
/** sets whether the table should have column headers
@see IColumnRenderer
*/
- SVT_DLLPRIVATE virtual void setColumnHeaders( bool columnHeaders) = 0;
+ SVT_DLLPRIVATE virtual void setColumnHeaders( bool columnHeaders) = 0;
/** determines whether the table has row headers
@@ -354,7 +354,7 @@ namespace svt { namespace table
virtual bool hasRowHeaders() const = 0;
/** determines whether the given cell is editable
-
+
@see ICellEditor
@todo
*/
@@ -410,7 +410,7 @@ namespace svt { namespace table
*/
SVT_DLLPRIVATE virtual TableMetrics getRowHeight() const = 0;
- SVT_DLLPRIVATE virtual void setRowHeight(TableMetrics _nRowHeight) = 0;
+ SVT_DLLPRIVATE virtual void setRowHeight(TableMetrics _nRowHeight) = 0;
/** determines the height of the column header row
@@ -452,7 +452,7 @@ namespace svt { namespace table
virtual void setCellContent(const std::vector< std::vector< ::com::sun::star::uno::Any > >& cellContent)=0;
/** gets the content of the cells
*/
- virtual std::vector< std::vector< ::com::sun::star::uno::Any > >& getCellContent() = 0;
+ virtual std::vector< std::vector< ::com::sun::star::uno::Any > >& getCellContent() = 0;
/**sets title of header rows
*/
SVT_DLLPRIVATE virtual void setRowHeaderName(const std::vector<rtl::OUString>& cellColumnContent)=0;
@@ -475,7 +475,7 @@ namespace svt { namespace table
/// destroys the table model instance
virtual ~ITableModel() { }
};
- typedef ::boost::shared_ptr< ITableModel > PTableModel;
+ typedef ::boost::shared_ptr< ITableModel > PTableModel;
//........................................................................
} } // namespace svt::table
diff --git a/svtools/inc/svtools/table/tablerenderer.hxx b/svtools/inc/svtools/table/tablerenderer.hxx
index a875f435d9eb..548d42ee2f94 100644
--- a/svtools/inc/svtools/table/tablerenderer.hxx
+++ b/svtools/inc/svtools/table/tablerenderer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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
@@ -215,7 +215,7 @@ namespace svt { namespace table
bool _bActive, bool _bSelected,
OutputDevice& _rDevice, const Rectangle& _rArea,
const StyleSettings& _rStyle, Image* _pCellData ) = 0;
-
+
/** paints a certain cell
The row to be painted is denoted by the most recent call to
diff --git a/svtools/inc/svtools/table/tabletypes.hxx b/svtools/inc/svtools/table/tabletypes.hxx
index d8ef737b388c..19b209f3915b 100644
--- a/svtools/inc/svtools/table/tabletypes.hxx
+++ b/svtools/inc/svtools/table/tabletypes.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/textdata.hxx b/svtools/inc/svtools/textdata.hxx
index 7b0a81cd2da1..392ee0f5bb37 100644
--- a/svtools/inc/svtools/textdata.hxx
+++ b/svtools/inc/svtools/textdata.hxx
@@ -2,7 +2,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,49 +34,49 @@
#include <svl/smplhint.hxx>
#include <tools/string.hxx>
-#define TEXTUNDO_START 100
-#define TEXTUNDO_REMOVECHARS 100
-#define TEXTUNDO_CONNECTPARAS 101
-#define TEXTUNDO_SPLITPARA 102
-#define TEXTUNDO_INSERTCHARS 103
-#define TEXTUNDO_DELCONTENT 104
-#define TEXTUNDO_DELETE 105
-#define TEXTUNDO_CUT 106
-#define TEXTUNDO_PASTE 107
-#define TEXTUNDO_INSERT 108
-#define TEXTUNDO_ATTRIBS 109
-#define TEXTUNDO_DRAGANDDROP 110
-#define TEXTUNDO_READ 111
-#define TEXTUNDO_END 149
-
-#define XTEXTUNDO_START 150
-#define XTEXTUNDO_END 199
-
-#define TEXTUNDO_USER 200
+#define TEXTUNDO_START 100
+#define TEXTUNDO_REMOVECHARS 100
+#define TEXTUNDO_CONNECTPARAS 101
+#define TEXTUNDO_SPLITPARA 102
+#define TEXTUNDO_INSERTCHARS 103
+#define TEXTUNDO_DELCONTENT 104
+#define TEXTUNDO_DELETE 105
+#define TEXTUNDO_CUT 106
+#define TEXTUNDO_PASTE 107
+#define TEXTUNDO_INSERT 108
+#define TEXTUNDO_ATTRIBS 109
+#define TEXTUNDO_DRAGANDDROP 110
+#define TEXTUNDO_READ 111
+#define TEXTUNDO_END 149
+
+#define XTEXTUNDO_START 150
+#define XTEXTUNDO_END 199
+
+#define TEXTUNDO_USER 200
// Fuer Notify, wenn alle Absaetze geloescht wurden...
-#define TEXT_PARA_ALL 0xFFFFFFFF
+#define TEXT_PARA_ALL 0xFFFFFFFF
class TextPaM
{
private:
- ULONG mnPara;
- USHORT mnIndex;
+ ULONG mnPara;
+ USHORT mnIndex;
public:
- TextPaM() { mnPara = 0, mnIndex = 0; }
- TextPaM( ULONG nPara, USHORT nIndex ) { mnPara = nPara, mnIndex = nIndex; }
+ TextPaM() { mnPara = 0, mnIndex = 0; }
+ TextPaM( ULONG nPara, USHORT nIndex ) { mnPara = nPara, mnIndex = nIndex; }
- ULONG GetPara() const { return mnPara; }
- ULONG& GetPara() { return mnPara; }
+ ULONG GetPara() const { return mnPara; }
+ ULONG& GetPara() { return mnPara; }
- USHORT GetIndex() const { return mnIndex; }
- USHORT& GetIndex() { return mnIndex; }
+ USHORT GetIndex() const { return mnIndex; }
+ USHORT& GetIndex() { return mnIndex; }
- inline BOOL operator == ( const TextPaM& rPaM ) const;
- inline BOOL operator != ( const TextPaM& rPaM ) const;
- inline BOOL operator < ( const TextPaM& rPaM ) const;
- inline BOOL operator > ( const TextPaM& rPaM ) const;
+ inline BOOL operator == ( const TextPaM& rPaM ) const;
+ inline BOOL operator != ( const TextPaM& rPaM ) const;
+ inline BOOL operator < ( const TextPaM& rPaM ) const;
+ inline BOOL operator > ( const TextPaM& rPaM ) const;
};
inline BOOL TextPaM::operator == ( const TextPaM& rPaM ) const
@@ -104,26 +104,26 @@ inline BOOL TextPaM::operator > ( const TextPaM& rPaM ) const
class SVT_DLLPUBLIC TextSelection
{
private:
- TextPaM maStartPaM;
- TextPaM maEndPaM;
+ TextPaM maStartPaM;
+ TextPaM maEndPaM;
public:
TextSelection();
TextSelection( const TextPaM& rPaM );
TextSelection( const TextPaM& rStart, const TextPaM& rEnd );
- const TextPaM& GetStart() const { return maStartPaM; }
- TextPaM& GetStart() { return maStartPaM; }
+ const TextPaM& GetStart() const { return maStartPaM; }
+ TextPaM& GetStart() { return maStartPaM; }
- const TextPaM& GetEnd() const { return maEndPaM; }
- TextPaM& GetEnd() { return maEndPaM; }
+ const TextPaM& GetEnd() const { return maEndPaM; }
+ TextPaM& GetEnd() { return maEndPaM; }
- void Justify();
+ void Justify();
- BOOL HasRange() const { return maStartPaM != maEndPaM; }
+ BOOL HasRange() const { return maStartPaM != maEndPaM; }
- inline BOOL operator == ( const TextSelection& rSel ) const;
- inline BOOL operator != ( const TextSelection& rSel ) const;
+ inline BOOL operator == ( const TextSelection& rSel ) const;
+ inline BOOL operator != ( const TextSelection& rSel ) const;
};
inline BOOL TextSelection::operator == ( const TextSelection& rSel ) const
@@ -136,49 +136,49 @@ inline BOOL TextSelection::operator != ( const TextSelection& rSel ) const
return !( *this == rSel );
}
-#define TEXT_HINT_PARAINSERTED 1
-#define TEXT_HINT_PARAREMOVED 2
-#define TEXT_HINT_PARACONTENTCHANGED 3
-#define TEXT_HINT_TEXTHEIGHTCHANGED 4
-#define TEXT_HINT_FORMATPARA 5
-#define TEXT_HINT_TEXTFORMATTED 6
-#define TEXT_HINT_MODIFIED 7
-#define TEXT_HINT_BLOCKNOTIFICATION_START 8
-#define TEXT_HINT_BLOCKNOTIFICATION_END 9
-#define TEXT_HINT_INPUT_START 10
-#define TEXT_HINT_INPUT_END 11
-
-#define TEXT_HINT_VIEWSCROLLED 100
+#define TEXT_HINT_PARAINSERTED 1
+#define TEXT_HINT_PARAREMOVED 2
+#define TEXT_HINT_PARACONTENTCHANGED 3
+#define TEXT_HINT_TEXTHEIGHTCHANGED 4
+#define TEXT_HINT_FORMATPARA 5
+#define TEXT_HINT_TEXTFORMATTED 6
+#define TEXT_HINT_MODIFIED 7
+#define TEXT_HINT_BLOCKNOTIFICATION_START 8
+#define TEXT_HINT_BLOCKNOTIFICATION_END 9
+#define TEXT_HINT_INPUT_START 10
+#define TEXT_HINT_INPUT_END 11
+
+#define TEXT_HINT_VIEWSCROLLED 100
#define TEXT_HINT_VIEWSELECTIONCHANGED 101
class SVT_DLLPUBLIC TextHint : public SfxSimpleHint
{
private:
- ULONG mnValue;
+ ULONG mnValue;
public:
TYPEINFO();
TextHint( ULONG nId );
TextHint( ULONG nId, ULONG nValue );
- ULONG GetValue() const { return mnValue; }
- void SetValue( ULONG n ) { mnValue = n; }
+ ULONG GetValue() const { return mnValue; }
+ void SetValue( ULONG n ) { mnValue = n; }
};
struct TEIMEInfos
{
String aOldTextAfterStartPos;
- USHORT* pAttribs;
- TextPaM aPos;
- USHORT nLen;
- BOOL bCursor;
- BOOL bWasCursorOverwrite;
+ USHORT* pAttribs;
+ TextPaM aPos;
+ USHORT nLen;
+ BOOL bCursor;
+ BOOL bWasCursorOverwrite;
TEIMEInfos( const TextPaM& rPos, const String& rOldTextAfterStartPos );
~TEIMEInfos();
- void CopyAttribs( const USHORT* pA, USHORT nL );
- void DestroyAttribs();
+ void CopyAttribs( const USHORT* pA, USHORT nL );
+ void DestroyAttribs();
};
// ----------------- Wrapper for old Tools List -------------------
@@ -196,11 +196,11 @@ struct TEIMEInfos
template <class T> class ToolsList : public ::std::vector< T >
{
public:
- ULONG Count() const { return static_cast<ULONG>(::std::vector< T >::size()); }
- ULONG GetPos( T pObject ) const { return ( ::std::find( this->begin(), this->end(), pObject ) ) - this->begin(); }
- T GetObject( ULONG nIndex ) const { return (*this)[nIndex]; }
- void Insert( T pObject, ULONG nPos ) { ::std::vector< T >::insert( this->begin()+nPos, pObject ); }
- void Remove( ULONG nPos ) { ::std::vector< T >::erase( this->begin()+nPos ); }
+ ULONG Count() const { return static_cast<ULONG>(::std::vector< T >::size()); }
+ ULONG GetPos( T pObject ) const { return ( ::std::find( this->begin(), this->end(), pObject ) ) - this->begin(); }
+ T GetObject( ULONG nIndex ) const { return (*this)[nIndex]; }
+ void Insert( T pObject, ULONG nPos ) { ::std::vector< T >::insert( this->begin()+nPos, pObject ); }
+ void Remove( ULONG nPos ) { ::std::vector< T >::erase( this->begin()+nPos ); }
};
#endif // _TEXTDATA_HXX
diff --git a/svtools/inc/svtools/texteng.hxx b/svtools/inc/svtools/texteng.hxx
index 09c7b042bde3..3825db428bd1 100644
--- a/svtools/inc/svtools/texteng.hxx
+++ b/svtools/inc/svtools/texteng.hxx
@@ -2,7 +2,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
@@ -78,83 +78,83 @@ enum TxtAlign { TXTALIGN_LEFT, TXTALIGN_CENTER, TXTALIGN_RIGHT };
class SVT_DLLPUBLIC TextEngine : public SfxBroadcaster
{
- friend class TextView;
- friend class TextSelFunctionSet;
- friend class ExtTextEngine;
- friend class ExtTextView;
-
- friend class TextUndo;
- friend class TextUndoManager;
- friend class TextUndoDelPara;
- friend class TextUndoConnectParas;
- friend class TextUndoSplitPara;
- friend class TextUndoInsertChars;
- friend class TextUndoRemoveChars;
- friend class TextUndoSetAttribs;
+ friend class TextView;
+ friend class TextSelFunctionSet;
+ friend class ExtTextEngine;
+ friend class ExtTextView;
+
+ friend class TextUndo;
+ friend class TextUndoManager;
+ friend class TextUndoDelPara;
+ friend class TextUndoConnectParas;
+ friend class TextUndoSplitPara;
+ friend class TextUndoInsertChars;
+ friend class TextUndoRemoveChars;
+ friend class TextUndoSetAttribs;
private:
- TextDoc* mpDoc;
- TEParaPortions* mpTEParaPortions;
- OutputDevice* mpRefDev;
+ TextDoc* mpDoc;
+ TEParaPortions* mpTEParaPortions;
+ OutputDevice* mpRefDev;
- TextViews* mpViews;
- TextView* mpActiveView;
+ TextViews* mpViews;
+ TextView* mpActiveView;
- TextUndoManager* mpUndoManager;
+ TextUndoManager* mpUndoManager;
- IdleFormatter* mpIdleFormatter;
+ IdleFormatter* mpIdleFormatter;
- TEIMEInfos* mpIMEInfos;
+ TEIMEInfos* mpIMEInfos;
::com::sun::star::lang::Locale maLocale;
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > mxBreakIterator;
- Rectangle maInvalidRec;
- Range maInvalidRange;
+ Rectangle maInvalidRec;
+ Range maInvalidRange;
LocaleDataWrapper* mpLocaleDataWrapper;
- Font maFont;
+ Font maFont;
Color maTextColor;
- USHORT mnCharHeight;
- USHORT mnFixCharWidth100;
-
- ULONG mnMaxTextLen;
- ULONG mnMaxTextWidth;
- ULONG mnCurTextWidth;
- ULONG mnCurTextHeight;
- ULONG mnDefTab;
-
- TxtAlign meAlign;
-
- BOOL mbIsFormatting : 1; // Semaphore wegen der Hook's
- BOOL mbFormatted : 1;
- BOOL mbUpdate : 1;
- BOOL mbModified : 1;
- BOOL mbUndoEnabled : 1;
- BOOL mbIsInUndo : 1;
- BOOL mbDowning : 1;
- BOOL mbRightToLeft : 1;
- BOOL mbHasMultiLineParas : 1;
-
- TextEngine( const TextEngine& ) : SfxBroadcaster() {}
- TextEngine& operator=( const TextEngine& ) { return *this; }
+ USHORT mnCharHeight;
+ USHORT mnFixCharWidth100;
+
+ ULONG mnMaxTextLen;
+ ULONG mnMaxTextWidth;
+ ULONG mnCurTextWidth;
+ ULONG mnCurTextHeight;
+ ULONG mnDefTab;
+
+ TxtAlign meAlign;
+
+ BOOL mbIsFormatting : 1; // Semaphore wegen der Hook's
+ BOOL mbFormatted : 1;
+ BOOL mbUpdate : 1;
+ BOOL mbModified : 1;
+ BOOL mbUndoEnabled : 1;
+ BOOL mbIsInUndo : 1;
+ BOOL mbDowning : 1;
+ BOOL mbRightToLeft : 1;
+ BOOL mbHasMultiLineParas : 1;
+
+ TextEngine( const TextEngine& ) : SfxBroadcaster() {}
+ TextEngine& operator=( const TextEngine& ) { return *this; }
protected:
- void CursorMoved( ULONG nNode );
- void TextModified();
-
- void ImpInitDoc();
- void ImpRemoveText();
- TextPaM ImpDeleteText( const TextSelection& rSel );
- TextPaM ImpInsertText( const TextSelection& rSel, sal_Unicode c, BOOL bOverwrite = FALSE );
- TextPaM ImpInsertText( const TextSelection& rSel, const String& rText );
- TextPaM ImpInsertParaBreak( const TextSelection& rTextSelection, BOOL bKeepEndingAttribs = TRUE );
- TextPaM ImpInsertParaBreak( const TextPaM& rPaM, BOOL bKeepEndingAttribs = TRUE );
- void ImpRemoveChars( const TextPaM& rPaM, USHORT nChars, SfxUndoAction* pCurUndo = 0 );
- TextPaM ImpConnectParagraphs( ULONG nLeft, ULONG nRight );
- void ImpRemoveParagraph( ULONG nPara );
+ void CursorMoved( ULONG nNode );
+ void TextModified();
+
+ void ImpInitDoc();
+ void ImpRemoveText();
+ TextPaM ImpDeleteText( const TextSelection& rSel );
+ TextPaM ImpInsertText( const TextSelection& rSel, sal_Unicode c, BOOL bOverwrite = FALSE );
+ TextPaM ImpInsertText( const TextSelection& rSel, const String& rText );
+ TextPaM ImpInsertParaBreak( const TextSelection& rTextSelection, BOOL bKeepEndingAttribs = TRUE );
+ TextPaM ImpInsertParaBreak( const TextPaM& rPaM, BOOL bKeepEndingAttribs = TRUE );
+ void ImpRemoveChars( const TextPaM& rPaM, USHORT nChars, SfxUndoAction* pCurUndo = 0 );
+ TextPaM ImpConnectParagraphs( ULONG nLeft, ULONG nRight );
+ void ImpRemoveParagraph( ULONG nPara );
void ImpInitWritingDirections( ULONG nPara );
LocaleDataWrapper* ImpGetLocaleDataWrapper();
@@ -167,161 +167,161 @@ protected:
SAL_DLLPRIVATE BOOL IsInputSequenceCheckingRequired( sal_Unicode c, const TextSelection& rCurSel ) const;
// Broadcasten bzw. Selektionen anpassen:
- void ImpParagraphInserted( ULONG nPara );
- void ImpParagraphRemoved( ULONG nPara );
- void ImpCharsRemoved( ULONG nPara, USHORT nPos, USHORT nChars );
- void ImpCharsInserted( ULONG nPara, USHORT nPos, USHORT nChars );
- void ImpFormattingParagraph( ULONG nPara );
- void ImpTextHeightChanged();
- void ImpTextFormatted();
-
- DECL_LINK( IdleFormatHdl, Timer * );
- void CheckIdleFormatter();
- void IdleFormatAndUpdate( TextView* pCurView = 0, USHORT nMaxTimerRestarts = 5 );
-
- BOOL CreateLines( ULONG nPara );
- void CreateAndInsertEmptyLine( ULONG nPara );
- void ImpBreakLine( ULONG nPara, TextLine* pLine, TETextPortion* pPortion, USHORT nPortionStart, long nRemainingWidth );
- USHORT SplitTextPortion( ULONG nPara, USHORT nPos );
- void CreateTextPortions( ULONG nPara, USHORT nStartPos );
- void RecalcTextPortion( ULONG nPara, USHORT nStartPos, short nNewChars );
- void SeekCursor( ULONG nNode, USHORT nPos, Font& rFont, OutputDevice* pOutDev );
-
- void FormatDoc();
- void FormatFullDoc();
- void FormatAndUpdate( TextView* pCurView = 0 );
- BOOL IsFormatting() const { return mbIsFormatting; }
- void UpdateViews( TextView* pCurView = 0 );
- void SetUpdateMode( BOOL bUp, TextView* pCurView, BOOL bForceUpdate );
-
- void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
-
- void UpdateSelections();
-
- BOOL IsFormatted() const { return mbFormatted; }
-
- USHORT GetCharPos( ULONG nPara, USHORT nLine, long nDocPosX, BOOL bSmart = FALSE );
- Rectangle GetEditCursor( const TextPaM& rPaM, BOOL bSpecial, BOOL bPreferPortionStart = FALSE );
- USHORT ImpFindIndex( ULONG nPortion, const Point& rPosInPara, BOOL bSmart );
+ void ImpParagraphInserted( ULONG nPara );
+ void ImpParagraphRemoved( ULONG nPara );
+ void ImpCharsRemoved( ULONG nPara, USHORT nPos, USHORT nChars );
+ void ImpCharsInserted( ULONG nPara, USHORT nPos, USHORT nChars );
+ void ImpFormattingParagraph( ULONG nPara );
+ void ImpTextHeightChanged();
+ void ImpTextFormatted();
+
+ DECL_LINK( IdleFormatHdl, Timer * );
+ void CheckIdleFormatter();
+ void IdleFormatAndUpdate( TextView* pCurView = 0, USHORT nMaxTimerRestarts = 5 );
+
+ BOOL CreateLines( ULONG nPara );
+ void CreateAndInsertEmptyLine( ULONG nPara );
+ void ImpBreakLine( ULONG nPara, TextLine* pLine, TETextPortion* pPortion, USHORT nPortionStart, long nRemainingWidth );
+ USHORT SplitTextPortion( ULONG nPara, USHORT nPos );
+ void CreateTextPortions( ULONG nPara, USHORT nStartPos );
+ void RecalcTextPortion( ULONG nPara, USHORT nStartPos, short nNewChars );
+ void SeekCursor( ULONG nNode, USHORT nPos, Font& rFont, OutputDevice* pOutDev );
+
+ void FormatDoc();
+ void FormatFullDoc();
+ void FormatAndUpdate( TextView* pCurView = 0 );
+ BOOL IsFormatting() const { return mbIsFormatting; }
+ void UpdateViews( TextView* pCurView = 0 );
+ void SetUpdateMode( BOOL bUp, TextView* pCurView, BOOL bForceUpdate );
+
+ void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
+
+ void UpdateSelections();
+
+ BOOL IsFormatted() const { return mbFormatted; }
+
+ USHORT GetCharPos( ULONG nPara, USHORT nLine, long nDocPosX, BOOL bSmart = FALSE );
+ Rectangle GetEditCursor( const TextPaM& rPaM, BOOL bSpecial, BOOL bPreferPortionStart = FALSE );
+ USHORT ImpFindIndex( ULONG nPortion, const Point& rPosInPara, BOOL bSmart );
long ImpGetPortionXOffset( ULONG nPara, TextLine* pLine, USHORT nTextPortion );
long ImpGetXPos( ULONG nPara, TextLine* pLine, USHORT nIndex, BOOL bPreferPortionStart = FALSE );
long ImpGetOutputOffset( ULONG nPara, TextLine* pLine, USHORT nIndex, USHORT nIndex2 );
BYTE ImpGetRightToLeft( ULONG nPara, USHORT nPos, USHORT* pStart = NULL, USHORT* pEnd = NULL );
void ImpInitLayoutMode( OutputDevice* pOutDev, BOOL bDrawingR2LPortion = FALSE );
- TxtAlign ImpGetAlign() const;
+ TxtAlign ImpGetAlign() const;
- ULONG CalcTextHeight();
- ULONG CalcParaHeight( ULONG nParagraph ) const;
- ULONG CalcTextWidth( ULONG nPara );
- ULONG CalcTextWidth( ULONG nPara, USHORT nPortionStart, USHORT nPortionLen, const Font* pFont = 0 );
- Range GetInvalidYOffsets( ULONG nPortion );
+ ULONG CalcTextHeight();
+ ULONG CalcParaHeight( ULONG nParagraph ) const;
+ ULONG CalcTextWidth( ULONG nPara );
+ ULONG CalcTextWidth( ULONG nPara, USHORT nPortionStart, USHORT nPortionLen, const Font* pFont = 0 );
+ Range GetInvalidYOffsets( ULONG nPortion );
// Fuer Undo/Redo
- void InsertContent( TextNode* pNode, ULONG nPara );
- TextPaM SplitContent( ULONG nNode, USHORT nSepPos );
- TextPaM ConnectContents( ULONG nLeftNode );
+ void InsertContent( TextNode* pNode, ULONG nPara );
+ TextPaM SplitContent( ULONG nNode, USHORT nSepPos );
+ TextPaM ConnectContents( ULONG nLeftNode );
// Ans API uebergebene PaM's und Selektionen auf einen gueltigen Bereich einstellen
- void ValidateSelection( TextSelection& rSel ) const;
- void ValidatePaM( TextPaM& rPaM ) const;
+ void ValidateSelection( TextSelection& rSel ) const;
+ void ValidatePaM( TextPaM& rPaM ) const;
public:
TextEngine();
~TextEngine();
- void SetText( const String& rStr );
- String GetText( LineEnd aSeparator = LINEEND_LF ) const;
- String GetText( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
- String GetTextLines( LineEnd aSeparator = LINEEND_LF ) const;
+ void SetText( const String& rStr );
+ String GetText( LineEnd aSeparator = LINEEND_LF ) const;
+ String GetText( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
+ String GetTextLines( LineEnd aSeparator = LINEEND_LF ) const;
void ReplaceText(const TextSelection& rSel, const String& rText);
- ULONG GetTextLen( LineEnd aSeparator = LINEEND_LF ) const;
- ULONG GetTextLen( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
+ ULONG GetTextLen( LineEnd aSeparator = LINEEND_LF ) const;
+ ULONG GetTextLen( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
- void SetFont( const Font& rFont );
- const Font& GetFont() const { return maFont; }
+ void SetFont( const Font& rFont );
+ const Font& GetFont() const { return maFont; }
- void SetDefTab( USHORT nDefTab );
- USHORT GetDefTab() const;
+ void SetDefTab( USHORT nDefTab );
+ USHORT GetDefTab() const;
- void SetLeftMargin( USHORT n );
- USHORT GetLeftMargin() const;
+ void SetLeftMargin( USHORT n );
+ USHORT GetLeftMargin() const;
- void SetUpdateMode( BOOL bUpdate );
- BOOL GetUpdateMode() const { return mbUpdate; }
+ void SetUpdateMode( BOOL bUpdate );
+ BOOL GetUpdateMode() const { return mbUpdate; }
- USHORT GetViewCount() const;
- TextView* GetView( USHORT nView ) const;
- void InsertView( TextView* pTextView );
- void RemoveView( TextView* pTextView );
- TextView* GetActiveView() const;
- void SetActiveView( TextView* pView );
+ USHORT GetViewCount() const;
+ TextView* GetView( USHORT nView ) const;
+ void InsertView( TextView* pTextView );
+ void RemoveView( TextView* pTextView );
+ TextView* GetActiveView() const;
+ void SetActiveView( TextView* pView );
- void SetMaxTextLen( ULONG nLen );
- ULONG GetMaxTextLen() const { return mnMaxTextLen; }
+ void SetMaxTextLen( ULONG nLen );
+ ULONG GetMaxTextLen() const { return mnMaxTextLen; }
- void SetMaxTextWidth( ULONG nWidth );
- ULONG GetMaxTextWidth() const { return mnMaxTextWidth; }
+ void SetMaxTextWidth( ULONG nWidth );
+ ULONG GetMaxTextWidth() const { return mnMaxTextWidth; }
- ULONG GetTextHeight() const;
- ULONG CalcTextWidth();
- USHORT GetCharHeight() const { return mnCharHeight; }
+ ULONG GetTextHeight() const;
+ ULONG CalcTextWidth();
+ USHORT GetCharHeight() const { return mnCharHeight; }
- ULONG GetParagraphCount() const;
- String GetText( ULONG nParagraph ) const;
- USHORT GetTextLen( ULONG nParagraph ) const;
- ULONG GetTextHeight( ULONG nParagraph ) const;
+ ULONG GetParagraphCount() const;
+ String GetText( ULONG nParagraph ) const;
+ USHORT GetTextLen( ULONG nParagraph ) const;
+ ULONG GetTextHeight( ULONG nParagraph ) const;
- USHORT GetLineCount( ULONG nParagraph ) const;
- USHORT GetLineLen( ULONG nParagraph, USHORT nLine ) const;
+ USHORT GetLineCount( ULONG nParagraph ) const;
+ USHORT GetLineLen( ULONG nParagraph, USHORT nLine ) const;
void SetRightToLeft( BOOL bR2L );
BOOL IsRightToLeft() const { return mbRightToLeft; }
- BOOL HasUndoManager() const { return mpUndoManager ? TRUE : FALSE; }
- SfxUndoManager& GetUndoManager();
- void UndoActionStart( USHORT nId );
- void UndoActionEnd( USHORT nId );
- void InsertUndo( TextUndo* pUndo, BOOL bTryMerge = FALSE );
- BOOL IsInUndo() { return mbIsInUndo; }
- void SetIsInUndo( BOOL bInUndo ) { mbIsInUndo = bInUndo; }
- void ResetUndo();
+ BOOL HasUndoManager() const { return mpUndoManager ? TRUE : FALSE; }
+ SfxUndoManager& GetUndoManager();
+ void UndoActionStart( USHORT nId );
+ void UndoActionEnd( USHORT nId );
+ void InsertUndo( TextUndo* pUndo, BOOL bTryMerge = FALSE );
+ BOOL IsInUndo() { return mbIsInUndo; }
+ void SetIsInUndo( BOOL bInUndo ) { mbIsInUndo = bInUndo; }
+ void ResetUndo();
- void EnableUndo( BOOL bEnable );
- BOOL IsUndoEnabled() { return mbUndoEnabled; }
+ void EnableUndo( BOOL bEnable );
+ BOOL IsUndoEnabled() { return mbUndoEnabled; }
- void SetModified( BOOL bModified ) { mbModified = bModified; }
- BOOL IsModified() const { return mbModified; }
+ void SetModified( BOOL bModified ) { mbModified = bModified; }
+ BOOL IsModified() const { return mbModified; }
- BOOL Read( SvStream& rInput, const TextSelection* pSel = NULL );
+ BOOL Read( SvStream& rInput, const TextSelection* pSel = NULL );
- BOOL Write( SvStream& rOutput, const TextSelection* pSel = NULL, BOOL bHTML = FALSE );
+ BOOL Write( SvStream& rOutput, const TextSelection* pSel = NULL, BOOL bHTML = FALSE );
- TextPaM GetPaM( const Point& rDocPos, BOOL bSmart = TRUE );
- Rectangle PaMtoEditCursor( const TextPaM& rPaM, BOOL bSpecial = FALSE );
- String GetWord( const TextPaM& rCursorPos, TextPaM* pStartOfWord = 0 );
+ TextPaM GetPaM( const Point& rDocPos, BOOL bSmart = TRUE );
+ Rectangle PaMtoEditCursor( const TextPaM& rPaM, BOOL bSpecial = FALSE );
+ String GetWord( const TextPaM& rCursorPos, TextPaM* pStartOfWord = 0 );
- BOOL HasAttrib( USHORT nWhich ) const;
- const TextAttrib* FindAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
- const TextCharAttrib* FindCharAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
+ BOOL HasAttrib( USHORT nWhich ) const;
+ const TextAttrib* FindAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
+ const TextCharAttrib* FindCharAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
void RemoveAttribs( ULONG nPara, USHORT nWhich, BOOL bIdleFormatAndUpdate );
void RemoveAttrib( ULONG nPara, const TextCharAttrib& rAttrib );
- void RemoveAttribs( ULONG nPara, BOOL bIdleFormatAndUpdate = TRUE );
- void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd, BOOL bIdleFormatAndUpdate = TRUE );
+ void RemoveAttribs( ULONG nPara, BOOL bIdleFormatAndUpdate = TRUE );
+ void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd, BOOL bIdleFormatAndUpdate = TRUE );
- TxtAlign GetTextAlign() const { return meAlign; }
- void SetTextAlign( TxtAlign eAlign );
+ TxtAlign GetTextAlign() const { return meAlign; }
+ void SetTextAlign( TxtAlign eAlign );
- void Draw( OutputDevice* pDev, const Point& rPos );
+ void Draw( OutputDevice* pDev, const Point& rPos );
void SetLocale( const ::com::sun::star::lang::Locale& rLocale );
::com::sun::star::lang::Locale GetLocale();
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > GetBreakIterator();
- static BOOL DoesKeyChangeText( const KeyEvent& rKeyEvent );
- static BOOL DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
- static BOOL IsSimpleCharInput( const KeyEvent& rKeyEvent );
+ static BOOL DoesKeyChangeText( const KeyEvent& rKeyEvent );
+ static BOOL DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
+ static BOOL IsSimpleCharInput( const KeyEvent& rKeyEvent );
};
#endif // _TEXTENG_HXX
diff --git a/svtools/inc/svtools/textview.hxx b/svtools/inc/svtools/textview.hxx
index 8348c584ba58..2935485c7445 100644
--- a/svtools/inc/svtools/textview.hxx
+++ b/svtools/inc/svtools/textview.hxx
@@ -2,7 +2,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,43 +58,43 @@ struct ImpTextView;
class SVT_DLLPUBLIC TextView : public vcl::unohelper::DragAndDropClient
{
- friend class TextEngine;
- friend class TextUndo;
- friend class TextUndoManager;
- friend class TextSelFunctionSet;
- friend class ExtTextView;
+ friend class TextEngine;
+ friend class TextUndo;
+ friend class TextUndoManager;
+ friend class TextSelFunctionSet;
+ friend class ExtTextView;
private:
ImpTextView* mpImpl;
- TextView( const TextView& ) : vcl::unohelper::DragAndDropClient() {}
- TextView& operator=( const TextView& ) { return *this; }
+ TextView( const TextView& ) : vcl::unohelper::DragAndDropClient() {}
+ TextView& operator=( const TextView& ) { return *this; }
protected:
- void ShowSelection();
- void HideSelection();
- void ShowSelection( const TextSelection& rSel );
+ void ShowSelection();
+ void HideSelection();
+ void ShowSelection( const TextSelection& rSel );
void ImpShowHideSelection( BOOL bShow, const TextSelection* pRange = NULL );
- TextSelection ImpMoveCursor( const KeyEvent& rKeyEvent );
- TextPaM ImpDelete( BYTE nMode, BYTE nDelMode );
- void ImpSetSelection( const TextSelection& rNewSel, BOOL bUI );
- BOOL IsInSelection( const TextPaM& rPaM );
+ TextSelection ImpMoveCursor( const KeyEvent& rKeyEvent );
+ TextPaM ImpDelete( BYTE nMode, BYTE nDelMode );
+ void ImpSetSelection( const TextSelection& rNewSel, BOOL bUI );
+ BOOL IsInSelection( const TextPaM& rPaM );
- void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
- void ImpPaint( const Rectangle& rRect, BOOL bUseVirtDev );
- void ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bEndKey );
- void ImpHighlight( const TextSelection& rSel );
+ void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
+ void ImpPaint( const Rectangle& rRect, BOOL bUseVirtDev );
+ void ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bEndKey );
+ void ImpHighlight( const TextSelection& rSel );
void ImpSetSelection( const TextSelection& rSelection );
Point ImpGetOutputStartPos( const Point& rStartDocPos ) const;
- void ImpHideDDCursor();
- void ImpShowDDCursor();
+ void ImpHideDDCursor();
+ void ImpShowDDCursor();
bool ImplTruncateNewText( rtl::OUString& rNewText ) const;
- BOOL ImplCheckTextLen( const String& rNewText );
+ BOOL ImplCheckTextLen( const String& rNewText );
- VirtualDevice* GetVirtualDevice();
+ VirtualDevice* GetVirtualDevice();
// DragAndDropClient
virtual void dragGestureRecognized( const ::com::sun::star::datatransfer::dnd::DragGestureEvent& dge ) throw (::com::sun::star::uno::RuntimeException);
@@ -110,107 +110,107 @@ protected:
public:
TextView( TextEngine* pEng, Window* pWindow );
- virtual ~TextView();
+ virtual ~TextView();
TextEngine* GetTextEngine() const;
Window* GetWindow() const;
- void Invalidate();
- void Scroll( long nHorzScroll, long nVertScroll );
+ void Invalidate();
+ void Scroll( long nHorzScroll, long nVertScroll );
- void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
- void HideCursor();
+ void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
+ void HideCursor();
void EnableCursor( BOOL bEnable );
- BOOL IsCursorEnabled() const;
+ BOOL IsCursorEnabled() const;
- const TextSelection& GetSelection() const;
+ const TextSelection& GetSelection() const;
TextSelection& GetSelection();
void SetSelection( const TextSelection& rNewSel );
- void SetSelection( const TextSelection& rNewSel, BOOL bGotoCursor );
+ void SetSelection( const TextSelection& rNewSel, BOOL bGotoCursor );
BOOL HasSelection() const;
- String GetSelected();
- String GetSelected( LineEnd aSeparator );
- void DeleteSelected();
+ String GetSelected();
+ String GetSelected( LineEnd aSeparator );
+ void DeleteSelected();
- void InsertNewText( const rtl::OUString& rNew, BOOL bSelect = FALSE );
+ void InsertNewText( const rtl::OUString& rNew, BOOL bSelect = FALSE );
// deprecated: use InsertNewText instead
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
+ void InsertText( const String& rNew, BOOL bSelect = FALSE );
- BOOL KeyInput( const KeyEvent& rKeyEvent );
- void Paint( const Rectangle& rRect );
- void MouseButtonUp( const MouseEvent& rMouseEvent );
- void MouseButtonDown( const MouseEvent& rMouseEvent );
- void MouseMove( const MouseEvent& rMouseEvent );
- void Command( const CommandEvent& rCEvt );
+ BOOL KeyInput( const KeyEvent& rKeyEvent );
+ void Paint( const Rectangle& rRect );
+ void MouseButtonUp( const MouseEvent& rMouseEvent );
+ void MouseButtonDown( const MouseEvent& rMouseEvent );
+ void MouseMove( const MouseEvent& rMouseEvent );
+ void Command( const CommandEvent& rCEvt );
- void Cut();
- void Copy();
- void Paste();
+ void Cut();
+ void Copy();
+ void Paste();
void Copy( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& rxClipboard );
void Paste( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& rxClipboard );
- void Undo();
- void Redo();
+ void Undo();
+ void Redo();
- BOOL Read( SvStream& rInput );
- BOOL Write( SvStream& rOutput );
+ BOOL Read( SvStream& rInput );
+ BOOL Write( SvStream& rOutput );
void SetStartDocPos( const Point& rPos );
const Point& GetStartDocPos() const;
- Point GetDocPos( const Point& rWindowPos ) const;
- Point GetWindowPos( const Point& rDocPos ) const;
+ Point GetDocPos( const Point& rWindowPos ) const;
+ Point GetWindowPos( const Point& rDocPos ) const;
- void SetInsertMode( BOOL bInsert );
+ void SetInsertMode( BOOL bInsert );
BOOL IsInsertMode() const;
void SetAutoIndentMode( BOOL bAutoIndent );
BOOL IsAutoIndentMode() const;
- void SetReadOnly( BOOL bReadOnly );
+ void SetReadOnly( BOOL bReadOnly );
BOOL IsReadOnly() const;
void SetAutoScroll( BOOL bAutoScroll );
BOOL IsAutoScroll() const;
- BOOL SetCursorAtPoint( const Point& rPointPixel );
- BOOL IsSelectionAtPoint( const Point& rPointPixel );
+ BOOL SetCursorAtPoint( const Point& rPointPixel );
+ BOOL IsSelectionAtPoint( const Point& rPointPixel );
- void SetPaintSelection( BOOL bPaint);
+ void SetPaintSelection( BOOL bPaint);
BOOL IsPaintSelection() const;
- void SetHighlightSelection( BOOL bSelectByHighlight );
+ void SetHighlightSelection( BOOL bSelectByHighlight );
BOOL IsHighlightSelection() const;
- void EraseVirtualDevice();
+ void EraseVirtualDevice();
// aus dem protected Teil hierher verschoben
// F�r 'SvtXECTextCursor' (TL). Mu� ggf nochmal anders gel�st werden.
- TextPaM PageUp( const TextPaM& rPaM );
- TextPaM PageDown( const TextPaM& rPaM );
- TextPaM CursorUp( const TextPaM& rPaM );
- TextPaM CursorDown( const TextPaM& rPaM );
- TextPaM CursorLeft( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
- TextPaM CursorRight( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
- TextPaM CursorWordLeft( const TextPaM& rPaM );
- TextPaM CursorWordRight( const TextPaM& rPaM );
- TextPaM CursorStartOfLine( const TextPaM& rPaM );
- TextPaM CursorEndOfLine( const TextPaM& rPaM );
- TextPaM CursorStartOfParagraph( const TextPaM& rPaM );
- TextPaM CursorEndOfParagraph( const TextPaM& rPaM );
- TextPaM CursorStartOfDoc();
- TextPaM CursorEndOfDoc();
+ TextPaM PageUp( const TextPaM& rPaM );
+ TextPaM PageDown( const TextPaM& rPaM );
+ TextPaM CursorUp( const TextPaM& rPaM );
+ TextPaM CursorDown( const TextPaM& rPaM );
+ TextPaM CursorLeft( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
+ TextPaM CursorRight( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
+ TextPaM CursorWordLeft( const TextPaM& rPaM );
+ TextPaM CursorWordRight( const TextPaM& rPaM );
+ TextPaM CursorStartOfLine( const TextPaM& rPaM );
+ TextPaM CursorEndOfLine( const TextPaM& rPaM );
+ TextPaM CursorStartOfParagraph( const TextPaM& rPaM );
+ TextPaM CursorEndOfParagraph( const TextPaM& rPaM );
+ TextPaM CursorStartOfDoc();
+ TextPaM CursorEndOfDoc();
// Old, remove!
- TextPaM CursorLeft( const TextPaM& rPaM, BOOL bWordMode = FALSE );
- TextPaM CursorRight( const TextPaM& rPaM, BOOL bWordMode = FALSE );
+ TextPaM CursorLeft( const TextPaM& rPaM, BOOL bWordMode = FALSE );
+ TextPaM CursorRight( const TextPaM& rPaM, BOOL bWordMode = FALSE );
/**
- Drag and Drop, deleting and selection regards all text that has an attribute
- TEXTATTR_PROTECTED set as one entitity. Drag and dropped text is automatically
+ Drag and Drop, deleting and selection regards all text that has an attribute
+ TEXTATTR_PROTECTED set as one entitity. Drag and dropped text is automatically
attibuted as protected.
*/
void SupportProtectAttribute(sal_Bool bSupport);
diff --git a/svtools/inc/svtools/textwindowpeer.hxx b/svtools/inc/svtools/textwindowpeer.hxx
index a01af5bf4c58..fd4cee274a7e 100644
--- a/svtools/inc/svtools/textwindowpeer.hxx
+++ b/svtools/inc/svtools/textwindowpeer.hxx
@@ -2,7 +2,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/svtools/inc/svtools/toolbarmenu.hxx b/svtools/inc/svtools/toolbarmenu.hxx
index 362a57c21f96..5f257bd7f629 100644
--- a/svtools/inc/svtools/toolbarmenu.hxx
+++ b/svtools/inc/svtools/toolbarmenu.hxx
@@ -58,11 +58,11 @@ public:
ToolbarMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
Window* pParentWindow,
WinBits nBits );
-
+
ToolbarMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
Window* pParentWindow,
const ResId& rResId );
-
+
~ToolbarMenu();
virtual void MouseMove( const MouseEvent& rMEvt );
@@ -72,39 +72,39 @@ public:
virtual void Command( const CommandEvent& rCEvt );
virtual void Paint( const Rectangle& rRect );
virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void GetFocus();
- virtual void LoseFocus();
+ virtual void GetFocus();
+ virtual void LoseFocus();
- void appendEntry( int nEntryId, const String& rStr, MenuItemBits nItemBits = 0 );
- void appendEntry( int nEntryId, const Image& rImage, MenuItemBits nItemBits = 0 );
- void appendEntry( int nEntryId, const String& rStr, const Image& rImage, MenuItemBits nItemBits = 0 );
- void appendEntry( int nEntryId, Control* pControl, MenuItemBits nItemBits = 0 );
- void appendSeparator();
+ void appendEntry( int nEntryId, const String& rStr, MenuItemBits nItemBits = 0 );
+ void appendEntry( int nEntryId, const Image& rImage, MenuItemBits nItemBits = 0 );
+ void appendEntry( int nEntryId, const String& rStr, const Image& rImage, MenuItemBits nItemBits = 0 );
+ void appendEntry( int nEntryId, Control* pControl, MenuItemBits nItemBits = 0 );
+ void appendSeparator();
/** creates an empty ValueSet that is initialized and can be inserted with appendEntry. */
- ValueSet* createEmptyValueSetControl();
+ ValueSet* createEmptyValueSetControl();
- void checkEntry( int nEntryId, bool bCheck = true );
- bool isEntryChecked( int nEntryId ) const;
+ void checkEntry( int nEntryId, bool bCheck = true );
+ bool isEntryChecked( int nEntryId ) const;
- void enableEntry( int nEntryId, bool bEnable = true );
- bool isEntryEnabled( int nEntryId ) const;
+ void enableEntry( int nEntryId, bool bEnable = true );
+ bool isEntryEnabled( int nEntryId ) const;
- void setEntryText( int nEntryId, const String& rStr );
- const String& getEntryText( int nEntryId ) const;
+ void setEntryText( int nEntryId, const String& rStr );
+ const String& getEntryText( int nEntryId ) const;
- void setEntryImage( int nEntryId, const Image& rImage );
- const Image& getEntryImage( int nEntryId ) const;
+ void setEntryImage( int nEntryId, const Image& rImage );
+ const Image& getEntryImage( int nEntryId ) const;
- const Size& getMenuSize() const;
+ const Size& getMenuSize() const;
- void SetSelectHdl( const Link& rLink );
- const Link& GetSelectHdl() const;
+ void SetSelectHdl( const Link& rLink );
+ const Link& GetSelectHdl() const;
- int getSelectedEntryId() const;
- int getHighlightedEntryId() const;
+ int getSelectedEntryId() const;
+ int getHighlightedEntryId() const;
- void highlightFirstEntry();
+ void highlightFirstEntry();
protected:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
@@ -122,33 +122,33 @@ protected:
void StateChanged( StateChangedType nType );
void DataChanged( const DataChangedEvent& rDCEvt );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > GetFrame() const;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > GetFrame() const;
private:
DECL_LINK( HighlightHdl, Control * );
void initStatusListener();
- void implInit( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame );
- void initWindow();
-
- Size implCalcSize();
+ void implInit( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame );
+ void initWindow();
- void appendEntry( ToolbarMenuEntry* pEntry );
+ Size implCalcSize();
- void implPaint( ToolbarMenuEntry* pThisOnly = NULL, bool bHighlight = false );
+ void appendEntry( ToolbarMenuEntry* pEntry );
- void implHighlightEntry( int nHighlightEntry, bool bHighlight );
- void implHighlightEntry( const MouseEvent& rMEvt, bool bMBDown );
+ void implPaint( ToolbarMenuEntry* pThisOnly = NULL, bool bHighlight = false );
+
+ void implHighlightEntry( int nHighlightEntry, bool bHighlight );
+ void implHighlightEntry( const MouseEvent& rMEvt, bool bMBDown );
- void implChangeHighlightEntry( int nEntry );
- void implSelectEntry( int nSelectedEntry );
+ void implChangeHighlightEntry( int nEntry );
+ void implSelectEntry( int nSelectedEntry );
- ToolbarMenuEntry* implCursorUpDown( bool bUp, bool bHomeEnd );
- ToolbarMenuEntry* implGetEntry( int nEntry ) const;
- ToolbarMenuEntry* implSearchEntry( int nEntryId ) const;
+ ToolbarMenuEntry* implCursorUpDown( bool bUp, bool bHomeEnd );
+ ToolbarMenuEntry* implGetEntry( int nEntry ) const;
+ ToolbarMenuEntry* implSearchEntry( int nEntryId ) const;
- ToolbarMenu_Impl* mpImpl;
+ ToolbarMenu_Impl* mpImpl;
};
} // namespace svtools
diff --git a/svtools/inc/svtools/toolboxcontroller.hxx b/svtools/inc/svtools/toolboxcontroller.hxx
index 61bd7b7889f4..e79123dafde7 100644
--- a/svtools/inc/svtools/toolboxcontroller.hxx
+++ b/svtools/inc/svtools/toolboxcontroller.hxx
@@ -2,7 +2,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
@@ -78,15 +78,15 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame,
const rtl::OUString& aCommandURL );
ToolboxController();
- virtual ~ToolboxController();
-
+ virtual ~ToolboxController();
+
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > getFrameInterface() const;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getServiceManager() const;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > getLayoutManager() const;
void updateStatus( const rtl::OUString aCommandURL );
void updateStatus();
-
+
// XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL acquire() throw ();
@@ -94,19 +94,19 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
+
// XUpdatable
virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException);
-
+
// XComponent
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
-
+
// XEventListener
using cppu::OPropertySetHelper::disposing;
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ) = 0;
@@ -124,7 +124,7 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
// OPropertyArrayUsageHelper //shizhoubo
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
-
+
const rtl::OUString& getCommandURL() const { return m_aCommandURL; }
const rtl::OUString& getModuleName() const;
@@ -140,7 +140,7 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
{
Listener( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >& rDispatch ) :
aURL( rURL ), xDispatch( rDispatch ) {}
-
+
::com::sun::star::util::URL aURL;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch;
};
@@ -149,7 +149,7 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
com::sun::star::uno::Reference< com::sun::star::frame::XDispatch >,
::rtl::OUStringHash,
::std::equal_to< ::rtl::OUString > > URLToDispatchMap;
-
+
// methods to support status forwarder, known by the old sfx2 toolbox controller implementation
void addStatusListener( const rtl::OUString& aCommandURL );
void removeStatusListener( const rtl::OUString& aCommandURL );
@@ -163,8 +163,8 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
sal_Bool m_bInitialized : 1,
m_bDisposed : 1;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
- ToolboxController_Impl* m_pImpl;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
+ ToolboxController_Impl* m_pImpl;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager;
rtl::OUString m_aCommandURL;
URLToDispatchMap m_aListenerMap;
diff --git a/svtools/inc/svtools/toolpanel/decklayouter.hxx b/svtools/inc/svtools/toolpanel/decklayouter.hxx
index 7c5d7062c51d..993586279465 100644
--- a/svtools/inc/svtools/toolpanel/decklayouter.hxx
+++ b/svtools/inc/svtools/toolpanel/decklayouter.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/drawerlayouter.hxx b/svtools/inc/svtools/toolpanel/drawerlayouter.hxx
index 4a196909a178..f2fcb2d976c7 100644
--- a/svtools/inc/svtools/toolpanel/drawerlayouter.hxx
+++ b/svtools/inc/svtools/toolpanel/drawerlayouter.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/paneltabbar.hxx b/svtools/inc/svtools/toolpanel/paneltabbar.hxx
index 555ecb45ed8f..c6e7f8d0f242 100644
--- a/svtools/inc/svtools/toolpanel/paneltabbar.hxx
+++ b/svtools/inc/svtools/toolpanel/paneltabbar.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/refbase.hxx b/svtools/inc/svtools/toolpanel/refbase.hxx
index 4ca3ff32bb55..d798b3039e3a 100644
--- a/svtools/inc/svtools/toolpanel/refbase.hxx
+++ b/svtools/inc/svtools/toolpanel/refbase.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/tabalignment.hxx b/svtools/inc/svtools/toolpanel/tabalignment.hxx
index 708e4c9255c7..37414c387d1d 100644
--- a/svtools/inc/svtools/toolpanel/tabalignment.hxx
+++ b/svtools/inc/svtools/toolpanel/tabalignment.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/tabitemcontent.hxx b/svtools/inc/svtools/toolpanel/tabitemcontent.hxx
index b7aa7e52c0e5..12c9552a8778 100644
--- a/svtools/inc/svtools/toolpanel/tabitemcontent.hxx
+++ b/svtools/inc/svtools/toolpanel/tabitemcontent.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/tablayouter.hxx b/svtools/inc/svtools/toolpanel/tablayouter.hxx
index 18051d636108..4ae86c786df3 100644
--- a/svtools/inc/svtools/toolpanel/tablayouter.hxx
+++ b/svtools/inc/svtools/toolpanel/tablayouter.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/toolpanel.hxx b/svtools/inc/svtools/toolpanel/toolpanel.hxx
index 6d1b6d2fed46..12e4328c281c 100644
--- a/svtools/inc/svtools/toolpanel/toolpanel.hxx
+++ b/svtools/inc/svtools/toolpanel/toolpanel.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx b/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx
index 9be60324b5b8..079e78db306d 100644
--- a/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx
+++ b/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* 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/svtools/inc/svtools/transfer.hxx b/svtools/inc/svtools/transfer.hxx
index 262b9a12a2f5..4fe7fea92c5e 100644
--- a/svtools/inc/svtools/transfer.hxx
+++ b/svtools/inc/svtools/transfer.hxx
@@ -2,7 +2,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
@@ -67,14 +67,14 @@ class Link;
// - Drag&Drop defines -
// ---------------------
-#define DND_ACTION_NONE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_NONE
-#define DND_ACTION_COPY ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_COPY
-#define DND_ACTION_MOVE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_MOVE
+#define DND_ACTION_NONE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_NONE
+#define DND_ACTION_COPY ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_COPY
+#define DND_ACTION_MOVE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_MOVE
#define DND_ACTION_COPYMOVE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_COPY_OR_MOVE
-#define DND_ACTION_LINK ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_LINK
+#define DND_ACTION_LINK ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_LINK
-#define DND_POINTER_NONE 0
-#define DND_IMAGE_NONE 0
+#define DND_POINTER_NONE 0
+#define DND_IMAGE_NONE 0
// --------------------------------
// - TransferableObjectDescriptor -
@@ -82,20 +82,20 @@ class Link;
struct TransferableObjectDescriptor
{
- SvGlobalName maClassName;
- sal_uInt16 mnViewAspect;
- Point maDragStartPos;
- Size maSize;
- sal_uInt32 mnOle2Misc;
- String maTypeName;
- String maDisplayName;
- sal_Bool mbCanLink;
- void* mpDummy1;
- void* mpDummy2;
- sal_Bool mbDummy1;
-
- SVT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc );
- SVT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc );
+ SvGlobalName maClassName;
+ sal_uInt16 mnViewAspect;
+ Point maDragStartPos;
+ Size maSize;
+ sal_uInt32 mnOle2Misc;
+ String maTypeName;
+ String maDisplayName;
+ sal_Bool mbCanLink;
+ void* mpDummy1;
+ void* mpDummy2;
+ sal_Bool mbDummy1;
+
+ SVT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc );
+ SVT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc );
};
// -------------------
@@ -104,10 +104,10 @@ struct TransferableObjectDescriptor
struct AcceptDropEvent
{
- sal_Int8 mnAction;
- Point maPosPixel;
- const ::com::sun::star::datatransfer::dnd::DropTargetDragEvent maDragEvent;
- sal_Bool mbLeaving;
+ sal_Int8 mnAction;
+ Point maPosPixel;
+ const ::com::sun::star::datatransfer::dnd::DropTargetDragEvent maDragEvent;
+ sal_Bool mbLeaving;
sal_Bool mbDefault;
sal_Bool mbDummy1;
sal_Bool mbDummy2;
@@ -135,9 +135,9 @@ struct AcceptDropEvent
struct ExecuteDropEvent
{
- sal_Int8 mnAction;
- Point maPosPixel;
- const ::com::sun::star::datatransfer::dnd::DropTargetDropEvent maDropEvent;
+ sal_Int8 mnAction;
+ Point maPosPixel;
+ const ::com::sun::star::datatransfer::dnd::DropTargetDropEvent maDropEvent;
sal_Bool mbDefault;
sal_Bool mbDummy1;
sal_Bool mbDummy2;
@@ -172,8 +172,8 @@ private:
{
private:
- TransferableHelper& mrParent;
- void* mpDummy;
+ TransferableHelper& mrParent;
+ void* mpDummy;
private:
@@ -187,21 +187,21 @@ private:
public:
TerminateListener( TransferableHelper& rDropTargetHelper );
- virtual ~TerminateListener();
+ virtual ~TerminateListener();
};
friend class TransferableHelper::TerminateListener;
private:
- DataFlavorExList maDummy;
- ::com::sun::star::uno::Any maAny;
- ::rtl::OUString maLastFormat;
- mutable ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTerminateListener > mxTerminateListener;
- DataFlavorExVector* mpFormats;
+ DataFlavorExList maDummy;
+ ::com::sun::star::uno::Any maAny;
+ ::rtl::OUString maLastFormat;
+ mutable ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTerminateListener > mxTerminateListener;
+ DataFlavorExVector* mpFormats;
TransferableObjectDescriptor* mpObjDesc;
- void* mpDummy1;
+ void* mpDummy1;
protected:
inline const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >&
@@ -210,7 +210,7 @@ protected:
private:
// XTransferable
- virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::uno::RuntimeException);
@@ -233,7 +233,7 @@ protected:
// derivees need to access lostOwnership in case hey override it
// on windows, changing the access rights to a method gives unresolved externals, so we introduce
// this impl-method here 'til the next incompatible update
- inline void implCallOwnLostOwnership(
+ inline void implCallOwnLostOwnership(
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& _rxClipboard,
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _rxTrans
)
@@ -244,41 +244,41 @@ protected:
private:
- SVT_DLLPRIVATE void ImplFlush();
+ SVT_DLLPRIVATE void ImplFlush();
protected:
- virtual ~TransferableHelper();
-
- void AddFormat( SotFormatStringId nFormat );
- void AddFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- void RemoveFormat( SotFormatStringId nFormat );
- void RemoveFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool HasFormat( SotFormatStringId nFormat );
- inline sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) { return isDataFlavorSupported( rFlavor ); }
- void ClearFormats();
-
- sal_Bool SetAny( const ::com::sun::star::uno::Any& rAny, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetString( const ::rtl::OUString& rString, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetBitmap( const Bitmap& rBitmap, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetGDIMetaFile( const GDIMetaFile& rMtf, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetGraphic( const Graphic& rGraphic, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ virtual ~TransferableHelper();
+
+ void AddFormat( SotFormatStringId nFormat );
+ void AddFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ void RemoveFormat( SotFormatStringId nFormat );
+ void RemoveFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool HasFormat( SotFormatStringId nFormat );
+ inline sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) { return isDataFlavorSupported( rFlavor ); }
+ void ClearFormats();
+
+ sal_Bool SetAny( const ::com::sun::star::uno::Any& rAny, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetString( const ::rtl::OUString& rString, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetBitmap( const Bitmap& rBitmap, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetGDIMetaFile( const GDIMetaFile& rMtf, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetGraphic( const Graphic& rGraphic, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
sal_Bool SetImageMap( const ImageMap& rIMap, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetTransferableObjectDescriptor( const TransferableObjectDescriptor& rDesc, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetINetBookmark( const INetBookmark& rBmk, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetINetImage( const INetImage& rINtImg, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetFileList( const FileList& rFileList, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetObject( void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf,
+ sal_Bool SetTransferableObjectDescriptor( const TransferableObjectDescriptor& rDesc, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetINetBookmark( const INetBookmark& rBmk, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetINetImage( const INetImage& rINtImg, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetFileList( const FileList& rFileList, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetObject( void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf,
const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
protected:
- virtual void AddSupportedFormats() = 0;
+ virtual void AddSupportedFormats() = 0;
virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) = 0;
virtual sal_Bool WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- virtual void DragFinished( sal_Int8 nDropAction );
- virtual void ObjectReleased();
+ virtual void DragFinished( sal_Int8 nDropAction );
+ virtual void ObjectReleased();
public:
@@ -286,13 +286,13 @@ public:
void PrepareOLE( const TransferableObjectDescriptor& rObjDesc );
- void CopyToClipboard( Window *pWindow ) const;
- void CopyToSelection( Window *pWindow ) const;
- void StartDrag( Window* pWindow, sal_Int8 nDragSourceActions,
+ void CopyToClipboard( Window *pWindow ) const;
+ void CopyToSelection( Window *pWindow ) const;
+ void StartDrag( Window* pWindow, sal_Int8 nDragSourceActions,
sal_Int32 nDragPointer = DND_POINTER_NONE,
sal_Int32 nDragImage = DND_IMAGE_NONE );
- static void ClearSelection( Window *pWindow );
+ static void ClearSelection( Window *pWindow );
static ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > GetSystemClipboard();
static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
@@ -314,15 +314,15 @@ class SVT_DLLPUBLIC TransferableDataHelper
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > mxTransfer;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
- DataFlavorExVector* mpFormats;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > mxTransfer;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
+ DataFlavorExVector* mpFormats;
TransferableObjectDescriptor* mpObjDesc;
TransferableDataHelper_Impl* mpImpl;
- void* mpDummy4;
+ void* mpDummy4;
protected:
- void InitFormats();
+ void InitFormats();
public:
@@ -334,78 +334,78 @@ public:
TransferableDataHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable );
~TransferableDataHelper();
- TransferableDataHelper& operator=( const TransferableDataHelper& rDataHelper );
+ TransferableDataHelper& operator=( const TransferableDataHelper& rDataHelper );
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& GetTransferable() const { return mxTransfer; }
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetXTransferable() const;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& GetTransferable() const { return mxTransfer; }
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetXTransferable() const;
- sal_Bool HasFormat( SotFormatStringId nFormat ) const;
- sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
+ sal_Bool HasFormat( SotFormatStringId nFormat ) const;
+ sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
- sal_uInt32 GetFormatCount() const;
+ sal_uInt32 GetFormatCount() const;
- SotFormatStringId GetFormat( sal_uInt32 nFormat ) const;
- ::com::sun::star::datatransfer::DataFlavor GetFormatDataFlavor( sal_uInt32 nFormat ) const;
+ SotFormatStringId GetFormat( sal_uInt32 nFormat ) const;
+ ::com::sun::star::datatransfer::DataFlavor GetFormatDataFlavor( sal_uInt32 nFormat ) const;
- DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
+ DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
- sal_Bool StartClipboardListening( );
- void StopClipboardListening( );
+ sal_Bool StartClipboardListening( );
+ void StopClipboardListening( );
- void Rebind( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _rxNewData );
+ void Rebind( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _rxNewData );
public:
- ::com::sun::star::uno::Any GetAny( SotFormatStringId nFormat ) const;
- ::com::sun::star::uno::Any GetAny( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
+ ::com::sun::star::uno::Any GetAny( SotFormatStringId nFormat ) const;
+ ::com::sun::star::uno::Any GetAny( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
- sal_Bool GetString( SotFormatStringId nFormat, String& rStr );
- sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, String& rStr );
+ sal_Bool GetString( SotFormatStringId nFormat, String& rStr );
+ sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, String& rStr );
- sal_Bool GetString( SotFormatStringId nFormat, ::rtl::OUString& rStr );
- sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::rtl::OUString& rStr );
+ sal_Bool GetString( SotFormatStringId nFormat, ::rtl::OUString& rStr );
+ sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::rtl::OUString& rStr );
- sal_Bool GetBitmap( SotFormatStringId nFormat, Bitmap& rBmp );
- sal_Bool GetBitmap( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Bitmap& rBmp );
+ sal_Bool GetBitmap( SotFormatStringId nFormat, Bitmap& rBmp );
+ sal_Bool GetBitmap( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Bitmap& rBmp );
- sal_Bool GetGDIMetaFile( SotFormatStringId nFormat, GDIMetaFile& rMtf );
- sal_Bool GetGDIMetaFile( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, GDIMetaFile& rMtf );
+ sal_Bool GetGDIMetaFile( SotFormatStringId nFormat, GDIMetaFile& rMtf );
+ sal_Bool GetGDIMetaFile( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, GDIMetaFile& rMtf );
- sal_Bool GetGraphic( SotFormatStringId nFormat, Graphic& rGraphic );
- sal_Bool GetGraphic( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Graphic& rGraphic );
+ sal_Bool GetGraphic( SotFormatStringId nFormat, Graphic& rGraphic );
+ sal_Bool GetGraphic( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Graphic& rGraphic );
sal_Bool GetImageMap( SotFormatStringId nFormat, ImageMap& rIMap );
sal_Bool GetImageMap( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ImageMap& rImap );
- sal_Bool GetTransferableObjectDescriptor( SotFormatStringId nFormat, TransferableObjectDescriptor& rDesc );
- sal_Bool GetTransferableObjectDescriptor( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, TransferableObjectDescriptor& rDesc );
+ sal_Bool GetTransferableObjectDescriptor( SotFormatStringId nFormat, TransferableObjectDescriptor& rDesc );
+ sal_Bool GetTransferableObjectDescriptor( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, TransferableObjectDescriptor& rDesc );
- sal_Bool GetINetBookmark( SotFormatStringId nFormat, INetBookmark& rBmk );
- sal_Bool GetINetBookmark( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetBookmark& rBmk );
+ sal_Bool GetINetBookmark( SotFormatStringId nFormat, INetBookmark& rBmk );
+ sal_Bool GetINetBookmark( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetBookmark& rBmk );
- sal_Bool GetINetImage( SotFormatStringId nFormat, INetImage& rINtImg );
- sal_Bool GetINetImage( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetImage& rINtImg );
+ sal_Bool GetINetImage( SotFormatStringId nFormat, INetImage& rINtImg );
+ sal_Bool GetINetImage( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetImage& rINtImg );
- sal_Bool GetFileList( SotFormatStringId nFormat, FileList& rFileList );
- sal_Bool GetFileList( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, FileList& rFileList );
+ sal_Bool GetFileList( SotFormatStringId nFormat, FileList& rFileList );
+ sal_Bool GetFileList( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, FileList& rFileList );
- sal_Bool GetSequence( SotFormatStringId nFormat, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
- sal_Bool GetSequence( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
+ sal_Bool GetSequence( SotFormatStringId nFormat, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
+ sal_Bool GetSequence( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
- sal_Bool GetSotStorageStream( SotFormatStringId nFormat, SotStorageStreamRef& rStreamRef );
- sal_Bool GetSotStorageStream( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, SotStorageStreamRef& rStreamRef );
+ sal_Bool GetSotStorageStream( SotFormatStringId nFormat, SotStorageStreamRef& rStreamRef );
+ sal_Bool GetSotStorageStream( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, SotStorageStreamRef& rStreamRef );
sal_Bool GetInputStream( SotFormatStringId nFormat, ::com::sun::star::uno::Reference < com::sun::star::io::XInputStream >& xStream );
sal_Bool GetInputStream( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Reference < com::sun::star::io::XInputStream >& xStream );
- sal_Bool GetInterface( SotFormatStringId nFormat, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
- sal_Bool GetInterface( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
+ sal_Bool GetInterface( SotFormatStringId nFormat, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
+ sal_Bool GetInterface( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
public:
- static TransferableDataHelper CreateFromSystemClipboard( Window * pWindow );
- static TransferableDataHelper CreateFromSelection( Window * pWindow );
- static sal_Bool IsEqual( const ::com::sun::star::datatransfer::DataFlavor& rInternalFlavor,
+ static TransferableDataHelper CreateFromSystemClipboard( Window * pWindow );
+ static TransferableDataHelper CreateFromSelection( Window * pWindow );
+ static sal_Bool IsEqual( const ::com::sun::star::datatransfer::DataFlavor& rInternalFlavor,
const ::com::sun::star::datatransfer::DataFlavor& rRequestFlavor,
sal_Bool bCompareParameters = sal_False );
};
@@ -423,9 +423,9 @@ private:
{
private:
- DragSourceHelper& mrParent;
- void* mpDummy1;
- void* mpDummy2;
+ DragSourceHelper& mrParent;
+ void* mpDummy1;
+ void* mpDummy2;
private:
@@ -445,23 +445,23 @@ private:
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureRecognizer > mxDragGestureRecognizer;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener > mxDragGestureListener;
- void* mpDummy1;
- void* mpDummy2;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureRecognizer > mxDragGestureRecognizer;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener > mxDragGestureListener;
+ void* mpDummy1;
+ void* mpDummy2;
// not available
DragSourceHelper();
- DragSourceHelper& operator=( const DragSourceHelper& rDragSourceHelper );
- sal_Bool operator==( const DragSourceHelper& rDragSourceHelper ) const;
+ DragSourceHelper& operator=( const DragSourceHelper& rDragSourceHelper );
+ sal_Bool operator==( const DragSourceHelper& rDragSourceHelper ) const;
public:
// to be overridden by the application
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
+ virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
DragSourceHelper( Window* pWindow );
- virtual ~DragSourceHelper();
+ virtual ~DragSourceHelper();
};
// --------------------
@@ -477,11 +477,11 @@ private:
{
private:
- DropTargetHelper& mrParent;
+ DropTargetHelper& mrParent;
AcceptDropEvent* mpLastDragOverEvent;
- void* mpDummy2;
- void* mpDummy3;
- void* mpDummy4;
+ void* mpDummy2;
+ void* mpDummy3;
+ void* mpDummy4;
private:
@@ -505,41 +505,41 @@ private:
private:
- DataFlavorExList maDummy;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget > mxDropTarget;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener;
- DataFlavorExVector* mpFormats;
- void* mpDummy1;
- void* mpDummy2;
- void* mpDummy3;
+ DataFlavorExList maDummy;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget > mxDropTarget;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener;
+ DataFlavorExVector* mpFormats;
+ void* mpDummy1;
+ void* mpDummy2;
+ void* mpDummy3;
// not available
DropTargetHelper();
- DropTargetHelper& operator=( const DropTargetHelper& rDropTargetHelper );
- sal_Bool operator==( const DropTargetHelper& rDropTargetHelper ) const;
+ DropTargetHelper& operator=( const DropTargetHelper& rDropTargetHelper );
+ sal_Bool operator==( const DropTargetHelper& rDropTargetHelper ) const;
- void ImplConstruct();
+ void ImplConstruct();
// called by our own implementation of XDropTargetListener (DropTargetListener instance)
- void ImplBeginDrag( const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& rSupportedDataFlavors );
- void ImplEndDrag();
+ void ImplBeginDrag( const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& rSupportedDataFlavors );
+ void ImplEndDrag();
public:
// to be overridden by the application
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
- virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
+ virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
+ virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
DropTargetHelper( Window* pWindow );
DropTargetHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget >& rxDropTarget );
- virtual ~DropTargetHelper();
+ virtual ~DropTargetHelper();
// typically called by the application in ::AcceptDrop and ::ExecuteDrop and (see above)
- sal_Bool IsDropFormatSupported( SotFormatStringId nFormat );
- sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool IsDropFormatSupported( SotFormatStringId nFormat );
+ sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
+ DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
};
@@ -556,9 +556,9 @@ class SVT_DLLPUBLIC TransferDataContainer : public TransferableHelper
protected:
- virtual void AddSupportedFormats();
- virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- virtual void DragFinished( sal_Int8 nDropAction );
+ virtual void AddSupportedFormats();
+ virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ virtual void DragFinished( sal_Int8 nDropAction );
public:
diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx
index e8c0c075121b..3b308dc8c15e 100644
--- a/svtools/inc/svtools/treelist.hxx
+++ b/svtools/inc/svtools/treelist.hxx
@@ -2,7 +2,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,27 +38,27 @@
#include <tools/string.hxx>
#include <tools/debug.hxx>
-#define LISTACTION_INSERTED 1
+#define LISTACTION_INSERTED 1
#define LISTACTION_REMOVING 2
#define LISTACTION_REMOVED 3
-#define LISTACTION_MOVING 4
-#define LISTACTION_MOVED 5
-#define LISTACTION_CLEARING 6
-#define LISTACTION_INSERTED_TREE 7
-#define LISTACTION_INVALIDATE_ENTRY 8
-#define LISTACTION_RESORTING 9
-#define LISTACTION_RESORTED 10
-#define LISTACTION_CLEARED 11
+#define LISTACTION_MOVING 4
+#define LISTACTION_MOVED 5
+#define LISTACTION_CLEARING 6
+#define LISTACTION_INSERTED_TREE 7
+#define LISTACTION_INVALIDATE_ENTRY 8
+#define LISTACTION_RESORTING 9
+#define LISTACTION_RESORTED 10
+#define LISTACTION_CLEARED 11
#define SV_TREELIST_ROOT_ENTRY (SvListEntry*)0
-#define SV_TREELIST_ERROR 0xFFFFFFFF
+#define SV_TREELIST_ERROR 0xFFFFFFFF
// Entryflags, die an der View haengen
-#define SVLISTENTRYFLAG_SELECTED 0x0001
-#define SVLISTENTRYFLAG_EXPANDED 0x0002
-#define SVLISTENTRYFLAG_FOCUSED 0x0004
-#define SVLISTENTRYFLAG_CURSORED 0x0008
-#define SVLISTENTRYFLAG_NOT_SELECTABLE 0x0010
+#define SVLISTENTRYFLAG_SELECTED 0x0001
+#define SVLISTENTRYFLAG_EXPANDED 0x0002
+#define SVLISTENTRYFLAG_FOCUSED 0x0004
+#define SVLISTENTRYFLAG_CURSORED 0x0008
+#define SVLISTENTRYFLAG_NOT_SELECTABLE 0x0010
class SvListEntry;
@@ -81,34 +81,34 @@ friend class SvTreeList;
friend class SvListView;
private:
- SvListEntry* pParent;
- SvTreeEntryList* pChilds;
- ULONG nAbsPos;
- ULONG nListPos;
+ SvListEntry* pParent;
+ SvTreeEntryList* pChilds;
+ ULONG nAbsPos;
+ ULONG nListPos;
- void SetListPositions();
- void InvalidateChildrensListPositions()
+ void SetListPositions();
+ void InvalidateChildrensListPositions()
{
nListPos |= 0x80000000;
}
public:
SvListEntry();
SvListEntry( const SvListEntry& );
- virtual ~SvListEntry();
- BOOL HasChilds() { return (BOOL)(pChilds!=0); }
- BOOL HasChildListPos() const
+ virtual ~SvListEntry();
+ BOOL HasChilds() { return (BOOL)(pChilds!=0); }
+ BOOL HasChildListPos() const
{
if( pParent && !(pParent->nListPos & 0x80000000) )
return TRUE;
else return FALSE;
}
- ULONG GetChildListPos() const
+ ULONG GetChildListPos() const
{
if( pParent && (pParent->nListPos & 0x80000000) )
pParent->SetListPositions();
return ( nListPos & 0x7fffffff );
}
- virtual void Clone( SvListEntry* pSource );
+ virtual void Clone( SvListEntry* pSource );
};
class SvListView;
@@ -118,9 +118,9 @@ class SvViewData
friend class SvTreeList;
friend class SvListView;
- ULONG nVisPos;
+ ULONG nVisPos;
protected:
- USHORT nFlags;
+ USHORT nFlags;
public:
SvViewData();
SvViewData( const SvViewData& );
@@ -172,53 +172,53 @@ class SVT_DLLPUBLIC SvTreeList
{
friend class SvListView;
- List aViewList;
+ List aViewList;
ULONG nEntryCount;
- Link aCloneLink;
- Link aCompareLink;
- SvSortMode eSortMode;
+ Link aCloneLink;
+ Link aCompareLink;
+ SvSortMode eSortMode;
- USHORT nRefCount;
+ USHORT nRefCount;
- BOOL bAbsPositionsValid;
+ BOOL bAbsPositionsValid;
SvListEntry* FirstVisible() const { return First(); }
SvListEntry* NextVisible( const SvListView*,SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* LastVisible( const SvListView*,USHORT* pDepth=0 ) const;
- SvListEntry* NextVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
- SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
+ SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT* pDepth=0 ) const;
+ SvListEntry* LastVisible( const SvListView*,USHORT* pDepth=0 ) const;
+ SvListEntry* NextVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
+ SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
- BOOL IsEntryVisible( const SvListView*,SvListEntry* pEntry ) const;
- SvListEntry* GetEntryAtVisPos( const SvListView*,ULONG nVisPos ) const;
- ULONG GetVisiblePos( const SvListView*,SvListEntry* pEntry ) const;
- ULONG GetVisibleCount( const SvListView* ) const;
- ULONG GetVisibleChildCount( const SvListView*,SvListEntry* pParent ) const;
+ BOOL IsEntryVisible( const SvListView*,SvListEntry* pEntry ) const;
+ SvListEntry* GetEntryAtVisPos( const SvListView*,ULONG nVisPos ) const;
+ ULONG GetVisiblePos( const SvListView*,SvListEntry* pEntry ) const;
+ ULONG GetVisibleCount( const SvListView* ) const;
+ ULONG GetVisibleChildCount( const SvListView*,SvListEntry* pParent ) const;
SvListEntry* FirstSelected( const SvListView*) const;
SvListEntry* NextSelected( const SvListView*,SvListEntry* pEntry ) const;
- SvListEntry* PrevSelected( const SvListView*,SvListEntry* pEntry ) const;
- SvListEntry* LastSelected( const SvListView*) const;
+ SvListEntry* PrevSelected( const SvListView*,SvListEntry* pEntry ) const;
+ SvListEntry* LastSelected( const SvListView*) const;
BOOL Select( SvListView*,SvListEntry* pEntry, BOOL bSelect=TRUE );
- ULONG SelectChilds( SvListView*,SvListEntry* pParent, BOOL bSelect );
- void SelectAll( SvListView*,BOOL bSelect ); // ruft nicht Select-Hdl
- ULONG GetChildSelectionCount( const SvListView*,SvListEntry* pParent ) const;
+ ULONG SelectChilds( SvListView*,SvListEntry* pParent, BOOL bSelect );
+ void SelectAll( SvListView*,BOOL bSelect ); // ruft nicht Select-Hdl
+ ULONG GetChildSelectionCount( const SvListView*,SvListEntry* pParent ) const;
void Expand( SvListView*,SvListEntry* pParent );
void Collapse( SvListView*,SvListEntry* pParent );
- SVT_DLLPRIVATE void SetAbsolutePositions();
+ SVT_DLLPRIVATE void SetAbsolutePositions();
SVT_DLLPRIVATE SvTreeEntryList*CloneChilds( SvTreeEntryList* pChilds,
SvListEntry* pNewParent,
ULONG& nCloneCount ) const;
- SVT_DLLPRIVATE void SetListPositions( SvTreeEntryList* );
+ SVT_DLLPRIVATE void SetListPositions( SvTreeEntryList* );
// rPos wird bei SortModeNone nicht geaendert
- SVT_DLLPRIVATE void GetInsertionPos( SvListEntry* pEntry, SvListEntry* pParent,
+ SVT_DLLPRIVATE void GetInsertionPos( SvListEntry* pEntry, SvListEntry* pParent,
ULONG& rPos );
- SVT_DLLPRIVATE void ResortChilds( SvListEntry* pParent );
+ SVT_DLLPRIVATE void ResortChilds( SvListEntry* pParent );
protected:
@@ -229,59 +229,59 @@ public:
SvTreeList();
virtual ~SvTreeList();
- void InsertView( SvListView* );
- void RemoveView( SvListView* );
- ULONG GetViewCount() const { return aViewList.Count(); }
- SvListView* GetView(ULONG nPos) const {return (SvListView*)aViewList.GetObject(nPos);}
- void Broadcast( USHORT nActionId, SvListEntry* pEntry1=0,
+ void InsertView( SvListView* );
+ void RemoveView( SvListView* );
+ ULONG GetViewCount() const { return aViewList.Count(); }
+ SvListView* GetView(ULONG nPos) const {return (SvListView*)aViewList.GetObject(nPos);}
+ void Broadcast( USHORT nActionId, SvListEntry* pEntry1=0,
SvListEntry* pEntry2=0, ULONG nPos=0 );
// informiert alle Listener
- void InvalidateEntry( SvListEntry* );
+ void InvalidateEntry( SvListEntry* );
- ULONG GetEntryCount() const { return nEntryCount; }
+ ULONG GetEntryCount() const { return nEntryCount; }
SvListEntry* First() const;
SvListEntry* Next( SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* Last( USHORT* pDepth=0 ) const;
-
- SvListEntry* FirstChild( SvListEntry* pParent ) const;
- SvListEntry* NextSibling( SvListEntry* pEntry ) const;
- SvListEntry* PrevSibling( SvListEntry* pEntry ) const;
- SvListEntry* LastSibling( SvListEntry* pEntry ) const;
-
- ULONG Insert( SvListEntry* pEntry,SvListEntry* pPar,ULONG nPos=LIST_APPEND);
- ULONG Insert( SvListEntry* pEntry,ULONG nRootPos = LIST_APPEND ) { return Insert(pEntry, pRootItem, nRootPos ); }
- void InsertTree( SvListEntry* pTree, SvListEntry* pTarget );
- void InsertTree( SvListEntry* pTree, SvListEntry* pTargetParent,
+ SvListEntry* Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const;
+ SvListEntry* Last( USHORT* pDepth=0 ) const;
+
+ SvListEntry* FirstChild( SvListEntry* pParent ) const;
+ SvListEntry* NextSibling( SvListEntry* pEntry ) const;
+ SvListEntry* PrevSibling( SvListEntry* pEntry ) const;
+ SvListEntry* LastSibling( SvListEntry* pEntry ) const;
+
+ ULONG Insert( SvListEntry* pEntry,SvListEntry* pPar,ULONG nPos=LIST_APPEND);
+ ULONG Insert( SvListEntry* pEntry,ULONG nRootPos = LIST_APPEND ) { return Insert(pEntry, pRootItem, nRootPos ); }
+ void InsertTree( SvListEntry* pTree, SvListEntry* pTarget );
+ void InsertTree( SvListEntry* pTree, SvListEntry* pTargetParent,
ULONG nListPos );
// Entries muessen im gleichen Model stehen!
void Move( SvListEntry* pSource, SvListEntry* pTarget );
// erzeugt ggf. Child-List
- ULONG Move( SvListEntry* pSource, SvListEntry* pTargetParent,
+ ULONG Move( SvListEntry* pSource, SvListEntry* pTargetParent,
ULONG nListPos);
- void Copy( SvListEntry* pSource, SvListEntry* pTarget );
- ULONG Copy( SvListEntry* pSource, SvListEntry* pTargetParent,
+ void Copy( SvListEntry* pSource, SvListEntry* pTarget );
+ ULONG Copy( SvListEntry* pSource, SvListEntry* pTargetParent,
ULONG nListPos);
BOOL Remove( SvListEntry* pEntry );
void Clear();
- BOOL HasChilds( SvListEntry* pEntry ) const;
- BOOL HasParent( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent!=pRootItem); }
- BOOL IsChild( SvListEntry* pParent, SvListEntry* pChild ) const;
- BOOL IsInChildList( SvListEntry* pParent, SvListEntry* pChild) const;
- SvListEntry* GetEntry( SvListEntry* pParent, ULONG nPos ) const;
- SvListEntry* GetEntry( ULONG nRootPos ) const;
- SvListEntry* GetEntryAtAbsPos( ULONG nAbsPos ) const;
- SvListEntry* GetParent( SvListEntry* pEntry ) const;
- SvListEntry* GetRootLevelParent( SvListEntry* pEntry ) const;
+ BOOL HasChilds( SvListEntry* pEntry ) const;
+ BOOL HasParent( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent!=pRootItem); }
+ BOOL IsChild( SvListEntry* pParent, SvListEntry* pChild ) const;
+ BOOL IsInChildList( SvListEntry* pParent, SvListEntry* pChild) const;
+ SvListEntry* GetEntry( SvListEntry* pParent, ULONG nPos ) const;
+ SvListEntry* GetEntry( ULONG nRootPos ) const;
+ SvListEntry* GetEntryAtAbsPos( ULONG nAbsPos ) const;
+ SvListEntry* GetParent( SvListEntry* pEntry ) const;
+ SvListEntry* GetRootLevelParent( SvListEntry* pEntry ) const;
SvTreeEntryList* GetChildList( SvListEntry* pParent ) const;
- ULONG GetAbsPos( SvListEntry* pEntry ) const;
- ULONG GetRelPos( SvListEntry* pChild ) const { return pChild->GetChildListPos(); }
- ULONG GetChildCount( SvListEntry* pParent ) const;
+ ULONG GetAbsPos( SvListEntry* pEntry ) const;
+ ULONG GetRelPos( SvListEntry* pChild ) const { return pChild->GetChildListPos(); }
+ ULONG GetChildCount( SvListEntry* pParent ) const;
USHORT GetDepth( SvListEntry* pEntry ) const;
- BOOL IsAtRootDepth( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent==pRootItem); }
+ BOOL IsAtRootDepth( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent==pRootItem); }
// das Model ruft zum Clonen von Entries den Clone-Link auf,
// damit man sich nicht vom Model ableiten muss, wenn man
@@ -289,23 +289,23 @@ public:
// Deklaration des Clone-Handlers:
// DECL_LINK(CloneHdl,SvListEntry*);
// der Handler muss einen SvListEntry* zurueckgeben
- SvListEntry* Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const;
- void SetCloneLink( const Link& rLink ) { aCloneLink=rLink; }
- const Link& GetCloneLink() const { return aCloneLink; }
+ SvListEntry* Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const;
+ void SetCloneLink( const Link& rLink ) { aCloneLink=rLink; }
+ const Link& GetCloneLink() const { return aCloneLink; }
virtual SvListEntry* CloneEntry( SvListEntry* ) const; // ruft den Clone-Link
virtual SvListEntry* CreateEntry() const; // zum 'new'en von Entries
- USHORT GetRefCount() const { return nRefCount; }
- void SetRefCount( USHORT nRef ) { nRefCount = nRef; }
+ USHORT GetRefCount() const { return nRefCount; }
+ void SetRefCount( USHORT nRef ) { nRefCount = nRef; }
- void SetSortMode( SvSortMode eMode ) { eSortMode = eMode; }
- SvSortMode GetSortMode() const { return eSortMode; }
+ void SetSortMode( SvSortMode eMode ) { eSortMode = eMode; }
+ SvSortMode GetSortMode() const { return eSortMode; }
virtual StringCompare Compare( SvListEntry*, SvListEntry* ) const;
- void SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; }
- const Link& GetCompareHdl() const { return aCompareLink; }
- void Resort();
+ void SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; }
+ const Link& GetCompareHdl() const { return aCompareLink; }
+ void Resort();
- void CheckIntegrity() const;
+ void CheckIntegrity() const;
};
class SVT_DLLPUBLIC SvListView
@@ -313,16 +313,16 @@ class SVT_DLLPUBLIC SvListView
friend class SvTreeList;
ULONG nVisibleCount;
- ULONG nSelectionCount;
+ ULONG nSelectionCount;
BOOL bVisPositionsValid;
- SVT_DLLPRIVATE void InitTable();
- SVT_DLLPRIVATE void ClearTable();
- SVT_DLLPRIVATE void RemoveViewData( SvListEntry* pParent );
+ SVT_DLLPRIVATE void InitTable();
+ SVT_DLLPRIVATE void ClearTable();
+ SVT_DLLPRIVATE void RemoveViewData( SvListEntry* pParent );
protected:
- Table aDataTable; // Mapping SvListEntry -> ViewData
- SvTreeList* pModel;
+ Table aDataTable; // Mapping SvListEntry -> ViewData
+ SvTreeList* pModel;
void ActionMoving( SvListEntry* pEntry,SvListEntry* pTargetPrnt,ULONG nChildPos);
void ActionMoved( SvListEntry* pEntry,SvListEntry* pTargetPrnt,ULONG nChildPos);
@@ -338,54 +338,54 @@ public:
SvListView( SvTreeList* pModel );
virtual ~SvListView();
void Clear();
- SvTreeList* GetModel() const { return pModel; }
- virtual void SetModel( SvTreeList* );
- virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
+ SvTreeList* GetModel() const { return pModel; }
+ virtual void SetModel( SvTreeList* );
+ virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
SvListEntry* pEntry2, ULONG nPos );
- ULONG GetVisibleCount() const { return pModel->GetVisibleCount( (SvListView*)this );}
+ ULONG GetVisibleCount() const { return pModel->GetVisibleCount( (SvListView*)this );}
SvListEntry* FirstVisible() const { return pModel->FirstVisible(); }
SvListEntry* NextVisible( SvListEntry* pEntry, USHORT* pDepth=0 ) const {return pModel->NextVisible(this,pEntry,pDepth); }
- SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT* pDepth=0 ) const {return pModel->PrevVisible(this,pEntry,pDepth); }
- SvListEntry* LastVisible( USHORT* pDepth=0 ) const { return pModel->LastVisible(this,pDepth);}
- SvListEntry* NextVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->NextVisible(this,pEntry,rDelta); }
- SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->PrevVisible(this,pEntry,rDelta); }
+ SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT* pDepth=0 ) const {return pModel->PrevVisible(this,pEntry,pDepth); }
+ SvListEntry* LastVisible( USHORT* pDepth=0 ) const { return pModel->LastVisible(this,pDepth);}
+ SvListEntry* NextVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->NextVisible(this,pEntry,rDelta); }
+ SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->PrevVisible(this,pEntry,rDelta); }
ULONG GetSelectionCount() const { return nSelectionCount; }
- SvListEntry* FirstSelected() const { return pModel->FirstSelected(this);}
+ SvListEntry* FirstSelected() const { return pModel->FirstSelected(this);}
SvListEntry* NextSelected( SvListEntry* pEntry ) const { return pModel->NextSelected(this,pEntry); }
- SvListEntry* PrevSelected( SvListEntry* pEntry ) const { return pModel->PrevSelected(this,pEntry); }
- SvListEntry* LastSelected() const { return pModel->LastSelected(this); }
- SvListEntry* GetEntryAtVisPos( ULONG nVisPos ) const { return pModel->GetEntryAtVisPos((SvListView*)this,nVisPos); }
- ULONG GetVisiblePos( SvListEntry* pEntry ) const { return pModel->GetVisiblePos((SvListView*)this,pEntry); }
+ SvListEntry* PrevSelected( SvListEntry* pEntry ) const { return pModel->PrevSelected(this,pEntry); }
+ SvListEntry* LastSelected() const { return pModel->LastSelected(this); }
+ SvListEntry* GetEntryAtVisPos( ULONG nVisPos ) const { return pModel->GetEntryAtVisPos((SvListView*)this,nVisPos); }
+ ULONG GetVisiblePos( SvListEntry* pEntry ) const { return pModel->GetVisiblePos((SvListView*)this,pEntry); }
- ULONG GetVisibleChildCount(SvListEntry* pParent ) const { return pModel->GetVisibleChildCount((SvListView*)this,pParent); }
- ULONG GetChildSelectionCount( SvListEntry* pParent ) const { return pModel->GetChildSelectionCount((SvListView*)this,pParent); }
+ ULONG GetVisibleChildCount(SvListEntry* pParent ) const { return pModel->GetVisibleChildCount((SvListView*)this,pParent); }
+ ULONG GetChildSelectionCount( SvListEntry* pParent ) const { return pModel->GetChildSelectionCount((SvListView*)this,pParent); }
void Expand( SvListEntry* pParent ) { pModel->Expand((SvListView*)this,pParent); }
void Collapse( SvListEntry* pParent ) { pModel->Collapse((SvListView*)this,pParent); }
BOOL Select( SvListEntry* pEntry, BOOL bSelect=TRUE ) { return pModel->Select((SvListView*)this,pEntry,bSelect); }
- ULONG SelectChilds( SvListEntry* pParent, BOOL bSelect ) { return pModel->SelectChilds((SvListView*)this,pParent, bSelect); }
+ ULONG SelectChilds( SvListEntry* pParent, BOOL bSelect ) { return pModel->SelectChilds((SvListView*)this,pParent, bSelect); }
// ruft nicht Select-Hdl
- virtual void SelectAll( BOOL bSelect, BOOL ) { pModel->SelectAll((SvListView*)this, bSelect); }
- BOOL IsEntryVisible( SvListEntry* pEntry ) const { return pModel->IsEntryVisible((SvListView*)this,pEntry); }
- BOOL IsExpanded( SvListEntry* pEntry ) const;
- BOOL IsSelected( SvListEntry* pEntry ) const;
- BOOL HasEntryFocus( SvListEntry* pEntry ) const;
- void SetEntryFocus( SvListEntry* pEntry, BOOL bFocus ) const;
- SvViewData* GetViewData( SvListEntry* pEntry ) const;
- BOOL HasViewData() const { return aDataTable.Count() > 1;} // eine ROOT gibts immer
- virtual SvViewData* CreateViewData( SvListEntry* pEntry );
- virtual void InitViewData( SvViewData*, SvListEntry* pEntry );
-
- virtual void ModelHasCleared();
- virtual void ModelHasInserted( SvListEntry* pEntry );
- virtual void ModelHasInsertedTree( SvListEntry* pEntry );
- virtual void ModelIsMoving( SvListEntry* pSource, SvListEntry* pTargetParent,
- ULONG nPos );
- virtual void ModelHasMoved( SvListEntry* pSource );
- virtual void ModelIsRemoving( SvListEntry* pEntry );
- virtual void ModelHasRemoved( SvListEntry* pEntry );
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void SelectAll( BOOL bSelect, BOOL ) { pModel->SelectAll((SvListView*)this, bSelect); }
+ BOOL IsEntryVisible( SvListEntry* pEntry ) const { return pModel->IsEntryVisible((SvListView*)this,pEntry); }
+ BOOL IsExpanded( SvListEntry* pEntry ) const;
+ BOOL IsSelected( SvListEntry* pEntry ) const;
+ BOOL HasEntryFocus( SvListEntry* pEntry ) const;
+ void SetEntryFocus( SvListEntry* pEntry, BOOL bFocus ) const;
+ SvViewData* GetViewData( SvListEntry* pEntry ) const;
+ BOOL HasViewData() const { return aDataTable.Count() > 1;} // eine ROOT gibts immer
+ virtual SvViewData* CreateViewData( SvListEntry* pEntry );
+ virtual void InitViewData( SvViewData*, SvListEntry* pEntry );
+
+ virtual void ModelHasCleared();
+ virtual void ModelHasInserted( SvListEntry* pEntry );
+ virtual void ModelHasInsertedTree( SvListEntry* pEntry );
+ virtual void ModelIsMoving( SvListEntry* pSource, SvListEntry* pTargetParent,
+ ULONG nPos );
+ virtual void ModelHasMoved( SvListEntry* pSource );
+ virtual void ModelIsRemoving( SvListEntry* pEntry );
+ virtual void ModelHasRemoved( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
};
inline BOOL SvListView::IsExpanded( SvListEntry* pEntry ) const
@@ -469,41 +469,41 @@ inline SvListEntry* SvTreeList::GetParent( SvListEntry* pEntry ) const
return pParent;
}
-#define DECLARE_SVTREELIST( ClassName, Type ) \
-class ClassName : public SvTreeList \
+#define DECLARE_SVTREELIST( ClassName, Type ) \
+class ClassName : public SvTreeList \
{ \
public: \
- Type First() const \
+ Type First() const \
{ return (Type)SvTreeList::First(); } \
- Type Next( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
+ Type Next( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
{ return (Type)SvTreeList::Next(pEntry,pDepth); } \
- Type Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
+ Type Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
{ return (Type)SvTreeList::Prev(pEntry,pDepth); } \
- Type Last( USHORT* pDepth=0 ) const \
- { return (Type)SvTreeList::Last(pDepth); } \
+ Type Last( USHORT* pDepth=0 ) const \
+ { return (Type)SvTreeList::Last(pDepth); } \
\
- Type Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const \
+ Type Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const \
{ return (Type)SvTreeList::Clone(pEntry,nCloneCount); } \
- Type GetEntry( SvListEntry* pParent, ULONG nPos ) const \
+ Type GetEntry( SvListEntry* pParent, ULONG nPos ) const \
{ return (Type)SvTreeList::GetEntry(pParent,nPos); } \
- Type GetEntry( ULONG nRootPos ) const \
+ Type GetEntry( ULONG nRootPos ) const \
{ return (Type)SvTreeList::GetEntry(nRootPos); } \
- Type GetParent( SvListEntry* pEntry ) const \
+ Type GetParent( SvListEntry* pEntry ) const \
{ return (Type)SvTreeList::GetParent(pEntry); } \
using SvTreeList::FirstChild; \
- Type FirstChild( Type pParent ) const \
- { return (Type)SvTreeList::FirstChild(pParent); } \
+ Type FirstChild( Type pParent ) const \
+ { return (Type)SvTreeList::FirstChild(pParent); } \
using SvTreeList::NextSibling; \
- Type NextSibling( Type pEntry ) const \
- { return (Type)SvTreeList::NextSibling(pEntry); } \
+ Type NextSibling( Type pEntry ) const \
+ { return (Type)SvTreeList::NextSibling(pEntry); } \
using SvTreeList::PrevSibling; \
- Type PrevSibling( Type pEntry ) const \
- { return (Type)SvTreeList::PrevSibling(pEntry); } \
+ Type PrevSibling( Type pEntry ) const \
+ { return (Type)SvTreeList::PrevSibling(pEntry); } \
using SvTreeList::LastSibling; \
- Type LastSibling( Type pEntry ) const \
- { return (Type)SvTreeList::LastSibling(pEntry); } \
- Type GetEntryAtAbsPos( ULONG nAbsPos ) const \
- { return (Type)SvTreeList::GetEntryAtAbsPos( nAbsPos); } \
+ Type LastSibling( Type pEntry ) const \
+ { return (Type)SvTreeList::LastSibling(pEntry); } \
+ Type GetEntryAtAbsPos( ULONG nAbsPos ) const \
+ { return (Type)SvTreeList::GetEntryAtAbsPos( nAbsPos); } \
};
#endif
diff --git a/svtools/inc/svtools/ttprops.hxx b/svtools/inc/svtools/ttprops.hxx
index 5c417e887aee..50877d98e0e2 100644
--- a/svtools/inc/svtools/ttprops.hxx
+++ b/svtools/inc/svtools/ttprops.hxx
@@ -2,7 +2,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,30 +38,30 @@ class SfxPoolItem;
class Bitmap;
// Defines zur Steuerung der Ausführung von Slots
-#define EXECUTE_NO 0
-#define EXECUTE_POSSIBLE 1
-#define EXECUTE_YES 2
-#define EXECUTEMODE_ASYNCHRON 1
-#define EXECUTEMODE_DIALOGASYNCHRON 2
+#define EXECUTE_NO 0
+#define EXECUTE_POSSIBLE 1
+#define EXECUTE_YES 2
+#define EXECUTEMODE_ASYNCHRON 1
+#define EXECUTEMODE_DIALOGASYNCHRON 2
-#define SFX_USE_BINDINGS 0x8000
+#define SFX_USE_BINDINGS 0x8000
// Property Requests(PR)
-#define TT_PR_ONCE 0x100
+#define TT_PR_ONCE 0x100
-#define TT_PR_SLOTS ( 0x001 | TT_PR_ONCE )
+#define TT_PR_SLOTS ( 0x001 | TT_PR_ONCE )
#define TT_PR_DISPATCHER (0x002 )
-#define TT_PR_IMG ( 0x004 )
+#define TT_PR_IMG ( 0x004 )
-#define TT_PR_ERR_NODISPATCHER 01
-#define TT_PR_ERR_NOEXECUTE 02
+#define TT_PR_ERR_NODISPATCHER 01
+#define TT_PR_ERR_NOEXECUTE 02
-/// To detect inconsistencies
-#define TT_PROPERTIES_VERSION 1
+/// To detect inconsistencies
+#define TT_PROPERTIES_VERSION 1
class SVT_DLLPUBLIC TTProperties : public ApplicationProperty
{
- USHORT nDonePRs; // Verwaltung für die Properties, die nur einmal gerufen werden mussen.
+ USHORT nDonePRs; // Verwaltung für die Properties, die nur einmal gerufen werden mussen.
SVT_DLLPRIVATE BOOL RequestProperty( USHORT nRequest );
BOOL HasSlots(){ return nPropertyVersion == TT_PROPERTIES_VERSION; }
@@ -100,7 +100,7 @@ public:
ULONG nSidReferer;
USHORT nActualPR;
- USHORT nPropertyVersion; // Wird bei jedem call gesetzt.
+ USHORT nPropertyVersion; // Wird bei jedem call gesetzt.
};
#endif // _SVTOOLS_TTPROPS_HXX
diff --git a/svtools/inc/svtools/unitconv.hxx b/svtools/inc/svtools/unitconv.hxx
index 184ba1d58084..c4630e9e97e1 100644
--- a/svtools/inc/svtools/unitconv.hxx
+++ b/svtools/inc/svtools/unitconv.hxx
@@ -2,7 +2,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
@@ -44,27 +44,27 @@ typedef long (*FUNC_CONVERT)(long);
// Functions -------------------------------------------------------------
-SVT_DLLPUBLIC void SetFieldUnit( MetricField& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
-SVT_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
+SVT_DLLPUBLIC void SetFieldUnit( MetricField& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
+SVT_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
-SVT_DLLPUBLIC long CalcToUnit( float nIn, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor );
+SVT_DLLPUBLIC long CalcToUnit( float nIn, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor );
-SVT_DLLPUBLIC long ItemToControl( long nIn, SfxMapUnit eItem, SfxFieldUnit eCtrl );
-SVT_DLLPUBLIC long ControlToItem( long nIn, SfxFieldUnit eCtrl, SfxMapUnit eItem );
+SVT_DLLPUBLIC long ItemToControl( long nIn, SfxMapUnit eItem, SfxFieldUnit eCtrl );
+SVT_DLLPUBLIC long ControlToItem( long nIn, SfxFieldUnit eCtrl, SfxMapUnit eItem );
-SVT_DLLPUBLIC FieldUnit MapToFieldUnit( const SfxMapUnit eUnit );
-SVT_DLLPUBLIC MapUnit FieldToMapUnit( const SfxFieldUnit eUnit );
+SVT_DLLPUBLIC FieldUnit MapToFieldUnit( const SfxMapUnit eUnit );
+SVT_DLLPUBLIC MapUnit FieldToMapUnit( const SfxFieldUnit eUnit );
-SVT_DLLPUBLIC long ConvertValueToMap( long nVal, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long ConvertValueToUnit( long nVal, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long ConvertValueToMap( long nVal, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long ConvertValueToUnit( long nVal, SfxMapUnit eUnit );
-SVT_DLLPUBLIC void SetMetricValue( MetricField& rField, long lCoreValue, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit );
+SVT_DLLPUBLIC void SetMetricValue( MetricField& rField, long lCoreValue, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long PointToTwips( long nIn );
+SVT_DLLPUBLIC long PointToTwips( long nIn );
-SVT_DLLPUBLIC long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew );
+SVT_DLLPUBLIC long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew );
#endif
diff --git a/svtools/inc/svtools/urlcontrol.hxx b/svtools/inc/svtools/urlcontrol.hxx
index f5fd8df8150b..6449781fdcf2 100644
--- a/svtools/inc/svtools/urlcontrol.hxx
+++ b/svtools/inc/svtools/urlcontrol.hxx
@@ -2,7 +2,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 @@ namespace svt
class SVT_DLLPUBLIC OFileURLControl : public SvtURLBox
{
protected:
- String m_sPreservedText;
+ String m_sPreservedText;
public:
OFileURLControl(Window* _pParent);
OFileURLControl(Window* _pParent, const ResId& _rId);
protected:
- virtual long PreNotify( NotifyEvent& rNEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SVTOOLS_URLCONTROL_HXX
diff --git a/svtools/inc/svtools/valueset.hxx b/svtools/inc/svtools/valueset.hxx
index 3efc512728eb..98072c2da792 100644
--- a/svtools/inc/svtools/valueset.hxx
+++ b/svtools/inc/svtools/valueset.hxx
@@ -2,7 +2,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
@@ -76,24 +76,24 @@ class ListBox
WinBits
-WB_RADIOSEL Wenn dieses Flag gesetzt wird, wird im ValueSet die
+WB_RADIOSEL Wenn dieses Flag gesetzt wird, wird im ValueSet die
Selektion so gezeichnet, wie bei einem ImageRadioButton.
Dies ist jedoch nur sinnvoll, wenn die Images min. 8 Pixel
in horizontaler und vertikaler Richtung kleiner sind
als der Item-Bereich, WB_DOUBLEBORDER gesetzt ist und
als Color COL_WINDOWWORKSPACE gesetzt ist.
-WB_FLATVALUESET Flat Look (if you set WB_ITEMBORDER or WB_DOUBLEBORDER,
+WB_FLATVALUESET Flat Look (if you set WB_ITEMBORDER or WB_DOUBLEBORDER,
then you get extra border space, but the Borders
aren't painted),
-WB_ITEMBORDER Die Items werden umrandet
-WB_DOUBLEBORDER Die Items werden doppelt umrandet. Zusaetzlich muss
+WB_ITEMBORDER Die Items werden umrandet
+WB_DOUBLEBORDER Die Items werden doppelt umrandet. Zusaetzlich muss
WB_ITEMBORDER gesetzt werden, ansonsten hat dieses
WinBit keine Auswirkung. Gebraucht wird dies, wenn man
Items mit weissem Hintergrund hat, da sonst der 3D Effekt
nicht mehr sichtbar ist.
-WB_NAMEFIELD Es gibt ein Namensfeld, wo der Name eines Items
+WB_NAMEFIELD Es gibt ein Namensfeld, wo der Name eines Items
mit angezeigt wird
-WB_NONEFIELD Es gibt ein NoSelection-Feld. Dieses kann selektiert
+WB_NONEFIELD Es gibt ein NoSelection-Feld. Dieses kann selektiert
werden, wenn bei SelectItem 0 uebergeben wird. Bei
GetSelectItemId() wird entsprechend 0 zurueckgegeben
wenn dieses Feld selektiert ist, bzw. keines selektiert
@@ -101,14 +101,14 @@ WB_NONEFIELD Es gibt ein NoSelection-Feld. Dieses kann selektiert
gesetzt wurde, bzw. keinen, wenn kein Text gesetzt
wurde. Mit SetNoSelection() kann die Selektion ganz
ausgeschaltet werden.
-WB_VSCROLL Es wird immer ein ScrollBar angezeigt. Wenn dieses Flag
+WB_VSCROLL Es wird immer ein ScrollBar angezeigt. Wenn dieses Flag
gesetzt wird, muss auch immer mit SetLineCount() die
sichtbare Anzahl der Zeilen eingestellt werden.
-WB_BORDER Um das Fenster wird ein Border gezeichnet.
-WB_NOPOINTERFOCUS Der Focus wird sich nicht geholt, wenn mit der Maus in
+WB_BORDER Um das Fenster wird ein Border gezeichnet.
+WB_NOPOINTERFOCUS Der Focus wird sich nicht geholt, wenn mit der Maus in
das Control geklickt wird.
-WB_TABSTOP Mit der TabTaste kann in das ValueSet gesprungen werden.
-WB_NOTABSTOP Mit der TabTaste kann nicht in das ValueSet gesprungen
+WB_TABSTOP Mit der TabTaste kann in das ValueSet gesprungen werden.
+WB_NOTABSTOP Mit der TabTaste kann nicht in das ValueSet gesprungen
werden.
WB_NO_DIRECTSELECT Cursor travelling doesn't call select immediately. To
execute the selection <RETURN> has to be pressed.
@@ -199,7 +199,7 @@ wird, sollte in jedem Fall HideDropPos() gerufen werden.
Mit SetItemBits() koennen Flags an einem Item gesetzt werden. Folgende
Flags sind zur Zeit vorgesehen:
-VIB_NODOUBLECLICK Jeder Klick fuehrt zu einer Select-Aktion. Der
+VIB_NODOUBLECLICK Jeder Klick fuehrt zu einer Select-Aktion. Der
Doppelklick-Handler wird in diesem Fall nie
gerufen.
@@ -215,94 +215,94 @@ gewuenschten WinBits (vor Show) mit SetStyle() gesetzt werden.
// - ValueSet-Item-Typen -
// -----------------------
-#define VIB_NODOUBLECLICK ((USHORT)0x0080)
+#define VIB_NODOUBLECLICK ((USHORT)0x0080)
// ------------------
// - ValueSet-Typen -
// ------------------
-#define WB_RADIOSEL ((WinBits)0x00008000)
-#define WB_ITEMBORDER ((WinBits)0x00010000)
-#define WB_DOUBLEBORDER ((WinBits)0x00020000)
-#define WB_NAMEFIELD ((WinBits)0x00040000)
-#define WB_NONEFIELD ((WinBits)0x00080000)
-#define WB_FLATVALUESET ((WinBits)0x02000000)
+#define WB_RADIOSEL ((WinBits)0x00008000)
+#define WB_ITEMBORDER ((WinBits)0x00010000)
+#define WB_DOUBLEBORDER ((WinBits)0x00020000)
+#define WB_NAMEFIELD ((WinBits)0x00040000)
+#define WB_NONEFIELD ((WinBits)0x00080000)
+#define WB_FLATVALUESET ((WinBits)0x02000000)
#define WB_NO_DIRECTSELECT ((WinBits)0x04000000)
-#define WB_MENUSTYLEVALUESET ((WinBits)0x08000000)
+#define WB_MENUSTYLEVALUESET ((WinBits)0x08000000)
// ------------
// - ValueSet -
// ------------
-#define VALUESET_APPEND ((USHORT)0xFFFF)
-#define VALUESET_ITEM_NOTFOUND ((USHORT)0xFFFF)
+#define VALUESET_APPEND ((USHORT)0xFFFF)
+#define VALUESET_ITEM_NOTFOUND ((USHORT)0xFFFF)
class SVT_DLLPUBLIC ValueSet : public Control
{
private:
- VirtualDevice maVirDev;
- Timer maTimer;
+ VirtualDevice maVirDev;
+ Timer maTimer;
ValueSet_Impl* mpImpl;
- ValueSetItem* mpNoneItem;
- ScrollBar* mpScrBar;
- long mnTextOffset;
- long mnVisLines;
- long mnLines;
- long mnUserItemWidth;
- long mnUserItemHeight;
- USHORT mnOldItemId;
- USHORT mnSelItemId;
- USHORT mnHighItemId;
- USHORT mnDropPos;
- USHORT mnCols;
- USHORT mnCurCol;
- USHORT mnUserCols;
- USHORT mnUserVisLines;
- USHORT mnFirstLine;
- USHORT mnSpacing;
- USHORT mnFrameStyle;
- BOOL mbFormat;
- BOOL mbHighlight;
- BOOL mbSelection;
- BOOL mbNoSelection;
- BOOL mbDrawSelection;
- BOOL mbBlackSel;
- BOOL mbDoubleSel;
- BOOL mbScroll;
- BOOL mbDropPos;
- BOOL mbFullMode;
- Color maColor;
- Link maDoubleClickHdl;
- Link maSelectHdl;
+ ValueSetItem* mpNoneItem;
+ ScrollBar* mpScrBar;
+ long mnTextOffset;
+ long mnVisLines;
+ long mnLines;
+ long mnUserItemWidth;
+ long mnUserItemHeight;
+ USHORT mnOldItemId;
+ USHORT mnSelItemId;
+ USHORT mnHighItemId;
+ USHORT mnDropPos;
+ USHORT mnCols;
+ USHORT mnCurCol;
+ USHORT mnUserCols;
+ USHORT mnUserVisLines;
+ USHORT mnFirstLine;
+ USHORT mnSpacing;
+ USHORT mnFrameStyle;
+ BOOL mbFormat;
+ BOOL mbHighlight;
+ BOOL mbSelection;
+ BOOL mbNoSelection;
+ BOOL mbDrawSelection;
+ BOOL mbBlackSel;
+ BOOL mbDoubleSel;
+ BOOL mbScroll;
+ BOOL mbDropPos;
+ BOOL mbFullMode;
+ Color maColor;
+ Link maDoubleClickHdl;
+ Link maSelectHdl;
#ifdef _SV_VALUESET_CXX
friend class ValueSetAcc;
friend class ValueItemAcc;
using Control::ImplInitSettings;
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit();
- SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- SVT_DLLPRIVATE void ImplInitScrollBar();
+ SVT_DLLPRIVATE void ImplInit();
+ SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ SVT_DLLPRIVATE void ImplInitScrollBar();
SVT_DLLPRIVATE void ImplDeleteItems();
- SVT_DLLPRIVATE void ImplFormatItem( ValueSetItem* pItem );
- SVT_DLLPRIVATE void ImplDrawItemText( const XubString& rStr );
- SVT_DLLPRIVATE void ImplDrawSelect();
- SVT_DLLPRIVATE void ImplHideSelect( USHORT nItemId );
- SVT_DLLPRIVATE void ImplHighlightItem( USHORT nItemId, BOOL bIsSelection = TRUE );
- SVT_DLLPRIVATE void ImplDrawDropPos( BOOL bShow );
- SVT_DLLPRIVATE void ImplDraw();
+ SVT_DLLPRIVATE void ImplFormatItem( ValueSetItem* pItem );
+ SVT_DLLPRIVATE void ImplDrawItemText( const XubString& rStr );
+ SVT_DLLPRIVATE void ImplDrawSelect();
+ SVT_DLLPRIVATE void ImplHideSelect( USHORT nItemId );
+ SVT_DLLPRIVATE void ImplHighlightItem( USHORT nItemId, BOOL bIsSelection = TRUE );
+ SVT_DLLPRIVATE void ImplDrawDropPos( BOOL bShow );
+ SVT_DLLPRIVATE void ImplDraw();
using Window::ImplScroll;
- SVT_DLLPRIVATE BOOL ImplScroll( const Point& rPos );
- SVT_DLLPRIVATE USHORT ImplGetItem( const Point& rPoint, BOOL bMove = FALSE ) const;
- SVT_DLLPRIVATE ValueSetItem* ImplGetItem( USHORT nPos );
- SVT_DLLPRIVATE ValueSetItem* ImplGetFirstItem();
+ SVT_DLLPRIVATE BOOL ImplScroll( const Point& rPos );
+ SVT_DLLPRIVATE USHORT ImplGetItem( const Point& rPoint, BOOL bMove = FALSE ) const;
+ SVT_DLLPRIVATE ValueSetItem* ImplGetItem( USHORT nPos );
+ SVT_DLLPRIVATE ValueSetItem* ImplGetFirstItem();
SVT_DLLPRIVATE USHORT ImplGetVisibleItemCount() const;
- SVT_DLLPRIVATE ValueSetItem* ImplGetVisibleItem( USHORT nVisiblePos );
+ SVT_DLLPRIVATE ValueSetItem* ImplGetVisibleItem( USHORT nVisiblePos );
SVT_DLLPRIVATE void ImplFireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue );
SVT_DLLPRIVATE BOOL ImplHasAccessibleListeners();
- SVT_DLLPRIVATE void ImplTracking( const Point& rPos, BOOL bRepeat );
- SVT_DLLPRIVATE void ImplEndTracking( const Point& rPos, BOOL bCancel );
+ SVT_DLLPRIVATE void ImplTracking( const Point& rPos, BOOL bRepeat );
+ SVT_DLLPRIVATE void ImplEndTracking( const Point& rPos, BOOL bCancel );
DECL_DLLPRIVATE_LINK( ImplScrollHdl, ScrollBar* );
DECL_DLLPRIVATE_LINK( ImplTimerHdl, Timer* );
#endif
@@ -313,9 +313,9 @@ private:
protected:
- BOOL StartDrag( const CommandEvent& rCEvt, Region& rRegion );
- USHORT ShowDropPos( const Point& rPos );
- void HideDropPos();
+ BOOL StartDrag( const CommandEvent& rCEvt, Region& rRegion );
+ USHORT ShowDropPos( const Point& rPos );
+ void HideDropPos();
protected:
@@ -326,105 +326,105 @@ public:
ValueSet( Window* pParent, const ResId& rResId, bool bDisableTransientChildren = false );
~ValueSet();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rMEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void Command( const CommandEvent& rCEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void GetFocus();
- virtual void LoseFocus();
- virtual void Resize();
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- virtual void Select();
- virtual void DoubleClick();
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
-
- void InsertItem( USHORT nItemId, const Image& rImage,
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rMEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void GetFocus();
+ virtual void LoseFocus();
+ virtual void Resize();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void Select();
+ virtual void DoubleClick();
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+
+ void InsertItem( USHORT nItemId, const Image& rImage,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId, const Color& rColor,
+ void InsertItem( USHORT nItemId, const Color& rColor,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
const Image& rImage, const XubString& rStr,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
const Color& rColor, const XubString& rStr,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
USHORT nPos = VALUESET_APPEND );
- void InsertSpace( USHORT nItemId,
+ void InsertSpace( USHORT nItemId,
USHORT nPos = VALUESET_APPEND );
- void RemoveItem( USHORT nItemId );
-
- void CopyItems( const ValueSet& rValueSet );
- void Clear();
-
- USHORT GetItemCount() const;
- USHORT GetItemPos( USHORT nItemId ) const;
- USHORT GetItemId( USHORT nPos ) const;
- USHORT GetItemId( const Point& rPos ) const;
- Rectangle GetItemRect( USHORT nItemId ) const;
-
- void EnableFullItemMode( BOOL bFullMode = TRUE );
- BOOL IsFullItemModeEnabled() const { return mbFullMode; }
- void SetColCount( USHORT nNewCols = 1 );
- USHORT GetColCount() const { return mnUserCols; }
- void SetLineCount( USHORT nNewLines = 0 );
- USHORT GetLineCount() const { return mnUserVisLines; }
- void SetItemWidth( long nItemWidth = 0 );
- long GetItemWidth() const { return mnUserItemWidth; }
- void SetItemHeight( long nLineHeight = 0 );
- long GetItemHeight() const { return mnUserItemHeight; }
- void SetFirstLine( USHORT nNewLine = 0 );
- USHORT GetFirstLine() const { return mnFirstLine; }
-
- void SelectItem( USHORT nItemId );
- USHORT GetSelectItemId() const { return mnSelItemId; }
- BOOL IsItemSelected( USHORT nItemId ) const
+ void RemoveItem( USHORT nItemId );
+
+ void CopyItems( const ValueSet& rValueSet );
+ void Clear();
+
+ USHORT GetItemCount() const;
+ USHORT GetItemPos( USHORT nItemId ) const;
+ USHORT GetItemId( USHORT nPos ) const;
+ USHORT GetItemId( const Point& rPos ) const;
+ Rectangle GetItemRect( USHORT nItemId ) const;
+
+ void EnableFullItemMode( BOOL bFullMode = TRUE );
+ BOOL IsFullItemModeEnabled() const { return mbFullMode; }
+ void SetColCount( USHORT nNewCols = 1 );
+ USHORT GetColCount() const { return mnUserCols; }
+ void SetLineCount( USHORT nNewLines = 0 );
+ USHORT GetLineCount() const { return mnUserVisLines; }
+ void SetItemWidth( long nItemWidth = 0 );
+ long GetItemWidth() const { return mnUserItemWidth; }
+ void SetItemHeight( long nLineHeight = 0 );
+ long GetItemHeight() const { return mnUserItemHeight; }
+ void SetFirstLine( USHORT nNewLine = 0 );
+ USHORT GetFirstLine() const { return mnFirstLine; }
+
+ void SelectItem( USHORT nItemId );
+ USHORT GetSelectItemId() const { return mnSelItemId; }
+ BOOL IsItemSelected( USHORT nItemId ) const
{ return ((!mbNoSelection && (nItemId == mnSelItemId)) ? TRUE : FALSE); }
- void SetNoSelection();
- BOOL IsNoSelection() const { return mbNoSelection; }
-
- void SetItemBits( USHORT nItemId, USHORT nBits );
- USHORT GetItemBits( USHORT nItemId ) const;
- void SetItemImage( USHORT nItemId, const Image& rImage );
- Image GetItemImage( USHORT nItemId ) const;
- void SetItemColor( USHORT nItemId, const Color& rColor );
- Color GetItemColor( USHORT nItemId ) const;
- void SetItemData( USHORT nItemId, void* pData );
- void* GetItemData( USHORT nItemId ) const;
- void SetItemText( USHORT nItemId, const XubString& rStr );
- XubString GetItemText( USHORT nItemId ) const;
- void SetColor( const Color& rColor );
- void SetColor() { SetColor( Color( COL_TRANSPARENT ) ); }
- Color GetColor() const { return maColor; }
- BOOL IsColor() const { return maColor.GetTransparency() == 0; }
-
- void SetExtraSpacing( USHORT nNewSpacing );
- USHORT GetExtraSpacing() { return mnSpacing; }
-
- void Format();
-
- void StartSelection();
- void EndSelection();
-
- Size CalcWindowSizePixel( const Size& rItemSize,
+ void SetNoSelection();
+ BOOL IsNoSelection() const { return mbNoSelection; }
+
+ void SetItemBits( USHORT nItemId, USHORT nBits );
+ USHORT GetItemBits( USHORT nItemId ) const;
+ void SetItemImage( USHORT nItemId, const Image& rImage );
+ Image GetItemImage( USHORT nItemId ) const;
+ void SetItemColor( USHORT nItemId, const Color& rColor );
+ Color GetItemColor( USHORT nItemId ) const;
+ void SetItemData( USHORT nItemId, void* pData );
+ void* GetItemData( USHORT nItemId ) const;
+ void SetItemText( USHORT nItemId, const XubString& rStr );
+ XubString GetItemText( USHORT nItemId ) const;
+ void SetColor( const Color& rColor );
+ void SetColor() { SetColor( Color( COL_TRANSPARENT ) ); }
+ Color GetColor() const { return maColor; }
+ BOOL IsColor() const { return maColor.GetTransparency() == 0; }
+
+ void SetExtraSpacing( USHORT nNewSpacing );
+ USHORT GetExtraSpacing() { return mnSpacing; }
+
+ void Format();
+
+ void StartSelection();
+ void EndSelection();
+
+ Size CalcWindowSizePixel( const Size& rItemSize,
USHORT nCalcCols = 0,
USHORT nCalcLines = 0 );
- Size CalcItemSizePixel( const Size& rSize, BOOL bOut = TRUE ) const;
- long GetScrollWidth() const;
+ Size CalcItemSizePixel( const Size& rSize, BOOL bOut = TRUE ) const;
+ long GetScrollWidth() const;
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
- void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- void SetHighlightHdl( const Link& rLink );
- const Link& GetHighlightHdl() const;
+ void SetHighlightHdl( const Link& rLink );
+ const Link& GetHighlightHdl() const;
private:
/** Determine whether RTL (right to left writing) is active. For this
@@ -439,6 +439,6 @@ private:
SVT_DLLPRIVATE bool IsRTLActive (void);
};
-#endif // _VALUESET_HXX
+#endif // _VALUESET_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/wizardmachine.hxx b/svtools/inc/svtools/wizardmachine.hxx
index ce5275d3c252..45291277fcf1 100644
--- a/svtools/inc/svtools/wizardmachine.hxx
+++ b/svtools/inc/svtools/wizardmachine.hxx
@@ -2,7 +2,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,14 +42,14 @@ namespace svt
// wizard buttons
#define WZB_NONE 0x0000
-#define WZB_NEXT 0x0001
-#define WZB_PREVIOUS 0x0002
-#define WZB_FINISH 0x0004
-#define WZB_CANCEL 0x0008
-#define WZB_HELP 0x0010
+#define WZB_NEXT 0x0001
+#define WZB_PREVIOUS 0x0002
+#define WZB_FINISH 0x0004
+#define WZB_CANCEL 0x0008
+#define WZB_HELP 0x0010
// wizard states
-#define WZS_INVALID_STATE ((WizardState)-1)
+#define WZS_INVALID_STATE ((WizardState)-1)
//=====================================================================
//= WizardTypes
@@ -76,12 +76,12 @@ namespace svt
// We may have situations where the next page depends on the state of the current, which needs
// to be committed for this.
// So initializePage and commitPage are designated to initialitzing/committing data on the page.
- virtual void initializePage() = 0;
- virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason ) = 0;
+ virtual void initializePage() = 0;
+ virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason ) = 0;
/** determines whether or not it is allowed to advance to a next page
- You should make this dependent on the current state of the page only, not on
+ You should make this dependent on the current state of the page only, not on
states on other pages of the whole dialog.
The default implementation always returns <TRUE/>.
@@ -98,7 +98,7 @@ namespace svt
class SVT_DLLPUBLIC OWizardPage : public TabPage, public IWizardPageController
{
private:
- WizardPageImplData* m_pImpl;
+ WizardPageImplData* m_pImpl;
public:
/** @param _pParent
@@ -110,13 +110,13 @@ namespace svt
~OWizardPage();
// IWizardPageController overridables
- virtual void initializePage();
- virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason );
+ virtual void initializePage();
+ virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason );
virtual bool canAdvance() const;
protected:
// TabPage overridables
- virtual void ActivatePage();
+ virtual void ActivatePage();
/** updates the travel-related UI elements of the OWizardMachine we live in (if any)
@@ -150,10 +150,10 @@ namespace svt
{
private:
// restrict access to some aspects of our base class
- SVT_DLLPRIVATE void AddPage( TabPage* pPage ) { WizardDialog::AddPage(pPage); }
- SVT_DLLPRIVATE void RemovePage( TabPage* pPage ) { WizardDialog::RemovePage(pPage); }
- SVT_DLLPRIVATE void SetPage( USHORT nLevel, TabPage* pPage ) { WizardDialog::SetPage(nLevel, pPage); }
- // TabPage* GetPage( USHORT nLevel ) const { return WizardDialog::GetPage(nLevel); }
+ SVT_DLLPRIVATE void AddPage( TabPage* pPage ) { WizardDialog::AddPage(pPage); }
+ SVT_DLLPRIVATE void RemovePage( TabPage* pPage ) { WizardDialog::RemovePage(pPage); }
+ SVT_DLLPRIVATE void SetPage( USHORT nLevel, TabPage* pPage ) { WizardDialog::SetPage(nLevel, pPage); }
+ // TabPage* GetPage( USHORT nLevel ) const { return WizardDialog::GetPage(nLevel); }
// TODO: probably the complete page handling (next, previous etc.) should be prohibited ...
// IMPORTANT:
@@ -162,11 +162,11 @@ namespace svt
// So use the travelXXX methods if you need to travel
protected:
- OKButton* m_pFinish;
- CancelButton* m_pCancel;
- PushButton* m_pNextPage;
- PushButton* m_pPrevPage;
- HelpButton* m_pHelp;
+ OKButton* m_pFinish;
+ CancelButton* m_pCancel;
+ PushButton* m_pNextPage;
+ PushButton* m_pPrevPage;
+ HelpButton* m_pHelp;
private:
WizardMachineImplData*
@@ -188,15 +188,15 @@ namespace svt
~OWizardMachine();
/// enable (or disable) buttons
- void enableButtons(sal_uInt32 _nWizardButtonFlags, sal_Bool _bEnable);
+ void enableButtons(sal_uInt32 _nWizardButtonFlags, sal_Bool _bEnable);
/// set the default style for a button
- void defaultButton(sal_uInt32 _nWizardButtonFlags);
+ void defaultButton(sal_uInt32 _nWizardButtonFlags);
/// set the default style for a button
- void defaultButton(PushButton* _pNewDefButton);
+ void defaultButton(PushButton* _pNewDefButton);
/// set the base of the title to use - the title of the current page is appended
- void setTitleBase(const String& _rTitleBase);
- const String& getTitleBase() const;
+ void setTitleBase(const String& _rTitleBase);
+ const String& getTitleBase() const;
/// determines whether there is a next state to which we can advance
virtual bool canAdvance() const;
@@ -211,16 +211,16 @@ namespace svt
protected:
// WizardDialog overridables
- virtual void ActivatePage();
- virtual long DeactivatePage();
+ virtual void ActivatePage();
+ virtual long DeactivatePage();
// our own overridables
/// to override to create new pages
- virtual TabPage* createPage(WizardState _nState) = 0;
+ virtual TabPage* createPage(WizardState _nState) = 0;
/// will be called when a new page is about to be displayed
- virtual void enterState(WizardState _nState);
+ virtual void enterState(WizardState _nState);
/** will be called when the current state is about to be left for the given reason
@@ -246,7 +246,7 @@ namespace svt
@return
<TRUE/> if and only if the page is allowed to be left
*/
- virtual sal_Bool leaveState( WizardState _nState );
+ virtual sal_Bool leaveState( WizardState _nState );
/** determine the next state to travel from the given one
@@ -262,10 +262,10 @@ namespace svt
virtual sal_Bool onFinish();
/// travel to the next state
- sal_Bool travelNext();
+ sal_Bool travelNext();
/// travel to the previous state
- sal_Bool travelPrevious();
+ sal_Bool travelPrevious();
/** enables the automatic enabled/disabled state of the "Next" button
@@ -296,7 +296,7 @@ namespace svt
@see skipUntil
@see skipBackwardUntil
*/
- sal_Bool skip( sal_Int32 _nSteps = 1 );
+ sal_Bool skip( sal_Int32 _nSteps = 1 );
/** skips one or more states, until a given state is reached
@@ -312,7 +312,7 @@ namespace svt
@see skip
@see skipBackwardUntil
*/
- sal_Bool skipUntil( WizardState _nTargetState );
+ sal_Bool skipUntil( WizardState _nTargetState );
/** moves back one or more states, until a given state is reached
@@ -336,7 +336,7 @@ namespace svt
Vulgo, this is the identifier of the current tab page :)
*/
- WizardState getCurrentState() const { return WizardDialog::GetCurLevel(); }
+ WizardState getCurrentState() const { return WizardDialog::GetCurLevel(); }
virtual IWizardPageController*
getPageController( TabPage* _pCurrentPage ) const;
@@ -361,8 +361,8 @@ namespace svt
DECL_DLLPRIVATE_LINK(OnPrevPage, PushButton*);
DECL_DLLPRIVATE_LINK(OnFinish, PushButton*);
- SVT_DLLPRIVATE void implResetDefault(Window* _pWindow);
- SVT_DLLPRIVATE void implUpdateTitle();
+ SVT_DLLPRIVATE void implResetDefault(Window* _pWindow);
+ SVT_DLLPRIVATE void implUpdateTitle();
SVT_DLLPRIVATE void implConstruct( const sal_uInt32 _nButtonFlags );
};
@@ -386,7 +386,7 @@ namespace svt
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // _SVTOOLS_WIZARDMACHINE_HXX_
diff --git a/svtools/inc/svtools/wizdlg.hxx b/svtools/inc/svtools/wizdlg.hxx
index bbd050b39ea2..0e967bc03e5d 100644
--- a/svtools/inc/svtools/wizdlg.hxx
+++ b/svtools/inc/svtools/wizdlg.hxx
@@ -2,7 +2,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
@@ -209,9 +209,9 @@ IMPL_LINK( MyWizardDlg, ImplNextHdl, PushButton*, pBtn )
// - WizardDialog-Types -
// ----------------------
-#define WIZARDDIALOG_BUTTON_STDOFFSET_X 6
+#define WIZARDDIALOG_BUTTON_STDOFFSET_X 6
#define WIZARDDIALOG_BUTTON_SMALLSTDOFFSET_X 3
-#define WIZARDDIALOG_BUTTON_STDOFFSETLEFT_X -10
+#define WIZARDDIALOG_BUTTON_STDOFFSETLEFT_X -10
// ----------------
// - WizardDialog -
@@ -220,18 +220,18 @@ IMPL_LINK( MyWizardDlg, ImplNextHdl, PushButton*, pBtn )
class SVT_DLLPUBLIC WizardDialog : public ModalDialog
{
private:
- Size maPageSize;
- ImplWizPageData* mpFirstPage;
- ImplWizButtonData* mpFirstBtn;
- FixedLine* mpFixedLine;
- TabPage* mpCurTabPage;
- PushButton* mpPrevBtn;
- PushButton* mpNextBtn;
- Window* mpViewWindow;
- USHORT mnCurLevel;
- WindowAlign meViewAlign;
- Link maActivateHdl;
- Link maDeactivateHdl;
+ Size maPageSize;
+ ImplWizPageData* mpFirstPage;
+ ImplWizButtonData* mpFirstBtn;
+ FixedLine* mpFixedLine;
+ TabPage* mpCurTabPage;
+ PushButton* mpPrevBtn;
+ PushButton* mpNextBtn;
+ Window* mpViewWindow;
+ USHORT mnCurLevel;
+ WindowAlign meViewAlign;
+ Link maActivateHdl;
+ Link maDeactivateHdl;
sal_Int16 mnLeftAlignCount;
bool mbEmptyViewMargin;
@@ -251,12 +251,12 @@ protected:
#ifdef _SVT_WIZDLG_CXX
private:
- SVT_DLLPRIVATE void ImplInitData();
- SVT_DLLPRIVATE void ImplCalcSize( Size& rSize );
- SVT_DLLPRIVATE void ImplPosCtrls();
- SVT_DLLPRIVATE void ImplPosTabPage();
- SVT_DLLPRIVATE void ImplShowTabPage( TabPage* pPage );
- SVT_DLLPRIVATE TabPage* ImplGetPage( USHORT nLevel ) const;
+ SVT_DLLPRIVATE void ImplInitData();
+ SVT_DLLPRIVATE void ImplCalcSize( Size& rSize );
+ SVT_DLLPRIVATE void ImplPosCtrls();
+ SVT_DLLPRIVATE void ImplPosTabPage();
+ SVT_DLLPRIVATE void ImplShowTabPage( TabPage* pPage );
+ SVT_DLLPRIVATE TabPage* ImplGetPage( USHORT nLevel ) const;
#endif
public:
@@ -264,49 +264,49 @@ public:
WizardDialog( Window* pParent, const ResId& rResId );
~WizardDialog();
- virtual void Resize();
- virtual void StateChanged( StateChangedType nStateChange );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual void Resize();
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual long Notify( NotifyEvent& rNEvt );
- virtual void ActivatePage();
- virtual long DeactivatePage();
+ virtual void ActivatePage();
+ virtual long DeactivatePage();
- BOOL ShowPrevPage();
- BOOL ShowNextPage();
- BOOL ShowPage( USHORT nLevel );
- BOOL Finnish( long nResult = 0 );
- USHORT GetCurLevel() const { return mnCurLevel; }
+ BOOL ShowPrevPage();
+ BOOL ShowNextPage();
+ BOOL ShowPage( USHORT nLevel );
+ BOOL Finnish( long nResult = 0 );
+ USHORT GetCurLevel() const { return mnCurLevel; }
- void AddPage( TabPage* pPage );
- void RemovePage( TabPage* pPage );
- void SetPage( USHORT nLevel, TabPage* pPage );
- TabPage* GetPage( USHORT nLevel ) const;
+ void AddPage( TabPage* pPage );
+ void RemovePage( TabPage* pPage );
+ void SetPage( USHORT nLevel, TabPage* pPage );
+ TabPage* GetPage( USHORT nLevel ) const;
- void AddButton( Button* pButton, long nOffset = 0 );
- void RemoveButton( Button* pButton );
+ void AddButton( Button* pButton, long nOffset = 0 );
+ void RemoveButton( Button* pButton );
- void SetPrevButton( PushButton* pButton ) { mpPrevBtn = pButton; }
- PushButton* GetPrevButton() const { return mpPrevBtn; }
- void SetNextButton( PushButton* pButton ) { mpNextBtn = pButton; }
- PushButton* GetNextButton() const { return mpNextBtn; }
+ void SetPrevButton( PushButton* pButton ) { mpPrevBtn = pButton; }
+ PushButton* GetPrevButton() const { return mpPrevBtn; }
+ void SetNextButton( PushButton* pButton ) { mpNextBtn = pButton; }
+ PushButton* GetNextButton() const { return mpNextBtn; }
- void ShowButtonFixedLine( BOOL bVisible );
- BOOL IsButtonFixedLineVisible();
+ void ShowButtonFixedLine( BOOL bVisible );
+ BOOL IsButtonFixedLineVisible();
- void SetViewWindow( Window* pWindow ) { mpViewWindow = pWindow; }
- Window* GetViewWindow() const { return mpViewWindow; }
- void SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; }
- WindowAlign GetViewAlign() const { return meViewAlign; }
+ void SetViewWindow( Window* pWindow ) { mpViewWindow = pWindow; }
+ Window* GetViewWindow() const { return mpViewWindow; }
+ void SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; }
+ WindowAlign GetViewAlign() const { return meViewAlign; }
- void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; }
- const Size& GetPageSizePixel() const { return maPageSize; }
+ void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; }
+ const Size& GetPageSizePixel() const { return maPageSize; }
- void SetActivatePageHdl( const Link& rLink ) { maActivateHdl = rLink; }
- const Link& GetActivatePageHdl() const { return maActivateHdl; }
- void SetDeactivatePageHdl( const Link& rLink ) { maDeactivateHdl = rLink; }
- const Link& GetDeactivatePageHdl() const { return maDeactivateHdl; }
+ void SetActivatePageHdl( const Link& rLink ) { maActivateHdl = rLink; }
+ const Link& GetActivatePageHdl() const { return maActivateHdl; }
+ void SetDeactivatePageHdl( const Link& rLink ) { maDeactivateHdl = rLink; }
+ const Link& GetDeactivatePageHdl() const { return maDeactivateHdl; }
};
-#endif // _SVT_WIZDLG_HXX
+#endif // _SVT_WIZDLG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/wmf.hxx b/svtools/inc/svtools/wmf.hxx
index 05461cc84ffb..52944ddb110e 100644
--- a/svtools/inc/svtools/wmf.hxx
+++ b/svtools/inc/svtools/wmf.hxx
@@ -2,7 +2,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/svtools/inc/svtools/xtextedt.hxx b/svtools/inc/svtools/xtextedt.hxx
index cd2b5117150a..6c06cf686a85 100644
--- a/svtools/inc/svtools/xtextedt.hxx
+++ b/svtools/inc/svtools/xtextedt.hxx
@@ -2,7 +2,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,9 +32,9 @@
#include <svtools/texteng.hxx>
#include <svtools/textview.hxx>
-#define XTEXTUNDO_REPLACEALL (XTEXTUNDO_START+1)
-#define XTEXTUNDO_INDENTBLOCK 122
-#define XTEXTUNDO_UNINDENTBLOCK 123
+#define XTEXTUNDO_REPLACEALL (XTEXTUNDO_START+1)
+#define XTEXTUNDO_INDENTBLOCK 122
+#define XTEXTUNDO_UNINDENTBLOCK 123
namespace com {
namespace sun {
@@ -46,35 +46,35 @@ namespace util {
class SVT_DLLPUBLIC ExtTextEngine : public TextEngine
{
private:
- String maGroupChars;
+ String maGroupChars;
public:
ExtTextEngine();
~ExtTextEngine();
- const String& GetGroupChars() const { return maGroupChars; }
- void SetGroupChars( const String& r ) { maGroupChars = r; }
- TextSelection MatchGroup( const TextPaM& rCursor ) const;
+ const String& GetGroupChars() const { return maGroupChars; }
+ void SetGroupChars( const String& r ) { maGroupChars = r; }
+ TextSelection MatchGroup( const TextPaM& rCursor ) const;
- BOOL Search( TextSelection& rSel, const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward = TRUE );
+ BOOL Search( TextSelection& rSel, const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward = TRUE );
};
class SVT_DLLPUBLIC ExtTextView : public TextView
{
protected:
- BOOL ImpIndentBlock( BOOL bRight );
+ BOOL ImpIndentBlock( BOOL bRight );
public:
ExtTextView( ExtTextEngine* pEng, Window* pWindow );
~ExtTextView();
- BOOL MatchGroup();
+ BOOL MatchGroup();
- BOOL Search( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward );
- USHORT Replace( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bAll, BOOL bForward );
+ BOOL Search( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward );
+ USHORT Replace( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bAll, BOOL bForward );
- BOOL IndentBlock();
- BOOL UnindentBlock();
+ BOOL IndentBlock();
+ BOOL UnindentBlock();
};
#endif // _XTEXTEDT_HXX
diff --git a/svtools/inc/svtools/xwindowitem.hxx b/svtools/inc/svtools/xwindowitem.hxx
index 8fd4184e55af..1aa5ad0b9366 100644
--- a/svtools/inc/svtools/xwindowitem.hxx
+++ b/svtools/inc/svtools/xwindowitem.hxx
@@ -2,7 +2,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