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
001080ae
Kaydet (Commit)
001080ae
authored
Eyl 18, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert some .cxx files in sd from String to OUString
Change-Id: I3f3ba3521b72d78887e01970192f353cdc866626
üst
15b3fbf9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
76 deletions
+73
-76
MasterPageContainerFiller.cxx
...ource/ui/toolpanel/controls/MasterPageContainerFiller.cxx
+4
-4
RecentMasterPagesSelector.cxx
...ource/ui/toolpanel/controls/RecentMasterPagesSelector.cxx
+2
-2
RecentlyUsedMasterPages.cxx
sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
+1
-1
sddetect.cxx
sd/source/ui/unoidl/sddetect.cxx
+18
-18
unocpres.cxx
sd/source/ui/unoidl/unocpres.cxx
+1
-1
unomodel.cxx
sd/source/ui/unoidl/unomodel.cxx
+38
-40
unoobj.cxx
sd/source/ui/unoidl/unoobj.cxx
+9
-10
No files found.
sd/source/ui/toolpanel/controls/MasterPageContainerFiller.cxx
Dosyayı görüntüle @
001080ae
...
@@ -45,9 +45,9 @@ MasterPageContainerFiller::MasterPageContainerFiller (ContainerAdapter& rpAdapte
...
@@ -45,9 +45,9 @@ MasterPageContainerFiller::MasterPageContainerFiller (ContainerAdapter& rpAdapte
SharedMasterPageDescriptor
pDescriptor
(
new
MasterPageDescriptor
(
SharedMasterPageDescriptor
pDescriptor
(
new
MasterPageDescriptor
(
MasterPageContainer
::
DEFAULT
,
MasterPageContainer
::
DEFAULT
,
0
,
0
,
String
(),
OU
String
(),
String
(),
OU
String
(),
String
(),
OU
String
(),
false
,
false
,
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
new
DefaultPageObjectProvider
()),
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
new
DefaultPageObjectProvider
()),
::
boost
::
shared_ptr
<
PreviewProvider
>
(
new
PagePreviewProvider
())));
::
boost
::
shared_ptr
<
PreviewProvider
>
(
new
PagePreviewProvider
())));
...
@@ -162,7 +162,7 @@ MasterPageContainerFiller::State MasterPageContainerFiller::AddTemplate (void)
...
@@ -162,7 +162,7 @@ MasterPageContainerFiller::State MasterPageContainerFiller::AddTemplate (void)
mnIndex
,
mnIndex
,
mpLastAddedEntry
->
msPath
,
mpLastAddedEntry
->
msPath
,
mpLastAddedEntry
->
msTitle
,
mpLastAddedEntry
->
msTitle
,
String
(),
OU
String
(),
false
,
false
,
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
new
TemplatePageObjectProvider
(
mpLastAddedEntry
->
msPath
)),
new
TemplatePageObjectProvider
(
mpLastAddedEntry
->
msPath
)),
...
...
sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx
Dosyayı görüntüle @
001080ae
...
@@ -100,8 +100,8 @@ void RecentMasterPagesSelector::Fill (ItemList& rItemList)
...
@@ -100,8 +100,8 @@ void RecentMasterPagesSelector::Fill (ItemList& rItemList)
MasterPageContainer
::
Token
aToken
(
rInstance
.
GetTokenForIndex
(
nIndex
));
MasterPageContainer
::
Token
aToken
(
rInstance
.
GetTokenForIndex
(
nIndex
));
if
(
aToken
!=
MasterPageContainer
::
NIL_TOKEN
)
if
(
aToken
!=
MasterPageContainer
::
NIL_TOKEN
)
{
{
String
sStyleName
(
mpContainer
->
GetStyleNameForToken
(
aToken
));
OU
String
sStyleName
(
mpContainer
->
GetStyleNameForToken
(
aToken
));
if
(
sStyleName
.
Len
()
==
0
if
(
sStyleName
.
isEmpty
()
||
aCurrentNames
.
find
(
sStyleName
)
==
aCurrentNames
.
end
())
||
aCurrentNames
.
find
(
sStyleName
)
==
aCurrentNames
.
end
())
{
{
rItemList
.
push_back
(
aToken
);
rItemList
.
push_back
(
aToken
);
...
...
sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
Dosyayı görüntüle @
001080ae
...
@@ -206,7 +206,7 @@ void RecentlyUsedMasterPages::LoadPersistentValues (void)
...
@@ -206,7 +206,7 @@ void RecentlyUsedMasterPages::LoadPersistentValues (void)
MasterPageContainer
::
TEMPLATE
,
MasterPageContainer
::
TEMPLATE
,
-
1
,
-
1
,
sURL
,
sURL
,
String
(),
OU
String
(),
sName
,
sName
,
false
,
false
,
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
...
...
sd/source/ui/unoidl/sddetect.cxx
Dosyayı görüntüle @
001080ae
...
@@ -107,10 +107,10 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
...
@@ -107,10 +107,10 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
Reference
<
XInputStream
>
xStream
;
Reference
<
XInputStream
>
xStream
;
Reference
<
XContent
>
xContent
;
Reference
<
XContent
>
xContent
;
Reference
<
XInteractionHandler
>
xInteraction
;
Reference
<
XInteractionHandler
>
xInteraction
;
String
aURL
;
OU
String
aURL
;
OUString
sTemp
;
OUString
sTemp
;
OUString
aTypeName
;
// a name describing the type (from MediaDescriptor, usually from flat detection)
OUString
aTypeName
;
// a name describing the type (from MediaDescriptor, usually from flat detection)
String
aPreselectedFilterName
;
// a name describing the filter to use (from MediaDescriptor, usually from UI action)
OU
String
aPreselectedFilterName
;
// a name describing the filter to use (from MediaDescriptor, usually from UI action)
OUString
aDocumentTitle
;
// interesting only if set in this method
OUString
aDocumentTitle
;
// interesting only if set in this method
...
@@ -141,7 +141,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
...
@@ -141,7 +141,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
lDescriptor
[
nProperty
].
Value
>>=
sTemp
;
lDescriptor
[
nProperty
].
Value
>>=
sTemp
;
aURL
=
sTemp
;
aURL
=
sTemp
;
}
}
else
if
(
!
aURL
.
Len
()
&&
lDescriptor
[
nProperty
].
Name
==
"FileName"
)
else
if
(
aURL
.
isEmpty
()
&&
lDescriptor
[
nProperty
].
Name
==
"FileName"
)
{
{
lDescriptor
[
nProperty
].
Value
>>=
sTemp
;
lDescriptor
[
nProperty
].
Value
>>=
sTemp
;
aURL
=
sTemp
;
aURL
=
sTemp
;
...
@@ -189,22 +189,22 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
...
@@ -189,22 +189,22 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
bWasReadOnly
=
pItem
&&
pItem
->
GetValue
();
bWasReadOnly
=
pItem
&&
pItem
->
GetValue
();
const
SfxFilter
*
pFilter
=
0
;
const
SfxFilter
*
pFilter
=
0
;
String
aPrefix
=
OUString
(
"private:factory/"
);
OU
String
aPrefix
=
OUString
(
"private:factory/"
);
if
(
aURL
.
Match
(
aPrefix
)
==
aPrefix
.
Len
(
)
)
if
(
aURL
.
startsWith
(
aPrefix
)
)
{
{
if
(
SvtModuleOptions
().
IsImpress
()
)
if
(
SvtModuleOptions
().
IsImpress
()
)
{
{
String
aPattern
(
aPrefix
);
OU
String
aPattern
(
aPrefix
);
aPattern
+=
OUString
(
"simpress"
)
;
aPattern
+=
"simpress"
;
if
(
aURL
.
Match
(
aPattern
)
>=
aPattern
.
Len
(
)
)
if
(
aURL
.
startsWith
(
aPattern
)
)
pFilter
=
SfxFilter
::
GetDefaultFilterFromFactory
(
aURL
);
pFilter
=
SfxFilter
::
GetDefaultFilterFromFactory
(
aURL
);
}
}
if
(
!
pFilter
&&
SvtModuleOptions
().
IsDraw
()
)
if
(
!
pFilter
&&
SvtModuleOptions
().
IsDraw
()
)
{
{
String
aPattern
(
aPrefix
);
OU
String
aPattern
(
aPrefix
);
aPattern
+=
OUString
(
"sdraw"
)
;
aPattern
+=
"sdraw"
;
if
(
aURL
.
Match
(
aPattern
)
>=
aPattern
.
Len
(
)
)
if
(
aURL
.
startsWith
(
aPattern
)
)
pFilter
=
SfxFilter
::
GetDefaultFilterFromFactory
(
aURL
);
pFilter
=
SfxFilter
::
GetDefaultFilterFromFactory
(
aURL
);
}
}
}
}
...
@@ -213,7 +213,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
...
@@ -213,7 +213,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
// ctor of SfxMedium uses owner transition of ItemSet
// ctor of SfxMedium uses owner transition of ItemSet
SfxMedium
aMedium
(
aURL
,
bWasReadOnly
?
STREAM_STD_READ
:
STREAM_STD_READWRITE
,
NULL
,
pSet
);
SfxMedium
aMedium
(
aURL
,
bWasReadOnly
?
STREAM_STD_READ
:
STREAM_STD_READWRITE
,
NULL
,
pSet
);
aMedium
.
UseInteractionHandler
(
sal_True
);
aMedium
.
UseInteractionHandler
(
sal_True
);
if
(
aPreselectedFilterName
.
Len
()
)
if
(
!
aPreselectedFilterName
.
isEmpty
()
)
pFilter
=
SfxFilter
::
GetFilterByName
(
aPreselectedFilterName
);
pFilter
=
SfxFilter
::
GetFilterByName
(
aPreselectedFilterName
);
else
if
(
!
aTypeName
.
isEmpty
())
else
if
(
!
aTypeName
.
isEmpty
())
{
{
...
@@ -400,17 +400,17 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
...
@@ -400,17 +400,17 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
}
}
else
else
{
{
String
aShortName
(
aDesc
.
GetImportFormatShortName
(
aDesc
.
GetFileFormat
()
)
);
OU
String
aShortName
(
aDesc
.
GetImportFormatShortName
(
aDesc
.
GetFileFormat
()
)
);
GraphicFilter
&
rGrfFilter
=
GraphicFilter
::
GetGraphicFilter
();
GraphicFilter
&
rGrfFilter
=
GraphicFilter
::
GetGraphicFilter
();
const
String
aName
(
rGrfFilter
.
GetImportFormatTypeName
(
rGrfFilter
.
GetImportFormatNumberForShortName
(
aShortName
)
)
);
const
OU
String
aName
(
rGrfFilter
.
GetImportFormatTypeName
(
rGrfFilter
.
GetImportFormatNumberForShortName
(
aShortName
)
)
);
if
(
pFilter
&&
aShortName
.
EqualsIgnoreCaseAscii
(
"PCD"
)
)
// there is a multiple pcd selection possible
if
(
pFilter
&&
aShortName
.
equalsIgnoreAsciiCase
(
"PCD"
)
)
// there is a multiple pcd selection possible
{
{
sal_Int32
nBase
=
2
;
// default Base0
sal_Int32
nBase
=
2
;
// default Base0
String
aFilterTypeName
(
pFilter
->
GetRealTypeName
()
);
OU
String
aFilterTypeName
(
pFilter
->
GetRealTypeName
()
);
if
(
aFilterTypeName
.
CompareToAscii
(
"pcd_Photo_CD_Base4"
)
==
COMPARE_EQUAL
)
if
(
aFilterTypeName
==
"pcd_Photo_CD_Base4"
)
nBase
=
1
;
nBase
=
1
;
else
if
(
aFilterTypeName
.
CompareToAscii
(
"pcd_Photo_CD_Base16"
)
==
COMPARE_EQUAL
)
else
if
(
aFilterTypeName
==
"pcd_Photo_CD_Base16"
)
nBase
=
0
;
nBase
=
0
;
FilterConfigItem
aFilterConfigItem
(
"Office.Common/Filter/Graphic/Import/PCD"
);
FilterConfigItem
aFilterConfigItem
(
"Office.Common/Filter/Graphic/Import/PCD"
);
aFilterConfigItem
.
WriteInt32
(
"Resolution"
,
nBase
);
aFilterConfigItem
.
WriteInt32
(
"Resolution"
,
nBase
);
...
...
sd/source/ui/unoidl/unocpres.cxx
Dosyayı görüntüle @
001080ae
...
@@ -481,7 +481,7 @@ SdCustomShow * SdXCustomPresentationAccess::getSdCustomShow( const OUString& Nam
...
@@ -481,7 +481,7 @@ SdCustomShow * SdXCustomPresentationAccess::getSdCustomShow( const OUString& Nam
SdCustomShowList
*
pList
=
GetCustomShowList
();
SdCustomShowList
*
pList
=
GetCustomShowList
();
const
sal_uInt32
nCount
=
pList
?
pList
->
size
()
:
0
;
const
sal_uInt32
nCount
=
pList
?
pList
->
size
()
:
0
;
const
String
aName
(
Name
);
const
OU
String
aName
(
Name
);
while
(
nIdx
<
nCount
)
while
(
nIdx
<
nCount
)
{
{
...
...
sd/source/ui/unoidl/unomodel.cxx
Dosyayı görüntüle @
001080ae
...
@@ -484,8 +484,8 @@ SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate
...
@@ -484,8 +484,8 @@ SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate
sal_uInt16
nStandardPageNum
=
pPreviousStandardPage
->
GetPageNum
()
+
2
;
sal_uInt16
nStandardPageNum
=
pPreviousStandardPage
->
GetPageNum
()
+
2
;
SdPage
*
pPreviousNotesPage
=
(
SdPage
*
)
mpDoc
->
GetPage
(
nStandardPageNum
-
1
);
SdPage
*
pPreviousNotesPage
=
(
SdPage
*
)
mpDoc
->
GetPage
(
nStandardPageNum
-
1
);
sal_uInt16
nNotesPageNum
=
nStandardPageNum
+
1
;
sal_uInt16
nNotesPageNum
=
nStandardPageNum
+
1
;
String
aStandardPageName
;
OU
String
aStandardPageName
;
String
aNotesPageName
;
OU
String
aNotesPageName
;
/**************************************************************
/**************************************************************
* standard page
* standard page
...
@@ -966,78 +966,78 @@ uno::Reference< uno::XInterface > SAL_CALL SdXImpressDocument::createInstance( c
...
@@ -966,78 +966,78 @@ uno::Reference< uno::XInterface > SAL_CALL SdXImpressDocument::createInstance( c
uno
::
Reference
<
uno
::
XInterface
>
xRet
;
uno
::
Reference
<
uno
::
XInterface
>
xRet
;
const
String
aType
(
aServiceSpecifier
);
if
(
aServiceSpecifier
.
startsWith
(
"com.sun.star.presentation."
)
)
if
(
aType
.
EqualsAscii
(
"com.sun.star.presentation."
,
0
,
26
)
)
{
{
const
OUString
aType
(
aServiceSpecifier
.
copy
(
26
)
);
SvxShape
*
pShape
=
NULL
;
SvxShape
*
pShape
=
NULL
;
sal_uInt16
nType
=
OBJ_TEXT
;
sal_uInt16
nType
=
OBJ_TEXT
;
// create a shape wrapper
// create a shape wrapper
if
(
aType
.
EqualsAscii
(
"TitleTextShape"
,
26
,
14
)
)
if
(
aType
.
startsWith
(
"TitleTextShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"OutlinerShape"
,
26
,
13
)
)
else
if
(
aType
.
startsWith
(
"OutlinerShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"SubtitleShape"
,
26
,
13
)
)
else
if
(
aType
.
startsWith
(
"SubtitleShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"GraphicObjectShape"
,
26
,
18
)
)
else
if
(
aType
.
startsWith
(
"GraphicObjectShape"
)
)
{
{
nType
=
OBJ_GRAF
;
nType
=
OBJ_GRAF
;
}
}
else
if
(
aType
.
EqualsAscii
(
"PageShape"
,
26
,
9
)
)
else
if
(
aType
.
startsWith
(
"PageShape"
)
)
{
{
nType
=
OBJ_PAGE
;
nType
=
OBJ_PAGE
;
}
}
else
if
(
aType
.
EqualsAscii
(
"OLE2Shape"
,
26
,
9
)
)
else
if
(
aType
.
startsWith
(
"OLE2Shape"
)
)
{
{
nType
=
OBJ_OLE2
;
nType
=
OBJ_OLE2
;
}
}
else
if
(
aType
.
EqualsAscii
(
"ChartShape"
,
26
,
10
)
)
else
if
(
aType
.
startsWith
(
"ChartShape"
)
)
{
{
nType
=
OBJ_OLE2
;
nType
=
OBJ_OLE2
;
}
}
else
if
(
aType
.
EqualsAscii
(
"CalcShape"
,
26
,
9
)
)
else
if
(
aType
.
startsWith
(
"CalcShape"
)
)
{
{
nType
=
OBJ_OLE2
;
nType
=
OBJ_OLE2
;
}
}
else
if
(
aType
.
EqualsAscii
(
"TableShape"
,
26
,
10
)
)
else
if
(
aType
.
startsWith
(
"TableShape"
)
)
{
{
nType
=
OBJ_TABLE
;
nType
=
OBJ_TABLE
;
}
}
else
if
(
aType
.
EqualsAscii
(
"OrgChartShape"
,
26
,
13
)
)
else
if
(
aType
.
startsWith
(
"OrgChartShape"
)
)
{
{
nType
=
OBJ_OLE2
;
nType
=
OBJ_OLE2
;
}
}
else
if
(
aType
.
EqualsAscii
(
"NotesShape"
,
26
,
13
)
)
else
if
(
aType
.
startsWith
(
"NotesShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"HandoutShape"
,
26
,
13
)
)
else
if
(
aType
.
startsWith
(
"HandoutShape"
)
)
{
{
nType
=
OBJ_PAGE
;
nType
=
OBJ_PAGE
;
}
}
else
if
(
aType
.
EqualsAscii
(
"FooterShape"
,
26
,
12
)
)
else
if
(
aType
.
startsWith
(
"FooterShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"HeaderShape"
,
26
,
12
)
)
else
if
(
aType
.
startsWith
(
"HeaderShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"SlideNumberShape"
,
26
,
17
)
)
else
if
(
aType
.
startsWith
(
"SlideNumberShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"DateTimeShape"
,
26
,
17
)
)
else
if
(
aType
.
startsWith
(
"DateTimeShape"
)
)
{
{
nType
=
OBJ_TEXT
;
nType
=
OBJ_TEXT
;
}
}
else
if
(
aType
.
EqualsAscii
(
"MediaShape"
,
26
,
10
)
)
else
if
(
aType
.
startsWith
(
"MediaShape"
)
)
{
{
nType
=
OBJ_MEDIA
;
nType
=
OBJ_MEDIA
;
}
}
...
@@ -1538,17 +1538,17 @@ ImplRenderPaintProc::~ImplRenderPaintProc()
...
@@ -1538,17 +1538,17 @@ ImplRenderPaintProc::~ImplRenderPaintProc()
{
{
}
}
sal_Int32
ImplPDFGetBookmarkPage
(
const
String
&
rBookmark
,
SdDrawDocument
&
rDoc
)
sal_Int32
ImplPDFGetBookmarkPage
(
const
OU
String
&
rBookmark
,
SdDrawDocument
&
rDoc
)
{
{
sal_Int32
nPage
=
-
1
;
sal_Int32
nPage
=
-
1
;
OSL_TRACE
(
"GotoBookmark %s"
,
OSL_TRACE
(
"GotoBookmark %s"
,
OUStringToOString
(
rBookmark
,
RTL_TEXTENCODING_UTF8
).
getStr
());
OUStringToOString
(
rBookmark
,
RTL_TEXTENCODING_UTF8
).
getStr
());
String
aBookmark
(
rBookmark
);
OU
String
aBookmark
(
rBookmark
);
if
(
rBookmark
.
Len
()
&&
rBookmark
.
GetChar
(
0
)
==
sal_Unicode
(
'#'
)
)
if
(
!
rBookmark
.
isEmpty
()
&&
rBookmark
[
0
]
==
'#'
)
aBookmark
=
rBookmark
.
C
opy
(
1
);
aBookmark
=
rBookmark
.
c
opy
(
1
);
// is the bookmark a page ?
// is the bookmark a page ?
sal_Bool
bIsMasterPage
;
sal_Bool
bIsMasterPage
;
...
@@ -1585,11 +1585,11 @@ void ImplPDFExportComments( uno::Reference< drawing::XDrawPage > xPage, vcl::PDF
...
@@ -1585,11 +1585,11 @@ void ImplPDFExportComments( uno::Reference< drawing::XDrawPage > xPage, vcl::PDF
Date
aDate
(
aDateTime
.
Day
,
aDateTime
.
Month
,
aDateTime
.
Year
);
Date
aDate
(
aDateTime
.
Day
,
aDateTime
.
Month
,
aDateTime
.
Year
);
Time
aTime
(
Time
::
EMPTY
);
Time
aTime
(
Time
::
EMPTY
);
String
aStr
(
SvxDateTimeField
::
GetFormatted
(
aDate
,
aTime
,
SVXDATEFORMAT_B
,
*
(
SD_MOD
()
->
GetNumberFormatter
()),
eLanguage
)
);
OU
String
aStr
(
SvxDateTimeField
::
GetFormatted
(
aDate
,
aTime
,
SVXDATEFORMAT_B
,
*
(
SD_MOD
()
->
GetNumberFormatter
()),
eLanguage
)
);
vcl
::
PDFNote
aNote
;
vcl
::
PDFNote
aNote
;
String
sTitle
(
xAnnotation
->
getAuthor
()
);
OU
String
sTitle
(
xAnnotation
->
getAuthor
()
);
sTitle
.
AppendAscii
(
", "
)
;
sTitle
+=
", "
;
sTitle
+=
aStr
;
sTitle
+=
aStr
;
aNote
.
Title
=
sTitle
;
aNote
.
Title
=
sTitle
;
aNote
.
Contents
=
xText
->
getString
();
aNote
.
Contents
=
xText
->
getString
();
...
@@ -1803,7 +1803,7 @@ sal_Bool ImplRenderPaintProc::IsVisible( const SdrObject* pObj ) const
...
@@ -1803,7 +1803,7 @@ sal_Bool ImplRenderPaintProc::IsVisible( const SdrObject* pObj ) const
const
SdrLayer
*
pSdrLayer
=
rLayerAdmin
.
GetLayer
(
nLayerId
);
const
SdrLayer
*
pSdrLayer
=
rLayerAdmin
.
GetLayer
(
nLayerId
);
if
(
pSdrLayer
)
if
(
pSdrLayer
)
{
{
String
aLayerName
=
pSdrLayer
->
GetName
();
OU
String
aLayerName
=
pSdrLayer
->
GetName
();
bVisible
=
pSdrPageView
->
IsLayerVisible
(
aLayerName
);
bVisible
=
pSdrPageView
->
IsLayerVisible
(
aLayerName
);
}
}
}
}
...
@@ -1818,7 +1818,7 @@ sal_Bool ImplRenderPaintProc::IsPrintable( const SdrObject* pObj ) const
...
@@ -1818,7 +1818,7 @@ sal_Bool ImplRenderPaintProc::IsPrintable( const SdrObject* pObj ) const
const
SdrLayer
*
pSdrLayer
=
rLayerAdmin
.
GetLayer
(
nLayerId
);
const
SdrLayer
*
pSdrLayer
=
rLayerAdmin
.
GetLayer
(
nLayerId
);
if
(
pSdrLayer
)
if
(
pSdrLayer
)
{
{
String
aLayerName
=
pSdrLayer
->
GetName
();
OU
String
aLayerName
=
pSdrLayer
->
GetName
();
bPrintable
=
pSdrPageView
->
IsLayerPrintable
(
aLayerName
);
bPrintable
=
pSdrPageView
->
IsLayerPrintable
(
aLayerName
);
}
}
}
}
...
@@ -2108,8 +2108,8 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r
...
@@ -2108,8 +2108,8 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r
rBookmarks
.
clear
();
rBookmarks
.
clear
();
//---> #i56629, #i40318
//---> #i56629, #i40318
//get the page name, will be used as outline element in PDF bookmark pane
//get the page name, will be used as outline element in PDF bookmark pane
String
aPageName
=
mpDoc
->
GetSdPage
(
(
sal_uInt16
)
nPageNumber
-
1
,
PK_STANDARD
)
->
GetName
();
OU
String
aPageName
=
mpDoc
->
GetSdPage
(
(
sal_uInt16
)
nPageNumber
-
1
,
PK_STANDARD
)
->
GetName
();
if
(
aPageName
.
Len
()
>
0
)
if
(
!
aPageName
.
isEmpty
()
)
{
{
// insert the bookmark to this page into the NamedDestinations
// insert the bookmark to this page into the NamedDestinations
if
(
pPDFExtOutDevData
->
GetIsExportNamedDestinations
()
)
if
(
pPDFExtOutDevData
->
GetIsExportNamedDestinations
()
)
...
@@ -2676,8 +2676,8 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn
...
@@ -2676,8 +2676,8 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn
nInsertPos
=
nMPageCount
;
nInsertPos
=
nMPageCount
;
// now generate a unique name for the new masterpage
// now generate a unique name for the new masterpage
const
String
aStdPrefix
(
SdResId
(
STR_LAYOUT_DEFAULT_NAME
)
);
const
OU
String
aStdPrefix
(
SdResId
(
STR_LAYOUT_DEFAULT_NAME
)
);
String
aPrefix
(
aStdPrefix
);
OU
String
aPrefix
(
aStdPrefix
);
sal_Bool
bUnique
=
sal_True
;
sal_Bool
bUnique
=
sal_True
;
sal_Int32
i
=
0
;
sal_Int32
i
=
0
;
...
@@ -2697,15 +2697,13 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn
...
@@ -2697,15 +2697,13 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn
if
(
!
bUnique
)
if
(
!
bUnique
)
{
{
i
++
;
i
++
;
aPrefix
=
aStdPrefix
;
aPrefix
=
aStdPrefix
+
" "
+
OUString
::
number
(
i
);
aPrefix
+=
sal_Unicode
(
' '
);
aPrefix
+=
OUString
::
number
(
i
);
}
}
}
while
(
!
bUnique
);
}
while
(
!
bUnique
);
String
aLayoutName
(
aPrefix
);
OU
String
aLayoutName
(
aPrefix
);
aLayoutName
.
AppendAscii
(
SD_LT_SEPARATOR
)
;
aLayoutName
+=
SD_LT_SEPARATOR
;
aLayoutName
+=
SD_RESSTR
(
STR_LAYOUT_OUTLINE
);
aLayoutName
+=
SD_RESSTR
(
STR_LAYOUT_OUTLINE
);
// create styles
// create styles
...
@@ -2974,7 +2972,7 @@ SdPage* SdDocLinkTargets::FindPage( const OUString& rName ) const throw()
...
@@ -2974,7 +2972,7 @@ SdPage* SdDocLinkTargets::FindPage( const OUString& rName ) const throw()
sal_uInt16
nPage
;
sal_uInt16
nPage
;
SdPage
*
pPage
;
SdPage
*
pPage
;
const
String
aName
(
rName
);
const
OU
String
aName
(
rName
);
const
bool
bDraw
=
mpDoc
->
GetDocumentType
()
==
DOCUMENT_TYPE_DRAW
;
const
bool
bDraw
=
mpDoc
->
GetDocumentType
()
==
DOCUMENT_TYPE_DRAW
;
...
...
sd/source/ui/unoidl/unoobj.cxx
Dosyayı görüntüle @
001080ae
...
@@ -1176,8 +1176,7 @@ SdUnoEventsAccess::SdUnoEventsAccess( SdXShape* pShape ) throw()
...
@@ -1176,8 +1176,7 @@ SdUnoEventsAccess::SdUnoEventsAccess( SdXShape* pShape ) throw()
static
void
clearEventsInAnimationInfo
(
SdAnimationInfo
*
pInfo
)
static
void
clearEventsInAnimationInfo
(
SdAnimationInfo
*
pInfo
)
{
{
const
String
aEmpty
;
pInfo
->
SetBookmark
(
""
);
pInfo
->
SetBookmark
(
aEmpty
);
pInfo
->
mbSecondSoundOn
=
sal_False
;
pInfo
->
mbSecondSoundOn
=
sal_False
;
pInfo
->
mbSecondPlayFull
=
sal_False
;
pInfo
->
mbSecondPlayFull
=
sal_False
;
pInfo
->
meClickAction
=
presentation
::
ClickAction_NONE
;
pInfo
->
meClickAction
=
presentation
::
ClickAction_NONE
;
...
@@ -1425,11 +1424,11 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno
...
@@ -1425,11 +1424,11 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno
}
}
else
else
{
{
String
aMacro
=
aStrMacro
;
OU
String
aMacro
=
aStrMacro
;
String
aLibName
=
aMacro
.
GetToken
(
0
,
sal_Unicode
(
'.'
)
);
OUString
aLibName
=
aMacro
.
getToken
(
0
,
'.'
);
String
aModulName
=
aMacro
.
GetToken
(
1
,
sal_Unicode
(
'.'
)
);
OUString
aModulName
=
aMacro
.
getToken
(
1
,
'.'
);
String
aMacroName
=
aMacro
.
GetToken
(
2
,
sal_Unicode
(
'.'
)
);
OUString
aMacroName
=
aMacro
.
getToken
(
2
,
'.'
);
OUStringBuffer
sBuffer
;
OUStringBuffer
sBuffer
;
sBuffer
.
append
(
aMacroName
);
sBuffer
.
append
(
aMacroName
);
...
@@ -1537,14 +1536,14 @@ uno::Any SAL_CALL SdUnoEventsAccess::getByName( const OUString& aName )
...
@@ -1537,14 +1536,14 @@ uno::Any SAL_CALL SdUnoEventsAccess::getByName( const OUString& aName )
pProperties
->
State
=
beans
::
PropertyState_DIRECT_VALUE
;
pProperties
->
State
=
beans
::
PropertyState_DIRECT_VALUE
;
pProperties
++
;
pProperties
++
;
String
aMacro
=
pInfo
->
GetBookmark
();
OU
String
aMacro
=
pInfo
->
GetBookmark
();
// aMacro has got following format:
// aMacro has got following format:
// "Macroname.Modulname.Libname.Documentname" or
// "Macroname.Modulname.Libname.Documentname" or
// "Macroname.Modulname.Libname.Applicationname"
// "Macroname.Modulname.Libname.Applicationname"
String
aMacroName
=
aMacro
.
GetToken
(
0
,
sal_Unicode
(
'.'
)
);
OUString
aMacroName
=
aMacro
.
getToken
(
0
,
'.'
);
String
aModulName
=
aMacro
.
GetToken
(
1
,
sal_Unicode
(
'.'
)
);
OUString
aModulName
=
aMacro
.
getToken
(
1
,
'.'
);
String
aLibName
=
aMacro
.
GetToken
(
2
,
sal_Unicode
(
'.'
)
);
OUString
aLibName
=
aMacro
.
getToken
(
2
,
'.'
);
OUStringBuffer
sBuffer
;
OUStringBuffer
sBuffer
;
sBuffer
.
append
(
aLibName
);
sBuffer
.
append
(
aLibName
);
...
...
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