From 9cd038e5b89c978ea24ba7efa7c3152801190455 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 12 Mar 2011 18:57:32 -0600 Subject: fix mis-merge all-around. --- avmedia/source/framework/mediaitem.cxx | 4 +- avmedia/source/viewer/mediawindow_impl.cxx | 1 - avmedia/source/viewer/mediawindowbase_impl.hxx | 3 +- configmgr/source/defaultprovider.cxx | 4 +- drawinglayer/source/processor2d/vclprocessor2d.cxx | 2 +- editeng/Library_editeng.mk | 2 +- editeng/inc/editeng/bolnitem.hxx | 4 +- editeng/inc/editeng/boxitem.hxx | 6 +- editeng/inc/editeng/editeng.hxx | 2 +- editeng/inc/editeng/justifyitem.hxx | 30 +- editeng/inc/editeng/lrspitem.hxx | 2 +- editeng/inc/editeng/outliner.hxx | 2 +- editeng/inc/editeng/svxacorr.hxx | 2 +- editeng/source/editeng/editdoc.hxx | 2 +- editeng/source/editeng/editeng.cxx | 4 +- editeng/source/editeng/eehtml.cxx | 4 +- editeng/source/editeng/impedit.hxx | 2 +- editeng/source/editeng/impedit2.cxx | 8 +- editeng/source/editeng/impedit3.cxx | 5 +- editeng/source/items/frmitems.cxx | 11 +- editeng/source/items/justifyitem.cxx | 58 +- editeng/source/items/textitem.cxx | 2 +- editeng/source/misc/svxacorr.cxx | 2 +- editeng/source/misc/txtrange.cxx | 2 +- editeng/source/outliner/outleeng.hxx | 2 +- editeng/source/outliner/outliner.cxx | 6 +- editeng/source/outliner/outlvw.cxx | 69 +- editeng/source/outliner/paralist.cxx | 4 +- editeng/source/outliner/paralist.hxx | 8 +- editeng/source/rtf/rtfitem.cxx | 175 +--- fpicker/source/unx/gnome/SalGtkPicker.cxx | 40 - framework/Library_fwe.mk | 1 - framework/Library_fwi.mk | 1 - framework/Library_fwm.mk | 1 - framework/source/layoutmanager/helpers.cxx | 7 +- framework/source/layoutmanager/layoutmanager.cxx | 8 +- framework/source/layoutmanager/panel.cxx | 3 +- framework/source/layoutmanager/panelmanager.cxx | 2 +- .../source/layoutmanager/toolbarlayoutmanager.cxx | 91 +- .../source/uielement/addonstoolbarmanager.cxx | 2 +- framework/source/uielement/panelwrapper.cxx | 4 +- sfx2/Library_qstart.mk | 2 - sfx2/Library_sfx.mk | 1 - sfx2/Module_sfx2.mk | 14 +- sfx2/inc/sfx2/sfxbasemodel.hxx | 4 +- sfx2/inc/sfx2/viewsh.hxx | 4 +- sfx2/source/appl/appserv.cxx | 2 +- sfx2/source/appl/appuno.cxx | 10 - sfx2/source/appl/helpinterceptor.cxx | 4 +- sfx2/source/appl/linkmgr2.cxx | 4 +- sfx2/source/appl/module.cxx | 2 +- sfx2/source/appl/newhelp.cxx | 4 +- sfx2/source/appl/sfxhelp.cxx | 9 +- sfx2/source/control/bindings.cxx | 2 +- sfx2/source/control/unoctitm.cxx | 2 +- sfx2/source/dialog/passwd.cxx | 2 +- sfx2/source/dialog/splitwin.cxx | 2 +- sfx2/source/dialog/tabdlg.cxx | 2 +- sfx2/source/dialog/taskpane.cxx | 2 +- sfx2/source/dialog/templdlg.cxx | 20 +- sfx2/source/doc/objstor.cxx | 2 +- sfx2/source/doc/sfxbasemodel.cxx | 2 +- sfx2/source/notify/eventsupplier.cxx | 2 +- sfx2/source/view/frame.cxx | 4 +- sfx2/source/view/viewprn.cxx | 4 +- sfx2/source/view/viewsh.cxx | 2 +- svx/AllLangResTarget_svx.mk | 29 +- svx/Library_svx.mk | 2 - svx/Library_svxcore.mk | 1 - svx/Module_svx.mk | 1 - svx/Package_inc.mk | 1 - svx/inc/svdibrow.hxx | 2 +- svx/inc/svx/dlgutil.hxx | 2 +- svx/inc/svx/galtheme.hxx | 10 +- svx/inc/svx/svdglue.hxx | 2 +- svx/inc/svx/svdmodel.hxx | 2 +- svx/inc/svx/svdotable.hxx | 2 +- svx/inc/svx/svdotext.hxx | 2 +- svx/inc/svx/svdundo.hxx | 4 +- svx/source/dialog/dlgutil.cxx | 10 +- svx/source/dialog/fontwork.cxx | 2 +- svx/source/dialog/hyprlink.cxx | 999 --------------------- svx/source/dialog/hyprlink.src | 167 ---- svx/source/dialog/rulritem.cxx | 2 +- svx/source/engine3d/svx3ditems.cxx | 28 +- svx/source/gallery2/gallery1.cxx | 2 +- svx/source/gallery2/galtheme.cxx | 6 +- svx/source/inc/fmshimp.hxx | 6 +- svx/source/intro/about_ooo.src | 40 - svx/source/stbctrls/modctrl.cxx | 4 +- svx/source/svdraw/svdattr.cxx | 2 +- svx/source/svdraw/svdedtv2.cxx | 8 +- svx/source/svdraw/svdmodel.cxx | 2 +- svx/source/svdraw/svdograf.cxx | 3 +- svx/source/svdraw/svdopath.cxx | 2 +- svx/source/svdraw/svdotext.cxx | 18 +- svx/source/svdraw/svdview.cxx | 2 +- svx/source/tbxctrls/extrusioncontrols.cxx | 2 +- svx/source/tbxctrls/tbcontrl.cxx | 2 +- svx/source/unodraw/unoprov.cxx | 2 +- uui/source/iahndl.hxx | 9 + xmloff/Library_xo.mk | 3 +- xmloff/Library_xof.mk | 2 - xmloff/source/forms/property_meta_data.cxx | 10 +- xmloff/source/style/xmlnumfe.cxx | 2 +- 105 files changed, 299 insertions(+), 1792 deletions(-) delete mode 100755 svx/source/dialog/hyprlink.cxx delete mode 100755 svx/source/dialog/hyprlink.src delete mode 100755 svx/source/intro/about_ooo.src diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx index d89d2db77e4e..babaa39b427c 100755 --- a/avmedia/source/framework/mediaitem.cxx +++ b/avmedia/source/framework/mediaitem.cxx @@ -123,7 +123,7 @@ SfxItemPresentation MediaItem::GetPresentation( SfxItemPresentation, //------------------------------------------------------------------------ -bool MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const +bool MediaItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 ) const { uno::Sequence< uno::Any > aSeq( 9 ); @@ -144,7 +144,7 @@ bool MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const //------------------------------------------------------------------------ -bool MediaItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE ) +bool MediaItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 ) { uno::Sequence< uno::Any > aSeq; bool bRet = false; diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx index 2d4578639110..fbc0e2e015e2 100755 --- a/avmedia/source/viewer/mediawindow_impl.cxx +++ b/avmedia/source/viewer/mediawindow_impl.cxx @@ -227,7 +227,6 @@ void MediaWindowImpl::cleanUp() // --------------------------------------------------------------------- void MediaWindowImpl::onURLChanged() -{ { if( getPlayer().is() ) { diff --git a/avmedia/source/viewer/mediawindowbase_impl.hxx b/avmedia/source/viewer/mediawindowbase_impl.hxx index 040bd18bc148..1aa615a5986f 100755 --- a/avmedia/source/viewer/mediawindowbase_impl.hxx +++ b/avmedia/source/viewer/mediawindowbase_impl.hxx @@ -62,8 +62,7 @@ namespace avmedia virtual void cleanUp(); virtual void onURLChanged(); - static ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > createPlayer( const ::rtl::OUString& rURL, - sal_Bool& rbJavaBased ); + static ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > createPlayer( const ::rtl::OUString& rURL); public: diff --git a/configmgr/source/defaultprovider.cxx b/configmgr/source/defaultprovider.cxx index 6e65301e8c82..c938e2b31951 100755 --- a/configmgr/source/defaultprovider.cxx +++ b/configmgr/source/defaultprovider.cxx @@ -43,14 +43,12 @@ namespace configmgr { namespace default_provider { -namespace { - namespace css = com::sun::star; css::uno::Reference< css::uno::XInterface > create( css::uno::Reference< css::uno::XComponentContext > const & context) { - osl::MutexGuard guard(*lock_); + osl::MutexGuard guard(*lock()); static css::uno::Reference< css::uno::XInterface > singleton( configuration_provider::createDefault(context)); return singleton; diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 3968caa287c0..5c5dc918b2a8 100755 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -272,7 +272,7 @@ namespace drawinglayer nChars = nWidthToFill / nWidth; String aFilled; - aFilled.Fill( (USHORT)nChars, aText.GetChar( 0 ) ); + aFilled.Fill( (sal_uInt16)nChars, aText.GetChar( 0 ) ); aText = aFilled; nPos = 0; nLen = nChars; diff --git a/editeng/Library_editeng.mk b/editeng/Library_editeng.mk index 9213abedd3b1..d54a7ce5f7e1 100755 --- a/editeng/Library_editeng.mk +++ b/editeng/Library_editeng.mk @@ -155,8 +155,8 @@ $(eval $(call gb_Library_add_linked_libs,editeng,\ ucbhelper \ cppuhelper \ cppu \ - vos3 \ sal \ + salhelper \ icuuc \ i18nisolang1 \ i18npaper \ diff --git a/editeng/inc/editeng/bolnitem.hxx b/editeng/inc/editeng/bolnitem.hxx index 64098397f71b..ede5a5e80972 100755 --- a/editeng/inc/editeng/bolnitem.hxx +++ b/editeng/inc/editeng/bolnitem.hxx @@ -66,8 +66,8 @@ public: String &rText, const IntlWrapper * = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual SfxPoolItem* Create(SvStream &, USHORT) const; - virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const; + virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const; + virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const; virtual bool ScaleMetrics( long nMult, long nDiv ); virtual bool HasMetrics() const; diff --git a/editeng/inc/editeng/boxitem.hxx b/editeng/inc/editeng/boxitem.hxx index acbd92934ebc..8456bb74ab57 100755 --- a/editeng/inc/editeng/boxitem.hxx +++ b/editeng/inc/editeng/boxitem.hxx @@ -106,7 +106,7 @@ public: // Line width plus Space plus inward distance //bIgnoreLine = TRUE -> Also return distance, when no Line is set sal_uInt16 CalcLineSpace( sal_uInt16 nLine, sal_Bool bIgnoreLine = sal_False ) const; - static com::sun::star::table::BorderLine SvxLineToLine( const SvxBorderLine* pLine, sal_Bool bConvert ); + static com::sun::star::table::BorderLine2 SvxLineToLine( const SvxBorderLine* pLine, sal_Bool bConvert ); static sal_Bool LineToSvxLine(const ::com::sun::star::table::BorderLine& rLine, SvxBorderLine& rSvxLine, sal_Bool bConvert); static sal_Bool LineToSvxLine(const ::com::sun::star::table::BorderLine2& rLine, SvxBorderLine& rSvxLine, sal_Bool bConvert); }; @@ -191,8 +191,8 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const; virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const; - virtual int ScaleMetrics( long nMult, long nDiv ); - virtual int HasMetrics() const; + virtual bool ScaleMetrics( long nMult, long nDiv ); + virtual bool HasMetrics() const; const SvxBorderLine* GetHori() const { return pHori; } const SvxBorderLine* GetVert() const { return pVert; } diff --git a/editeng/inc/editeng/editeng.hxx b/editeng/inc/editeng/editeng.hxx index 0d4b64ebe4f6..d8118256483e 100755 --- a/editeng/inc/editeng/editeng.hxx +++ b/editeng/inc/editeng/editeng.hxx @@ -124,7 +124,7 @@ private: EDITENG_DLLPRIVATE EditEngine( const EditEngine& ); EDITENG_DLLPRIVATE EditEngine& operator=( const EditEngine& ); - EDITENG_DLLPRIVATE sal_Bool PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView ); + EDITENG_DLLPRIVATE sal_uInt8 PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView, Window* pFrameWin = NULL ); protected: diff --git a/editeng/inc/editeng/justifyitem.hxx b/editeng/inc/editeng/justifyitem.hxx index f6516cec22cc..67f8dc2e0e0d 100755 --- a/editeng/inc/editeng/justifyitem.hxx +++ b/editeng/inc/editeng/justifyitem.hxx @@ -39,11 +39,11 @@ class EDITENG_DLLPUBLIC SvxHorJustifyItem: public SfxEnumItem public: TYPEINFO(); - SvxHorJustifyItem( const USHORT nId ); + SvxHorJustifyItem( const sal_uInt16 nId ); SvxHorJustifyItem( const SvxCellHorJustify eJustify /*= SVX_HOR_JUSTIFY_STANDARD*/, - const USHORT nId ); + const sal_uInt16 nId ); virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, @@ -53,10 +53,10 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual USHORT GetValueCount() const; - virtual String GetValueText( USHORT nVal ) const; + virtual sal_uInt16 GetValueCount() const; + virtual String GetValueText( sal_uInt16 nVal ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual SfxPoolItem* Create( SvStream& rStream, USHORT nVer ) const; + virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const; inline SvxHorJustifyItem& operator=(const SvxHorJustifyItem& rHorJustify) { @@ -72,11 +72,11 @@ class EDITENG_DLLPUBLIC SvxVerJustifyItem: public SfxEnumItem public: TYPEINFO(); - SvxVerJustifyItem( const USHORT nId ); + SvxVerJustifyItem( const sal_uInt16 nId ); SvxVerJustifyItem( const SvxCellVerJustify eJustify /*= SVX_VER_JUSTIFY_STANDARD*/, - const USHORT nId ); + const sal_uInt16 nId ); virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, @@ -86,10 +86,10 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual USHORT GetValueCount() const; - virtual String GetValueText( USHORT nVal ) const; + virtual sal_uInt16 GetValueCount() const; + virtual String GetValueText( sal_uInt16 nVal ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual SfxPoolItem* Create( SvStream& rStream, USHORT nVer ) const; + virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const; inline SvxVerJustifyItem& operator=(const SvxVerJustifyItem& rVerJustify) { @@ -103,11 +103,11 @@ public: class EDITENG_DLLPUBLIC SvxJustifyMethodItem: public SfxEnumItem { public: - SvxJustifyMethodItem( const USHORT nId ); + SvxJustifyMethodItem( const sal_uInt16 nId ); SvxJustifyMethodItem( const SvxCellJustifyMethod eMethod, - const USHORT nId ); + const sal_uInt16 nId ); virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, @@ -117,10 +117,10 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual USHORT GetValueCount() const; - virtual String GetValueText( USHORT nVal ) const; + virtual sal_uInt16 GetValueCount() const; + virtual String GetValueText( sal_uInt16 nVal ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual SfxPoolItem* Create( SvStream& rStream, USHORT nVer ) const; + virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const; SvxJustifyMethodItem& operator=(const SvxJustifyMethodItem& r); }; diff --git a/editeng/inc/editeng/lrspitem.hxx b/editeng/inc/editeng/lrspitem.hxx index c9a62acd2f55..e00ff6d79272 100755 --- a/editeng/inc/editeng/lrspitem.hxx +++ b/editeng/inc/editeng/lrspitem.hxx @@ -66,7 +66,7 @@ namespace rtl class EDITENG_DLLPUBLIC SvxLRSpaceItem : public SfxPoolItem { short nFirstLineOfst; // First-line indent _always_ relative to nTxtLeft - long nTxtLeft; // We spend a USHORT + long nTxtLeft; // We spend a sal_uInt16 long nLeftMargin; // nLeft or the negative first-line indent long nRightMargin; // The unproblematic right edge diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx index caa2b625f9e9..2898e5ac9af2 100755 --- a/editeng/inc/editeng/outliner.hxx +++ b/editeng/inc/editeng/outliner.hxx @@ -900,7 +900,7 @@ public: virtual void DrawingTab( const Point& rStartPos, long nWidth, const String& rChar, - const SvxFont& rFont, USHORT nPara, xub_StrLen nIndex, BYTE nRightToLeft, + const SvxFont& rFont, sal_uInt16 nPara, xub_StrLen nIndex, sal_uInt8 nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, const Color& rOverlineColor, diff --git a/editeng/inc/editeng/svxacorr.hxx b/editeng/inc/editeng/svxacorr.hxx index cc5f7fb96169..d2a40e185bc3 100755 --- a/editeng/inc/editeng/svxacorr.hxx +++ b/editeng/inc/editeng/svxacorr.hxx @@ -251,7 +251,7 @@ public: // Execute an AutoCorrect. // Returns what has been executed, according to the above flags sal_uLong AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt, - xub_StrLen nPos, sal_Unicode cInsChar, sal_Bool bInsert ); + xub_StrLen nPos, sal_Unicode cInsChar, sal_Bool bInsert, Window* pFrameWin = NULL ); // Return for the autotext expansion the previous word, // AutoCorrect - corresponding algorithm diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index e0a8ea6ffb26..569a69e01cee 100755 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -187,7 +187,7 @@ private: public: ItemList(); - const SfxPoolItem* FindAttrib( USHORT nWhich ); + const SfxPoolItem* FindAttrib( sal_uInt16 nWhich ); const SfxPoolItem* First(); const SfxPoolItem* Next(); size_t Count() { return aItemPool.size(); }; diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 08459be67d71..920a88c61623 100755 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -2440,8 +2440,8 @@ void EditEngine::DrawingText( const Point&, const XubString&, sal_uInt16, sal_uI void EditEngine::DrawingTab( const Point& /*rStartPos*/, long /*nWidth*/, const String& /*rChar*/, const SvxFont& /*rFont*/, - USHORT /*nPara*/, xub_StrLen /*nIndex*/, - BYTE /*nRightToLeft*/, bool /*bEndOfLine*/, + sal_uInt16 /*nPara*/, xub_StrLen /*nIndex*/, + sal_uInt8 /*nRightToLeft*/, bool /*bEndOfLine*/, bool /*bEndOfParagraph*/, const Color& /*rOverlineColor*/, const Color& /*rTextLineColor*/) { diff --git a/editeng/source/editeng/eehtml.cxx b/editeng/source/editeng/eehtml.cxx index 2a59819202c8..955703ba8566 100755 --- a/editeng/source/editeng/eehtml.cxx +++ b/editeng/source/editeng/eehtml.cxx @@ -650,8 +650,8 @@ void EditHTMLParser::ImpSetStyleSheet( sal_uInt16 nHLevel ) if ( !nHLevel || ((nHLevel >= 1) && (nHLevel <= 6)) ) { SvxULSpaceItem aULSpaceItem( EE_PARA_ULSPACE ); - aULSpaceItem.SetUpper( (USHORT)OutputDevice::LogicToLogic( 42, MAP_10TH_MM, eUnit ) ); - aULSpaceItem.SetLower( (USHORT)OutputDevice::LogicToLogic( 35, MAP_10TH_MM, eUnit ) ); + aULSpaceItem.SetUpper( (sal_uInt16)OutputDevice::LogicToLogic( 42, MAP_10TH_MM, eUnit ) ); + aULSpaceItem.SetLower( (sal_uInt16)OutputDevice::LogicToLogic( 35, MAP_10TH_MM, eUnit ) ); aItems.Put( aULSpaceItem ); } } diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 3e4982e6c140..6b79488eaced 100755 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -990,7 +990,7 @@ public: sal_Int32 GetSpaceBeforeAndMinLabelWidth( const ContentNode *pNode, sal_Int32 *pnSpaceBefore = 0, sal_Int32 *pnMinLabelWidth = 0 ) const; const SvxLRSpaceItem& GetLRSpaceItem( ContentNode* pNode ); - SvxAdjust GetJustification( USHORT nPara ) const; + SvxAdjust GetJustification( sal_uInt16 nPara ) const; SvxCellJustifyMethod GetJustifyMethod( sal_uInt16 nPara ) const; SvxCellVerJustify GetVerJustification( sal_uInt16 nPara ) const; diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index dbd36e4e1632..92b588ffe4fb 100755 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -1675,7 +1675,7 @@ void ImpEditEngine::InitScriptTypes( sal_uInt16 nPara ) { ParaPortion* pParaPortion = GetParaPortions().SaveGetObject( nPara ); ScriptTypePosInfos& rTypes = pParaPortion->aScriptInfos; - rTypes.Remove( 0, rTypes.Count() ); + rTypes.clear(); ContentNode* pNode = pParaPortion->GetNode(); if ( pNode->Len() ) @@ -2088,14 +2088,14 @@ SvxAdjust ImpEditEngine::GetJustification( sal_uInt16 nPara ) const return eJustification; } -SvxCellJustifyMethod ImpEditEngine::GetJustifyMethod( USHORT nPara ) const +SvxCellJustifyMethod ImpEditEngine::GetJustifyMethod( sal_uInt16 nPara ) const { const SvxJustifyMethodItem& rItem = static_cast( GetParaAttrib(nPara, EE_PARA_JUST_METHOD)); return static_cast(rItem.GetEnumValue()); } -SvxCellVerJustify ImpEditEngine::GetVerJustification( USHORT nPara ) const +SvxCellVerJustify ImpEditEngine::GetVerJustification( sal_uInt16 nPara ) const { const SvxVerJustifyItem& rItem = static_cast( GetParaAttrib(nPara, EE_PARA_VER_JUST)); @@ -2540,7 +2540,7 @@ void ImpEditEngine::ImpRemoveParagraph( sal_uInt16 nPara ) } EditPaM ImpEditEngine::AutoCorrect( const EditSelection& rCurSel, xub_Unicode c, - bool bOverwrite, Window* pFrameWin ) + sal_Bool bOverwrite, Window* pFrameWin ) { EditSelection aSel( rCurSel ); #ifndef SVX_LIGHT diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 9816971a6eeb..75861a39580a 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2013,7 +2013,7 @@ void ImpEditEngine::ImpAdjustBlocks( ParaPortion* pParaPortion, EditLine* pLine, { EditPaM aPaM( pNode, nChar+1 ); LanguageType eLang = GetLanguage(aPaM); - USHORT nScript = GetScriptType(aPaM); + sal_uInt16 nScript = GetScriptType(aPaM); if ( MsLangId::getPrimaryLanguage( eLang) == LANGUAGE_ARABIC_PRIMARY_ONLY ) // Arabic script is handled later. continue; @@ -2083,13 +2083,12 @@ void ImpEditEngine::ImpAdjustBlocks( ParaPortion* pParaPortion, EditLine* pLine, // Letztes Zeichen wird schon nicht mehr beachtet... for ( sal_uInt16 n = 0; n < aPositions.Count(); n++ ) { - USHORT nChar = aPositions[n]; + sal_uInt16 nChar = aPositions[n]; if ( nChar < nLastChar ) { sal_uInt16 nPortionStart, nPortion; nPortion = pParaPortion->GetTextPortions().FindPortion( nChar, nPortionStart, true ); TextPortion* pLastPortion = pParaPortion->GetTextPortions()[ nPortion ]; - USHORT nPortionEnd = nPortionStart + pLastPortion->GetLen(); // Die Breite der Portion: pLastPortion->GetSize().Width() += nMore4Everyone; diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 286ed8c556ad..df9ec282f467 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1563,10 +1563,10 @@ void SvxShadowItem::SetEnumValue( sal_uInt16 nVal ) SvxBorderLine::SvxBorderLine( const Color *pCol, sal_uInt16 nOut, sal_uInt16 nIn, sal_uInt16 nDist, SvxBorderStyle nStyle ) -: nOutWidth( nOut ) +: m_nStyle( nStyle ) +, nOutWidth( nOut ) , nInWidth ( nIn ) , nDistance( nDist ) -, m_nStyle( nStyle ) { if ( pCol ) aColor = *pCol; @@ -1935,7 +1935,8 @@ sal_Bool SvxBoxItem::LineToSvxLine(const ::com::sun::star::table::BorderLine& rL return lcl_lineToSvxLine(rLine, rSvxLine, bConvert); } -bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) +sal_Bool +SvxBoxItem::LineToSvxLine(const ::com::sun::star::table::BorderLine2& rLine, SvxBorderLine& rSvxLine, sal_Bool bConvert) { const bool bRet(lcl_lineToSvxLine(rLine, rSvxLine, bConvert)); @@ -1983,7 +1984,7 @@ lcl_extractBorderLine(const uno::Any& rAny, table::BorderLine2& rLine) template bool -lcl_setLine(const uno::Any& rAny, Item& rItem, USHORT nLine, const bool bConvert) +lcl_setLine(const uno::Any& rAny, Item& rItem, sal_uInt16 nLine, const bool bConvert) { bool bDone = false; table::BorderLine2 aBorderLine; @@ -1999,7 +2000,7 @@ lcl_setLine(const uno::Any& rAny, Item& rItem, USHORT nLine, const bool bConvert } -bool SvxBoxItem::PutValue( const uno::Any& rVal, BYTE nMemberId ) +bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) { bool bConvert = 0!=(nMemberId&CONVERT_TWIPS); sal_uInt16 nLine = BOX_LINE_TOP; diff --git a/editeng/source/items/justifyitem.cxx b/editeng/source/items/justifyitem.cxx index d1e31d250e2f..ebe4e333e6aa 100755 --- a/editeng/source/items/justifyitem.cxx +++ b/editeng/source/items/justifyitem.cxx @@ -52,14 +52,14 @@ using namespace ::com::sun::star; -SvxHorJustifyItem::SvxHorJustifyItem( const USHORT nId ) : - SfxEnumItem( nId, (USHORT)SVX_HOR_JUSTIFY_STANDARD ) +SvxHorJustifyItem::SvxHorJustifyItem( const sal_uInt16 nId ) : + SfxEnumItem( nId, (sal_uInt16)SVX_HOR_JUSTIFY_STANDARD ) { } SvxHorJustifyItem::SvxHorJustifyItem( const SvxCellHorJustify eJustify, - const USHORT nId ) : - SfxEnumItem( nId, (USHORT)eJustify ) + const sal_uInt16 nId ) : + SfxEnumItem( nId, (sal_uInt16)eJustify ) { } @@ -155,7 +155,7 @@ bool SvxHorJustifyItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) case table::CellHoriJustify_REPEAT: eSvx = SVX_HOR_JUSTIFY_REPEAT; break; default: ; //prevent warning } - SetValue( (USHORT)eSvx ); + SetValue( (sal_uInt16)eSvx ); } break; case MID_HORJUST_ADJUST: @@ -175,14 +175,14 @@ bool SvxHorJustifyItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) case style::ParagraphAdjust_BLOCK: eSvx = SVX_HOR_JUSTIFY_BLOCK; break; case style::ParagraphAdjust_CENTER: eSvx = SVX_HOR_JUSTIFY_CENTER; break; } - SetValue( (USHORT)eSvx ); + SetValue( (sal_uInt16)eSvx ); } } return true; } -XubString SvxHorJustifyItem::GetValueText( USHORT nVal ) const +XubString SvxHorJustifyItem::GetValueText( sal_uInt16 nVal ) const { DBG_ASSERT( nVal <= SVX_HOR_JUSTIFY_REPEAT, "enum overflow!" ); return EE_RESSTR(RID_SVXITEMS_HORJUST_STANDARD + nVal); @@ -195,28 +195,28 @@ SfxPoolItem* SvxHorJustifyItem::Clone( SfxItemPool* ) const } -SfxPoolItem* SvxHorJustifyItem::Create( SvStream& rStream, USHORT ) const +SfxPoolItem* SvxHorJustifyItem::Create( SvStream& rStream, sal_uInt16 ) const { - USHORT nVal; + sal_uInt16 nVal; rStream >> nVal; return new SvxHorJustifyItem( (SvxCellHorJustify)nVal, Which() ); } -USHORT SvxHorJustifyItem::GetValueCount() const +sal_uInt16 SvxHorJustifyItem::GetValueCount() const { return SVX_HOR_JUSTIFY_REPEAT + 1; // Last Enum value + 1 } -SvxVerJustifyItem::SvxVerJustifyItem( const USHORT nId ) : - SfxEnumItem( nId, (USHORT)SVX_VER_JUSTIFY_STANDARD ) +SvxVerJustifyItem::SvxVerJustifyItem( const sal_uInt16 nId ) : + SfxEnumItem( nId, (sal_uInt16)SVX_VER_JUSTIFY_STANDARD ) { } SvxVerJustifyItem::SvxVerJustifyItem( const SvxCellVerJustify eJustify, - const USHORT nId ) : - SfxEnumItem( nId, (USHORT)eJustify ) + const sal_uInt16 nId ) : + SfxEnumItem( nId, (sal_uInt16)eJustify ) { } @@ -301,7 +301,7 @@ bool SvxVerJustifyItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) case style::VerticalAlignment_BOTTOM: eSvx = SVX_VER_JUSTIFY_BOTTOM; break; default:; } - SetValue( (USHORT)eSvx ); + SetValue( (sal_uInt16)eSvx ); break; } default: @@ -319,7 +319,7 @@ bool SvxVerJustifyItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) case table::CellVertJustify2::BLOCK: eSvx = SVX_VER_JUSTIFY_BLOCK; break; default: ; //prevent warning } - SetValue( (USHORT)eSvx ); + SetValue( (sal_uInt16)eSvx ); break; } } @@ -328,7 +328,7 @@ bool SvxVerJustifyItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) } -XubString SvxVerJustifyItem::GetValueText( USHORT nVal ) const +XubString SvxVerJustifyItem::GetValueText( sal_uInt16 nVal ) const { DBG_ASSERT( nVal <= SVX_VER_JUSTIFY_BOTTOM, "enum overflow!" ); return EE_RESSTR(RID_SVXITEMS_VERJUST_STANDARD + nVal); @@ -341,29 +341,29 @@ SfxPoolItem* SvxVerJustifyItem::Clone( SfxItemPool* ) const } -SfxPoolItem* SvxVerJustifyItem::Create( SvStream& rStream, USHORT ) const +SfxPoolItem* SvxVerJustifyItem::Create( SvStream& rStream, sal_uInt16 ) const { - USHORT nVal; + sal_uInt16 nVal; rStream >> nVal; return new SvxVerJustifyItem( (SvxCellVerJustify)nVal, Which() ); } -USHORT SvxVerJustifyItem::GetValueCount() const +sal_uInt16 SvxVerJustifyItem::GetValueCount() const { return SVX_VER_JUSTIFY_BOTTOM + 1; // Last Enum value + 1 } -SvxJustifyMethodItem::SvxJustifyMethodItem( const USHORT nId ) : - SfxEnumItem( nId, (USHORT)SVX_JUSTIFY_METHOD_AUTO ) +SvxJustifyMethodItem::SvxJustifyMethodItem( const sal_uInt16 nId ) : + SfxEnumItem( nId, (sal_uInt16)SVX_JUSTIFY_METHOD_AUTO ) { } SvxJustifyMethodItem::SvxJustifyMethodItem( const SvxCellJustifyMethod eJustify, - const USHORT nId ) : - SfxEnumItem( nId, (USHORT)eJustify ) + const sal_uInt16 nId ) : + SfxEnumItem( nId, (sal_uInt16)eJustify ) { } @@ -421,12 +421,12 @@ bool SvxJustifyMethodItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId break; default:; } - SetValue(static_cast(eSvx)); + SetValue(static_cast(eSvx)); return true; } -XubString SvxJustifyMethodItem::GetValueText( USHORT nVal ) const +XubString SvxJustifyMethodItem::GetValueText( sal_uInt16 nVal ) const { DBG_ASSERT( nVal <= SVX_VER_JUSTIFY_BOTTOM, "enum overflow!" ); return EE_RESSTR(RID_SVXITEMS_JUSTMETHOD_AUTO + nVal); @@ -439,15 +439,15 @@ SfxPoolItem* SvxJustifyMethodItem::Clone( SfxItemPool* ) const } -SfxPoolItem* SvxJustifyMethodItem::Create( SvStream& rStream, USHORT ) const +SfxPoolItem* SvxJustifyMethodItem::Create( SvStream& rStream, sal_uInt16 ) const { - USHORT nVal; + sal_uInt16 nVal; rStream >> nVal; return new SvxJustifyMethodItem( (SvxCellJustifyMethod)nVal, Which() ); } -USHORT SvxJustifyMethodItem::GetValueCount() const +sal_uInt16 SvxJustifyMethodItem::GetValueCount() const { return SVX_JUSTIFY_METHOD_DISTRIBUTE + 1; // Last Enum value + 1 } diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index bfac7ca12c7b..6e22a05110aa 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -614,7 +614,7 @@ int SvxPostureItem::HasBoolValue() const // ----------------------------------------------------------------------- -BOOL SvxPostureItem::GetBoolValue() const +sal_Bool SvxPostureItem::GetBoolValue() const { return ( (FontItalic)GetValue() >= ITALIC_OBLIQUE ); } diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index ecaf3918ff57..5fbaea20b9eb 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -669,7 +669,7 @@ sal_Bool SvxAutoCorrect::FnAddNonBrkSpace( ; if(INetURLObject::CompareProtocolScheme(rTxt.Copy(nSttWdPos + (bWasWordDelim ? 1 : 0), nEndPos - nSttWdPos + 1)) != INET_PROT_NOT_VALID) { - return FALSE; + return sal_False; } diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx index a8361f4eb64d..d5cff87239c5 100644 --- a/editeng/source/misc/txtrange.cxx +++ b/editeng/source/misc/txtrange.cxx @@ -305,7 +305,7 @@ void SvxBoundArgs::NoteRange( sal_Bool bToggle ) aBoolArr.erase( aBoolArr.begin() + nMaxIdx, aBoolArr.begin() + (nMaxIdx + nDiff) ); } DBG_ASSERT( nMaxIdx < aBoolArr.size(), "NoteRange: Too much deleted" ); - aBoolArr[ nMaxIdx ] ^= bToggle; + aBoolArr[ nMaxIdx ] = aBoolArr[ nMaxIdx ] ^ bToggle; } } diff --git a/editeng/source/outliner/outleeng.hxx b/editeng/source/outliner/outleeng.hxx index 63ee538e2e42..59124b83042d 100755 --- a/editeng/source/outliner/outleeng.hxx +++ b/editeng/source/outliner/outleeng.hxx @@ -68,7 +68,7 @@ public: virtual void DrawingTab( const Point& rStartPos, long nWidth, const String& rChar, - const SvxFont& rFont, USHORT nPara, xub_StrLen nIndex, BYTE nRightToLeft, + const SvxFont& rFont, sal_uInt16 nPara, xub_StrLen nIndex, sal_uInt8 nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, const Color& rOverlineColor, diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 1e1a5d39c804..86b93a2eef19 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -922,7 +922,7 @@ Font Outliner::ImpCalcBulletFont( sal_uInt16 nPara ) const } // Use original scale... - USHORT nStretchX, nStretchY; + sal_uInt16 nStretchX, nStretchY; const_cast(this)->GetGlobalCharStretching(nStretchX, nStretchY); sal_uInt16 nScale = pFmt->GetBulletRelSize() * nStretchY / 100; @@ -1144,7 +1144,7 @@ void Outliner::InvalidateBullet( Paragraph* /*pPara*/, sal_uLong nPara ) for ( size_t i = 0, n = aViewList.size(); i < n; ++i ) { OutlinerView* pView = aViewList[ i ]; - Point aPos( pView->pEditView->GetWindowPosTopLeft((USHORT)nPara ) ); + Point aPos( pView->pEditView->GetWindowPosTopLeft((sal_uInt16)nPara ) ); Rectangle aRect( pView->GetOutputArea() ); aRect.Right() = aPos.X(); aRect.Top() = aPos.Y(); @@ -1815,7 +1815,7 @@ void Outliner::DrawingText( const Point& rStartPos, const XubString& rText, sal_ } void Outliner::DrawingTab( const Point& rStartPos, long nWidth, const String& rChar, const SvxFont& rFont, - USHORT nPara, xub_StrLen nIndex, BYTE nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, + sal_uInt16 nPara, xub_StrLen nIndex, sal_uInt8 nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, const Color& rOverlineColor, const Color& rTextLineColor) { if(aDrawPortionHdl.IsSet()) diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index fed48c72ec66..b25a6b884ee0 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -269,11 +269,8 @@ sal_Bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, Window* pFrameWin ) } } -<<<<<<< HEAD - return bKeyProcessed ? TRUE : pEditView->PostKeyEvent( rKEvt, pFrameWin ); -======= - return bKeyProcessed ? sal_True : pEditView->PostKeyEvent( rKEvt ); ->>>>>>> ooo/DEV300_m101 + return bKeyProcessed ? sal_True : pEditView->PostKeyEvent( rKEvt, pFrameWin ); + } @@ -321,11 +318,7 @@ sal_uLong OutlinerView::ImpCheckMousePos(const Point& rPosPix, MouseTarget& reTa return nPara; } -<<<<<<< HEAD -BOOL OutlinerView::MouseMove( const MouseEvent& rMEvt ) -======= -sal_Bool __EXPORT OutlinerView::MouseMove( const MouseEvent& rMEvt ) ->>>>>>> ooo/DEV300_m101 +sal_Bool OutlinerView::MouseMove( const MouseEvent& rMEvt ) { DBG_CHKTHIS(OutlinerView,0); @@ -342,11 +335,7 @@ sal_Bool __EXPORT OutlinerView::MouseMove( const MouseEvent& rMEvt ) } -<<<<<<< HEAD -BOOL OutlinerView::MouseButtonDown( const MouseEvent& rMEvt ) -======= -sal_Bool __EXPORT OutlinerView::MouseButtonDown( const MouseEvent& rMEvt ) ->>>>>>> ooo/DEV300_m101 +sal_Bool OutlinerView::MouseButtonDown( const MouseEvent& rMEvt ) { DBG_CHKTHIS(OutlinerView,0); if ( ( pOwner->ImplGetOutlinerMode() == OUTLINERMODE_TEXTOBJECT ) || pEditView->GetEditEngine()->IsInSelectionMode() ) @@ -370,13 +359,8 @@ sal_Bool __EXPORT OutlinerView::MouseButtonDown( const MouseEvent& rMEvt ) sal_uLong nEndPara = nPara; if ( bHasChilds && pOwner->pParaList->HasVisibleChilds(pPara) ) nEndPara += pOwner->pParaList->GetChildCount( pPara ); -<<<<<<< HEAD // The selection is inverted, so that EditEngine does not scroll - ESelection aSel((USHORT)nEndPara, 0xffff,(USHORT)nPara, 0 ); -======= - // umgekehrt rum selektieren, damit EditEngine nicht scrollt ESelection aSel((sal_uInt16)nEndPara, 0xffff,(sal_uInt16)nPara, 0 ); ->>>>>>> ooo/DEV300_m101 pEditView->SetSelection( aSel ); } else if( rMEvt.GetClicks() == 2 && bHasChilds ) @@ -402,11 +386,7 @@ sal_Bool __EXPORT OutlinerView::MouseButtonDown( const MouseEvent& rMEvt ) } -<<<<<<< HEAD -BOOL OutlinerView::MouseButtonUp( const MouseEvent& rMEvt ) -======= -sal_Bool __EXPORT OutlinerView::MouseButtonUp( const MouseEvent& rMEvt ) ->>>>>>> ooo/DEV300_m101 +sal_Bool OutlinerView::MouseButtonUp( const MouseEvent& rMEvt ) { DBG_CHKTHIS(OutlinerView,0); if ( ( pOwner->ImplGetOutlinerMode() == OUTLINERMODE_TEXTOBJECT ) || pEditView->GetEditEngine()->IsInSelectionMode() ) @@ -570,21 +550,11 @@ void OutlinerView::SetAttribs( const SfxItemSet& rAttrs ) pEditView->SetAttribs( rAttrs ); -<<<<<<< HEAD // Update Bullet text - for( USHORT nPara= aSel.nStartPara; nPara <= aSel.nEndPara; nPara++ ) - { - pOwner->ImplCheckNumBulletItem( nPara ); - // update following paras as well, numbering depends on - // previous paras - pOwner->ImplCalcBulletText( nPara, TRUE, FALSE ); -======= - // Bullet-Texte aktualisieren for( sal_uInt16 nPara= aSel.nStartPara; nPara <= aSel.nEndPara; nPara++ ) { pOwner->ImplCheckNumBulletItem( nPara ); pOwner->ImplCalcBulletText( nPara, sal_False, sal_False ); ->>>>>>> ooo/DEV300_m101 if( !pOwner->IsInUndo() && pOwner->IsUndoEnabled() ) pOwner->InsertUndo( new OutlinerUndoCheckPara( pOwner, nPara ) ); @@ -739,19 +709,8 @@ void OutlinerView::Indent( short nDiff ) } } -<<<<<<< HEAD - USHORT nParas = (USHORT)pOwner->pParaList->GetParagraphCount(); - for ( USHORT n = aSel.nEndPara+1; n < nParas; n++ ) -======= - // MT 19.08.99: War mal fuer Optimierung (outliner.cxx#1.193), - // hat aber zu zuviel Wartungsaufwand / doppelten Funktionen gefuehrt - // und zu wenig gebracht: - // pOwner->ImpSetBulletTextsFrom( aSel.nStartPara+1, nMinDepth ); - // Wird jetzt direkt in Schleife mit ImplCalcBulletText() erledigt. - // Jetzt fehlen nur noch die folgenden Ansaetze, die davon betroffen sind. sal_uInt16 nParas = (sal_uInt16)pOwner->pParaList->GetParagraphCount(); for ( sal_uInt16 n = aSel.nEndPara+1; n < nParas; n++ ) ->>>>>>> ooo/DEV300_m101 { Paragraph* pPara = pOwner->pParaList->GetParagraph( n ); if ( pPara->GetDepth() < nMinDepth ) @@ -1194,13 +1153,8 @@ sal_uInt16 OutlinerView::ImpCalcSelectedPages( sal_Bool bIncludeFirstSelected ) sal_uInt16 nFirstPage = 0xFFFF; sal_uInt16 nStartPara = aSel.nStartPara; if ( !bIncludeFirstSelected ) -<<<<<<< HEAD nStartPara++; // All paragraphs after StartPara will be deleted - for ( USHORT nPara = nStartPara; nPara <= aSel.nEndPara; nPara++ ) -======= - nStartPara++; // alle nach StartPara kommenden Absaetze werden geloescht for ( sal_uInt16 nPara = nStartPara; nPara <= aSel.nEndPara; nPara++ ) ->>>>>>> ooo/DEV300_m101 { Paragraph* pPara = pOwner->pParaList->GetParagraph( nPara ); DBG_ASSERT(pPara, "ImpCalcSelectedPages: invalid Selection? "); @@ -1262,14 +1216,8 @@ void OutlinerView::ToggleBullets() // #i100014# // It is not a good idea to substract 1 from a count and cast the result -<<<<<<< HEAD - // to USHORT without check, if the count is 0. - USHORT nParaCount = (USHORT) (pOwner->pParaList->GetParagraphCount()); -======= // to sal_uInt16 without check, if the count is 0. sal_uInt16 nParaCount = (sal_uInt16) (pOwner->pParaList->GetParagraphCount()); - // <-- ->>>>>>> ooo/DEV300_m101 pOwner->ImplCheckParagraphs( aSel.nStartPara, nParaCount ); pOwner->pEditEngine->QuickMarkInvalid( ESelection( aSel.nStartPara, 0, nParaCount, 0 ) ); @@ -1301,14 +1249,9 @@ void OutlinerView::EnableBullets() // #i100014# // It is not a good idea to substract 1 from a count and cast the result -<<<<<<< HEAD - // to USHORT without check, if the count is 0. - USHORT nParaCount = (USHORT) (pOwner->pParaList->GetParagraphCount()); -======= // to sal_uInt16 without check, if the count is 0. sal_uInt16 nParaCount = (sal_uInt16) (pOwner->pParaList->GetParagraphCount()); - // <-- ->>>>>>> ooo/DEV300_m101 + pOwner->ImplCheckParagraphs( aSel.nStartPara, nParaCount ); pOwner->pEditEngine->QuickMarkInvalid( ESelection( aSel.nStartPara, 0, nParaCount, 0 ) ); diff --git a/editeng/source/outliner/paralist.cxx b/editeng/source/outliner/paralist.cxx index f8ac32e115e4..c09e0f22d90f 100644 --- a/editeng/source/outliner/paralist.cxx +++ b/editeng/source/outliner/paralist.cxx @@ -139,14 +139,14 @@ void ParagraphList::Append( Paragraph* pPara) maEntries.push_back(pPara); } -void ParagraphList::Insert( Paragraph* pPara, ULONG nAbsPos) +void ParagraphList::Insert( Paragraph* pPara, sal_uLong nAbsPos) { OSL_ASSERT(nAbsPos != ULONG_MAX && nAbsPos <= maEntries.size()); maEntries.insert(maEntries.begin()+nAbsPos,pPara); } -void ParagraphList::Remove( ULONG nPara ) +void ParagraphList::Remove( sal_uLong nPara ) { OSL_ASSERT(nPara < maEntries.size()); diff --git a/editeng/source/outliner/paralist.hxx b/editeng/source/outliner/paralist.hxx index b693a9e5fc62..29398c24239e 100644 --- a/editeng/source/outliner/paralist.hxx +++ b/editeng/source/outliner/paralist.hxx @@ -45,7 +45,7 @@ public: return maEntries.size(); } - Paragraph* GetParagraph( ULONG nPos ) const + Paragraph* GetParagraph( sal_uLong nPos ) const { return nPos < maEntries.size() ? maEntries[nPos] : NULL; } @@ -54,9 +54,9 @@ public: sal_uLong GetVisPos( Paragraph* pParagraph ) const; void Append( Paragraph *pPara); - void Insert( Paragraph* pPara, ULONG nAbsPos); - void Remove( ULONG nPara ); - void MoveParagraphs( ULONG nStart, ULONG nDest, ULONG nCount ); + void Insert( Paragraph* pPara, sal_uLong nAbsPos); + void Remove( sal_uLong nPara ); + void MoveParagraphs( sal_uLong nStart, sal_uLong nDest, sal_uLong nCount ); Paragraph* NextVisible( Paragraph* ) const; Paragraph* PrevVisible( Paragraph* ) const; diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx index 611d4907504e..6798b0f8d6d2 100644 --- a/editeng/source/rtf/rtfitem.cxx +++ b/editeng/source/rtf/rtfitem.cxx @@ -217,15 +217,9 @@ void SvxRTFParser::SetScriptAttr( RTF_CharTypeDef eType, SfxItemSet& rSet, void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet ) { -<<<<<<< HEAD DBG_ASSERT( pSet, "A SfxItemSet has to be provided as argument!" ); - int bFirstToken = TRUE, bWeiter = TRUE; - USHORT nStyleNo = 0; // default -======= - DBG_ASSERT( pSet, "Es muss ein SfxItemSet uebergeben werden!" ); int bFirstToken = sal_True, bWeiter = sal_True; sal_uInt16 nStyleNo = 0; // default ->>>>>>> ooo/DEV300_m101 FontUnderline eUnderline; FontUnderline eOverline; FontEmphasisMark eEmphasis; @@ -307,53 +301,15 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet ) } else { -<<<<<<< HEAD - nStyleNo = -1 == nTokenValue ? 0 : USHORT(nTokenValue); - // Set the StyleNumber for the current style on - // the attribute stack - SvxRTFItemStackType* pAkt = aAttrStack.Top(); -======= nStyleNo = -1 == nTokenValue ? 0 : sal_uInt16(nTokenValue); // setze am akt. auf dem AttrStack stehenden Style die // StyleNummer SvxRTFItemStackType* pAkt = aAttrStack.empty() ? 0 : aAttrStack.back(); ->>>>>>> ooo/DEV300_m101 if( !pAkt ) break; pAkt->nStyleNo = sal_uInt16( nStyleNo ); -<<<<<<< HEAD -======= -#if 0 -// JP 05.09.95: zuruecksetzen der Style-Attribute fuehrt nur zu Problemen. -// Es muss reichen, wenn das ueber pard/plain erfolgt -// ansonsten Bugdoc 15304.rtf - nach nur "\pard" falscher Font !! - - SvxRTFStyleType* pStyle = aStyleTbl.Get( pAkt->nStyleNo ); - if( pStyle && pStyle->aAttrSet.Count() ) - { - //JP 07.07.95: - // alle Attribute, die in der Vorlage gesetzt werden - // auf defaults setzen. In RTF werden die Attribute - // der Vorlage danach ja wiederholt. - // WICHTIG: Attribute die in der Vorlage definiert - // sind, werden zurueckgesetzt !!!! - // pAkt->aAttrSet.Put( pStyle->aAttrSet ); - - SfxItemIter aIter( pStyle->aAttrSet ); - SfxItemPool* pPool = pStyle->aAttrSet.GetPool(); - sal_uInt16 nWh = aIter.GetCurItem()->Which(); - while( sal_True ) - { - pAkt->aAttrSet.Put( pPool->GetDefaultItem( nWh )); - if( aIter.IsAtEnd() ) - break; - nWh = aIter.NextItem()->Which(); - } - } -#endif ->>>>>>> ooo/DEV300_m101 } break; @@ -505,13 +461,8 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet ) nTokenValue = short( 100L * aLSpace.GetLineHeight() / long( nTokenValue ) ); -<<<<<<< HEAD if( nTokenValue > 200 ) // Data value for PropLnSp nTokenValue = 200; // is one BYTE !!! -======= - if( nTokenValue > 200 ) // Datenwert fuer PropLnSp - nTokenValue = 200; // ist ein sal_uInt8 !!! ->>>>>>> ooo/DEV300_m101 aLSpace.SetPropLineSpace( (const sal_uInt8)nTokenValue ); aLSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; @@ -1011,9 +962,7 @@ ATTR_SETOVERLINE: break; //#i12501# While cb is clearly documented in the rtf spec, word //doesn't accept it at all -<<<<<<< HEAD - -======= +#if 0 case RTF_CB: if( PLAINID->nBgColor ) { @@ -1022,7 +971,7 @@ ATTR_SETOVERLINE: } break; #endif ->>>>>>> ooo/DEV300_m101 + case RTF_LANG: if( PLAINID->nLanguage ) { @@ -1187,13 +1136,8 @@ ATTR_SETEMPHASIS: case RTF_SWG_ESCPROP: { -<<<<<<< HEAD // Store percentage change! - BYTE nProp = BYTE( nTokenValue / 100 ); -======= - // prozentuale Veraenderung speichern ! sal_uInt8 nProp = sal_uInt8( nTokenValue / 100 ); ->>>>>>> ooo/DEV300_m101 short nEsc = 0; if( 1 == ( nTokenValue % 100 )) // Recognize own auto-flags! @@ -1250,10 +1194,6 @@ ATTR_SETEMPHASIS: if( RTF_SHDW_FCOL != GetNextToken() ) break; -<<<<<<< HEAD -======= -// sal_uInt16 nFillCol = sal_uInt16( nTokenValue ); ->>>>>>> ooo/DEV300_m101 Color aColor = GetColor( nCol ); @@ -1351,35 +1291,6 @@ ATTR_SETEMPHASIS: } bFirstToken = sal_False; } -<<<<<<< HEAD -======= - -/* - // teste Attribute gegen ihre Styles - if( IsChkStyleAttr() && pSet->Count() && !pInsPos->GetCntIdx() ) - { - SvxRTFStyleType* pStyle = aStyleTbl.Get( nStyleNo ); - if( pStyle && pStyle->aAttrSet.Count() ) - { - // alle Attribute, die schon vom Style definiert sind, aus dem - // akt. Set entfernen - const SfxPoolItem* pItem; - SfxItemIter aIter( *pSet ); - sal_uInt16 nWhich = aIter.GetCurItem()->Which(); - while( sal_True ) - { - if( SFX_ITEM_SET == pStyle->aAttrSet.GetItemState( - nWhich, sal_False, &pItem ) && *pItem == *aIter.GetCurItem()) - pSet->ClearItem( nWhich ); // loeschen - - if( aIter.IsAtEnd() ) - break; - nWhich = aIter.NextItem()->Which(); - } - } - } -*/ ->>>>>>> ooo/DEV300_m101 } void SvxRTFParser::ReadTabAttr( int nToken, SfxItemSet& rSet ) @@ -1432,27 +1343,16 @@ void SvxRTFParser::ReadTabAttr( int nToken, SfxItemSet& rSet ) nSkip = -2; else { -<<<<<<< HEAD - aTabStop.GetDecimal() = BYTE(nTokenValue & 0xff); - aTabStop.GetFill() = BYTE((nTokenValue >> 8) & 0xff); - // overwrite the closing parenthesis -======= aTabStop.GetDecimal() = sal_uInt8(nTokenValue & 0xff); aTabStop.GetFill() = sal_uInt8((nTokenValue >> 8) & 0xff); - // ueberlese noch die schliessende Klammer ->>>>>>> ooo/DEV300_m101 + // overwrite the closing parenthesis if (bMethodOwnsToken) GetNextToken(); } if( nSkip ) { -<<<<<<< HEAD SkipToken( nSkip ); // Ignore back again - bWeiter = FALSE; -======= - SkipToken( nSkip ); // Ignore wieder zurueck bWeiter = sal_False; ->>>>>>> ooo/DEV300_m101 } } break; @@ -1510,13 +1410,8 @@ void SvxRTFParser::ReadBorderAttr( int nToken, SfxItemSet& rSet, if( SFX_ITEM_SET == rSet.GetItemState( PARDID->nBox, sal_False, &pItem ) ) aAttr = *(SvxBoxItem*)pItem; -<<<<<<< HEAD SvxBorderLine aBrd( 0, DEF_LINE_WIDTH_0, 0, 0 ); // simple lines - int bWeiter = TRUE, nBorderTyp = 0; -======= - SvxBorderLine aBrd( 0, DEF_LINE_WIDTH_0, 0, 0 ); // einfache Linien int bWeiter = sal_True, nBorderTyp = 0; ->>>>>>> ooo/DEV300_m101 do { switch( nToken ) @@ -1765,13 +1660,8 @@ SETBORDERLINE: if( nSkip ) { -<<<<<<< HEAD SkipToken( nSkip ); // Ignore back again - bWeiter = FALSE; -======= - SkipToken( nSkip ); // Ignore wieder zurueck bWeiter = sal_False; ->>>>>>> ooo/DEV300_m101 } } break; @@ -1796,17 +1686,10 @@ inline sal_uInt32 CalcShading( sal_uInt32 nColor, sal_uInt32 nFillColor, sal_uIn void SvxRTFParser::ReadBackgroundAttr( int nToken, SfxItemSet& rSet, int bTableDef ) { -<<<<<<< HEAD // then read the border attribute - int bWeiter = TRUE; - USHORT nColor = USHRT_MAX, nFillColor = USHRT_MAX; - BYTE nFillValue = 0; -======= - // dann lese doch mal das BoderAttribut ein int bWeiter = sal_True; sal_uInt16 nColor = USHRT_MAX, nFillColor = USHRT_MAX; sal_uInt8 nFillValue = 0; ->>>>>>> ooo/DEV300_m101 sal_uInt16 nWh = ( nToken & ~0xff ) == RTF_CHRFMT ? PLAINID->nBgColor @@ -1929,11 +1812,7 @@ void SvxRTFParser::ReadBackgroundAttr( int nToken, SfxItemSet& rSet, // pard / plain abarbeiten void SvxRTFParser::RTFPardPlain( int bPard, SfxItemSet** ppSet ) { -<<<<<<< HEAD - if( !bNewGroup && aAttrStack.Top() ) // not at the beginning of a new group -======= if( !bNewGroup && !aAttrStack.empty() ) // not at the beginning of a new group ->>>>>>> ooo/DEV300_m101 { SvxRTFItemStackType* pAkt = aAttrStack.back(); @@ -1945,13 +1824,8 @@ void SvxRTFParser::RTFPardPlain( int bPard, SfxItemSet** ppSet ) { if( pAkt->aAttrSet.Count() || pAkt->pChildList || pAkt->nStyleNo ) { -<<<<<<< HEAD // open a new group - SvxRTFItemStackType* pNew = new SvxRTFItemStackType( *pAkt, *pInsPos, TRUE ); -======= - // eine neue Gruppe aufmachen SvxRTFItemStackType* pNew = new SvxRTFItemStackType( *pAkt, *pInsPos, sal_True ); ->>>>>>> ooo/DEV300_m101 pNew->SetRTFDefaults( GetRTFDefaults() ); // Set all until here valid attributes @@ -2079,13 +1953,8 @@ void SvxRTFParser::SetDefault( int nToken, int nValue ) case RTF_DEFTAB: if( PARDID->nTabStop ) { -<<<<<<< HEAD // RTF defines 720 twips as default - bIsSetDfltTab = TRUE; -======= - // RTF definiert 720 twips als default bIsSetDfltTab = sal_True; ->>>>>>> ooo/DEV300_m101 if( -1 == nValue || !nValue ) nValue = 720; @@ -2096,44 +1965,11 @@ void SvxRTFParser::SetDefault( int nToken, int nValue ) CalcValue(); nValue = nTokenValue; } -<<<<<<< HEAD // Calculate the ratio of default TabWidth / Tabs and // calculate the corresponding new number. // ?? how did one come up with 13 ?? - USHORT nAnzTabs = (SVX_TAB_DEFDIST * 13 ) / USHORT(nValue); -======= -#if 1 - /* - cmc: - This stuff looks a little hairy indeed, this should be totally - unnecessary where default tabstops are understood. Just make one - tabstop and stick the value in there, the first one is all that - matters. - - e.g. - - SvxTabStopItem aNewTab(1, sal_uInt16(nValue), SVX_TAB_ADJUST_DEFAULT, - PARDID->nTabStop); - ((SvxTabStop&)aNewTab[0]).GetAdjustment() = SVX_TAB_ADJUST_DEFAULT; - - - It must exist as a foul hack to support somebody that does not - have a true concept of default tabstops by making a tabsetting - result from the default tabstop, creating a lot of them all at - the default locations to give the effect of the first real - default tabstop being in use just in case the receiving - application doesn't do that for itself. - */ -#endif - - // Verhaeltnis der def. TabWidth / Tabs errechnen und - // enstsprechend die neue Anzahl errechnen. -/*-----------------14.12.94 19:32------------------- - ?? wie kommt man auf die 13 ?? ---------------------------------------------------*/ sal_uInt16 nAnzTabs = (SVX_TAB_DEFDIST * 13 ) / sal_uInt16(nValue); ->>>>>>> ooo/DEV300_m101 /* cmc, make sure we have at least one, or all hell breaks loose in everybodies exporters, #i8247# @@ -2141,13 +1977,8 @@ void SvxRTFParser::SetDefault( int nToken, int nValue ) if (nAnzTabs < 1) nAnzTabs = 1; -<<<<<<< HEAD // we want Defaulttabs - SvxTabStopItem aNewTab( nAnzTabs, USHORT(nValue), -======= - // wir wollen Defaulttabs SvxTabStopItem aNewTab( nAnzTabs, sal_uInt16(nValue), ->>>>>>> ooo/DEV300_m101 SVX_TAB_ADJUST_DEFAULT, PARDID->nTabStop ); while( nAnzTabs ) ((SvxTabStop&)aNewTab[ --nAnzTabs ]).GetAdjustment() = SVX_TAB_ADJUST_DEFAULT; diff --git a/fpicker/source/unx/gnome/SalGtkPicker.cxx b/fpicker/source/unx/gnome/SalGtkPicker.cxx index 403e139485b4..94671521a6fc 100755 --- a/fpicker/source/unx/gnome/SalGtkPicker.cxx +++ b/fpicker/source/unx/gnome/SalGtkPicker.cxx @@ -223,46 +223,6 @@ gint RunDialog::run() return nStatus; } -static void lcl_setGTKLanguage(const uno::Reference& xServiceMgr) -{ - static bool bSet = false; - if (bSet) - return; - - OUString sUILocale; - try - { - uno::Reference xConfigMgr = - uno::Reference(xServiceMgr->createInstance( - OUString::createFromAscii("com.sun.star.configuration.ConfigurationProvider")), - UNO_QUERY_THROW ); - - Sequence< Any > theArgs(1); - theArgs[ 0 ] <<= OUString::createFromAscii("org.openoffice.Office.Linguistic/General"); - - uno::Reference< container::XNameAccess > xNameAccess = - uno::Reference< container::XNameAccess >(xConfigMgr->createInstanceWithArguments( - OUString::createFromAscii("com.sun.star.configuration.ConfigurationAccess"), theArgs ), - UNO_QUERY_THROW ); - - if (xNameAccess.is()) - xNameAccess->getByName(OUString::createFromAscii("UILocale")) >>= sUILocale; - } catch (...) {} - - if (sUILocale.getLength()) - { - sUILocale = sUILocale.replace('-', '_'); - rtl::OUString envVar(RTL_CONSTASCII_USTRINGPARAM("LANGUAGE")); - osl_setEnvironment(envVar.pData, sUILocale.pData); - } - bSet = true; -} - -SalGtkPicker::SalGtkPicker(const uno::Reference& xServiceMgr) : m_pDialog(0) -{ - lcl_setGTKLanguage(xServiceMgr); -} - static void lcl_setGTKLanguage(const uno::Reference& xServiceMgr) { static bool bSet = false; diff --git a/framework/Library_fwe.mk b/framework/Library_fwe.mk index 5d30d108cde6..1c9271192f04 100755 --- a/framework/Library_fwe.mk +++ b/framework/Library_fwe.mk @@ -54,7 +54,6 @@ $(eval $(call gb_Library_add_linked_libs,fwe,\ tl \ utl \ vcl \ - vos3 \ $(gb_STDLIBS) \ )) diff --git a/framework/Library_fwi.mk b/framework/Library_fwi.mk index 046c7230e35f..1d4bb80b62d5 100755 --- a/framework/Library_fwi.mk +++ b/framework/Library_fwi.mk @@ -57,7 +57,6 @@ $(eval $(call gb_Library_add_linked_libs,fwi,\ tl \ utl \ vcl \ - vos3 \ $(gb_STDLIBS) \ )) diff --git a/framework/Library_fwm.mk b/framework/Library_fwm.mk index dbd486c40de1..a0d53102ab7b 100755 --- a/framework/Library_fwm.mk +++ b/framework/Library_fwm.mk @@ -52,7 +52,6 @@ $(eval $(call gb_Library_add_linked_libs,fwm,\ tl \ utl \ vcl \ - vos3 \ $(gb_STDLIBS) \ )) diff --git a/framework/source/layoutmanager/helpers.cxx b/framework/source/layoutmanager/helpers.cxx index 0e6dff554daa..a095aa480a3c 100755 --- a/framework/source/layoutmanager/helpers.cxx +++ b/framework/source/layoutmanager/helpers.cxx @@ -48,7 +48,6 @@ // other includes #include #include -#include #include // namespace @@ -132,7 +131,7 @@ ToolBox* getToolboxPtr( Window* pWindow ) Window* getWindowFromXUIElement( const uno::Reference< ui::XUIElement >& xUIElement ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; uno::Reference< awt::XWindow > xWindow; if ( xUIElement.is() ) xWindow = uno::Reference< awt::XWindow >( xUIElement->getRealInterface(), uno::UNO_QUERY ); @@ -169,7 +168,7 @@ bool lcl_checkUIElement(const uno::Reference< ui::XUIElement >& xUIElement, awt: bool bRet = xUIElement.is(); if ( bRet ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; _xWindow.set( xUIElement->getRealInterface(), uno::UNO_QUERY ); _rPosSize = _xWindow->getPosSize(); @@ -341,7 +340,7 @@ sal_Bool implts_isFrameOrWindowTop( const uno::Reference< frame::XFrame >& xFram if (xWindowCheck.is()) { // --> PB 2007-06-18 #i76867# top and system window is required. - ::vos::OGuard aSolarLock(&Application::GetSolarMutex()); + SolarMutexGuard aGuard; uno::Reference< awt::XWindow > xWindow( xWindowCheck, uno::UNO_QUERY ); Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); return ( pWindow && pWindow->IsSystemWindow() ); diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 4c79f863f6e2..248614cf379f 100755 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -1417,7 +1417,7 @@ void LayoutManager::implts_reparentChildWindows() if ( xStatusBarWindow.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pContainerWindow = VCLUnoHelper::GetWindow( xContainerWindow ); Window* pWindow = VCLUnoHelper::GetWindow( xStatusBarWindow ); if ( pWindow && pContainerWindow ) @@ -1504,7 +1504,7 @@ throw (RuntimeException) m_xMenuBar = implts_createElement( aName ); if ( m_xMenuBar.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; SystemWindow* pSysWindow = getTopSystemWindow( m_xContainerWindow ); if ( pSysWindow ) @@ -1893,7 +1893,7 @@ throw (RuntimeException) { m_bMenuVisible = sal_False; - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; SystemWindow* pSysWindow = getTopSystemWindow( m_xContainerWindow ); if ( pSysWindow ) { @@ -3259,4 +3259,4 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL LayoutManager::getPropertySet } // namespace framework -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/framework/source/layoutmanager/panel.cxx b/framework/source/layoutmanager/panel.cxx index 69f6ad0f51d9..f980df8164d8 100755 --- a/framework/source/layoutmanager/panel.cxx +++ b/framework/source/layoutmanager/panel.cxx @@ -42,7 +42,6 @@ // other includes //_________________________________________________________________________________________________________________ -#include #include #include @@ -64,7 +63,7 @@ Panel::Panel( uno::Reference< awt::XWindowPeer > xWindowPeer( rParent, uno::UNO_QUERY ); m_xPanelWindow = uno::Reference< awt::XWindow >( createToolkitWindow( rSMGR, xWindowPeer, "splitwindow" ), uno::UNO_QUERY ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; SplitWindow* pSplitWindow = dynamic_cast< SplitWindow* >( VCLUnoHelper::GetWindow( m_xPanelWindow )); if ( pSplitWindow ) diff --git a/framework/source/layoutmanager/panelmanager.cxx b/framework/source/layoutmanager/panelmanager.cxx index 4fd0a733b5a7..7ec2fd0f9f9a 100755 --- a/framework/source/layoutmanager/panelmanager.cxx +++ b/framework/source/layoutmanager/panelmanager.cxx @@ -92,7 +92,7 @@ bool PanelManager::createPanels() { if ( m_xFrame.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; uno::Reference< awt::XWindow > xWindow( m_xFrame->getContainerWindow(), uno::UNO_QUERY ); if ( xWindow.is() ) { diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 5992e7b42dc5..0829cac71cc2 100755 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -302,7 +302,7 @@ Rectangle ToolbarLayoutManager::implts_calcDockingArea() uno::Reference< awt::XDockableWindow > xDockWindow( xWindow, uno::UNO_QUERY ); if ( xWindow.is() && xDockWindow.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && !xDockWindow->isFloating() && pConstIter->m_bVisible ) @@ -556,7 +556,7 @@ bool ToolbarLayoutManager::showToolbar( const ::rtl::OUString& rResourceURL ) { UIElement aUIElement = implts_findToolbar( rResourceURL ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = getWindowFromXUIElement( aUIElement.m_xUIElement ); if ( pWindow ) { @@ -578,7 +578,7 @@ bool ToolbarLayoutManager::hideToolbar( const ::rtl::OUString& rResourceURL ) { UIElement aUIElement = implts_findToolbar( rResourceURL ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = getWindowFromXUIElement( aUIElement.m_xUIElement ); if ( pWindow ) { @@ -609,7 +609,7 @@ void ToolbarLayoutManager::refreshToolbarsVisibility( bool bAutomaticToolbars ) implts_getUIElementVectorCopy( aUIElementVector ); UIElement aUIElement; - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; UIElementVector::iterator pIter; for ( pIter = aUIElementVector.begin(); pIter != aUIElementVector.end(); pIter++ ) { @@ -632,7 +632,7 @@ void ToolbarLayoutManager::setFloatingToolbarsVisibility( bool bVisible ) UIElementVector aUIElementVector; implts_getUIElementVectorCopy( aUIElementVector ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; UIElementVector::iterator pIter; for ( pIter = aUIElementVector.begin(); pIter != aUIElementVector.end(); pIter++ ) { @@ -655,7 +655,7 @@ void ToolbarLayoutManager::setVisible( bool bVisible ) UIElementVector aUIElementVector; implts_getUIElementVectorCopy( aUIElementVector ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; UIElementVector::iterator pIter; for ( pIter = aUIElementVector.begin(); pIter != aUIElementVector.end(); pIter++ ) { @@ -704,7 +704,7 @@ bool ToolbarLayoutManager::dockToolbar( const ::rtl::OUString& rResourceURL, ui: ToolBox* pToolBox( 0 ); { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && pWindow->GetType() == WINDOW_TOOLBOX ) { @@ -722,7 +722,7 @@ bool ToolbarLayoutManager::dockToolbar( const ::rtl::OUString& rResourceURL, ui: // we have to find a good place for it. ::Size aSize; - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; { if ( pToolBox ) aSize = pToolBox->CalcWindowSizePixel( 1, ImplConvertAlignment( aUIElement.m_aDockedData.m_nDockedArea ) ); @@ -906,7 +906,7 @@ void ToolbarLayoutManager::setParentWindow( if ( xParentWindow.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; ::DockingAreaWindow* pWindow = dynamic_cast< ::DockingAreaWindow* >(VCLUnoHelper::GetWindow( xTopDockWindow ) ); if( pWindow ) pWindow->SetAlign( WINDOWALIGN_TOP ); pWindow = dynamic_cast< ::DockingAreaWindow* >(VCLUnoHelper::GetWindow( xBottomDockWindow ) ); @@ -1036,7 +1036,7 @@ void ToolbarLayoutManager::implts_createAddonsToolBars() if ( xWindow.is() ) { // Set generic title for add-on toolbar - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow->GetText().Len() == 0 ) pWindow->SetText( aGenericAddonTitle ); @@ -1185,7 +1185,7 @@ void ToolbarLayoutManager::implts_createCustomToolBar( const rtl::OUString& aTbx if ( aTitle && xUIElement.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = getWindowFromXUIElement( xUIElement ); if ( pWindow ) @@ -1205,7 +1205,7 @@ void ToolbarLayoutManager::implts_reparentToolbars() Window* pRightDockWindow = VCLUnoHelper::GetWindow( m_xDockAreaWindows[ui::DockingArea_DOCKINGAREA_RIGHT] ); aWriteLock.unlock(); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( pContainerWindow ) { UIElementVector::iterator pIter; @@ -1326,7 +1326,7 @@ void ToolbarLayoutManager::implts_createToolBar( const ::rtl::OUString& aName, b // set toolbar menu style according to customize command state SvtCommandOptions aCmdOptions; - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && pWindow->GetType() == WINDOW_TOOLBOX ) { @@ -1388,7 +1388,7 @@ void ToolbarLayoutManager::implts_setElementData( UIElement& rElement, const uno if ( xDockWindow.is() && xWindow.is() ) { { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow ) { @@ -1414,7 +1414,7 @@ void ToolbarLayoutManager::implts_setElementData( UIElement& rElement, const uno { if ( pWindow ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; String aText = pWindow->GetText(); if ( aText.Len() == 0 ) pWindow->SetText( rElement.m_aUIName ); @@ -1441,7 +1441,7 @@ void ToolbarLayoutManager::implts_setElementData( UIElement& rElement, const uno if( pToolBox ) { // set an optimal initial floating size - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; ::Size aSize( pToolBox->CalcFloatingWindowSizePixel() ); pToolBox->SetOutputSizePixel( aSize ); } @@ -1461,7 +1461,7 @@ void ToolbarLayoutManager::implts_setElementData( UIElement& rElement, const uno implts_writeWindowStateData( rElement ); if ( bShowElement && pWindow ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pWindow->Show( sal_True, SHOW_NOFOCUSCHANGE | SHOW_NOACTIVATE ); } } @@ -1474,7 +1474,7 @@ void ToolbarLayoutManager::implts_setElementData( UIElement& rElement, const uno if ( pToolBox ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pToolBox->SetAlign( ImplConvertAlignment(rElement.m_aDockedData.m_nDockedArea ) ); pToolBox->SetLineCount( 1 ); xDockWindow->setFloatingMode( sal_False ); @@ -1496,7 +1496,7 @@ void ToolbarLayoutManager::implts_setElementData( UIElement& rElement, const uno if ( pWindow ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( !bShowElement ) pWindow->Hide(); } @@ -1914,7 +1914,7 @@ void ToolbarLayoutManager::implts_setToolbar( const UIElement& rUIElement ) Window* pContainerWindow( 0 ); if ( xContainerWindow.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pContainerWindow = VCLUnoHelper::GetWindow( xContainerWindow ); if ( pContainerWindow ) aStartPos = pContainerWindow->OutputToScreenPixel( aStartPos ); @@ -1938,7 +1938,7 @@ void ToolbarLayoutManager::implts_setToolbar( const UIElement& rUIElement ) uno::Reference< awt::XWindow > xWindow( xDockWindow, uno::UNO_QUERY ); if ( xDockWindow.is() && xDockWindow->isFloating() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && pWindow->IsVisible() ) { @@ -2209,7 +2209,7 @@ void ToolbarLayoutManager::implts_getDockingAreaElementInfoOnSingleRowCol( ui::D uno::Reference< awt::XWindow > xWindow( xUIElement->getRealInterface(), uno::UNO_QUERY ); if ( xWindow.is() ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); uno::Reference< awt::XDockableWindow > xDockWindow( xWindow, uno::UNO_QUERY ); if ( pWindow && pIter->m_bVisible && xDockWindow.is() && !pIter->m_bFloating ) @@ -2313,7 +2313,7 @@ void ToolbarLayoutManager::implts_getDockingAreaElementInfoOnSingleRowCol( ui::D aReadLock.unlock(); // Calc correct position of the column/row rectangle to be able to compare it with mouse pos/tracking rect - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; // Retrieve output size from container Window if ( pDockingAreaWindow && pContainerWindow ) @@ -2414,7 +2414,7 @@ void ToolbarLayoutManager::implts_findNextDockingPos( ui::DockingArea DockingAre { // Retrieve output size from container Window - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pDockingWindow = VCLUnoHelper::GetWindow( xDockingWindow ); if ( pDockingWindow ) aDockingWinSize = pDockingWindow->GetOutputSizePixel(); @@ -2629,7 +2629,7 @@ void ToolbarLayoutManager::implts_calcWindowPosSizeOnSingleRowColumn( awt::Rectangle& rWinRect = rRowColumnWindowData.aRowColumnWindowSizes[i]; ::Size aMinSize; - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; { uno::Reference< awt::XWindow > xWindow = rRowColumnWindowData.aRowColumnWindows[i]; Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); @@ -2690,7 +2690,7 @@ void ToolbarLayoutManager::implts_calcWindowPosSizeOnSingleRowColumn( sal_Int32 nCurrPos( 0 ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; for ( sal_uInt32 i = 0; i < nCount; i++ ) { uno::Reference< awt::XWindow > xWindow = rRowColumnWindowData.aRowColumnWindows[i]; @@ -2765,7 +2765,7 @@ void ToolbarLayoutManager::implts_calcDockingPosSize( { // Retrieve output size from container Window - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pContainerWindow = VCLUnoHelper::GetWindow( xContainerWindow ); aContainerWinSize = pContainerWindow->GetOutputSizePixel(); } @@ -2793,7 +2793,7 @@ void ToolbarLayoutManager::implts_calcDockingPosSize( aReadLock.unlock(); { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pDockingAreaWindow = VCLUnoHelper::GetWindow( xDockingAreaWindow ); pDockWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pDockWindow && pDockWindow->GetType() == WINDOW_TOOLBOX ) @@ -2845,7 +2845,7 @@ void ToolbarLayoutManager::implts_calcDockingPosSize( { // Calc correct position of the column/row rectangle to be able to compare it with mouse pos/tracking rect - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; aRect.SetPos( pContainerWindow->ScreenToOutputPixel( pDockingAreaWindow->OutputToScreenPixel( aRect.TopLeft() ))); } @@ -2944,7 +2944,7 @@ void ToolbarLayoutManager::implts_calcDockingPosSize( // Set virtual position sal_Int32 nPosY( 0 ); { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; nPosY = pDockingAreaWindow->ScreenToOutputPixel( pContainerWindow->OutputToScreenPixel( aWindowRect.BottomRight() )).Y(); } @@ -3068,7 +3068,7 @@ void ToolbarLayoutManager::implts_calcDockingPosSize( rTrackingRect.setWidth( nSize ); { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; nPosX = pDockingAreaWindow->ScreenToOutputPixel( pContainerWindow->OutputToScreenPixel( rTrackingRect.TopLeft() )).X(); } @@ -3114,7 +3114,7 @@ void ToolbarLayoutManager::implts_calcDockingPosSize( rTrackingRect.setHeight( nSize ); { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; nPosY = pDockingAreaWindow->ScreenToOutputPixel( pContainerWindow->OutputToScreenPixel( rTrackingRect.TopLeft() )).Y(); } @@ -3229,7 +3229,7 @@ framework::ToolbarLayoutManager::DockingOperation ToolbarLayoutManager::implts_d Window* pDockingAreaWindow( 0 ); Window* pContainerWindow( 0 ); { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pDockingAreaWindow = VCLUnoHelper::GetWindow( xDockingAreaWindow ); pContainerWindow = VCLUnoHelper::GetWindow( xContainerWindow ); nDockPosY = pDockingAreaWindow->ScreenToOutputPixel( pContainerWindow->OutputToScreenPixel( ::Point( 0, nPosY ))).Y(); @@ -3423,7 +3423,7 @@ throw (uno::RuntimeException) Window* pWindow( 0 ); ::Point aMousePos; { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pContainerWindow = VCLUnoHelper::GetWindow( xContainerWindow ); aMousePos = pContainerWindow->ScreenToOutputPixel( ::Point( e.MousePos.X, e.MousePos.Y )); } @@ -3444,7 +3444,8 @@ throw (uno::RuntimeException) aUIElement.m_aFloatingData.m_aPos = ::Point( aPos.X, aPos.Y ); aUIElement.m_aFloatingData.m_aSize = ::Size( aSize.Width, aSize.Height ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; + pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && pWindow->GetType() == WINDOW_TOOLBOX ) { @@ -3490,7 +3491,7 @@ throw (uno::RuntimeException) { try { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Int16 eDockingArea( -1 ); // none sal_Int32 nMagneticZone( aUIDockingElement.m_bFloating ? MAGNETIC_DISTANCE_DOCK : MAGNETIC_DISTANCE_UNDOCK ); @@ -3693,7 +3694,7 @@ throw (uno::RuntimeException) if ( bDockingInProgress ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( uno::Reference< awt::XWindow >( e.Source, uno::UNO_QUERY )); ToolBox* pToolBox = 0; if ( pWindow && pWindow->GetType() == WINDOW_TOOLBOX ) @@ -3755,7 +3756,7 @@ throw (uno::RuntimeException) if ( xDockWindow->isFloating() ) { { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && pWindow->GetType() == WINDOW_TOOLBOX ) { @@ -3793,7 +3794,7 @@ throw (uno::RuntimeException) uno::Reference< awt::XWindow2 > xWindow; { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; xWindow = uno::Reference< awt::XWindow2 >( e.Source, uno::UNO_QUERY ); pWindow = VCLUnoHelper::GetWindow( xWindow ); @@ -3814,7 +3815,7 @@ throw (uno::RuntimeException) implts_setLayoutInProgress( true ); if ( aUIDockingElement.m_bFloating ) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( pToolBox ) { pToolBox->SetLineCount( aUIDockingElement.m_aFloatingData.m_nLines ); @@ -3854,7 +3855,7 @@ throw (uno::RuntimeException) ::Size aSize; { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( pToolBox ) aSize = pToolBox->CalcWindowSizePixel( 1, ImplConvertAlignment( aUIDockingElement.m_aDockedData.m_nDockedArea ) ); else @@ -3865,7 +3866,7 @@ throw (uno::RuntimeException) aUIDockingElement.m_aDockedData.m_aPos = aDockPos; } - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( pToolBox ) { pToolBox->SetAlign( ImplConvertAlignment( aUIDockingElement.m_aDockedData.m_nDockedArea) ); @@ -3892,7 +3893,7 @@ throw (uno::RuntimeException) } else { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( pToolBox ) { if ( aUIDockingElement.m_bFloating ) @@ -4001,7 +4002,7 @@ throw (uno::RuntimeException) catch ( lang::WrappedTargetException& ) {} { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = getWindowFromXUIElement( xUIElement ); if ( pWindow ) pWindow->SetText( aUIName ); @@ -4226,7 +4227,7 @@ awt::Size ToolbarLayoutManager::getToolbarSize( const ::rtl::OUString& rResource { Window* pWindow = implts_getWindow( rResourceURL ); - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( pWindow ) { ::Size aSize = pWindow->GetSizePixel(); diff --git a/framework/source/uielement/addonstoolbarmanager.cxx b/framework/source/uielement/addonstoolbarmanager.cxx index 3b8122321d46..a8c98847d7d1 100755 --- a/framework/source/uielement/addonstoolbarmanager.cxx +++ b/framework/source/uielement/addonstoolbarmanager.cxx @@ -142,7 +142,7 @@ static sal_Bool IsCorrectContext( const ::rtl::OUString& rModuleIdentifier, cons static Image RetrieveImage( Reference< com::sun::star::frame::XFrame >& rFrame, const rtl::OUString& aImageId, const rtl::OUString& aURL, - BOOL bBigImage + sal_Bool bBigImage ) { Image aImage; diff --git a/framework/source/uielement/panelwrapper.cxx b/framework/source/uielement/panelwrapper.cxx index 02d05d2653a2..2587f629b6e1 100755 --- a/framework/source/uielement/panelwrapper.cxx +++ b/framework/source/uielement/panelwrapper.cxx @@ -100,7 +100,7 @@ void SAL_CALL PanelWrapper::dispose() throw ( RuntimeException ) ModelWinService* pService = dynamic_cast< ModelWinService* >( xNameAccess.get() ); if ( pService != 0 ) { - vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; PanelWindow* pPanelWindow = dynamic_cast< PanelWindow* >( m_xPanelWindow.get() ); if ( pPanelWindow != NULL ) { @@ -147,7 +147,7 @@ void SAL_CALL PanelWrapper::initialize( const Sequence< Any >& aArguments ) thro PanelWindow* pPanelWindow(0); Window* pContentWindow(0); { - vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Window* pWindow = VCLUnoHelper::GetWindow( xFrame->getContainerWindow() ); pContentWindow = VCLUnoHelper::GetWindow( xContentWindow ); if ( pWindow ) diff --git a/sfx2/Library_qstart.mk b/sfx2/Library_qstart.mk index 2344d79746c4..f31c8fb394f0 100755 --- a/sfx2/Library_qstart.mk +++ b/sfx2/Library_qstart.mk @@ -72,9 +72,7 @@ $(eval $(call gb_Library_add_linked_libs,qstart_gtk,\ ucbhelper \ utl \ vcl \ - vos3 \ xml2 \ - eggtray \ sfx \ )) diff --git a/sfx2/Library_sfx.mk b/sfx2/Library_sfx.mk index c18b46c8f16e..0e58d301a057 100755 --- a/sfx2/Library_sfx.mk +++ b/sfx2/Library_sfx.mk @@ -74,7 +74,6 @@ $(eval $(call gb_Library_add_linked_libs,sfx,\ ucbhelper \ utl \ vcl \ - vos3 \ xml2 \ $(gb_STDLIBS) \ )) diff --git a/sfx2/Module_sfx2.mk b/sfx2/Module_sfx2.mk index b88e2581f2da..e5c738ac877f 100755 --- a/sfx2/Module_sfx2.mk +++ b/sfx2/Module_sfx2.mk @@ -34,14 +34,14 @@ $(eval $(call gb_Module_add_targets,sfx2,\ Package_sdi \ )) -$(eval $(call gb_Module_add_check_targets,sfx2,\ - CppunitTest_sfx2_metadatable \ -)) +#$(eval $(call gb_Module_add_check_targets,sfx2,\ +# CppunitTest_sfx2_metadatable \ +#)) -$(eval $(call gb_Module_add_subsequentcheck_targets,sfx2,\ - JunitTest_sfx2_complex \ - JunitTest_sfx2_unoapi \ -)) +#$(eval $(call gb_Module_add_subsequentcheck_targets,sfx2,\ +# JunitTest_sfx2_complex \ +# JunitTest_sfx2_unoapi \ +#)) ifeq ($(OS),LINUX) ifeq ($(ENABLE_SYSTRAY_GTK),TRUE) diff --git a/sfx2/inc/sfx2/sfxbasemodel.hxx b/sfx2/inc/sfx2/sfxbasemodel.hxx index 35e170042400..167618a792c3 100755 --- a/sfx2/inc/sfx2/sfxbasemodel.hxx +++ b/sfx2/inc/sfx2/sfxbasemodel.hxx @@ -1626,7 +1626,7 @@ public: i_rModel.MethodEntryCheck( i_eState != E_INITIALIZING ); } SfxModelGuard( SfxModelSubComponent& i_rSubComponent ) - :m_aGuard( Application::GetSolarMutex() ) + :m_aGuard() { i_rSubComponent.MethodEntryCheck(); } @@ -1645,7 +1645,7 @@ public: } private: - SolarMutexClearableGuard m_aGuard; + SolarMutexResettableGuard m_aGuard; }; #undef css diff --git a/sfx2/inc/sfx2/viewsh.hxx b/sfx2/inc/sfx2/viewsh.hxx index a40321c61b45..135506bc6133 100755 --- a/sfx2/inc/sfx2/viewsh.hxx +++ b/sfx2/inc/sfx2/viewsh.hxx @@ -302,7 +302,7 @@ public: SAL_DLLPRIVATE bool GlobalKeyInput_Impl( const KeyEvent &rKeyEvent ); SAL_DLLPRIVATE void NewIPClient_Impl( SfxInPlaceClient *pIPClient ) - { GetIPClientList_Impl(TRUE)->push_back(pIPClient); } + { GetIPClientList_Impl(sal_True)->push_back(pIPClient); } SAL_DLLPRIVATE void IPClientGone_Impl( SfxInPlaceClient *pIPClient ); SAL_DLLPRIVATE SfxInPlaceClientList* GetIPClientList_Impl( sal_Bool bCreate = sal_True ) const; SAL_DLLPRIVATE void ResetAllClients_Impl( SfxInPlaceClient *pIP ); @@ -381,4 +381,4 @@ inline SfxViewFrame* SfxViewShell::GetViewFrame() const #endif // #ifndef _SFXVIEWSH_HXX -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index ca68aea830ce..7b621ccae9c0 100755 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -941,7 +941,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) if (pObjSh) pObjSh->SetConfigOptionsChecked(false); } - pView->GetBindings().InvalidateAll(FALSE); + pView->GetBindings().InvalidateAll(sal_False); pView = SfxViewFrame::GetNext( *pView ); } } diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 8f68e21a2453..5cb08dbadecf 100755 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -2150,16 +2150,6 @@ SFX2_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment( *ppEnvironmentTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ; } - - - // writer compatable document properties - aImpl = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")); - aImpl += comp_CompatWriterDocProps::_getImplementationName(); - - aTempStr = aImpl; - aTempStr += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES")); - xNewKey = xKey->createKey( aTempStr ); - xNewKey->createKey( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.writer.DocumentProperties")) ); SFX2_DLLPUBLIC void* SAL_CALL component_getFactory( const sal_Char* pImplementationName , void* pServiceManager , diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx index 3337e17562f4..26f0117aa566 100755 --- a/sfx2/source/appl/helpinterceptor.cxx +++ b/sfx2/source/appl/helpinterceptor.cxx @@ -136,7 +136,7 @@ void HelpInterceptor_Impl::SetStartURL( const String& rURL ) { m_pHistory = new HelpHistoryList_Impl; Any aEmptyViewData; - m_pHistory->insert( m_pHistory->begin(), new HelpHistoryEntry_Impl( rURL, aEmptyViewData, (sal_uIntPtr)0x0 ) ); + m_pHistory->insert( m_pHistory->begin(), new HelpHistoryEntry_Impl( rURL, aEmptyViewData)); m_nCurPos = m_pHistory->size() - 1; m_pWindow->UpdateToolbox(); @@ -169,7 +169,7 @@ Reference< XDispatch > SAL_CALL HelpInterceptor_Impl::queryDispatch( if ( m_xSlaveDispatcher.is() ) xResult = m_xSlaveDispatcher->queryDispatch( aURL, aTargetFrameName, nSearchFlags ); - BOOL bHelpURL = aURL.Complete.toAsciiLowerCase().match(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.help")),0); + sal_Bool bHelpURL = aURL.Complete.toAsciiLowerCase().match(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.help")),0); if ( bHelpURL ) { diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 6b163fda68fd..7855bfe0ecb3 100755 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -353,7 +353,7 @@ void LinkManager::UpdateAllLinks( int nRet = QueryBox( pParentWin, WB_YES_NO | WB_DEF_YES, SfxResId( STR_QUERY_UPDATE_LINKS ) ).Execute(); if( RET_YES != nRet ) return ; // nothing should be updated - bAskUpdate = sal_False // once is enough + bAskUpdate = sal_False; // once is enough } pLink->Update(); @@ -467,7 +467,7 @@ void LinkManager::LinkServerShell(const OUString& rPath, SfxObjectShell& rServer } } -bool LinkManager::InsertFileLink( sfx2::SvBaseLink& rLink, +sal_Bool LinkManager::InsertFileLink( sfx2::SvBaseLink& rLink, sal_uInt16 nFileType, const String& rFileNm, const String* pFilterNm, diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 19cf297efd4e..939de61fec1e 100755 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -338,7 +338,7 @@ ImageList* SfxModule::GetImageList_Impl( sal_Bool bBig ) return pImpl->GetImageList( pResMgr, bBig ); } -SfxTabPage* SfxModule::CreateTabPage( sal_uInt16 Window*, const SfxItemSet& ) +SfxTabPage* SfxModule::CreateTabPage( sal_uInt16, Window*, const SfxItemSet& ) { return NULL; } diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 22e964149f61..605b674e23ab 100755 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -2640,8 +2640,8 @@ long SfxHelpTextWindow_Impl::PreNotify( NotifyEvent& rNEvt ) aMenu.InsertItem( TBI_COPY, String( SfxResId( STR_HELP_MENU_TEXT_COPY ) ), Image( SfxResId( IMG_HELP_TOOLBOX_COPY ) ) + ); aMenu.SetHelpId( TBI_COPY, ".uno:Copy" ); - ); aMenu.EnableItem( TBI_COPY, HasSelection() ); if ( bIsDebug ) @@ -3083,7 +3083,7 @@ IMPL_LINK( SfxHelpWindow_Impl, OpenHdl, SfxHelpIndexWindow_Impl* , EMPTYARG ) ::rtl::OUString sHelpURL; - BOOL bComplete = rtl::OUString(aEntry).toAsciiLowerCase().match(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.help")),0); + bool bComplete = rtl::OUString(aEntry).toAsciiLowerCase().match(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.help")),0); if (bComplete) sHelpURL = ::rtl::OUString(aEntry); diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index e235ca07446a..22c4afff1722 100755 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -254,7 +254,6 @@ static Sequence< ::rtl::OUString > GetPropertyNames() SfxHelpOptions_Impl::SfxHelpOptions_Impl() : ConfigItem( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office.SFX/Help")) ) - , m_pIds( NULL ) { Sequence< ::rtl::OUString > aNames = GetPropertyNames(); Sequence< Any > aValues = GetProperties( aNames ); @@ -705,7 +704,7 @@ XubString SfxHelp::GetHelpText( const String& aCommandURL, const Window* pWindow static bool impl_hasHelpInstalled( const rtl::OUString &rLang = rtl::OUString() ) { String aHelpRootURL( DEFINE_CONST_OUSTRING("vnd.sun.star.help://") ); - AppendConfigToken_Impl( aHelpRootURL, sal_True ); + AppendConfigToken( aHelpRootURL, sal_True ); Sequence< ::rtl::OUString > aFactories = SfxContentHelper::GetResultSet( aHelpRootURL ); return ( aFactories.getLength() != 0 ); @@ -752,7 +751,7 @@ static bool impl_showOnlineHelp( const String& rURL ) sal_Bool SfxHelp::Start_Impl( const String& rURL, const Window* pWindow, const String& rKeyword ) { String aHelpRootURL( DEFINE_CONST_OUSTRING("vnd.sun.star.help://") ); - AppendConfigToken( aHelpRootURL, sal_True, rLang ); + AppendConfigToken( aHelpRootURL, sal_True); Sequence< ::rtl::OUString > aFactories = SfxContentHelper::GetResultSet( aHelpRootURL ); /* rURL may be @@ -815,12 +814,12 @@ sal_Bool SfxHelp::Start_Impl( const String& rURL, const Window* pWindow, const S if ( !impl_hasHelpInstalled() ) { if ( impl_showOnlineHelp( aHelpURL ) ) - return TRUE; + return sal_True; else { NoHelpErrorBox aErrBox( const_cast< Window* >( pWindow ) ); aErrBox.Execute(); - return FALSE; + return sal_False; } } diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 20d45830021b..16111796d32f 100755 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -98,7 +98,7 @@ static sal_uInt16 nTimeOut = 300; static sal_uInt32 nCache1 = 0; static sal_uInt32 nCache2 = 0; -typedef boost::unordered_map< USHORT, bool > InvalidateSlotMap; +typedef boost::unordered_map< sal_uInt16, bool > InvalidateSlotMap; //==================================================================== diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 3f139ad3ac2b..011ece8532cd 100755 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -770,7 +770,7 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const ::com::sun::star::util bSuccess = aReq.IsDone() || pItem != NULL; if ( bVBARequest ) { - SFX_REQUEST_ARG( aReq, pDlgRet, SfxBoolItem, SID_DIALOG_RETURN, FALSE ); + SFX_REQUEST_ARG( aReq, pDlgRet, SfxBoolItem, SID_DIALOG_RETURN, sal_False ); if ( pDlgRet ) { bSuccess = pDlgRet->GetValue(); diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx index d3da6de72887..04ee807f988d 100755 --- a/sfx2/source/dialog/passwd.cxx +++ b/sfx2/source/dialog/passwd.cxx @@ -254,7 +254,7 @@ short SfxPasswordDialog::Execute() Size a6Size = LogicToPixel( Size( 6, 6 ), MAP_APPFONT ); long nMinHeight = maHelpBtn.GetPosPixel().Y() + maHelpBtn.GetSizePixel().Height() + a6Size.Height(); - USHORT nRowHided = 1; + sal_uInt16 nRowHided = 1; if ( SHOWEXTRAS_NONE == mnExtras ) { diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index 58535f062b3a..4e56e6bfcbf2 100755 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -606,7 +606,7 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize // Das Fenster mu\s vor dem ersten Fenster eingef"ugt werden, das die // gleiche oder eine gr"o\sere Position hat als pDockWin. sal_uInt16 nCount = pDockArr->Count(); - USHORT nLastWindowIdx(0); + sal_uInt16 nLastWindowIdx(0); // Wenn gar kein Fenster gefunden wird, wird als erstes eingef"ugt sal_uInt16 nInsertPos = 0; diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 8a10a84137b7..66a4a3623347 100755 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -388,7 +388,7 @@ const SfxPoolItem* SfxTabPage::GetItem( const SfxItemSet& rSet, sal_uInt16 nSlot const SfxItemPool* pPool = rSet.GetPool(); sal_uInt16 nWh = pPool->GetWhich( nSlot, bDeep ); const SfxPoolItem* pItem = 0; - rSet.GetItemState( nWh, TRUE, &pItem ); + rSet.GetItemState( nWh, sal_True, &pItem ); if ( !pItem && nWh != nSlot ) pItem = &pPool->GetDefaultItem( nWh ); diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index 4d88ad76a500..32d8a0eee230 100755 --- a/sfx2/source/dialog/taskpane.cxx +++ b/sfx2/source/dialog/taskpane.cxx @@ -185,7 +185,7 @@ namespace sfx2 aCommandName.append( sImageURL.copy( nCommandImagePrefixLen ) ); const ::rtl::OUString sCommandName( aCommandName.makeStringAndClear() ); - const Image aPanelImage( GetImage( i_rDocFrame, sCommandName, FALSE ) ); + const Image aPanelImage( GetImage( i_rDocFrame, sCommandName, sal_False ) ); return aPanelImage.GetXGraphic(); } diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 5e1f75571127..c8665093acc5 100755 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -692,9 +692,10 @@ StyleTreeArr_Impl &MakeTree_Impl(StyleTreeArr_Impl &rArr) if(pCmp->aName == pEntry->aParent) { // initial sortiert einfuegen - sal_uInt16 ii; + sal_uInt16 nPos; for( nPos = 0 ; nPos < pCmp->Count() && - aSorter.compare((*pCmp->pChilds)[nPos]->aName, pEntry->aName) < 0 ; nPos++); + aSorter.compare((*pCmp->pChilds)[nPos]->aName, pEntry->aName) < 0 ; nPos++) + {}; pCmp->Put(pEntry,nPos); break; } @@ -865,8 +866,8 @@ sal_uInt16 SfxCommonTemplateDialog_Impl::InfoOffsetToStyleNr(sal_uInt16 nId) void SfxCommonTemplateDialog_Impl::ReadResource() { // globale Benutzer-Resource auslesen - sal_uInt16 i; - for(i = 0; i < MAX_FAMILIES; ++i) + + for(sal_uInt16 i = 0; i < MAX_FAMILIES; ++i) pFamilyState[i] = 0; SfxViewFrame* pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame(); @@ -895,7 +896,7 @@ void SfxCommonTemplateDialog_Impl::ReadResource() for(i = 0; i < nCount; ++i) { sal_uInt16 nSlot = 0; - switch( (USHORT)pStyleFamilies->at( i )->GetFamily() ) + switch( (sal_uInt16)pStyleFamilies->at( i )->GetFamily() ) { case SFX_STYLE_FAMILY_CHAR: nSlot = SID_STYLE_FAMILY1; break; case SFX_STYLE_FAMILY_PARA: nSlot = SID_STYLE_FAMILY2; break; @@ -1332,7 +1333,8 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags) //Bubblesort sal_uInt16 nPos; for( nPos = aStrings.Count() ; nPos && - aSorter.compare(*(aStrings[nPos-1]), pStyle->GetName()) > 0 ; nPos--); + aSorter.compare(*(aStrings[nPos-1]), pStyle->GetName()) > 0 ; nPos--) + {}; aStrings.Insert( new String( pStyle->GetName() ), nPos ); pStyle = pStyleSheetPool->Next(); } @@ -1356,7 +1358,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags) nPos = 0; for(nPos = 0 ; nPos < nCount ; ++nPos ) { - aFmtLb.InsertEntry( *aStrings.GetObject( nPos ), 0, FALSE, nPos); + aFmtLb.InsertEntry( *aStrings.GetObject( nPos ), 0, sal_False, nPos); } aFmtLb.SetUpdateMode(true); } @@ -2288,7 +2290,7 @@ SfxTemplateDialog_Impl::SfxTemplateDialog_Impl( pDlgWindow->FreeResource(); SfxViewFrame* pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame(); pCurObjShell = pViewFrame->GetObjectShell(); - USHORT nSavedFilter = static_cast< USHORT >( LoadFactoryStyleFilter( pCurObjShell ) ); + sal_uInt16 nSavedFilter = static_cast< sal_uInt16 >( LoadFactoryStyleFilter( pCurObjShell ) ); Initialize(); m_aActionTbL.SetSelectHdl(LINK(this, SfxTemplateDialog_Impl, ToolBoxLSelect)); @@ -2302,7 +2304,7 @@ SfxTemplateDialog_Impl::SfxTemplateDialog_Impl( m_aActionTbL.SetHelpId( HID_TEMPLDLG_TOOLBOX_LEFT ); if( nSavedFilter == HIERARCHICAL_FILTER_INDEX ) { - bHierarchical = FALSE; // Force content refresh + bHierarchical = sal_False; // Force content refresh aFilterLb.SelectEntry(String(SfxResId(STR_STYLE_FILTER_HIERARCHICAL))); FilterSelectHdl(&aFilterLb); } diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 673e56b2263a..c1376729e5e2 100755 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -614,7 +614,7 @@ sal_Bool SfxObjectShell::DoLoad( SfxMedium *pMed ) SetError( nError, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); if (pMedium->GetFilter()->GetFilterFlags() & SFX_FILTER_STARTPRESENTATION) - pSet->Put( SfxBoolItem( SID_DOC_STARTPRESENTATION, TRUE) ); + pSet->Put( SfxBoolItem( SID_DOC_STARTPRESENTATION, sal_True) ); } EnableSetModified( sal_False ); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index a2d53139e956..1fea79e7b607 100755 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -3674,7 +3674,7 @@ void SAL_CALL SfxBaseModel::switchToStorage( const uno::Reference< XSTORAGE >& x xUICfgMgrStorage->setStorage( xStorage ); } } - m_pData->m_pObjectShell->Get_Impl()->bOwnsStorage = FALSE; + m_pData->m_pObjectShell->Get_Impl()->bOwnsStorage = sal_False; } uno::Reference< XSTORAGE > SAL_CALL SfxBaseModel::getDocumentStorage() diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx index 30f144ccefec..b5bf27c86b3b 100755 --- a/sfx2/source/notify/eventsupplier.cxx +++ b/sfx2/source/notify/eventsupplier.cxx @@ -101,7 +101,7 @@ void SAL_CALL SfxEvents_Impl::replaceByName( const OUSTRING & aName, const ANY & ::rtl::OUString sType; if ( ( aNormalizedDescriptor.size() == 1 ) - && ( aProperties[0].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(PROP_EVENT_TYPE)) ) + && ( aNormalizedDescriptor.has( PROP_EVENT_TYPE) == 0 ) && ( aNormalizedDescriptor.get( PROP_EVENT_TYPE ) >>= sType ) && ( sType.getLength() == 0 ) ) diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx index 263358ca0a86..09e624c27c99 100755 --- a/sfx2/source/view/frame.cxx +++ b/sfx2/source/view/frame.cxx @@ -582,7 +582,7 @@ SfxPoolItem* SfxFrameItem::Clone( SfxItemPool *) const return pNew; } -bool SfxFrameItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const +bool SfxFrameItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 ) const { if ( wFrame ) { @@ -593,7 +593,7 @@ bool SfxFrameItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const return sal_False; } -bool SfxFrameItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE ) +bool SfxFrameItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 ) { Reference < XFrame > xFrame; if ( (rVal >>= xFrame) && xFrame.is() ) diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index b0197ff9f4da..1fb0e3f8e171 100755 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -792,7 +792,7 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) } if ( nId == SID_SETUPPRINTER ) { - rReq.AppendItem( SfxBoolItem( SID_DIALOG_RETURN, TRUE ) ); + rReq.AppendItem( SfxBoolItem( SID_DIALOG_RETURN, sal_True ) ); } // take the changes made in the dialog @@ -812,7 +812,7 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) rReq.SetReturnValue(SfxBoolItem(0,sal_False)); if ( nId == SID_SETUPPRINTER ) { - rReq.AppendItem( SfxBoolItem( SID_DIALOG_RETURN, FALSE ) ); + rReq.AppendItem( SfxBoolItem( SID_DIALOG_RETURN, sal_False ) ); } } } diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index a0570f31bb1f..18b924053821 100755 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -438,7 +438,7 @@ enum ETypeFamily SAL_DLLPRIVATE void SfxViewShell::IPClientGone_Impl( SfxInPlaceClient *pIPClient ) { - SfxInPlaceClientList* pClientList = GetIPClientList_Impl(TRUE); + SfxInPlaceClientList* pClientList = GetIPClientList_Impl(sal_True); for( SfxInPlaceClientList::iterator it = pClientList->begin(); it < pClientList->end(); ++it ) { diff --git a/svx/AllLangResTarget_svx.mk b/svx/AllLangResTarget_svx.mk index b2707b01a637..3680c9f92609 100755 --- a/svx/AllLangResTarget_svx.mk +++ b/svx/AllLangResTarget_svx.mk @@ -55,7 +55,6 @@ $(eval $(call gb_SrsTarget_add_files,svx/res,\ svx/source/dialog/fontwork.src \ svx/source/dialog/frmsel.src \ svx/source/dialog/hdft.src \ - svx/source/dialog/hyprlink.src \ svx/source/dialog/imapdlg.src \ svx/source/dialog/langbox.src \ svx/source/dialog/language.src \ @@ -107,30 +106,30 @@ $(call gb_SrsTarget_get_clean_target,svx/res) : $(WORKDIR)/inc/svx/globlmn.hrc_c # just a temporary - globlmn.hrc about to be removed! ifeq ($(strip $(WITH_LANG)),) $(WORKDIR)/inc/svx/globlmn.hrc : $(SRCDIR)/svx/inc/globlmn_tmpl.hrc - echo copying $@ - -mkdir -p $(WORKDIR)/inc/svx - cp $(SRCDIR)/svx/inc/globlmn_tmpl.hrc $(WORKDIR)/inc/svx/globlmn.hrc - rm -f $(WORKDIR)/inc/svx/lastrun.mk + echo copying $@ + -mkdir -p $(WORKDIR)/inc/svx + cp $(SRCDIR)/svx/inc/globlmn_tmpl.hrc $(WORKDIR)/inc/svx/globlmn.hrc + rm -f $(WORKDIR)/inc/svx/lastrun.mk else -include $(WORKDIR)/inc/svx/lastrun.mk ifneq ($(gb_lastrun_globlmn),MERGED) .PHONY : $(WORKDIR)/inc/svx/globlmn.hrc endif $(WORKDIR)/inc/svx/globlmn.hrc : $(SRCDIR)/svx/inc/globlmn_tmpl.hrc $(gb_SrsPartMergeTarget_SDFLOCATION)/svx/inc/localize.sdf - echo merging $@ - -mkdir -p $(WORKDIR)/inc/svx - rm -f $(WORKDIR)/inc/svx/lastrun.mk - echo gb_lastrun_globlmn:=MERGED > $(WORKDIR)/inc/svx/lastrun.mk - $(call gb_Helper_abbreviate_dirs_native, \ - $(gb_SrsPartMergeTarget_TRANSEXCOMMAND) \ - -p svx \ - -i $< -o $@ -m $(gb_SrsPartMergeTarget_SDFLOCATION)/svx/inc/localize.sdf -l all) + echo merging $@ + -mkdir -p $(WORKDIR)/inc/svx + rm -f $(WORKDIR)/inc/svx/lastrun.mk + echo gb_lastrun_globlmn:=MERGED > $(WORKDIR)/inc/svx/lastrun.mk + $(call gb_Helper_abbreviate_dirs_native, \ + $(gb_SrsPartMergeTarget_TRANSEXCOMMAND) \ + -p svx \ + -i $< -o $@ -m $(gb_SrsPartMergeTarget_SDFLOCATION)/svx/inc/localize.sdf -l all) endif .PHONY : $(WORKDIR)/inc/svx/globlmn.hrc_clean $(WORKDIR)/inc/svx/globlmn.hrc_clean : - rm -f $(WORKDIR)/inc/svx/lastrun.mk \ - $(WORKDIR)/inc/svx/globlmn.hrc + rm -f $(WORKDIR)/inc/svx/lastrun.mk \ + $(WORKDIR)/inc/svx/globlmn.hrc # vim: set noet sw=4 ts=4: diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk index 4ce5250f77a5..732526c338ce 100755 --- a/svx/Library_svx.mk +++ b/svx/Library_svx.mk @@ -65,7 +65,6 @@ $(eval $(call gb_Library_add_linked_libs,svx,\ ucbhelper \ utl \ vcl \ - vos3 \ xo \ xcr \ $(gb_STDLIBS) \ @@ -117,7 +116,6 @@ $(eval $(call gb_Library_add_exception_objects,svx,\ svx/source/dialog/grfflt \ svx/source/dialog/hdft \ svx/source/dialog/hyperdlg \ - svx/source/dialog/hyprlink \ svx/source/dialog/imapdlg \ svx/source/dialog/imapwnd \ svx/source/dialog/measctrl \ diff --git a/svx/Library_svxcore.mk b/svx/Library_svxcore.mk index dd31e6b4bdd1..45cf8fa1a867 100755 --- a/svx/Library_svxcore.mk +++ b/svx/Library_svxcore.mk @@ -81,7 +81,6 @@ $(eval $(call gb_Library_add_linked_libs,svxcore,\ ucbhelper \ utl \ vcl \ - vos3 \ xo \ $(gb_STDLIBS) \ )) diff --git a/svx/Module_svx.mk b/svx/Module_svx.mk index d9288ea9e6b1..032f71ffa565 100755 --- a/svx/Module_svx.mk +++ b/svx/Module_svx.mk @@ -34,7 +34,6 @@ $(eval $(call gb_Module_add_targets,svx,\ AllLangResTarget_svx \ AllLangResTarget_ofa \ AllLangResTarget_gal \ - AllLangResTarget_about \ AllLangResTarget_textconversiondlgs \ Package_inc \ Package_sdi \ diff --git a/svx/Package_inc.mk b/svx/Package_inc.mk index 81066e9c7bff..11ad872fd714 100755 --- a/svx/Package_inc.mk +++ b/svx/Package_inc.mk @@ -83,7 +83,6 @@ $(eval $(call gb_Package_add_file,svx_inc,inc/svx/sdasitm.hxx,svx/sdasitm.hxx)) $(eval $(call gb_Package_add_file,svx_inc,inc/svx/svddrgmt.hxx,svx/svddrgmt.hxx)) $(eval $(call gb_Package_add_file,svx_inc,inc/svx/xlnasit.hxx,svx/xlnasit.hxx)) $(eval $(call gb_Package_add_file,svx_inc,inc/svx/xlndsit.hxx,svx/xlndsit.hxx)) -$(eval $(call gb_Package_add_file,svx_inc,inc/svx/hyprlink.hxx,svx/hyprlink.hxx)) $(eval $(call gb_Package_add_file,svx_inc,inc/svx/framelinkarray.hxx,svx/framelinkarray.hxx)) $(eval $(call gb_Package_add_file,svx_inc,inc/svx/svdetc.hxx,svx/svdetc.hxx)) $(eval $(call gb_Package_add_file,svx_inc,inc/svx/xflbmtit.hxx,svx/xflbmtit.hxx)) diff --git a/svx/inc/svdibrow.hxx b/svx/inc/svdibrow.hxx index 67c605fc6e31..968a5b1a4d31 100755 --- a/svx/inc/svdibrow.hxx +++ b/svx/inc/svdibrow.hxx @@ -81,7 +81,7 @@ public: void SetAttributes(const SfxItemSet* pAttr, const SfxItemSet* p2ndSet=NULL); sal_uIntPtr GetCurrentPos() const; sal_uInt16 GetCurrentWhich() const; - virtual bool BegChangeEntry(ULONG nPos); + virtual bool BegChangeEntry(sal_uIntPtr nPos); virtual bool EndChangeEntry(); virtual void BrkChangeEntry(); diff --git a/svx/inc/svx/dlgutil.hxx b/svx/inc/svx/dlgutil.hxx index 2a020f5c536b..5393b6e9dc97 100755 --- a/svx/inc/svx/dlgutil.hxx +++ b/svx/inc/svx/dlgutil.hxx @@ -40,7 +40,7 @@ class SfxItemSet; SVX_DLLPUBLIC FieldUnit GetModuleFieldUnit( const SfxItemSet& ); -SVX_DLLPUBLIC BOOL GetApplyCharUnit( const SfxItemSet& ); +SVX_DLLPUBLIC bool GetApplyCharUnit( const SfxItemSet& ); #define OUTPUT_DRAWMODE_COLOR (DRAWMODE_DEFAULT) #define OUTPUT_DRAWMODE_CONTRAST (DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT) diff --git a/svx/inc/svx/galtheme.hxx b/svx/inc/svx/galtheme.hxx index fc187a51c9bd..4d5f7bf7c313 100755 --- a/svx/inc/svx/galtheme.hxx +++ b/svx/inc/svx/galtheme.hxx @@ -114,7 +114,7 @@ private: void ImplCreateSvDrawStorage(); SVX_DLLPUBLIC SgaObject* ImplReadSgaObject( GalleryObject* pEntry ); - BOOL ImplWriteSgaObject( const SgaObject& rObj, size_t nPos, GalleryObject* pExistentEntry ); + sal_Bool ImplWriteSgaObject( const SgaObject& rObj, size_t nPos, GalleryObject* pExistentEntry ); void ImplRead(); void ImplWrite(); const GalleryObject* ImplGetGalleryObject( size_t nPos ) const @@ -144,11 +144,11 @@ public: size_t GetObjectCount() const { return aObjectList.size(); } SVX_DLLPUBLIC SgaObject* AcquireObject( size_t nPos ); - SVX_DLLPUBLIC void ReleaseObject( SgaObject* pObj ); + SVX_DLLPUBLIC void ReleaseObject( SgaObject* pObj ); - SVX_DLLPUBLIC sal_Bool InsertObject( const SgaObject& rObj, sal_uIntPtr nPos = LIST_APPEND ); - SVX_DLLPUBLIC BOOL RemoveObject( size_t nPos ); - BOOL ChangeObjectPos( size_t nOldPos, size_t nNewPos ); + SVX_DLLPUBLIC bool InsertObject( const SgaObject& rObj, sal_uIntPtr nPos = LIST_APPEND ); + SVX_DLLPUBLIC bool RemoveObject( size_t nPos ); + bool ChangeObjectPos( size_t nOldPos, size_t nNewPos ); SVX_DLLPUBLIC const String& GetName() const; const String& GetRealName() const; diff --git a/svx/inc/svx/svdglue.hxx b/svx/inc/svx/svdglue.hxx index bc3fc5ece547..df208d5185b1 100755 --- a/svx/inc/svx/svdglue.hxx +++ b/svx/inc/svx/svdglue.hxx @@ -75,7 +75,7 @@ class SVX_DLLPUBLIC SdrGluePoint { sal_uInt8 bUserDefined:1; // #i38892# public: SdrGluePoint(): nEscDir(SDRESC_SMART),nId(0),nAlign(0) { bNoPercent=sal_False; bReallyAbsolute=sal_False; bUserDefined=sal_True; } - SdrGluePoint(const Point& rNewPos, bool bNewPercent=TRUE, sal_uInt16 nNewAlign=0): aPos(rNewPos),nEscDir(SDRESC_SMART),nId(0),nAlign(nNewAlign) { bNoPercent=!bNewPercent; bReallyAbsolute=FALSE; bUserDefined=TRUE; } + SdrGluePoint(const Point& rNewPos, bool bNewPercent= sal_True, sal_uInt16 nNewAlign=0): aPos(rNewPos),nEscDir(SDRESC_SMART),nId(0),nAlign(nNewAlign) { bNoPercent=!bNewPercent; bReallyAbsolute = sal_False; bUserDefined = sal_True; } bool operator==(const SdrGluePoint& rCmpGP) const { return aPos==rCmpGP.aPos && nEscDir==rCmpGP.nEscDir && nId==rCmpGP.nId && nAlign==rCmpGP.nAlign && bNoPercent==rCmpGP.bNoPercent && bReallyAbsolute==rCmpGP.bReallyAbsolute && bUserDefined==rCmpGP.bUserDefined; } bool operator!=(const SdrGluePoint& rCmpGP) const { return !operator==(rCmpGP); } const Point& GetPos() const { return aPos; } diff --git a/svx/inc/svx/svdmodel.hxx b/svx/inc/svx/svdmodel.hxx index 8f3fc511db98..510e0b5cdb45 100755 --- a/svx/inc/svx/svdmodel.hxx +++ b/svx/inc/svx/svdmodel.hxx @@ -708,7 +708,7 @@ public: void ReformatAllTextObjects(); - bool HasTransparentObjects( sal_bool bCheckForAlphaChannel = sal_False ) const; + bool HasTransparentObjects( bool bCheckForAlphaChannel = false ) const; SdrOutliner* createOutliner( sal_uInt16 nOutlinerMode ); void disposeOutliner( SdrOutliner* pOutliner ); diff --git a/svx/inc/svx/svdotable.hxx b/svx/inc/svx/svdotable.hxx index a40b7b353af9..24ee35224b76 100755 --- a/svx/inc/svx/svdotable.hxx +++ b/svx/inc/svx/svdotable.hxx @@ -203,7 +203,7 @@ public: // Gleichzeitig wird der Text in den Outliner gesetzt (ggf. // der des EditOutliners) und die PaperSize gesetzt. virtual void TakeTextRect( const sdr::table::CellPos& rPos, SdrOutliner& rOutliner, ::Rectangle& rTextRect, bool bNoEditText = false, ::Rectangle* pAnchorRect=NULL, bool bLineWidth = true ) const; - virtual void TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText = false, Rectangle* pAnchorRect=NULL, sal_Bool bLineWidth = sal_True ) const; + virtual void TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText = false, Rectangle* pAnchorRect=NULL, bool bLineWidth = true ) const; virtual void TakeTextAnchorRect(const sdr::table::CellPos& rPos, ::Rectangle& rAnchorRect ) const; virtual void TakeTextAnchorRect(::Rectangle& rAnchorRect) const; diff --git a/svx/inc/svx/svdotext.hxx b/svx/inc/svx/svdotext.hxx index e1d1073771d7..4bf24bbd2700 100755 --- a/svx/inc/svx/svdotext.hxx +++ b/svx/inc/svx/svdotext.hxx @@ -257,7 +257,7 @@ protected: sal_Bool mbTextAnimationAllowed : 1; // flag for preventing recursive onEditOutlinerStatusEvent calls - BOOL mbInDownScale : 1; + sal_Bool mbInDownScale : 1; SdrOutliner& ImpGetDrawOutliner() const; diff --git a/svx/inc/svx/svdundo.hxx b/svx/inc/svx/svdundo.hxx index 07d1c3621123..a88540f7cb33 100755 --- a/svx/inc/svx/svdundo.hxx +++ b/svx/inc/svx/svdundo.hxx @@ -144,7 +144,7 @@ protected: protected: SdrUndoObj(SdrObject& rNewObj); - void ImpTakeDescriptionStr(USHORT nStrCacheID, String& rStr, bool bRepeat = false) const; + void ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, String& rStr, bool bRepeat = false) const; static void GetDescriptionStringForObject( const SdrObject& _rForObject, sal_uInt16 nStrCacheID, String& rStr, bool bRepeat = false ); @@ -631,7 +631,7 @@ protected: protected: SdrUndoPage(SdrPage& rNewPg); - void ImpTakeDescriptionStr(USHORT nStrCacheID, String& rStr, sal_uInt16 n=0, bool bRepeat = false) const; + void ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, String& rStr, sal_uInt16 n=0, bool bRepeat = false) const; }; //************************************************************ diff --git a/svx/source/dialog/dlgutil.cxx b/svx/source/dialog/dlgutil.cxx index 93c93e9ef586..8c06f09bc367 100755 --- a/svx/source/dialog/dlgutil.cxx +++ b/svx/source/dialog/dlgutil.cxx @@ -57,12 +57,12 @@ FieldUnit GetModuleFieldUnit( const SfxItemSet& rSet ) return eUnit; } -BOOL GetApplyCharUnit( const SfxItemSet& rSet ) +bool GetApplyCharUnit( const SfxItemSet& rSet ) { - BOOL bUseCharUnit = FALSE; + bool bUseCharUnit = false; const SfxPoolItem* pItem = NULL; - if ( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_APPLYCHARUNIT, FALSE, &pItem ) ) - bUseCharUnit = (BOOL)( (const SfxBoolItem*)pItem )->GetValue(); + if ( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_APPLYCHARUNIT, sal_False, &pItem ) ) + bUseCharUnit = ((const SfxBoolItem*)pItem )->GetValue(); else { // FIXME - this might be wrong, cf. the DEV300 changes in GetModuleFieldUnit() @@ -77,7 +77,7 @@ BOOL GetApplyCharUnit( const SfxItemSet& rSet ) { pItem = pModule->GetItem( SID_ATTR_APPLYCHARUNIT ); if ( pItem ) - bUseCharUnit = (BOOL)( (SfxBoolItem*)pItem )->GetValue(); + bUseCharUnit = ((SfxBoolItem*)pItem )->GetValue(); } else { diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx index e7dfd58f8037..6708f3b5cca0 100755 --- a/svx/source/dialog/fontwork.cxx +++ b/svx/source/dialog/fontwork.cxx @@ -1090,7 +1090,7 @@ void SvxFontWorkDialog::ApplyImageList() { ResMgr* _pMgr = &DIALOG_MGR(); - USHORT nBitmapResId = RID_SVXBMP_FONTWORK_FORM1; + sal_uInt16 nBitmapResId = RID_SVXBMP_FONTWORK_FORM1; sal_uInt16 nTextResId = RID_SVXSTR_FONTWORK_FORM1; bool bInit = aFormSet.GetItemCount() == 0; diff --git a/svx/source/dialog/hyprlink.cxx b/svx/source/dialog/hyprlink.cxx deleted file mode 100755 index dc7b438db0af..000000000000 --- a/svx/source/dialog/hyprlink.cxx +++ /dev/null @@ -1,999 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -// MARKER(update_precomp.py): autogen include statement, do not remove -#include "precompiled_svx.hxx" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "svx/hlnkitem.hxx" -#include -#include "hyprlink.hrc" -#include -#include "svx/hyprlink.hxx" -#include "hyprdlg.hxx" - -using namespace ::rtl; -using namespace ::com::sun::star; - -// ----------------------------------------------------------------------- - -class SearchDefaultConfigItem_Impl : public ::utl::ConfigItem -{ - OUString sDefaultEngine; -public: - SearchDefaultConfigItem_Impl(); - ~SearchDefaultConfigItem_Impl(); - - const OUString& GetDefaultSearchEngine(){ return sDefaultEngine;} - virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - virtual void Commit(); -}; - -/*-- 11.11.2003 14:20:59--------------------------------------------------- - - -----------------------------------------------------------------------*/ -SearchDefaultConfigItem_Impl::SearchDefaultConfigItem_Impl() : - ConfigItem(OUString::createFromAscii("Inet/DefaultSearchEngine")) -{ - uno::Sequence aNames(1); - aNames.getArray()[0] = OUString::createFromAscii("Name"); - uno::Sequence< uno::Any > aValues = GetProperties(aNames); - aValues.getConstArray()[0] >>= sDefaultEngine; -} -/*-- 11.11.2003 14:21:00--------------------------------------------------- - - -----------------------------------------------------------------------*/ -SearchDefaultConfigItem_Impl::~SearchDefaultConfigItem_Impl() -{ -} - -void SearchDefaultConfigItem_Impl::Notify( const com::sun::star::uno::Sequence< rtl::OUString >& ) -{ -} - -void SearchDefaultConfigItem_Impl::Commit() -{ -} - -/************************************************************************* -|* -|* Dialog zum Einf"ugen/"Andern eines Hyperlink -|* -\************************************************************************/ - -SvxHyperlinkDlg::SvxHyperlinkDlg( SfxBindings *_pBindings, Window* pParent) : - - ToolBox ( pParent, SVX_RES( RID_SVXDLG_HYPERLINK ) ), - SfxControllerItem ( SID_HYPERLINK_SETLINK, *_pBindings ), - - aForwarder ( SID_HYPERLINK_GETLINK, *this ), - aHyperlinkDlgForward( SID_HYPERLINK_DIALOG , *this), - - aNameCB ( this, SVX_RES( CB_NAME ) ), - aUrlFT ( this, SVX_RES( FT_URL ) ), - aUrlCB ( this, SVX_RES( CB_URL ) ), - aSearchConfig (sal_True), - sAddress ( SVX_RES( STR_ADDRESS ) ), - sExplorer ( SVX_RES( STR_EXPLORER ) ), - sSearchTitle ( SVX_RES( STR_BOOKMARK_SEARCH ) ), - aLinkPopup ( SVX_RES( RID_SVXMN_HYPERLINK ) ), - pTargetMenu ( NULL ), - - bNoDoc ( sal_True ), - bSend ( sal_False ), - bHasOldName ( sal_False ), - bHtmlMode ( sal_False ) - -{ - FreeResource(); - - mpManager = SfxImageManager::GetImageManager( 0 ); - mpManager->RegisterToolBox( this ); - - SetImages(); - - // save initial size - nMaxWidth = GetSizePixel().Width(); - nMaxHeight = GetSizePixel().Height(); - - - InsertSeparator( 0 ); - InsertWindow( CB_URL, &aUrlCB, 0, 0 ); - // we need an item text for accessibility - String sItemText = aUrlCB.GetText(); - if ( sItemText.Len() == 0 ) - sItemText = aUrlCB.GetQuickHelpText(); - if ( sItemText.Len() > 0 ) - { - SetItemText( CB_URL, sItemText ); - sItemText.Erase(); - } - InsertWindow( FT_URL, &aUrlFT, 0, 0 ); - InsertSeparator( 0 ); - InsertWindow( CB_NAME, &aNameCB, 0, 0 ); - sItemText = aNameCB.GetText(); - if ( sItemText.Len() == 0 ) - sItemText = aNameCB.GetQuickHelpText(); - if ( sItemText.Len() > 0 ) - SetItemText( CB_NAME, sItemText ); - - SetSizePixel(CalcWindowSizePixel()); // Groesse initialisieren - - nMaxHeight = GetSizePixel().Height(); // Hoehe nochmal merken, da sie veraendert wurde - // SetSizePixel ruft Resize-Handler! - - Show(); - Resize(); - - long nUrlWidth = aUrlCB.GetResizeWidth(); - long nNameWidth = aNameCB.GetResizeWidth(); - long nSum = nUrlWidth + nNameWidth; - - aUrlCB.SetRatio((nUrlWidth * 100L) / nSum); - aNameCB.SetRatio((nNameWidth * 100L) / nSum); - - SetClickHdl( LINK( this, SvxHyperlinkDlg, TBClickHdl ) ); - SetSelectHdl( LINK( this, SvxHyperlinkDlg, TBSelectHdl ) ); - SetDropdownClickHdl( LINK( this, SvxHyperlinkDlg, DropdownClick ) ); - - SetItemBits( BTN_TARGET, GetItemBits( BTN_TARGET ) | TIB_DROPDOWNONLY ); - SetItemBits( BTN_INET_SEARCH, GetItemBits( BTN_INET_SEARCH ) | TIB_DROPDOWN ); - SetItemBits( BTN_INET_SEARCH, GetItemBits( BTN_TARGET ) | TIB_DROPDOWNONLY ); - - aLinkPopup.SetSelectHdl(LINK(this, SvxHyperlinkDlg, LinkPopupSelectHdl)); - - Link aLk = LINK(this, SvxHyperlinkDlg, ComboSelectHdl); - aNameCB.SetSelectHdl(aLk); - aUrlCB.SetSelectHdl(aLk); - - aLk = LINK(this, SvxHyperlinkDlg, ComboModifyHdl); - aNameCB.SetModifyHdl(aLk); - aUrlCB.SetModifyHdl(aLk); - - // Accessibility: Set the quick help text as accessible name for the - // drop down lists. - aNameCB.SetAccessibleName (aNameCB.GetQuickHelpText()); - aUrlCB.SetAccessibleName (aUrlCB.GetQuickHelpText()); - - // Hide button according to config item. - SvtCommandOptions aCmdOpts; - if ( aCmdOpts.Lookup( SvtCommandOptions::CMDOPTION_DISABLED, - rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM( - "InternetSearch" ) ) ) ) - HideItem( BTN_INET_SEARCH ); -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -SvxHyperlinkDlg::~SvxHyperlinkDlg() -{ - SfxImageManager::GetImageManager( 0 )->ReleaseToolBox(this); - - if (pTargetMenu != NULL) - delete pTargetMenu; -} - -/*-------------------------------------------------------------------- - Beschreibung: Leiste so resizen, dass die Comboboxen automatisch mit - verkleinert werden - --------------------------------------------------------------------*/ - -void SvxHyperlinkDlg::Resize() -{ - long nWidth = GetSizePixel().Width(); - - ToolBox::Resize(); - - if (nWidth) // nWidth ist manchmal 0 - { - long nDeltaW = nMaxWidth - nWidth + aUrlCB.LogicToPixel(Size(3, 1)).Width() + 1; - - long nNewUrlWidth = aUrlCB.CalcResizeWidth(nDeltaW); - long nNewNameWidth = aNameCB.CalcResizeWidth(nDeltaW); - - if (nNewUrlWidth && nNewNameWidth) // Flackern reduzieren - { - SetUpdateMode(sal_False); - - // Comboboxen resizen - aUrlCB.DoResize(nNewUrlWidth); - aNameCB.DoResize(nNewNameWidth); - RecalcItems(); // Alle Elemente neu anordnen - - SetUpdateMode(sal_True); - } - } -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -void SvxHyperlinkDlg::Resizing(Size& rSize) -{ - if (rSize.Height() > nMaxHeight) - rSize.Height() = nMaxHeight; - - if (rSize.Width() > nMaxWidth) - rSize.Width() = nMaxWidth; - - ToolBox::Resizing(rSize); -} - -/*-------------------------------------------------------------------- - Beschreibung: Im Dokument selektierten Hyperlink in Leiste anzeigen - --------------------------------------------------------------------*/ - -void SvxHyperlinkDlg::StateChanged( sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState ) -{ - if ( nSID == SID_HYPERLINK_DIALOG ) - { - if( eState != SFX_ITEM_DISABLED) - { - EnableItem( BTN_OPENDIALOG, sal_True ); - - sal_Bool bItem = sal_False; - if ( pState && eState == SFX_ITEM_AVAILABLE ) - bItem = ((SfxBoolItem*)pState)->GetValue(); - SetItemState ( BTN_OPENDIALOG, bItem ? STATE_CHECK : STATE_NOCHECK ); - } - else - { - SetItemState ( BTN_OPENDIALOG, STATE_NOCHECK ); - EnableItem( BTN_OPENDIALOG, sal_False ); - } - } - - if (nSID == SID_HYPERLINK_SETLINK) - { - if (eState == SFX_ITEM_DISABLED) - bNoDoc = sal_True; - else - bNoDoc = sal_False; - EnableItem(BTN_TARGET, !bNoDoc); - EnableLink(); - } - - if (nSID == SID_HYPERLINK_GETLINK) - { - if (eState == SFX_ITEM_AVAILABLE) - { - const SvxHyperlinkItem& rHLnkItem = *((const SvxHyperlinkItem*)pState); - - sal_uInt16 nNamePos = aNameCB.GetEntryPos(aNameCB.GetText()); - sal_uInt16 nUrlPos = aUrlCB.GetEntryPos(aUrlCB.GetText()); - sal_uInt16 nNotFound = COMBOBOX_ENTRY_NOTFOUND; - - if (!bHasOldName && - (nNamePos == nNotFound || nUrlPos == nNotFound)) - { - sOldName = aNameCB.GetText(); - bHasOldName = sal_True; - } - if (rHLnkItem.GetName().Len()) - { - aNameCB.SetText(rHLnkItem.GetName()); - ComboModifyHdl(&aNameCB); - } - if (rHLnkItem.GetURL().Len() || rHLnkItem.GetName().Len()) - { - String sUrl = INetURLObject(rHLnkItem.GetURL()).GetURLNoPass(); - aUrlCB.SetText(sUrl); - } - else if (aUrlCB.GetEntryCount()) - { // Letzten Eintrag wieder selektieren - aNameCB.SetText(aNameCB.GetEntry(0)); - aUrlCB.SetText(aUrlCB.GetEntry(0)); - } - - TargetMenu(rHLnkItem.GetTargetFrame(), sal_False); - bHtmlMode = (rHLnkItem.GetInsertMode() & HLINK_HTMLMODE) != 0; - } - else - return; - - ComboModifyHdl(&aUrlCB); - } -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -IMPL_LINK( SvxHyperlinkDlg, TBClickHdl, ToolBox *, pBox ) -{ - switch (pBox->GetCurItemId()) - { - case BTN_LINK: - { - if (!bSend) // Link ins Dokument einfuegen - SendToApp(HLINK_DEFAULT); - } - break; - - case BTN_OPENDIALOG: - { - GetBindings().GetDispatcher()->Execute( SID_HYPERLINK_DIALOG ); - } - break; - } - - return sal_True; -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -IMPL_LINK( SvxHyperlinkDlg, TBSelectHdl, ToolBox *, pBox ) -{ - switch (pBox->GetCurItemId()) - { - // Link als Bookmark im Explorer eintragen - // Soll erst im Loslassen der Maus gerufen werden, daher im Select-Hdl - case BTN_INSERT_BOOKMARK: - { - String sName = aNameCB.GetText(); - if ( !sName.Len() ) - sName = aUrlCB.GetText(); - - String aBase = GetBindings().GetDispatcher()->GetFrame()->GetObjectShell()->GetMedium()->GetBaseURL(); - SfxStringItem aName( SID_BOOKMARK_TITLE, sName ); - SfxStringItem aURL( SID_BOOKMARK_URL, - URIHelper::SmartRel2Abs( INetURLObject(aBase), aUrlCB.GetText(), URIHelper::GetMaybeFileHdl(), true, false, - INetURLObject::WAS_ENCODED, - INetURLObject::DECODE_UNAMBIGUOUS ) ); - GetBindings().GetDispatcher()->Execute( - SID_CREATELINK, SFX_CALLMODE_ASYNCHRON, &aName, &aURL, 0L ); - } - break; - } - - return sal_True; -} - -IMPL_LINK( SvxHyperlinkDlg, DropdownClick, ToolBox *, pBox ) -{ - switch (pBox->GetCurItemId()) - { - case BTN_LINK: - { - // Link-Popup anstossen - EndSelection(); // Vor dem Execute, damit Popup den Focus bekommt - aLinkPopup.EnableItem(MN_BUTTON, !bHtmlMode); - aLinkPopup.Execute( this, GetItemRect( BTN_LINK ), FLOATWIN_POPUPMODE_DOWN ); - } - break; - - case BTN_INET_SEARCH: - { - // Search-Engines per Popup auswaehlen - PopupMenu *pMenu = new PopupMenu; - pMenu->SetSelectHdl(LINK(this, SvxHyperlinkDlg, SearchPopupSelectHdl)); - SearchDefaultConfigItem_Impl aDefaultEngine; - String sDefault(aDefaultEngine.GetDefaultSearchEngine()); - sDefault.ToLowerAscii(); - const bool bHasDefault = sDefault.Len() > 0; - - sal_uInt16 nCount = aSearchConfig.Count(); - String sFound; - for (sal_uInt16 i = 0; i < nCount; i++) - { - const SvxSearchEngineData& rData = aSearchConfig.GetData(i); - //check if it's the configured default search engine - String sTest(rData.sEngineName); - sTest.ToLowerAscii(); - bool bIsDefaultEngine = bHasDefault && STRING_NOTFOUND != sTest.Search( sDefault ); - //then put it at the top - if(i && bIsDefaultEngine) - { - pMenu->InsertItem( i + 1, rData.sEngineName, 0, 0); - pMenu->InsertSeparator(1); - } - else - { - if (i) - pMenu->InsertSeparator(); - pMenu->InsertItem( i + 1, rData.sEngineName); - } - } - pBox->SetItemDown(BTN_INET_SEARCH, sal_True, sal_True); - pMenu->Execute( this, GetItemRect( BTN_INET_SEARCH ), FLOATWIN_POPUPMODE_DOWN ); - pBox->SetItemDown(BTN_INET_SEARCH, sal_False, sal_True); - EndSelection(); - delete pMenu; - } - break; - - case BTN_TARGET: - { - // Target Frame einstellen - TargetMenu(GetSelTarget(), sal_True); - EndSelection(); - } - break; - } - - return sal_True; -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -void SvxHyperlinkDlg::TargetMenu(const String& rSelEntry, sal_Bool bExecute) -{ - if (pTargetMenu && !bExecute) - { - for (sal_uInt16 i = 1; i <= pTargetMenu->GetItemCount(); i++) - { - if (pTargetMenu->GetItemText(i) == rSelEntry) - { - pTargetMenu->CheckItem(i); - return; - } - } - } - - SfxViewFrame* pVwFrm = SfxViewFrame::Current(); - - if (pVwFrm) // Alle moeglichen Target Frames zusammensammeln und anzeigen - { - TargetList aList; - pVwFrm->GetTopFrame().GetTargetList(aList); - - sal_uInt16 nCount = (sal_uInt16)aList.Count(); - if( nCount ) - { - sal_Bool bChecked = sal_False; - - if (pTargetMenu != NULL) - delete pTargetMenu; - - pTargetMenu = new PopupMenu; - pTargetMenu->SetMenuFlags( pTargetMenu->GetMenuFlags() | - MENU_FLAG_NOAUTOMNEMONICS ); - sal_uInt16 i; - for ( i = 0; i < nCount; i++ ) - { - String sEntry(*aList.GetObject(i)); - pTargetMenu->InsertItem(i + 1, sEntry, MIB_RADIOCHECK|MIB_AUTOCHECK); - - if (sEntry == rSelEntry) - { - pTargetMenu->CheckItem(i + 1); - bChecked = sal_True; - } - } - for ( i = nCount; i; i-- ) - delete aList.GetObject( i - 1 ); - - if (!bChecked) - pTargetMenu->CheckItem(1); - - if (bExecute) - { - sal_uInt16 nEntry = pTargetMenu->Execute( - this, GetItemRect( BTN_TARGET ), FLOATWIN_POPUPMODE_DOWN ); - if ( nEntry ) - pTargetMenu->CheckItem( nEntry ); - } - } - } -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -IMPL_LINK( SvxHyperlinkDlg, LinkPopupSelectHdl, Menu *, pMenu ) -{ - switch (pMenu->GetCurItemId()) - { - case MN_FIELD: // URL als Hyperlink ins Dok einfuegen - SendToApp(HLINK_FIELD); - break; - case MN_BUTTON: // URL als Button ins Dok einfuegen - SendToApp(HLINK_BUTTON); - break; - } - - return sal_True; -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -IMPL_LINK( SvxHyperlinkDlg, SearchPopupSelectHdl, Menu *, pMenu ) -{ - const SvxSearchEngineData& rData = aSearchConfig.GetData(pMenu->GetCurItemId() - 1); - String sText(aNameCB.GetText()); - sText.EraseLeadingChars().EraseTrailingChars(); - - rtl::OUString sPrefix; - rtl::OUString sSuffix; - rtl::OUString sSeparator; - sal_Int32 nCaseMatch; - sal_Unicode cToken = 0; - - if (sText.Search(' ') != STRING_NOTFOUND) - { - sPrefix = rData.sExactPrefix; - sSuffix = rData.sExactSuffix; - sSeparator = rData.sExactSeparator; - nCaseMatch = rData.nExactCaseMatch; - cToken = ' '; - } - else if (sText.Search('+') != STRING_NOTFOUND) - { - sPrefix = rData.sAndPrefix; - sSuffix = rData.sAndSuffix; - sSeparator = rData.sAndSeparator; - nCaseMatch = rData.nAndCaseMatch; - cToken = '+'; - } - else if (sText.Search(',') != STRING_NOTFOUND) - { - sPrefix = rData.sOrPrefix; - sSuffix = rData.sOrSuffix; - sSeparator = rData.sOrSeparator; - nCaseMatch = rData.nOrCaseMatch; - cToken = ','; - } - else - { - sPrefix = rData.sExactPrefix; - sSuffix = rData.sExactSuffix; - nCaseMatch = rData.nExactCaseMatch; - cToken = 0; - } - - String sURL = sPrefix; - xub_StrLen nTok; - - if(1 == nCaseMatch) - sText.ToUpperAscii(); - else if(2 == nCaseMatch) - sText.ToLowerAscii(); - - if ((nTok = sText.GetTokenCount(cToken)) > 1) - { - for (sal_uInt16 i = 0; i < nTok; i++) - { - sURL += sText.GetToken(i, cToken); - if(i < nTok -1) - sURL += (String)sSeparator; - } - sURL += (String)sSuffix; - } - else - { - sURL += sText; - sURL += (String)sSuffix; - } - sURL.EraseAllChars(); // remove all spaces - SfxViewFrame* pViewFrame = SfxViewFrame::Current(); - if ( pViewFrame ) - pViewFrame = pViewFrame->GetTopViewFrame(); - OpenDoc( sURL, pViewFrame ); - - return sal_True; -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -IMPL_LINK( SvxHyperlinkDlg, BookmarkFoundHdl, String *, pUrl ) -{ - if (pUrl && pUrl->Len()) - { - aUrlCB.SetText(*pUrl); - ComboModifyHdl(&aUrlCB); - } - - return sal_True; -} -/*-------------------------------------------------------------------- - Beschreibung: Link-Button enablen/disablen - --------------------------------------------------------------------*/ - -void SvxHyperlinkDlg::EnableLink() -{ - sal_Bool bEnable = aUrlCB.GetText().Len() != 0; - - EnableItem(BTN_LINK, (!bNoDoc) & bEnable); -} - -/*-------------------------------------------------------------------- - Beschreibung: URL im Dokument einfuegen - --------------------------------------------------------------------*/ - -void SvxHyperlinkDlg::SendToApp(sal_uInt16 nType) -{ - sal_Bool bIsFile = sal_False; - bSend = sal_True; - String sURL( aUrlCB.GetText() ); - - if ( !sURL.Len() ) - return; - - String aBase = GetBindings().GetDispatcher()->GetFrame()->GetObjectShell()->GetMedium()->GetBaseURL(); - INetURLObject aObj( URIHelper::SmartRel2Abs( INetURLObject(aBase), sURL, URIHelper::GetMaybeFileHdl(), true, false, - INetURLObject::WAS_ENCODED, - INetURLObject::DECODE_UNAMBIGUOUS ) ); - sURL = aObj.GetMainURL( INetURLObject::NO_DECODE ); - if ( aObj.GetProtocol() == INET_PROT_FILE ) - bIsFile = sal_True; - - if ( bIsFile ) - { - EnterWait(); - SfxMedium aMedium( sURL, STREAM_STD_READ, sal_True ); - if ( aMedium.Exists( sal_False ) == sal_False ) - { - LeaveWait(); - QueryBox aBox( this, SVX_RES( RID_SVXQB_DONTEXIST ) ); - if ( aBox.Execute() == RET_NO ) - return; - } - else - LeaveWait(); - } - - SvxHyperlinkItem aItem( SID_HYPERLINK_SETLINK ); - - if (aNameCB.GetText().Len()) - aItem.SetName( aNameCB.GetText() ); - else - aItem.SetName( sURL ); - - sOldName = aNameCB.GetText(); - - aItem.SetURL(sURL); - aItem.SetInsertMode( (SvxLinkInsertMode)nType ); - aItem.SetTargetFrame( GetSelTarget() ); - - GetBindings().GetDispatcher()->Execute( - SID_HYPERLINK_SETLINK, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L ); - - AddToHistory( aNameCB.GetText(), sURL ); - - if ( sURL != aUrlCB.GetText() ) - aUrlCB.SetText( sURL ); -} - -/*-------------------------------------------------------------------- - Beschreibung: Selektierten Target Frame Eintrag im Popup ermitteln - --------------------------------------------------------------------*/ - -String SvxHyperlinkDlg::GetSelTarget() -{ - String sTarget; - - if (pTargetMenu != NULL) - { - for (sal_uInt16 i = 1; i <= pTargetMenu->GetItemCount(); i++) - { - if (pTargetMenu->IsItemChecked(i)) - { - sTarget = pTargetMenu->GetItemText(i); - break; - } - } - } - - return sTarget; -} - -/*-------------------------------------------------------------------- - Beschreibung: URL in History der Leiste aufnehmen - --------------------------------------------------------------------*/ - -void SvxHyperlinkDlg::AddToHistory(const String& rName, const String& rURL) -{ - String sName(rName); - - if (bHasOldName && sOldName.Len()) - { - sName = sOldName; - bHasOldName = sal_False; - } - - if (!sName.Len()) - sName = rURL; - - if (rURL.Len()) - { - sal_uInt16 nNamePos = aNameCB.GetEntryPos(sName); - sal_uInt16 nUrlPos = aUrlCB.GetEntryPos(rURL); - sal_uInt16 nPos = COMBOBOX_ENTRY_NOTFOUND; - - if (nNamePos != COMBOBOX_ENTRY_NOTFOUND) - nPos = nNamePos; - else - nPos = nUrlPos; - - // Alten Eintrag durch neuen Eintrag ersetzen - if (nPos != COMBOBOX_ENTRY_NOTFOUND) - { - aNameCB.RemoveEntry(nPos); - aUrlCB.RemoveEntry(nPos); - aNameCB.SetText(rName); - aUrlCB.SetText(rURL); - } - - aNameCB.InsertEntry(sName, 0); - aUrlCB.InsertEntry(rURL, 0); - } -} - -/*-------------------------------------------------------------------- - Beschreibung: Bookmark und Search-Button enablen/disablen - --------------------------------------------------------------------*/ - -IMPL_LINK( SvxHyperlinkDlg, ComboSelectHdl, ComboBox *, pCombo ) -{ - sal_uInt16 nPos = pCombo->GetEntryPos(pCombo->GetText()); - - if (nPos != COMBOBOX_ENTRY_NOTFOUND) - { - aNameCB.SetText(aNameCB.GetEntry(nPos)); - aUrlCB.SetText(aUrlCB.GetEntry(nPos)); - - EnableLink(); - EnableItem(BTN_INSERT_BOOKMARK, sal_True); - EnableItem(BTN_INET_SEARCH, sal_True); - } - return sal_True; -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -IMPL_LINK( SvxHyperlinkDlg, ComboModifyHdl, ComboBox *, pCombo ) -{ - sal_Bool bEnable = sal_True; - - if (!pCombo->GetText().Len()) - bEnable = sal_False; - - if (pCombo == &aNameCB) - { - if (IsItemEnabled(BTN_INET_SEARCH) != bEnable) - EnableItem(BTN_INET_SEARCH, bEnable); - } - - EnableLink(); - - if (aUrlCB.GetText().Len()) - bEnable = sal_True; - else - bEnable = sal_False; - - if (IsItemEnabled(BTN_INSERT_BOOKMARK) != bEnable) - EnableItem(BTN_INSERT_BOOKMARK, bEnable); - - return sal_True; -} - -// -------------------------------------------------------------------- - -void SvxHyperlinkDlg::DataChanged( const DataChangedEvent& rDCEvt ) -{ - ToolBox::DataChanged( rDCEvt ); - - if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE)) - SetImages(); -} - -// -------------------------------------------------------------------- - -void SvxHyperlinkDlg::SetImages() -{ - bool bHighContrast = GetSettings().GetStyleSettings().GetHighContrastMode(); - - SetItemImage( BTN_LINK, mpManager->GetImage( BTN_LINK, bHighContrast ) ); - SetItemImage( BTN_INSERT_BOOKMARK, mpManager->GetImage( BTN_INSERT_BOOKMARK, bHighContrast ) ); - SetItemImage( BTN_INET_SEARCH, mpManager->GetImage( BTN_INET_SEARCH, bHighContrast ) ); - SetItemImage( BTN_TARGET, mpManager->GetImage( BTN_TARGET, bHighContrast ) ); - SetItemImage( BTN_OPENDIALOG, mpManager->GetImage( BTN_OPENDIALOG, bHighContrast ) ); -} - -/*-------------------------------------------------------------------- - Beschreibung: Comboboxen - --------------------------------------------------------------------*/ - -HyperCombo::HyperCombo( SvxHyperlinkDlg* pDialog, const ResId& rResId ) : - ComboBox( (Window *)pDialog, rResId ) -{ - pDlg = pDialog; - - nMaxWidth = GetSizePixel().Width(); - if (this == &pDlg->aUrlCB) - nMinWidth = GetTextWidth(String::CreateFromAscii("http://www.stardiv.dewww")); - else - nMinWidth = GetTextWidth(String::CreateFromAscii("StarDivision GmbHwww")); -} - -/*-------------------------------------------------------------------- - Beschreibung: Comboboxen KeyInput - --------------------------------------------------------------------*/ - -long HyperCombo::Notify( NotifyEvent& rNEvt ) -{ - long nHandled = 0; - static sal_Bool bLocked = sal_False; - - if (bLocked) // Keine weiteren RETURNs annehmen (nicht Reentrant!) - return nHandled; - - bLocked = sal_True; - - if ( rNEvt.GetType() == EVENT_KEYINPUT ) - { - const KeyEvent* pKEvt = rNEvt.GetKeyEvent(); - const KeyCode aKeyCode = pKEvt->GetKeyCode(); - - if (aKeyCode.GetCode() == KEY_RETURN) - { - pDlg->SendToApp(HLINK_DEFAULT); - nHandled = 1; - } - } - if (this == &pDlg->aNameCB) - pDlg->sOldName = GetText(); - - if (!nHandled) - nHandled = ComboBox::Notify( rNEvt ); - - bLocked = sal_False; - - return nHandled; -} - -/*-------------------------------------------------------------------- - Beschreibung: Drag&Drop vor dem Combo-Edit abfangen und weiterleiten - --------------------------------------------------------------------*/ - -long HyperCombo::PreNotify( NotifyEvent& rNEvt ) -{ - long nHandled = 0; - - nHandled = ComboBox::PreNotify( rNEvt ); - - return nHandled; -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -long HyperCombo::CalcResizeWidth( long nW ) -{ - long nNewWidth = Max(nMaxWidth - nW * GetRatio() / 100L, nMinWidth); - - if (nNewWidth > nMaxWidth) - nNewWidth = nMaxWidth; - - if (nNewWidth != GetSizePixel().Width()) - return nNewWidth; - else - return 0; // Kein Resize notwendig -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -void HyperCombo::DoResize( long nNewWidth ) -{ - SetSizePixel(Size(nNewWidth, GetSizePixel().Height())); -} - -/*-------------------------------------------------------------------- - Beschreibung: FixedText - --------------------------------------------------------------------*/ - -HyperFixedText::HyperFixedText( SvxHyperlinkDlg* pDialog, const ResId& rResId ) : - FixedInfo( (Window *)pDialog, rResId ) -{ - pDlg = pDialog; -} - -/*-------------------------------------------------------------------- - Beschreibung: Webseite der Search-Engine mit Suchergebnissen anzeigen - --------------------------------------------------------------------*/ -void SvxHyperlinkDlg::OpenDoc( const String& rURL, SfxViewFrame* pViewFrame ) -{ - SfxStringItem aName( SID_FILE_NAME, rURL ); - SfxStringItem aReferer( SID_REFERER, String::CreateFromAscii("private:user") ); - SfxBoolItem aNewView( SID_OPEN_NEW_VIEW, sal_True ); - SfxBoolItem aSilent( SID_SILENT, sal_True ); - SfxBoolItem aReadOnly( SID_DOC_READONLY, sal_True ); - SfxBoolItem aExternal( SID_BROWSE, sal_True ); - SfxDispatcher* pDisp = SfxViewFrame::Current() ? SfxViewFrame::Current()->GetDispatcher() : NULL; - - if ( pViewFrame ) - { - SfxFrameItem aView( SID_DOCFRAME, pViewFrame ? &pViewFrame->GetFrame() : NULL ); - if ( pDisp ) - pDisp->Execute( SID_OPENDOC, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, - &aName, &aView, &aNewView, &aSilent, &aReadOnly, &aReferer, &aExternal, 0L ); - } - else if ( pDisp ) - pDisp->Execute( SID_OPENDOC, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, - &aName, &aNewView, &aSilent, &aReadOnly, &aReferer, 0L ); -} -// class SvxHyperlinkDialogWrapper ------------------------------------------ - -SFX_IMPL_CHILDWINDOW(SvxHyperlinkDlgWrapper, SID_HYPERLINK_INSERT) - -/*-------------------------------------------------------------------- - Beschreibung: Wrapper fuer Hyperlinkleiste - --------------------------------------------------------------------*/ - -SvxHyperlinkDlgWrapper::SvxHyperlinkDlgWrapper( Window* _pParent, sal_uInt16 nId, - SfxBindings* _pBindings, SfxChildWinInfo* /*pInfo*/ ) : - - SfxChildWindow( _pParent, nId ) - -{ - pWindow = new SvxHyperlinkDlg( _pBindings, _pParent ); - eChildAlignment = SFX_ALIGN_TOP; -} - -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - -SfxChildWinInfo SvxHyperlinkDlgWrapper::GetInfo() const -{ - SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); - return aInfo; -} - diff --git a/svx/source/dialog/hyprlink.src b/svx/source/dialog/hyprlink.src deleted file mode 100755 index c59a2f8eb52a..000000000000 --- a/svx/source/dialog/hyprlink.src +++ /dev/null @@ -1,167 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - // include ------------------------------------------------------------------ -#include -#include "hyprlink.hrc" -#include "helpid.hrc" -#include - - // pragma ------------------------------------------------------------------- - - // RID_SVXDLG_HYPERLINK ------------------------------------------------------ -ToolBox RID_SVXDLG_HYPERLINK -{ - OutputSize = TRUE ; - Hide = TRUE; - - // Dockable = TRUE ; - // Closeable = TRUE ; - // Moveable = TRUE ; - // Sizeable = TRUE ; - // EnableResizing = TRUE ; - - SVLook = TRUE ; - Border = TRUE ; - Size = MAP_APPFONT ( 410 , 17 ) ; - Scroll = TRUE ; - HelpID = HID_OFA_HYPERLINK_DLG ; - - Text [ en-US ] = "Insert Hyperlink" ; - - ComboBox CB_NAME - { - HelpID = HID_OFA_HYPERLINK_NAME ; - Pos = MAP_APPFONT ( 2 , 3 ) ; - Size = MAP_APPFONT ( 100 , 60 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - AutoSize = TRUE ; - AutoHScroll = TRUE ; - DDExtraWidth = TRUE ; - QuickHelpText [ en-US ] = "URL Name" ; - }; - FixedText FT_URL - { - HelpID = HID_OFA_HYPERLINK_URL_TXT ; - Pos = MAP_APPFONT ( 105 , 5 ) ; - Size = MAP_APPFONT ( 16 , 10 ) ; - Text [ en-US ] = "URL:" ; - }; - ComboBox CB_URL - { - HelpID = HID_OFA_HYPERLINK_URL ; - Pos = MAP_APPFONT ( 121 , 3 ) ; - Size = MAP_APPFONT ( 204 , 60 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - AutoSize = TRUE ; - AutoHScroll = TRUE ; - DDExtraWidth = TRUE ; - QuickHelpText [ en-US ] = "Internet URLs" ; - }; - ItemList = - { - ToolBoxItem - { - HelpID = HID_OFA_HYPERLINK_TARGET ; - Identifier = BTN_TARGET ; - DropDown = TRUE ; - Text [ en-US ] = "Target Frame" ; - }; - ToolBoxItem - { - Type = TOOLBOXITEM_SEPARATOR ; - }; - ToolBoxItem - { - HelpID = CMD_SID_HYPERLINK_SETLINK ; - Identifier = BTN_LINK ; - Disable = TRUE ; - DropDown = TRUE ; - Text [ en-US ] = "Hyperlink" ; - }; - ToolBoxItem - { - HelpID = CMD_SID_CREATELINK ; - Identifier = BTN_INSERT_BOOKMARK ; - Disable = TRUE ; - Hide = TRUE; - Text [ en-US ] = "Link" ; - }; - ToolBoxItem - { - HelpID = HID_OFA_HYPERLINK_SEARCH ; - Identifier = BTN_INET_SEARCH ; - Disable = TRUE ; - DropDown = TRUE ; - Text [ en-US ] = "Find" ; - }; - }; - String STR_ADDRESS - { - Text [ en-US ] = "Address Book" ; - }; - String STR_EXPLORER - { - Text [ en-US ] = "Bookmark folder" ; - }; - String STR_BOOKMARK_SEARCH - { - Text [ en-US ] = "Search in bookmarks"; - }; -}; - // PopupMenu ------------------------------------------------------------- -Menu RID_SVXMN_HYPERLINK -{ - ItemList = - { - MenuItem - { - Identifier = MN_FIELD ; - Text [ en-US ] = "As Text" ; - }; - MenuItem - { - Identifier = MN_BUTTON ; - Text [ en-US ] = "As Button" ; - }; - }; -}; -QueryBox RID_SVXQB_DONTEXIST -{ - BUTTONS = WB_YES_NO ; - DEFBUTTON = WB_DEF_YES ; - Message [ en-US ] = "This URL does not exist.\nInsert anyway?" ; -}; - - - - - - - - diff --git a/svx/source/dialog/rulritem.cxx b/svx/source/dialog/rulritem.cxx index 1826c8795738..091b715aee89 100755 --- a/svx/source/dialog/rulritem.cxx +++ b/svx/source/dialog/rulritem.cxx @@ -728,7 +728,7 @@ bool SvxObjectItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMembe bool SvxObjectItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) { nMemberId &= ~CONVERT_TWIPS; - BOOL bRet = false; + bool bRet = false; switch ( nMemberId ) { case MID_START_X : bRet = (rVal >>= nStartX); break; diff --git a/svx/source/engine3d/svx3ditems.cxx b/svx/source/engine3d/svx3ditems.cxx index 8ba64b7afbd2..78095748995a 100755 --- a/svx/source/engine3d/svx3ditems.cxx +++ b/svx/source/engine3d/svx3ditems.cxx @@ -399,13 +399,13 @@ SfxPoolItem* Svx3DCloseBackItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) ////////////////////////////////////////////////////////////////////////////// // Svx3DNormalsKindItem: use drawing::NormalsKind -sal_Bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const +bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { rVal <<= (drawing::NormalsKind)GetValue(); return true; } -sal_Bool Svx3DNormalsKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) +bool Svx3DNormalsKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) { drawing::NormalsKind eVar; if(!(rVal >>= eVar)) @@ -420,13 +420,13 @@ SfxPoolItem* Svx3DNormalsKindItem::Clone(SfxItemPool* /*pPool*/) const } // Svx3DTextureProjectionXItem: use drawing::TextureProjectionMode -sal_Bool Svx3DTextureProjectionXItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const +bool Svx3DTextureProjectionXItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { rVal <<= (drawing::TextureProjectionMode)GetValue(); return true; } -sal_Bool Svx3DTextureProjectionXItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) +bool Svx3DTextureProjectionXItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) { drawing::TextureProjectionMode eVar; if(!(rVal >>= eVar)) @@ -441,13 +441,13 @@ SfxPoolItem* Svx3DTextureProjectionXItem::Clone(SfxItemPool* /*pPool*/) const } // Svx3DTextureProjectionYItem: use drawing::TextureProjectionMode -sal_Bool Svx3DTextureProjectionYItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const +bool Svx3DTextureProjectionYItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { rVal <<= (drawing::TextureProjectionMode)GetValue(); return true; } -sal_Bool Svx3DTextureProjectionYItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) +bool Svx3DTextureProjectionYItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) { drawing::TextureProjectionMode eVar; if(!(rVal >>= eVar)) @@ -462,13 +462,13 @@ SfxPoolItem* Svx3DTextureProjectionYItem::Clone(SfxItemPool* /*pPool*/) const } // Svx3DTextureKindItem: use drawing::TextureKind -sal_Bool Svx3DTextureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const +bool Svx3DTextureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { rVal <<= (drawing::TextureKind)GetValue(); return true; } -sal_Bool Svx3DTextureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) +bool Svx3DTextureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) { drawing::TextureKind eVar; if(!(rVal >>= eVar)) @@ -483,13 +483,13 @@ SfxPoolItem* Svx3DTextureKindItem::Clone(SfxItemPool* /*pPool*/) const } // Svx3DTextureModeItem: use drawing:TextureMode -sal_Bool Svx3DTextureModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const +bool Svx3DTextureModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { rVal <<= (drawing::TextureMode)GetValue(); return true; } -sal_Bool Svx3DTextureModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) +bool Svx3DTextureModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) { drawing::TextureMode eVar; if(!(rVal >>= eVar)) @@ -504,13 +504,13 @@ SfxPoolItem* Svx3DTextureModeItem::Clone(SfxItemPool* /*pPool*/) const } // Svx3DPerspectiveItem: use drawing::ProjectionMode -sal_Bool Svx3DPerspectiveItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const +bool Svx3DPerspectiveItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { rVal <<= (drawing::ProjectionMode)GetValue(); return true; } -sal_Bool Svx3DPerspectiveItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) +bool Svx3DPerspectiveItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) { drawing::ProjectionMode eVar; if(!(rVal >>= eVar)) @@ -525,13 +525,13 @@ SfxPoolItem* Svx3DPerspectiveItem::Clone(SfxItemPool* /*pPool*/) const } // Svx3DShadeModeItem: use drawing::ShadeMode -sal_Bool Svx3DShadeModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const +bool Svx3DShadeModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const { rVal <<= (drawing::ShadeMode)GetValue(); return true; } -sal_Bool Svx3DShadeModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) +bool Svx3DShadeModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/) { drawing::ShadeMode eVar; if(!(rVal >>= eVar)) diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index 3ebffdc097e9..0eba3f66d248 100755 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -526,7 +526,7 @@ void Gallery::ImplWriteImportList() const sal_uInt32 nInventor = (sal_uInt32) COMPAT_FORMAT( 'S', 'G', 'A', '3' ); const sal_uInt16 nId = 0x0004; - *pOStm << nInventor << nId << (sal_uInt32) aImportList.Count() << (sal_uInt16) gsl_getSystemTextEncoding(); + *pOStm << nInventor << nId << (sal_uInt32) aImportList.size() << (sal_uInt16) gsl_getSystemTextEncoding(); for ( size_t i = 0, n = aImportList.size(); i < n; ++i ) *pOStm << *aImportList[ i ]; diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index d0576a152811..1cc55f3de55d 100755 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -426,7 +426,7 @@ void GalleryTheme::UnlockBroadcaster( sal_uIntPtr nUpdatePos ) // ------------------------------------------------------------------------ -sal_Bool GalleryTheme::InsertObject( const SgaObject& rObj, sal_uIntPtr nInsertPos ) +bool GalleryTheme::InsertObject( const SgaObject& rObj, sal_uIntPtr nInsertPos ) { sal_Bool bRet = sal_False; @@ -565,7 +565,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg // LoeschFlag zuruecksetzen for (size_t i = 0; i < nCount; i++) - aObjectList[ i ]->bDummy = sal_False + aObjectList[ i ]->bDummy = sal_False; for(size_t i = 0; ( i < nCount ) && !bAbortActualize; i++) { @@ -647,7 +647,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg ::std::advance( it, i ); aObjectList.erase( it ); delete pEntry; - Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< ULONG >( pEntry ) ) ); + Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< sal_uLong >( pEntry ) ) ); } else ++i; } diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx index b6d4454dab90..7e1b75c0d183 100755 --- a/svx/source/inc/fmshimp.hxx +++ b/svx/source/inc/fmshimp.hxx @@ -178,9 +178,9 @@ class SAL_DLLPRIVATE FmXFormShell :public FmXFormShell_BASE FmFormArray m_aSearchForms; struct InvalidSlotInfo { - USHORT id; - BYTE flags; - inline InvalidSlotInfo(USHORT slotId, BYTE flgs) : id(slotId), flags(flgs) {}; + sal_uInt16 id; + sal_uInt8 flags; + inline InvalidSlotInfo(sal_uInt16 slotId, sal_uInt8 flgs) : id(slotId), flags(flgs) {}; }; std::vector m_arrInvalidSlots; // we explicitly switch off the propbrw before leaving the design mode diff --git a/svx/source/intro/about_ooo.src b/svx/source/intro/about_ooo.src deleted file mode 100755 index b49a0ff927cf..000000000000 --- a/svx/source/intro/about_ooo.src +++ /dev/null @@ -1,40 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#include -#include "about_ooo.hrc" - -String ABOUT_STR_COPYRIGHT -{ - Text[ en-US ] = "Copyright © 2000, 2010 Oracle and/or its affiliates. All rights reserved.\nThis product was created by %OOOVENDOR, based on OpenOffice.org.\nOpenOffice.org acknowledges all community members, especially those mentioned at\n http://www.openoffice.org/welcome/credits.html."; -}; - -StringArray ABOUT_STR_DEVELOPER_ARY -{ - OOO_CONTRIBUTOR_LIST -}; - diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx index 337ce3140f25..8239aa8c4a5c 100755 --- a/svx/source/stbctrls/modctrl.cxx +++ b/svx/source/stbctrls/modctrl.cxx @@ -31,15 +31,13 @@ // include --------------------------------------------------------------- -#include "modctrl.hxx" - #include #include #include #include #include -#include "svx/modctrl.hxx" +#include #include #include diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index dcab84f3de01..1e38fb7167ca 100755 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -2215,7 +2215,7 @@ SfxPoolItem* SdrGrafInvertItem::Clone( SfxItemPool* /*pPool*/) const return new SdrGrafInvertItem( *this ); } -SfxPoolItem* SdrGrafInvertItem::Create( SvStream& rIn, USHORT /*nVer*/) const +SfxPoolItem* SdrGrafInvertItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const { return new SdrGrafInvertItem( rIn ); } diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx index 4d002d1ba888..a27d1d1b4a4f 100755 --- a/svx/source/svdraw/svdedtv2.cxx +++ b/svx/source/svdraw/svdedtv2.cxx @@ -828,7 +828,7 @@ void SdrEditView::DistributeMarkedObjects() SvxDistributeVertical eVer = pDlg->GetDistributeVer(); ImpDistributeEntryList aEntryList; ImpDistributeEntryList::iterator itEntryList; - UINT32 nFullLength; + sal_uInt32 nFullLength; const bool bUndo = IsUndoEnabled(); if( bUndo ) @@ -875,7 +875,8 @@ void SdrEditView::DistributeMarkedObjects() for ( itEntryList = aEntryList.begin(); itEntryList < aEntryList.end() && (*itEntryList)->mnPos < pNew->mnPos; - ++itEntryList ); + ++itEntryList ) + {}; if ( itEntryList < aEntryList.end() ) aEntryList.insert( itEntryList, pNew ); else @@ -969,7 +970,8 @@ void SdrEditView::DistributeMarkedObjects() for ( itEntryList = aEntryList.begin(); itEntryList < aEntryList.end() && (*itEntryList)->mnPos < pNew->mnPos; - ++itEntryList ); + ++itEntryList ) + {}; if ( itEntryList < aEntryList.end() ) aEntryList.insert( itEntryList, pNew ); else diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 6d93c2e771b3..0aa0febe0da4 100755 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -477,7 +477,7 @@ bool SdrModel::Undo() bool SdrModel::Redo() { - bool bRet=FALSE; + bool bRet = false; if( mpImpl->mpUndoManager ) { OSL_FAIL("svx::SdrModel::Redo(), method not supported with application undo manager!"); diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 96c93b38b0aa..1d8e36c9abfc 100755 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -72,7 +72,6 @@ #include #include #include -#include using namespace ::com::sun::star::uno; using namespace ::com::sun::star::io; @@ -201,7 +200,7 @@ void SAL_CALL SdrGraphicUpdater::run(void) { Graphic aGraphic( ImpLoadLinkedGraphic( mrFileName, mrFilterName ) ); ::osl::MutexGuard aGuard(maMutex); - vos::OGuard aSolarGuard( Application::GetSolarMutex() ); + SolarMutexGuard aSolarGuard; if ( !mbIsTerminated ) { mrGraphicLink.DataChanged( aGraphic ); diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx index 3ae99e5dd63d..65db1d27db58 100755 --- a/svx/source/svdraw/svdopath.cxx +++ b/svx/source/svdraw/svdopath.cxx @@ -1425,7 +1425,7 @@ bool ImpPathForDragAndCreate::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) if (rStat.GetPointAnz()>=2) eCmd=SDRCREATE_FORCEEND; bRet = eCmd==SDRCREATE_FORCEEND; if (bRet) { - mbCreating = FALSE; + mbCreating = sal_False; delete pU; rStat.SetUser(NULL); } diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 0ea30bc54ad4..198beaecab93 100755 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1436,8 +1436,8 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize, // line-breaking text that we need some more samples // loop early-exits if we detect an already attained value - USHORT nMinStretchX=0, nMinStretchY=0; - USHORT aOldStretchXVals[]={0,0,0,0,0,0,0,0,0,0}; + sal_uInt16 nMinStretchX=0, nMinStretchY=0; + sal_uInt16 aOldStretchXVals[]={0,0,0,0,0,0,0,0,0,0}; const size_t aStretchArySize=sizeof(aOldStretchXVals)/sizeof(*aOldStretchXVals); for(unsigned int i=0; i= 1.0 ) @@ -1465,17 +1465,17 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize, if (fFactor < 1.0 || (fFactor >= 1.0 && nCurrStretchX != 100)) { - nCurrStretchX = sal::static_int_cast(nCurrStretchX*fFactor); - nCurrStretchY = sal::static_int_cast(nCurrStretchY*fFactor); - rOutliner.SetGlobalCharStretching(std::min(USHORT(100),nCurrStretchX), - std::min(USHORT(100),nCurrStretchY)); + nCurrStretchX = sal::static_int_cast(nCurrStretchX*fFactor); + nCurrStretchY = sal::static_int_cast(nCurrStretchY*fFactor); + rOutliner.SetGlobalCharStretching(std::min(sal_uInt16(100),nCurrStretchX), + std::min(sal_uInt16(100),nCurrStretchY)); OSL_TRACE("SdrTextObj::onEditOutlinerStatusEvent(): zoom is %d", nCurrStretchX); } } OSL_TRACE("---- SdrTextObj::onEditOutlinerStatusEvent(): final zoom is %d ----", nMinStretchX); - rOutliner.SetGlobalCharStretching(std::min(USHORT(100),nMinStretchX), - std::min(USHORT(100),nMinStretchY)); + rOutliner.SetGlobalCharStretching(std::min(sal_uInt16(100),nMinStretchX), + std::min(sal_uInt16(100),nMinStretchY)); } void SdrTextObj::SetupOutlinerFormatting( SdrOutliner& rOutl, Rectangle& rPaintRect ) const diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index e77265155642..a28ca620205f 100755 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -501,7 +501,7 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co Point aTemporaryTextRelativePosition(aLocalLogicPosition - aTextRect.TopLeft()); // FitToSize berueksichtigen - BOOL bFitToSize(pTextObj->IsFitToSize()); + bool bFitToSize(pTextObj->IsFitToSize()); if (bFitToSize) { Fraction aX(aTextRect.GetWidth()-1,aAnchor.GetWidth()-1); Fraction aY(aTextRect.GetHeight()-1,aAnchor.GetHeight()-1); diff --git a/svx/source/tbxctrls/extrusioncontrols.cxx b/svx/source/tbxctrls/extrusioncontrols.cxx index aebf5a64e298..f23f88718d65 100755 --- a/svx/source/tbxctrls/extrusioncontrols.cxx +++ b/svx/source/tbxctrls/extrusioncontrols.cxx @@ -677,7 +677,7 @@ void ExtrusionLightingWindow::implSetDirection( int nDirection, bool bEnabled ) { mpLightingSet->SetItemImage( nItemId + 1, - (USHORT)nDirection == nItemId ? maImgLightingOn[nItemId] : maImgLightingOff[nItemId] + (sal_uInt16)nDirection == nItemId ? maImgLightingOn[nItemId] : maImgLightingOff[nItemId] ); } } diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index eab87edc511a..cb25098087b5 100755 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -2010,7 +2010,7 @@ void SvxStyleToolBoxControl::FillStyleBox() } else { - USHORT i= 0; + sal_uInt16 i= 0; while ( pStyle && !bDoFill ) { bDoFill = ( pBox->GetEntry(i) != pStyle->GetName() ); diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx index 1f7efa15a496..fb6222e1bb32 100755 --- a/svx/source/unodraw/unoprov.cxx +++ b/svx/source/unodraw/unoprov.cxx @@ -916,7 +916,7 @@ uno::Sequence< OUString > UHashMap::getServiceNames() return aSeq; } -UINT32 UHashMap::getId( const OUString& rCompareString ) +sal_uInt32 UHashMap::getId( const OUString& rCompareString ) { const UHashMapImpl &rMap = GetUHashImpl(); UHashMapImpl::const_iterator it = rMap.find( rCompareString ); diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx index f45eb2f167a4..f02a6a07fb12 100755 --- a/uui/source/iahndl.hxx +++ b/uui/source/iahndl.hxx @@ -216,6 +216,15 @@ private: com::sun::star::task::XInteractionRequest > const & rRequest) SAL_THROW((com::sun::star::uno::RuntimeException)); + void + handleNameClashResolveRequest( + com::sun::star::ucb::NameClashResolveRequest const & rRequest, + com::sun::star::uno::Sequence< + com::sun::star::uno::Reference< + com::sun::star::task::XInteractionContinuation > > const & + rContinuations) + SAL_THROW((com::sun::star::uno::RuntimeException)); + bool handleMasterPasswordRequest( com::sun::star::uno::Reference< diff --git a/xmloff/Library_xo.mk b/xmloff/Library_xo.mk index 0544171dbfbd..4e91bd83f722 100755 --- a/xmloff/Library_xo.mk +++ b/xmloff/Library_xo.mk @@ -54,11 +54,10 @@ $(eval $(call gb_Library_add_linked_libs,xo,\ cppuhelper \ i18nisolang1 \ sal \ - stl \ + salhelper \ svl \ tl \ utl \ - vos3 \ $(gb_STDLIBS) \ )) diff --git a/xmloff/Library_xof.mk b/xmloff/Library_xof.mk index 455daadaf6e3..d8918886457d 100755 --- a/xmloff/Library_xof.mk +++ b/xmloff/Library_xof.mk @@ -43,9 +43,7 @@ $(eval $(call gb_Library_add_linked_libs,xof,\ cppuhelper \ sal \ salhelper \ - stl \ xo \ - $(gb_STDLIBS) \ )) $(eval $(call gb_Library_add_exception_objects,xof,\ diff --git a/xmloff/source/forms/property_meta_data.cxx b/xmloff/source/forms/property_meta_data.cxx index 5930d123578c..442ad50b00bb 100755 --- a/xmloff/source/forms/property_meta_data.cxx +++ b/xmloff/source/forms/property_meta_data.cxx @@ -35,7 +35,7 @@ #include #include -#include +#include //...................................................................................................................... namespace xmloff { namespace metadata @@ -83,7 +83,7 @@ namespace xmloff { namespace metadata // for some attribute or property, and otherwise delegate to the next instance. //.............................................................................................................. - typedef ::std::hash_map< ::rtl::OUString, const PropertyDescription*, ::rtl::OUStringHash > DescriptionsByName; + typedef ::boost::unordered_map< ::rtl::OUString, const PropertyDescription*, ::rtl::OUStringHash > DescriptionsByName; //.............................................................................................................. const DescriptionsByName& lcl_getPropertyDescriptions() @@ -124,7 +124,7 @@ namespace xmloff { namespace metadata } //.............................................................................................................. - typedef ::std::hash_map< ::rtl::OUString, XMLTokenEnum, ::rtl::OUStringHash > ReverseTokenLookup; + typedef ::boost::unordered_map< ::rtl::OUString, XMLTokenEnum, ::rtl::OUStringHash > ReverseTokenLookup; //.............................................................................................................. const ReverseTokenLookup& getReverseTokenLookup() @@ -153,7 +153,7 @@ namespace xmloff { namespace metadata }; //.............................................................................................................. - typedef ::std::hash_multimap< AttributeDescription, PropertyGroup, AttributeHash > AttributeGroups; + typedef ::boost::unordered_multimap< AttributeDescription, PropertyGroup, AttributeHash > AttributeGroups; //.............................................................................................................. const AttributeGroups& lcl_getAttributeGroups() @@ -174,7 +174,7 @@ namespace xmloff { namespace metadata } //.............................................................................................................. - typedef ::std::hash_map< AttributeDescription, PropertyGroups, AttributeHash > AttributesWithoutGroup; + typedef ::boost::unordered_map< AttributeDescription, PropertyGroups, AttributeHash > AttributesWithoutGroup; //.............................................................................................................. const AttributesWithoutGroup& lcl_getAttributesWithoutGroups() diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index a867fb53e9cf..6124414ffe5b 100755 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -963,7 +963,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt NfIndexTableOffset eBuiltIn = pFormatter->GetIndexTableOffset( nKey ); short nFmtType = 0; - BOOL bThousand = sal_False; + sal_Bool bThousand = sal_False; sal_uInt16 nPrecision = 0; sal_uInt16 nLeading = 0; rFormat.GetNumForInfo( nPart, nFmtType, bThousand, nPrecision, nLeading); -- cgit