diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 12:04:57 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 12:04:57 +0000 |
commit | 58471f6a7b748a3c0706e44ff01400a064096063 (patch) | |
tree | 5a443a2695b0cd3754a623785f8b4ab6d66eeb57 /sc/source/ui/view/tabvwshg.cxx | |
parent | 67084ec4f4812b91ed467b718a5551e3cf063c38 (diff) |
INTEGRATION: CWS calcrtl (1.5.34); FILE MERGED
2003/07/30 18:23:39 nn 1.5.34.1: #106948# RTL: insert objects
Diffstat (limited to 'sc/source/ui/view/tabvwshg.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwshg.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwshg.cxx b/sc/source/ui/view/tabvwshg.cxx index 6033c101841b..7c8e1efb35bb 100644 --- a/sc/source/ui/view/tabvwshg.cxx +++ b/sc/source/ui/view/tabvwshg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tabvwshg.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2003-03-26 18:06:51 $ + * last change: $Author: hr $ $Date: 2004-02-03 13:04:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -97,7 +97,9 @@ void ScTabViewShell::InsertURLButton( const String& rName, const String& rURL, // Tabelle geschuetzt ? ScViewData* pViewData = GetViewData(); - if ( pViewData->GetDocument()->IsTabProtected(pViewData->GetTabNo()) ) + ScDocument* pDoc = pViewData->GetDocument(); + USHORT nTab = pViewData->GetTabNo(); + if ( pDoc->IsTabProtected(nTab) ) { ErrorMessage(STR_PROTECTIONERR); return; @@ -154,6 +156,9 @@ void ScTabViewShell::InsertURLButton( const String& rName, const String& rURL, // Groesse wie in 3.1: Size aSize = GetActiveWin()->PixelToLogic(Size(140, 20)); + if ( pDoc->IsNegativePage(nTab) ) + aPos.X() -= aSize.Width(); + pObj->SetLogicRect(Rectangle(aPos, aSize)); // pObj->Resize(Point(), Fraction(1, 1), Fraction(1, 1)); |