Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
45b448b2
Kaydet (Commit)
45b448b2
authored
Ara 13, 2012
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "fix fdo#58237 import hyperlinks for shapes in xlsx documents"
This reverts commit
2551fec6
.
üst
70b960b9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
54 deletions
+3
-54
relations.hxx
oox/inc/oox/core/relations.hxx
+0
-2
relations.cxx
oox/source/core/relations.cxx
+0
-6
hyperlinkcontext.cxx
oox/source/drawingml/hyperlinkcontext.cxx
+1
-3
worksheetbuffer.hxx
sc/source/filter/inc/worksheetbuffer.hxx
+0
-4
drawingfragment.cxx
sc/source/filter/oox/drawingfragment.cxx
+2
-20
worksheetbuffer.cxx
sc/source/filter/oox/worksheetbuffer.cxx
+0
-19
No files found.
oox/inc/oox/core/relations.hxx
Dosyayı görüntüle @
45b448b2
...
...
@@ -79,8 +79,6 @@ public:
/** Returns the external target of the relation with the passed relation identifier. */
::
rtl
::
OUString
getExternalTargetFromRelId
(
const
::
rtl
::
OUString
&
rRelId
)
const
;
/** Returns the internal target of the relation with the passed relation identifier. */
::
rtl
::
OUString
getInternalTargetFromRelId
(
const
::
rtl
::
OUString
&
rRelId
)
const
;
/** Returns the full fragment path for the target of the passed relation. */
::
rtl
::
OUString
getFragmentPathFromRelation
(
const
Relation
&
rRelation
)
const
;
...
...
oox/source/core/relations.cxx
Dosyayı görüntüle @
45b448b2
...
...
@@ -83,12 +83,6 @@ OUString Relations::getExternalTargetFromRelId( const OUString& rRelId ) const
return
(
pRelation
&&
pRelation
->
mbExternal
)
?
pRelation
->
maTarget
:
OUString
();
}
OUString
Relations
::
getInternalTargetFromRelId
(
const
OUString
&
rRelId
)
const
{
const
Relation
*
pRelation
=
getRelationFromRelId
(
rRelId
);
return
(
pRelation
&&
!
pRelation
->
mbExternal
)
?
pRelation
->
maTarget
:
OUString
();
}
OUString
Relations
::
getFragmentPathFromRelation
(
const
Relation
&
rRelation
)
const
{
// no target, no fragment path
...
...
oox/source/drawingml/hyperlinkcontext.cxx
Dosyayı görüntüle @
45b448b2
...
...
@@ -44,12 +44,10 @@ HyperLinkContext::HyperLinkContext( ContextHandler& rParent,
{
OSL_TRACE
(
"OOX: URI rId %s"
,
OUStringToOString
(
aRelId
,
RTL_TEXTENCODING_UTF8
).
pData
->
buffer
);
sHref
=
getRelations
().
getExternalTargetFromRelId
(
aRelId
);
OUString
sExtHref
=
getRelations
().
getExternalTargetFromRelId
(
aRelId
);
sURL
=
getRelations
().
getInternalTargetFromRelId
(
aRelId
);
if
(
!
sHref
.
isEmpty
()
)
{
OSL_TRACE
(
"OOX: URI href %s"
,
OUStringToOString
(
sHref
,
RTL_TEXTENCODING_UTF8
).
pData
->
buffer
);
sURL
=
getFilter
().
getAbsoluteUrl
(
s
Ext
Href
);
sURL
=
getFilter
().
getAbsoluteUrl
(
sHref
);
}
}
OUString
sTooltip
=
xAttributes
->
getOptionalValue
(
R_TOKEN
(
tooltip
)
);
...
...
sc/source/filter/inc/worksheetbuffer.hxx
Dosyayı görüntüle @
45b448b2
...
...
@@ -81,10 +81,6 @@ public:
sal_Int16
getCalcSheetIndex
(
const
::
rtl
::
OUString
&
rWorksheetName
)
const
;
/** Returns the finalized name of the sheet with the passed worksheet name. */
::
rtl
::
OUString
getCalcSheetName
(
const
::
rtl
::
OUString
&
rWorksheetName
)
const
;
/** Converts sSheetNameRef (e.g. '#SheetName!A1' to '#SheetName.A1' )
if sSheetNameRef doesn't start with '#' it is ignored and not modified
*/
void
convertSheetNameRef
(
::
rtl
::
OUString
&
sSheetNameRef
)
const
;
private
:
struct
SheetInfo
:
public
SheetInfoModel
...
...
sc/source/filter/oox/drawingfragment.cxx
Dosyayı görüntüle @
45b448b2
...
...
@@ -26,9 +26,6 @@
#include <com/sun/star/script/ScriptEventDescriptor.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <rtl/strbuf.hxx>
#include <svx/svdobj.hxx>
#include "drwlayer.hxx"
#include "userdat.hxx"
#include "oox/drawingml/connectorshapecontext.hxx"
#include "oox/drawingml/graphicshapecontext.hxx"
#include "oox/helper/attributelist.hxx"
...
...
@@ -39,10 +36,11 @@
#include "stylesbuffer.hxx"
#include "themebuffer.hxx"
#include "unitconverter.hxx"
#include "worksheetbuffer.hxx"
namespace
oox
{
namespace
xls
{
using
namespace
::
com
::
sun
::
star
::
awt
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
container
;
using
namespace
::
com
::
sun
::
star
::
document
;
...
...
@@ -55,10 +53,6 @@ using namespace ::oox::core;
using
namespace
::
oox
::
drawingml
;
using
namespace
::
oox
::
ole
;
using
::
com
::
sun
::
star
::
awt
::
Size
;
using
::
com
::
sun
::
star
::
awt
::
Point
;
using
::
com
::
sun
::
star
::
awt
::
Rectangle
;
using
::
com
::
sun
::
star
::
awt
::
XControlModel
;
using
::
rtl
::
OStringBuffer
;
using
::
rtl
::
OUString
;
using
::
rtl
::
OUStringToOString
;
...
...
@@ -103,24 +97,12 @@ Shape::Shape( const WorksheetHelper& rHelper, const AttributeList& rAttribs, con
void
Shape
::
finalizeXShape
(
XmlFilterBase
&
rFilter
,
const
Reference
<
XShapes
>&
rxShapes
)
{
rtl
::
OUString
sURL
;
getShapeProperties
()[
PROP_URL
]
>>=
sURL
;
getWorksheets
().
convertSheetNameRef
(
sURL
);
if
(
!
maMacroName
.
isEmpty
()
&&
mxShape
.
is
()
)
{
VbaMacroAttacherRef
xAttacher
(
new
ShapeMacroAttacher
(
maMacroName
,
mxShape
)
);
getBaseFilter
().
getVbaProject
().
registerMacroAttacher
(
xAttacher
);
}
::
oox
::
drawingml
::
Shape
::
finalizeXShape
(
rFilter
,
rxShapes
);
if
(
!
sURL
.
isEmpty
()
)
{
SdrObject
*
pObj
=
SdrObject
::
getSdrObjectFromXShape
(
mxShape
);
if
(
pObj
)
{
if
(
ScMacroInfo
*
pInfo
=
ScDrawLayer
::
GetMacroInfo
(
pObj
,
sal_True
)
)
pInfo
->
SetHlink
(
sURL
);
}
}
}
// ============================================================================
...
...
sc/source/filter/oox/worksheetbuffer.cxx
Dosyayı görüntüle @
45b448b2
...
...
@@ -110,25 +110,6 @@ OUString WorksheetBuffer::getCalcSheetName( sal_Int32 nWorksheet ) const
return
pSheetInfo
?
pSheetInfo
->
maCalcName
:
OUString
();
}
void
WorksheetBuffer
::
convertSheetNameRef
(
::
rtl
::
OUString
&
sSheetNameRef
)
const
{
// convert '#SheetName!A1' to '#SheetName.A1'
if
(
!
sSheetNameRef
.
isEmpty
()
&&
(
sSheetNameRef
[
0
]
==
'#'
)
)
{
sal_Int32
nSepPos
=
sSheetNameRef
.
lastIndexOf
(
'!'
);
if
(
nSepPos
>
0
)
{
// replace the exclamation mark with a period
sSheetNameRef
=
sSheetNameRef
.
replaceAt
(
nSepPos
,
1
,
OUString
(
sal_Unicode
(
'.'
)
)
);
// #i66592# convert sheet names that have been renamed on import
OUString
aSheetName
=
sSheetNameRef
.
copy
(
1
,
nSepPos
-
1
);
OUString
aCalcName
=
getCalcSheetName
(
aSheetName
);
if
(
!
aCalcName
.
isEmpty
()
)
sSheetNameRef
=
sSheetNameRef
.
replaceAt
(
1
,
nSepPos
-
1
,
aCalcName
);
}
}
}
sal_Int16
WorksheetBuffer
::
getCalcSheetIndex
(
const
OUString
&
rWorksheetName
)
const
{
const
SheetInfo
*
pSheetInfo
=
maSheetInfosByName
.
get
(
rWorksheetName
).
get
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment