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
a2b86b5f
Kaydet (Commit)
a2b86b5f
authored
Eyl 18, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert the rest of the .cxx files in sd from String to OUString
Change-Id: I2f68a14baf707d7098b84c68b11a85cd28e49d95
üst
0bfd0378
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
79 deletions
+75
-79
drawdoc3.cxx
sd/source/core/drawdoc3.cxx
+32
-34
sdpage.cxx
sd/source/core/sdpage.cxx
+18
-18
sdpage2.cxx
sd/source/core/sdpage2.cxx
+9
-11
stlfamily.cxx
sd/source/core/stlfamily.cxx
+3
-3
ImagePreparer.cxx
sd/source/ui/remotecontrol/ImagePreparer.cxx
+2
-2
CurrentMasterPagesSelector.cxx
sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx
+4
-4
DocumentHelper.cxx
sd/source/ui/sidebar/DocumentHelper.cxx
+5
-5
LayoutMenu.cxx
sd/source/ui/sidebar/LayoutMenu.cxx
+2
-2
No files found.
sd/source/core/drawdoc3.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -82,8 +82,8 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc
...
@@ -82,8 +82,8 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc
// now check for duplicate masterpage and layout names
// now check for duplicate masterpage and layout names
// ===================================================
// ===================================================
String
aFullNameLayout
(
pBMMPage
->
GetLayoutName
()
);
OU
String
aFullNameLayout
(
pBMMPage
->
GetLayoutName
()
);
aFullNameLayout
.
Erase
(
aFullNameLayout
.
SearchAscii
(
SD_LT_SEPARATOR
));
aFullNameLayout
=
aFullNameLayout
.
copy
(
0
,
aFullNameLayout
.
indexOf
(
SD_LT_SEPARATOR
));
OUString
aLayout
(
aFullNameLayout
);
OUString
aLayout
(
aFullNameLayout
);
...
@@ -97,8 +97,8 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc
...
@@ -97,8 +97,8 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc
{
{
// Do the layouts already exist within the document?
// Do the layouts already exist within the document?
SdPage
*
pTestPage
=
(
SdPage
*
)
rDoc
.
GetMasterPage
(
nMPage
);
SdPage
*
pTestPage
=
(
SdPage
*
)
rDoc
.
GetMasterPage
(
nMPage
);
String
aFullTest
(
pTestPage
->
GetLayoutName
());
OU
String
aFullTest
(
pTestPage
->
GetLayoutName
());
aFullTest
.
Erase
(
aFullTest
.
SearchAscii
(
SD_LT_SEPARATOR
));
aFullTest
=
aFullTest
.
copy
(
0
,
aFullTest
.
indexOf
(
SD_LT_SEPARATOR
));
OUString
aTest
(
aFullTest
);
OUString
aTest
(
aFullTest
);
...
@@ -815,8 +815,8 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
...
@@ -815,8 +815,8 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
++
pExchangeIter
;
++
pExchangeIter
;
}
}
String
aLayout
(
pRefPage
->
GetLayoutName
());
OU
String
aLayout
(
pRefPage
->
GetLayoutName
());
aLayout
.
Erase
(
aLayout
.
SearchAscii
(
SD_LT_SEPARATOR
));
aLayout
=
aLayout
.
copy
(
0
,
aLayout
.
indexOf
(
SD_LT_SEPARATOR
));
// update layout and referred master page
// update layout and referred master page
pRefPage
->
SetPresentationLayout
(
aLayout
);
pRefPage
->
SetPresentationLayout
(
aLayout
);
...
@@ -1311,7 +1311,7 @@ bool isMasterPageLayoutNameUnique(const SdDrawDocument& rDoc, const OUString& rC
...
@@ -1311,7 +1311,7 @@ bool isMasterPageLayoutNameUnique(const SdDrawDocument& rDoc, const OUString& rC
// #i121863# factored out functinality
// #i121863# factored out functinality
OUString
createNewMasterPageLayoutName
(
const
SdDrawDocument
&
rDoc
)
OUString
createNewMasterPageLayoutName
(
const
SdDrawDocument
&
rDoc
)
{
{
const
String
aBaseName
(
SdResId
(
STR_LAYOUT_DEFAULT_NAME
));
const
OU
String
aBaseName
(
SdResId
(
STR_LAYOUT_DEFAULT_NAME
));
OUString
aRetval
;
OUString
aRetval
;
sal_uInt16
nCount
(
0
);
sal_uInt16
nCount
(
0
);
...
@@ -1350,7 +1350,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1350,7 +1350,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
if
(
bUndo
)
if
(
bUndo
)
{
{
pUndoMgr
->
EnterListAction
(
SD_RESSTR
(
STR_UNDO_SET_PRESLAYOUT
),
String
());
pUndoMgr
->
EnterListAction
(
SD_RESSTR
(
STR_UNDO_SET_PRESLAYOUT
),
OU
String
());
}
}
SdPage
*
pSelectedPage
=
GetSdPage
(
nSdPageNum
,
PK_STANDARD
);
SdPage
*
pSelectedPage
=
GetSdPage
(
nSdPageNum
,
PK_STANDARD
);
...
@@ -1360,9 +1360,9 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1360,9 +1360,9 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
SdPage
*
pMaster
=
NULL
;
SdPage
*
pMaster
=
NULL
;
SdPage
*
pNotesMaster
=
NULL
;
SdPage
*
pNotesMaster
=
NULL
;
SdPage
*
pPage
=
NULL
;
SdPage
*
pPage
=
NULL
;
String
aOldPageLayoutName
(
pSelectedPage
->
GetLayoutName
());
OU
String
aOldPageLayoutName
(
pSelectedPage
->
GetLayoutName
());
String
aOldLayoutName
(
aOldPageLayoutName
);
OU
String
aOldLayoutName
(
aOldPageLayoutName
);
aOldLayoutName
.
Erase
(
aOldLayoutName
.
SearchAscii
(
SD_LT_SEPARATOR
));
aOldLayoutName
=
aOldLayoutName
.
copy
(
0
,
aOldLayoutName
.
indexOf
(
SD_LT_SEPARATOR
));
if
(
pSourceDoc
)
if
(
pSourceDoc
)
{
{
...
@@ -1421,8 +1421,8 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1421,8 +1421,8 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
return
;
return
;
}
}
const
String
aOriginalNewLayoutName
(
pMaster
->
GetName
()
);
const
OU
String
aOriginalNewLayoutName
(
pMaster
->
GetName
()
);
String
aTargetNewLayoutName
(
aOriginalNewLayoutName
);
OU
String
aTargetNewLayoutName
(
aOriginalNewLayoutName
);
if
(
pSourceDoc
!=
this
)
if
(
pSourceDoc
!=
this
)
{
{
...
@@ -1443,15 +1443,15 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1443,15 +1443,15 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
// layout name needs to be unique
// layout name needs to be unique
aTargetNewLayoutName
=
pMaster
->
GetLayoutName
();
aTargetNewLayoutName
=
pMaster
->
GetLayoutName
();
aTargetNewLayoutName
.
Erase
(
aTargetNewLayoutName
.
SearchAscii
(
SD_LT_SEPARATOR
));
aTargetNewLayoutName
=
aTargetNewLayoutName
.
copy
(
0
,
aTargetNewLayoutName
.
indexOf
(
SD_LT_SEPARATOR
));
if
(
!
isMasterPageLayoutNameUnique
(
*
this
,
aTargetNewLayoutName
))
if
(
!
isMasterPageLayoutNameUnique
(
*
this
,
aTargetNewLayoutName
))
{
{
aTargetNewLayoutName
=
createNewMasterPageLayoutName
(
*
this
);
aTargetNewLayoutName
=
createNewMasterPageLayoutName
(
*
this
);
String
aTemp
(
aTargetNewLayoutName
);
OU
String
aTemp
(
aTargetNewLayoutName
);
aTemp
.
AppendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
SD_LT_SEPARATOR
))
;
aTemp
+=
SD_LT_SEPARATOR
;
aTemp
.
Append
(
SD_RESSTR
(
STR_LAYOUT_OUTLINE
)
);
aTemp
+=
SD_RESSTR
(
STR_LAYOUT_OUTLINE
);
pMaster
->
SetName
(
aTargetNewLayoutName
);
pMaster
->
SetName
(
aTargetNewLayoutName
);
pMaster
->
SetLayoutName
(
aTemp
);
pMaster
->
SetLayoutName
(
aTemp
);
...
@@ -1476,7 +1476,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1476,7 +1476,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
// Correct or create presentation templates --
// Correct or create presentation templates --
// only worry about presentation templates
// only worry about presentation templates
String
aName
;
OU
String
aName
;
SdStyleSheetPool
*
pSourceStyleSheetPool
=
(
SdStyleSheetPool
*
)
pSourceDoc
->
GetStyleSheetPool
();
SdStyleSheetPool
*
pSourceStyleSheetPool
=
(
SdStyleSheetPool
*
)
pSourceDoc
->
GetStyleSheetPool
();
pSourceStyleSheetPool
->
SetSearchMask
(
SD_STYLE_FAMILY_MASTERPAGE
);
pSourceStyleSheetPool
->
SetSearchMask
(
SD_STYLE_FAMILY_MASTERPAGE
);
static_cast
<
SdStyleSheetPool
*>
(
mxStyleSheetPool
.
get
())
->
SetSearchMask
(
SD_STYLE_FAMILY_MASTERPAGE
);
static_cast
<
SdStyleSheetPool
*>
(
mxStyleSheetPool
.
get
())
->
SetSearchMask
(
SD_STYLE_FAMILY_MASTERPAGE
);
...
@@ -1490,14 +1490,13 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1490,14 +1490,13 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
// #i121863# search in source styles with original style name from source of
// #i121863# search in source styles with original style name from source of
// evtl. cloned master (not-cloned, renamed for uniqueness)
// evtl. cloned master (not-cloned, renamed for uniqueness)
if
(
aName
.
Search
(
aOriginalNewLayoutName
)
==
0
)
if
(
aName
.
indexOf
(
aOriginalNewLayoutName
)
==
0
)
{
{
// #i121863# build name of evtl. cloned master style to search for
// #i121863# build name of evtl. cloned master style to search for
if
(
aOriginalNewLayoutName
!=
aTargetNewLayoutName
)
if
(
aOriginalNewLayoutName
!=
aTargetNewLayoutName
)
{
{
const
sal_uInt16
nPos
(
aName
.
SearchAscii
(
SD_LT_SEPARATOR
));
const
sal_Int32
nPos
(
aName
.
indexOf
(
SD_LT_SEPARATOR
));
aName
.
Erase
(
0
,
nPos
);
aName
=
aTargetNewLayoutName
+
aName
.
copy
(
nPos
);
aName
.
Insert
(
aTargetNewLayoutName
,
0
);
}
}
SfxStyleSheet
*
pMySheet
=
static_cast
<
SfxStyleSheet
*>
(
mxStyleSheetPool
->
Find
(
aName
,
SD_STYLE_FAMILY_MASTERPAGE
)
);
SfxStyleSheet
*
pMySheet
=
static_cast
<
SfxStyleSheet
*>
(
mxStyleSheetPool
->
Find
(
aName
,
SD_STYLE_FAMILY_MASTERPAGE
)
);
...
@@ -1537,10 +1536,9 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1537,10 +1536,9 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
// #i121863# re-create original name of styte used at page where to replace with
// #i121863# re-create original name of styte used at page where to replace with
// this new style
// this new style
String
aTemp
(
pMySheet
->
GetName
());
OUString
aTemp
(
pMySheet
->
GetName
());
const
sal_uInt16
nPos
(
aTemp
.
SearchAscii
(
SD_LT_SEPARATOR
));
const
sal_Int32
nPos
(
aTemp
.
indexOf
(
SD_LT_SEPARATOR
));
aTemp
.
Erase
(
0
,
nPos
);
aTemp
=
aOldLayoutName
+
aTemp
.
copy
(
nPos
);
aTemp
.
Insert
(
aOldLayoutName
,
0
);
aReplData
.
aName
=
aTemp
;
aReplData
.
aName
=
aTemp
;
aReplList
.
push_back
(
aReplData
);
aReplList
.
push_back
(
aReplData
);
}
}
...
@@ -1560,17 +1558,17 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1560,17 +1558,17 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
if
(
pSOld
&&
pSNew
)
if
(
pSOld
&&
pSNew
)
{
{
const
String
&
rParentOfOld
=
pSOld
->
GetParent
();
const
OU
String
&
rParentOfOld
=
pSOld
->
GetParent
();
const
String
&
rParentOfNew
=
pSNew
->
GetParent
();
const
OU
String
&
rParentOfNew
=
pSNew
->
GetParent
();
if
(
rParentOfOld
.
Len
()
>
0
&&
rParentOfNew
.
Len
()
==
0
)
if
(
!
rParentOfOld
.
isEmpty
()
&&
rParentOfNew
.
isEmpty
()
)
{
{
std
::
vector
<
StyleReplaceData
>::
iterator
pRDIter
;
std
::
vector
<
StyleReplaceData
>::
iterator
pRDIter
;
for
(
pRDIter
=
aReplList
.
begin
();
pRDIter
!=
aReplList
.
end
();
++
pRDIter
)
for
(
pRDIter
=
aReplList
.
begin
();
pRDIter
!=
aReplList
.
end
();
++
pRDIter
)
{
{
if
((
pRDIter
->
aName
==
rParentOfOld
)
&&
(
pRDIter
->
aName
!=
pRDIter
->
aNewName
))
if
((
pRDIter
->
aName
==
rParentOfOld
)
&&
(
pRDIter
->
aName
!=
pRDIter
->
aNewName
))
{
{
String
aParentOfNew
(
pRDIter
->
aNewName
);
OU
String
aParentOfNew
(
pRDIter
->
aNewName
);
pSNew
->
SetParent
(
aParentOfNew
);
pSNew
->
SetParent
(
aParentOfNew
);
break
;
break
;
}
}
...
@@ -1595,9 +1593,9 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1595,9 +1593,9 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
// Create layout name based upon the name of the page layout of the
// Create layout name based upon the name of the page layout of the
// master page
// master page
String
aPageLayoutName
(
pMaster
->
GetLayoutName
());
OU
String
aPageLayoutName
(
pMaster
->
GetLayoutName
());
String
aLayoutName
=
aPageLayoutName
;
OU
String
aLayoutName
=
aPageLayoutName
;
aLayoutName
.
Erase
(
aLayoutName
.
SearchAscii
(
SD_LT_SEPARATOR
));
aLayoutName
=
aLayoutName
.
copy
(
0
,
aLayoutName
.
indexOf
(
SD_LT_SEPARATOR
));
// #i121863# Do *not* remove from original document any longer, it is potentially used there
// #i121863# Do *not* remove from original document any longer, it is potentially used there
// and would lead to crashes. Rely on the automatic process of removing unused masterpages
// and would lead to crashes. Rely on the automatic process of removing unused masterpages
...
@@ -1653,7 +1651,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
...
@@ -1653,7 +1651,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
for
(
sal_uInt16
nPage
=
1
;
nPage
<
GetPageCount
();
nPage
++
)
for
(
sal_uInt16
nPage
=
1
;
nPage
<
GetPageCount
();
nPage
++
)
{
{
pPage
=
(
SdPage
*
)
GetPage
(
nPage
);
pPage
=
(
SdPage
*
)
GetPage
(
nPage
);
String
aTest
=
pPage
->
GetLayoutName
();
OU
String
aTest
=
pPage
->
GetLayoutName
();
if
(
aTest
==
aOldPageLayoutName
)
if
(
aTest
==
aOldPageLayoutName
)
{
{
aPageList
.
push_back
(
pPage
);
aPageList
.
push_back
(
pPage
);
...
...
sd/source/core/sdpage.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -568,14 +568,14 @@ SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, sal_Bool bVertical, const
...
@@ -568,14 +568,14 @@ SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, sal_Bool bVertical, const
SfxStyleSheet
*
SdPage
::
GetStyleSheetForMasterPageBackground
()
const
SfxStyleSheet
*
SdPage
::
GetStyleSheetForMasterPageBackground
()
const
{
{
String
aName
(
GetLayoutName
());
OU
String
aName
(
GetLayoutName
());
String
aSep
(
SD_LT_SEPARATOR
);
OU
String
aSep
(
SD_LT_SEPARATOR
);
sal_
uInt16
nPos
=
aName
.
Search
(
aSep
);
sal_
Int32
nPos
=
aName
.
indexOf
(
aSep
);
if
(
nPos
!=
STRING_NOTFOUND
)
if
(
nPos
!=
-
1
)
{
{
nPos
=
nPos
+
aSep
.
Len
();
nPos
=
nPos
+
aSep
.
getLength
();
aName
.
Erase
(
nPos
);
aName
=
aName
.
copy
(
0
,
nPos
);
}
}
aName
+=
SD_RESSTR
(
STR_LAYOUT_BACKGROUND
);
aName
+=
SD_RESSTR
(
STR_LAYOUT_BACKGROUND
);
...
@@ -587,13 +587,13 @@ SfxStyleSheet* SdPage::GetStyleSheetForMasterPageBackground() const
...
@@ -587,13 +587,13 @@ SfxStyleSheet* SdPage::GetStyleSheetForMasterPageBackground() const
SfxStyleSheet
*
SdPage
::
GetStyleSheetForPresObj
(
PresObjKind
eObjKind
)
const
SfxStyleSheet
*
SdPage
::
GetStyleSheetForPresObj
(
PresObjKind
eObjKind
)
const
{
{
String
aName
(
GetLayoutName
());
OU
String
aName
(
GetLayoutName
());
String
aSep
(
SD_LT_SEPARATOR
);
OU
String
aSep
(
SD_LT_SEPARATOR
);
sal_
uInt16
nPos
=
aName
.
Search
(
aSep
);
sal_
Int32
nPos
=
aName
.
indexOf
(
aSep
);
if
(
nPos
!=
STRING_NOTFOUND
)
if
(
nPos
!=
-
1
)
{
{
nPos
=
nPos
+
aSep
.
Len
();
nPos
=
nPos
+
aSep
.
getLength
();
aName
.
Erase
(
nPos
);
aName
=
aName
.
copy
(
0
,
nPos
);
}
}
switch
(
eObjKind
)
switch
(
eObjKind
)
...
@@ -636,9 +636,9 @@ SfxStyleSheet* SdPage::GetStyleSheetForPresObj(PresObjKind eObjKind) const
...
@@ -636,9 +636,9 @@ SfxStyleSheet* SdPage::GetStyleSheetForPresObj(PresObjKind eObjKind) const
slides masterpage */
slides masterpage */
SdStyleSheet
*
SdPage
::
getPresentationStyle
(
sal_uInt32
nHelpId
)
const
SdStyleSheet
*
SdPage
::
getPresentationStyle
(
sal_uInt32
nHelpId
)
const
{
{
String
aStyleName
(
pPage
->
GetLayoutName
()
);
OU
String
aStyleName
(
pPage
->
GetLayoutName
()
);
const
String
aSep
(
SD_LT_SEPARATOR
);
const
OU
String
aSep
(
SD_LT_SEPARATOR
);
aStyleName
.
Erase
(
aStyleName
.
Search
(
aSep
)
+
aSep
.
Len
());
aStyleName
=
aStyleName
.
copy
(
0
,
aStyleName
.
indexOf
(
aSep
)
+
aSep
.
getLength
());
sal_uInt16
nNameId
;
sal_uInt16
nNameId
;
switch
(
nHelpId
)
switch
(
nHelpId
)
...
@@ -662,11 +662,11 @@ SdStyleSheet* SdPage::getPresentationStyle( sal_uInt32 nHelpId ) const
...
@@ -662,11 +662,11 @@ SdStyleSheet* SdPage::getPresentationStyle( sal_uInt32 nHelpId ) const
OSL_FAIL
(
"SdPage::getPresentationStyle(), illegal argument!"
);
OSL_FAIL
(
"SdPage::getPresentationStyle(), illegal argument!"
);
return
0
;
return
0
;
}
}
aStyleName
.
Append
(
SD_RESSTR
(
nNameId
)
);
aStyleName
+=
SD_RESSTR
(
nNameId
);
if
(
nNameId
==
STR_LAYOUT_OUTLINE
)
if
(
nNameId
==
STR_LAYOUT_OUTLINE
)
{
{
aStyleName
.
Append
(
sal_Unicode
(
' '
))
;
aStyleName
+=
" "
;
aStyleName
.
Append
(
OUString
::
number
(
sal_Int32
(
nHelpId
-
HID_PSEUDOSHEET_OUTLINE
)
));
aStyleName
+=
OUString
::
number
(
sal_Int32
(
nHelpId
-
HID_PSEUDOSHEET_OUTLINE
));
}
}
SfxStyleSheetBasePool
*
pStShPool
=
pModel
->
GetStyleSheetPool
();
SfxStyleSheetBasePool
*
pStShPool
=
pModel
->
GetStyleSheetPool
();
...
...
sd/source/core/sdpage2.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -154,20 +154,18 @@ void SdPage::SetPresentationLayout(const OUString& rLayoutName,
...
@@ -154,20 +154,18 @@ void SdPage::SetPresentationLayout(const OUString& rLayoutName,
{
{
if
(
!
bListsFilled
||
!
bReplaceStyleSheets
)
if
(
!
bListsFilled
||
!
bReplaceStyleSheets
)
{
{
String
aFullName
;
OU
String
aFullName
;
String
aOldFullName
;
OU
String
aOldFullName
;
SfxStyleSheetBase
*
pSheet
=
NULL
;
SfxStyleSheetBase
*
pSheet
=
NULL
;
SfxStyleSheetBasePool
*
pStShPool
=
pModel
->
GetStyleSheetPool
();
SfxStyleSheetBasePool
*
pStShPool
=
pModel
->
GetStyleSheetPool
();
for
(
sal_Int16
i
=
-
1
;
i
<
9
;
i
++
)
for
(
sal_Int16
i
=
-
1
;
i
<
9
;
i
++
)
{
{
aFullName
=
maLayoutName
;
aOldFullName
=
aOldLayoutName
;
aOldFullName
=
aOldLayoutName
;
aFullName
+=
sal_Unicode
(
' '
);
aFullName
=
maLayoutName
+
" "
+
aFullName
+=
OUString
::
number
(
(
sal_Int32
)
(
i
<=
0
)
?
1
:
i
+
1
);
OUString
::
number
(
(
sal_Int32
)
(
i
<=
0
)
?
1
:
i
+
1
)
+
aOldFullName
+=
sal_Unicode
(
' '
);
" "
+
aOldFullName
+=
OUString
::
number
(
(
sal_Int32
)
(
i
<=
0
)
?
1
:
i
+
1
);
OUString
::
number
(
(
sal_Int32
)
(
i
<=
0
)
?
1
:
i
+
1
);
pSheet
=
pStShPool
->
Find
(
aOldFullName
,
SD_STYLE_FAMILY_MASTERPAGE
);
pSheet
=
pStShPool
->
Find
(
aOldFullName
,
SD_STYLE_FAMILY_MASTERPAGE
);
DBG_ASSERT
(
pSheet
,
"Old outline style sheet not found"
);
DBG_ASSERT
(
pSheet
,
"Old outline style sheet not found"
);
aOldOutlineStyles
.
push_back
(
pSheet
);
aOldOutlineStyles
.
push_back
(
pSheet
);
...
@@ -268,8 +266,8 @@ void SdPage::EndListenOutlineText()
...
@@ -268,8 +266,8 @@ void SdPage::EndListenOutlineText()
{
{
SdStyleSheetPool
*
pSPool
=
(
SdStyleSheetPool
*
)
pModel
->
GetStyleSheetPool
();
SdStyleSheetPool
*
pSPool
=
(
SdStyleSheetPool
*
)
pModel
->
GetStyleSheetPool
();
DBG_ASSERT
(
pSPool
,
"StyleSheetPool missing"
);
DBG_ASSERT
(
pSPool
,
"StyleSheetPool missing"
);
String
aTrueLayoutName
(
maLayoutName
);
OU
String
aTrueLayoutName
(
maLayoutName
);
aTrueLayoutName
.
Erase
(
aTrueLayoutName
.
SearchAscii
(
SD_LT_SEPARATOR
));
aTrueLayoutName
=
aTrueLayoutName
.
copy
(
0
,
aTrueLayoutName
.
indexOf
(
SD_LT_SEPARATOR
));
SfxStyleSheet
*
pSheet
=
NULL
;
SfxStyleSheet
*
pSheet
=
NULL
;
std
::
vector
<
SfxStyleSheetBase
*>
aOutlineStyles
;
std
::
vector
<
SfxStyleSheetBase
*>
aOutlineStyles
;
...
@@ -403,7 +401,7 @@ SdPage::SdPage(const SdPage& rSrcPage)
...
@@ -403,7 +401,7 @@ SdPage::SdPage(const SdPage& rSrcPage)
maSoundFile
=
rSrcPage
.
maSoundFile
;
maSoundFile
=
rSrcPage
.
maSoundFile
;
mbLoopSound
=
rSrcPage
.
mbLoopSound
;
mbLoopSound
=
rSrcPage
.
mbLoopSound
;
mbStopSound
=
rSrcPage
.
mbStopSound
;
mbStopSound
=
rSrcPage
.
mbStopSound
;
maCreatedPageName
=
String
()
;
maCreatedPageName
=
""
;
maFileName
=
rSrcPage
.
maFileName
;
maFileName
=
rSrcPage
.
maFileName
;
maBookmarkName
=
rSrcPage
.
maBookmarkName
;
maBookmarkName
=
rSrcPage
.
maBookmarkName
;
mbScaleObjects
=
rSrcPage
.
mbScaleObjects
;
mbScaleObjects
=
rSrcPage
.
mbScaleObjects
;
...
...
sd/source/core/stlfamily.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -208,9 +208,9 @@ OUString SAL_CALL SdStyleFamily::getName() throw (RuntimeException)
...
@@ -208,9 +208,9 @@ OUString SAL_CALL SdStyleFamily::getName() throw (RuntimeException)
if
(
pPage
==
0
)
if
(
pPage
==
0
)
throw
DisposedException
();
throw
DisposedException
();
String
aLayoutName
(
pPage
->
GetLayoutName
()
);
OU
String
aLayoutName
(
pPage
->
GetLayoutName
()
);
const
String
aSep
(
SD_LT_SEPARATOR
);
const
OU
String
aSep
(
SD_LT_SEPARATOR
);
aLayoutName
.
Erase
(
aLayoutName
.
Search
(
aSep
));
aLayoutName
=
aLayoutName
.
copy
(
0
,
aLayoutName
.
indexOf
(
aSep
));
return
OUString
(
aLayoutName
);
return
OUString
(
aLayoutName
);
}
}
...
...
sd/source/ui/remotecontrol/ImagePreparer.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -201,7 +201,7 @@ void ImagePreparer::sendNotes( sal_uInt32 aSlideNumber )
...
@@ -201,7 +201,7 @@ void ImagePreparer::sendNotes( sal_uInt32 aSlideNumber )
Transmitter
::
PRIORITY_LOW
);
Transmitter
::
PRIORITY_LOW
);
}
}
sal_Bool
ExportTo
(
uno
::
Reference
<
drawing
::
XDrawPage
>&
aNotesPage
,
String
aUrl
);
sal_Bool
ExportTo
(
uno
::
Reference
<
drawing
::
XDrawPage
>&
aNotesPage
,
OU
String
aUrl
);
// Code copied from sdremote/source/presenter/PresenterNotesView.cxx
// Code copied from sdremote/source/presenter/PresenterNotesView.cxx
OString
ImagePreparer
::
prepareNotes
(
sal_uInt32
aSlideNumber
)
OString
ImagePreparer
::
prepareNotes
(
sal_uInt32
aSlideNumber
)
...
@@ -283,7 +283,7 @@ OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber )
...
@@ -283,7 +283,7 @@ OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber )
aRet
.
makeStringAndClear
(),
RTL_TEXTENCODING_UTF8
);
aRet
.
makeStringAndClear
(),
RTL_TEXTENCODING_UTF8
);
}
}
sal_Bool
ExportTo
(
uno
::
Reference
<
drawing
::
XDrawPage
>&
aNotesPage
,
String
aUrl
)
sal_Bool
ExportTo
(
uno
::
Reference
<
drawing
::
XDrawPage
>&
aNotesPage
,
OU
String
aUrl
)
{
{
OUString
aFilterName
(
"XHTML Draw File"
);
OUString
aFilterName
(
"XHTML Draw File"
);
uno
::
Reference
<
document
::
XExporter
>
xExporter
;
uno
::
Reference
<
document
::
XExporter
>
xExporter
;
...
...
sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -146,7 +146,7 @@ void CurrentMasterPagesSelector::Fill (ItemList& rItemList)
...
@@ -146,7 +146,7 @@ void CurrentMasterPagesSelector::Fill (ItemList& rItemList)
continue
;
continue
;
// Use the name of the master page to avoid duplicate entries.
// Use the name of the master page to avoid duplicate entries.
String
sName
(
pMasterPage
->
GetName
());
OU
String
sName
(
pMasterPage
->
GetName
());
if
(
aMasterPageNames
.
find
(
sName
)
!=
aMasterPageNames
.
end
())
if
(
aMasterPageNames
.
find
(
sName
)
!=
aMasterPageNames
.
end
())
continue
;
continue
;
aMasterPageNames
.
insert
(
sName
);
aMasterPageNames
.
insert
(
sName
);
...
@@ -159,9 +159,9 @@ void CurrentMasterPagesSelector::Fill (ItemList& rItemList)
...
@@ -159,9 +159,9 @@ void CurrentMasterPagesSelector::Fill (ItemList& rItemList)
SharedMasterPageDescriptor
pDescriptor
(
new
MasterPageDescriptor
(
SharedMasterPageDescriptor
pDescriptor
(
new
MasterPageDescriptor
(
MasterPageContainer
::
MASTERPAGE
,
MasterPageContainer
::
MASTERPAGE
,
nIndex
,
nIndex
,
String
(),
OU
String
(),
pMasterPage
->
GetName
(),
pMasterPage
->
GetName
(),
String
(),
OU
String
(),
pMasterPage
->
IsPrecious
(),
pMasterPage
->
IsPrecious
(),
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
new
ExistingPageProvider
(
pMasterPage
)),
::
boost
::
shared_ptr
<
PageObjectProvider
>
(
new
ExistingPageProvider
(
pMasterPage
)),
::
boost
::
shared_ptr
<
PreviewProvider
>
(
new
PagePreviewProvider
())));
::
boost
::
shared_ptr
<
PreviewProvider
>
(
new
PagePreviewProvider
())));
...
@@ -221,7 +221,7 @@ void CurrentMasterPagesSelector::UpdateSelection (void)
...
@@ -221,7 +221,7 @@ void CurrentMasterPagesSelector::UpdateSelection (void)
sal_uInt16
nItemCount
(
PreviewValueSet
::
GetItemCount
());
sal_uInt16
nItemCount
(
PreviewValueSet
::
GetItemCount
());
for
(
nIndex
=
1
;
nIndex
<=
nItemCount
&&
bLoop
;
nIndex
++
)
for
(
nIndex
=
1
;
nIndex
<=
nItemCount
&&
bLoop
;
nIndex
++
)
{
{
String
sName
(
PreviewValueSet
::
GetItemText
(
nIndex
));
OU
String
sName
(
PreviewValueSet
::
GetItemText
(
nIndex
));
if
(
aNames
.
find
(
sName
)
!=
aNames
.
end
())
if
(
aNames
.
find
(
sName
)
!=
aNames
.
end
())
{
{
PreviewValueSet
::
SelectItem
(
nIndex
);
PreviewValueSet
::
SelectItem
(
nIndex
);
...
...
sd/source/ui/sidebar/DocumentHelper.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -262,8 +262,8 @@ void DocumentHelper::ProvideStyles (
...
@@ -262,8 +262,8 @@ void DocumentHelper::ProvideStyles (
SdPage
*
pPage
)
SdPage
*
pPage
)
{
{
// Get the layout name of the given page.
// Get the layout name of the given page.
String
sLayoutName
(
pPage
->
GetLayoutName
());
OU
String
sLayoutName
(
pPage
->
GetLayoutName
());
sLayoutName
.
Erase
(
sLayoutName
.
SearchAscii
(
SD_LT_SEPARATOR
));
sLayoutName
=
sLayoutName
.
copy
(
0
,
sLayoutName
.
indexOf
(
SD_LT_SEPARATOR
));
// Copy the style sheet from source to target document.
// Copy the style sheet from source to target document.
SdStyleSheetPool
*
pSourceStyleSheetPool
=
SdStyleSheetPool
*
pSourceStyleSheetPool
=
...
@@ -306,8 +306,8 @@ void DocumentHelper::AssignMasterPageToPageList (
...
@@ -306,8 +306,8 @@ void DocumentHelper::AssignMasterPageToPageList (
// Make the layout name by stripping ouf the layout postfix from the
// Make the layout name by stripping ouf the layout postfix from the
// layout name of the given master page.
// layout name of the given master page.
OUString
sFullLayoutName
(
pMasterPage
->
GetLayoutName
());
OUString
sFullLayoutName
(
pMasterPage
->
GetLayoutName
());
String
sBaseLayoutName
(
sFullLayoutName
);
OU
String
sBaseLayoutName
(
sFullLayoutName
);
sBaseLayoutName
.
Erase
(
sBaseLayoutName
.
SearchAscii
(
SD_LT_SEPARATOR
));
sBaseLayoutName
=
sBaseLayoutName
.
copy
(
0
,
sBaseLayoutName
.
indexOf
(
SD_LT_SEPARATOR
));
if
(
rpPageList
->
empty
())
if
(
rpPageList
->
empty
())
return
;
return
;
...
@@ -329,7 +329,7 @@ void DocumentHelper::AssignMasterPageToPageList (
...
@@ -329,7 +329,7 @@ void DocumentHelper::AssignMasterPageToPageList (
::
svl
::
IUndoManager
*
pUndoMgr
=
rTargetDocument
.
GetDocSh
()
->
GetUndoManager
();
::
svl
::
IUndoManager
*
pUndoMgr
=
rTargetDocument
.
GetDocSh
()
->
GetUndoManager
();
if
(
pUndoMgr
)
if
(
pUndoMgr
)
pUndoMgr
->
EnterListAction
(
SD_RESSTR
(
STR_UNDO_SET_PRESLAYOUT
),
String
());
pUndoMgr
->
EnterListAction
(
SD_RESSTR
(
STR_UNDO_SET_PRESLAYOUT
),
OU
String
());
SdPage
*
pMasterPageInDocument
=
ProvideMasterPage
(
rTargetDocument
,
pMasterPage
,
rpPageList
);
SdPage
*
pMasterPageInDocument
=
ProvideMasterPage
(
rTargetDocument
,
pMasterPage
,
rpPageList
);
if
(
pMasterPageInDocument
==
NULL
)
if
(
pMasterPageInDocument
==
NULL
)
...
...
sd/source/ui/sidebar/LayoutMenu.cxx
Dosyayı görüntüle @
a2b86b5f
...
@@ -583,7 +583,7 @@ SfxRequest LayoutMenu::CreateRequest (
...
@@ -583,7 +583,7 @@ SfxRequest LayoutMenu::CreateRequest (
SetOfByte
aVisibleLayers
(
pPage
->
TRG_GetMasterPageVisibleLayers
());
SetOfByte
aVisibleLayers
(
pPage
->
TRG_GetMasterPageVisibleLayers
());
aRequest
.
AppendItem
(
aRequest
.
AppendItem
(
SfxStringItem
(
ID_VAL_PAGENAME
,
String
()));
//pPage->GetName()));
SfxStringItem
(
ID_VAL_PAGENAME
,
OU
String
()));
//pPage->GetName()));
aRequest
.
AppendItem
(
SfxUInt32Item
(
ID_VAL_WHATLAYOUT
,
aLayout
));
aRequest
.
AppendItem
(
SfxUInt32Item
(
ID_VAL_WHATLAYOUT
,
aLayout
));
aRequest
.
AppendItem
(
aRequest
.
AppendItem
(
SfxBoolItem
(
ID_VAL_ISPAGEBACK
,
aVisibleLayers
.
IsSet
(
aBackground
)));
SfxBoolItem
(
ID_VAL_ISPAGEBACK
,
aVisibleLayers
.
IsSet
(
aBackground
)));
...
@@ -654,7 +654,7 @@ void LayoutMenu::Fill (void)
...
@@ -654,7 +654,7 @@ void LayoutMenu::Fill (void)
if
(
bRightToLeft
&&
(
WritingMode_TB_RL
!=
pInfo
->
meWritingMode
))
if
(
bRightToLeft
&&
(
WritingMode_TB_RL
!=
pInfo
->
meWritingMode
))
aBmp
.
Mirror
(
BMP_MIRROR_HORZ
);
aBmp
.
Mirror
(
BMP_MIRROR_HORZ
);
InsertItem
(
i
,
aBmp
,
S
tring
(
SdResId
(
pInfo
->
mnStrResId
)
));
InsertItem
(
i
,
aBmp
,
S
dResId
(
pInfo
->
mnStrResId
));
SetItemData
(
i
,
new
AutoLayout
(
pInfo
->
maAutoLayout
));
SetItemData
(
i
,
new
AutoLayout
(
pInfo
->
maAutoLayout
));
n
++
;
n
++
;
}
}
...
...
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