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
e1b8dfda
Kaydet (Commit)
e1b8dfda
authored
Agu 10, 2013
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String->OUString
Change-Id: Ifda8c7453ecb40abdae8d63656b8742c80691b98
üst
f115934e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
59 additions
and
62 deletions
+59
-62
undolayer.cxx
sd/source/ui/func/undolayer.cxx
+2
-2
unprlout.cxx
sd/source/ui/func/unprlout.cxx
+3
-3
undolayer.hxx
sd/source/ui/inc/undolayer.hxx
+8
-8
unmodpg.hxx
sd/source/ui/inc/unmodpg.hxx
+11
-9
unprlout.hxx
sd/source/ui/inc/unprlout.hxx
+5
-5
unmodpg.cxx
sd/source/ui/view/unmodpg.cxx
+21
-25
viewshe2.cxx
sd/source/ui/view/viewshe2.cxx
+1
-1
viewshe3.cxx
sd/source/ui/view/viewshe3.cxx
+7
-7
viewshel.cxx
sd/source/ui/view/viewshel.cxx
+1
-2
No files found.
sd/source/ui/func/undolayer.cxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -30,8 +30,8 @@ TYPEINIT1(SdLayerModifyUndoAction, SdUndoAction);
SdLayerModifyUndoAction
::
SdLayerModifyUndoAction
(
SdDrawDocument
*
_pDoc
,
SdrLayer
*
pLayer
,
const
String
&
rOldLayerName
,
const
String
&
rOldLayerTitle
,
const
String
&
rOldLayerDesc
,
bool
bOldIsVisible
,
bool
bOldIsLocked
,
bool
bOldIsPrintable
,
const
String
&
rNewLayerName
,
const
String
&
rNewLayerTitle
,
const
String
&
rNewLayerDesc
,
bool
bNewIsVisible
,
bool
bNewIsLocked
,
bool
bNewIsPrintable
)
const
OUString
&
rOldLayerName
,
const
OUString
&
rOldLayerTitle
,
const
OU
String
&
rOldLayerDesc
,
bool
bOldIsVisible
,
bool
bOldIsLocked
,
bool
bOldIsPrintable
,
const
OUString
&
rNewLayerName
,
const
OUString
&
rNewLayerTitle
,
const
OU
String
&
rNewLayerDesc
,
bool
bNewIsVisible
,
bool
bNewIsLocked
,
bool
bNewIsPrintable
)
:
SdUndoAction
(
_pDoc
),
mpLayer
(
pLayer
),
maOldLayerName
(
rOldLayerName
),
...
...
sd/source/ui/func/unprlout.cxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -30,8 +30,8 @@ TYPEINIT1(SdPresentationLayoutUndoAction, SdUndoAction);
SdPresentationLayoutUndoAction
::
SdPresentationLayoutUndoAction
(
SdDrawDocument
*
pTheDoc
,
String
aTheOldLayoutName
,
String
aTheNewLayoutName
,
OUString
aTheOldLayoutName
,
OUString
aTheNewLayoutName
,
AutoLayout
eTheOldAutoLayout
,
AutoLayout
eTheNewAutoLayout
,
sal_Bool
bSet
,
...
...
@@ -46,7 +46,7 @@ SdPresentationLayoutUndoAction::SdPresentationLayoutUndoAction(
DBG_ASSERT
(
pThePage
,
"No Page set!"
);
pPage
=
pThePage
;
aComment
=
S
tring
(
SdResId
(
STR_UNDO_SET_PRESLAYOUT
)
);
aComment
=
S
D_RESSTR
(
STR_UNDO_SET_PRESLAYOUT
);
}
void
SdPresentationLayoutUndoAction
::
Undo
()
...
...
sd/source/ui/inc/undolayer.hxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -33,23 +33,23 @@ class SdLayerModifyUndoAction : public SdUndoAction
public
:
TYPEINFO
();
SdLayerModifyUndoAction
(
SdDrawDocument
*
_pDoc
,
SdrLayer
*
pLayer
,
const
String
&
rOldLayerName
,
const
String
&
rOldLayerTitle
,
const
String
&
rOldLayerDesc
,
bool
bOldIsVisible
,
bool
bOldIsLocked
,
bool
bOldIsPrintable
,
const
String
&
rNewLayerName
,
const
String
&
rNewLayerTitle
,
const
String
&
rNewLayerDesc
,
bool
bNewIsVisible
,
bool
bNewIsLocked
,
bool
bNewIsPrintable
);
const
OUString
&
rOldLayerName
,
const
OUString
&
rOldLayerTitle
,
const
OU
String
&
rOldLayerDesc
,
bool
bOldIsVisible
,
bool
bOldIsLocked
,
bool
bOldIsPrintable
,
const
OUString
&
rNewLayerName
,
const
OUString
&
rNewLayerTitle
,
const
OU
String
&
rNewLayerDesc
,
bool
bNewIsVisible
,
bool
bNewIsLocked
,
bool
bNewIsPrintable
);
virtual
void
Undo
();
virtual
void
Redo
();
private
:
SdrLayer
*
mpLayer
;
String
maOldLayerName
;
String
maOldLayerTitle
;
String
maOldLayerDesc
;
OU
String
maOldLayerName
;
OU
String
maOldLayerTitle
;
OU
String
maOldLayerDesc
;
bool
mbOldIsVisible
;
bool
mbOldIsLocked
;
bool
mbOldIsPrintable
;
String
maNewLayerName
;
String
maNewLayerTitle
;
String
maNewLayerDesc
;
OU
String
maNewLayerName
;
OU
String
maNewLayerTitle
;
OU
String
maNewLayerDesc
;
bool
mbNewIsVisible
;
bool
mbNewIsLocked
;
bool
mbNewIsPrintable
;
...
...
sd/source/ui/inc/unmodpg.hxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -29,8 +29,8 @@ class SdPage;
class
ModifyPageUndoAction
:
public
SdUndoAction
{
SdPage
*
mpPage
;
String
maOldName
;
String
maNewName
;
OUString
maOldName
;
OUString
maNewName
;
AutoLayout
meOldAutoLayout
;
AutoLayout
meNewAutoLayout
;
sal_Bool
mbOldBckgrndVisible
;
...
...
@@ -38,14 +38,14 @@ class ModifyPageUndoAction : public SdUndoAction
sal_Bool
mbOldBckgrndObjsVisible
;
sal_Bool
mbNewBckgrndObjsVisible
;
String
maComment
;
OUString
maComment
;
public
:
TYPEINFO
();
ModifyPageUndoAction
(
SdDrawDocument
*
pTheDoc
,
SdPage
*
pThePage
,
String
aTheNewName
,
OUString
aTheNewName
,
AutoLayout
eTheNewAutoLayout
,
sal_Bool
bTheNewBckgrndVisible
,
sal_Bool
bTheNewBckgrndObjsVisible
);
...
...
@@ -57,12 +57,14 @@ public:
virtual
OUString
GetComment
()
const
;
};
// --------------------------------------------------------------------
class
RenameLayoutTemplateUndoAction
:
public
SdUndoAction
{
public
:
RenameLayoutTemplateUndoAction
(
SdDrawDocument
*
pDocument
,
const
String
&
rOldLayoutName
,
const
String
&
rNewLayoutName
);
RenameLayoutTemplateUndoAction
(
SdDrawDocument
*
pDocument
,
const
OUString
&
rOldLayoutName
,
const
OUString
&
rNewLayoutName
);
virtual
void
Undo
();
virtual
void
Redo
();
...
...
@@ -70,9 +72,9 @@ public:
virtual
OUString
GetComment
()
const
;
private
:
String
maOldName
;
String
maNewName
;
const
String
maComment
;
OU
String
maOldName
;
OU
String
maNewName
;
const
OU
String
maComment
;
};
#endif // _SD_UNMODPG_HXX
...
...
sd/source/ui/inc/unprlout.hxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -28,19 +28,19 @@ class SdPage;
class
SdPresentationLayoutUndoAction
:
public
SdUndoAction
{
String
aOldLayoutName
;
String
aNewLayoutName
;
OUString
aOldLayoutName
;
OUString
aNewLayoutName
;
AutoLayout
eOldAutoLayout
;
AutoLayout
eNewAutoLayout
;
sal_Bool
bSetAutoLayout
;
// sal_True: change AutoLayout
SdPage
*
pPage
;
String
aComment
;
OUString
aComment
;
public
:
TYPEINFO
();
SdPresentationLayoutUndoAction
(
SdDrawDocument
*
pTheDoc
,
String
aTheOldLayoutName
,
String
aTheNewLayoutName
,
OUString
aTheOldLayoutName
,
OUString
aTheNewLayoutName
,
AutoLayout
eTheOldAutoLayout
,
AutoLayout
eTheNewAutoLayout
,
sal_Bool
bSet
,
...
...
sd/source/ui/view/unmodpg.cxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -43,7 +43,7 @@ TYPEINIT1(ModifyPageUndoAction, SdUndoAction);
ModifyPageUndoAction
::
ModifyPageUndoAction
(
SdDrawDocument
*
pTheDoc
,
SdPage
*
pThePage
,
String
aTheNewName
,
OU
String
aTheNewName
,
AutoLayout
eTheNewAutoLayout
,
sal_Bool
bTheNewBckgrndVisible
,
sal_Bool
bTheNewBckgrndObjsVisible
)
...
...
@@ -63,15 +63,15 @@ ModifyPageUndoAction::ModifyPageUndoAction(
{
maOldName
=
mpPage
->
GetName
();
SdrLayerAdmin
&
rLayerAdmin
=
mpDoc
->
GetLayerAdmin
();
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRND
)
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRNDOBJ
)
),
sal_False
);
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRND
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRNDOBJ
),
sal_False
);
SetOfByte
aVisibleLayers
=
mpPage
->
TRG_GetMasterPageVisibleLayers
();
mbOldBckgrndVisible
=
aVisibleLayers
.
IsSet
(
aBckgrnd
);
mbOldBckgrndObjsVisible
=
aVisibleLayers
.
IsSet
(
aBckgrndObj
);
}
maComment
=
S
tring
(
SdResId
(
STR_UNDO_MODIFY_PAGE
)
);
maComment
=
S
D_RESSTR
(
STR_UNDO_MODIFY_PAGE
);
}
#include <svx/svdviter.hxx>
...
...
@@ -106,8 +106,8 @@ void ModifyPageUndoAction::Undo()
}
SdrLayerAdmin
&
rLayerAdmin
=
mpDoc
->
GetLayerAdmin
();
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRND
)
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRNDOBJ
)
),
sal_False
);
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRND
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRNDOBJ
),
sal_False
);
SetOfByte
aVisibleLayers
;
aVisibleLayers
.
Set
(
aBckgrnd
,
mbOldBckgrndVisible
);
aVisibleLayers
.
Set
(
aBckgrndObj
,
mbOldBckgrndObjsVisible
);
...
...
@@ -150,8 +150,8 @@ void ModifyPageUndoAction::Redo()
}
SdrLayerAdmin
&
rLayerAdmin
=
mpDoc
->
GetLayerAdmin
();
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRND
)
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRNDOBJ
)
),
sal_False
);
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRND
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRNDOBJ
),
sal_False
);
SetOfByte
aVisibleLayers
;
aVisibleLayers
.
Set
(
aBckgrnd
,
mbNewBckgrndVisible
);
aVisibleLayers
.
Set
(
aBckgrndObj
,
mbNewBckgrndObjsVisible
);
...
...
@@ -174,34 +174,30 @@ OUString ModifyPageUndoAction::GetComment() const
return
maComment
;
}
// --------------------------------------------------------------------
RenameLayoutTemplateUndoAction
::
RenameLayoutTemplateUndoAction
(
SdDrawDocument
*
pDocument
,
const
String
&
rOldLayoutName
,
const
String
&
rNewLayoutName
)
:
SdUndoAction
(
pDocument
)
,
maOldName
(
rOldLayoutName
)
,
maNewName
(
rNewLayoutName
)
,
maComment
(
SdResId
(
STR_TITLE_RENAMESLIDE
))
RenameLayoutTemplateUndoAction
::
RenameLayoutTemplateUndoAction
(
SdDrawDocument
*
pDocument
,
const
OUString
&
rOldLayoutName
,
const
OUString
&
rNewLayoutName
)
:
SdUndoAction
(
pDocument
)
,
maOldName
(
rOldLayoutName
)
,
maNewName
(
rNewLayoutName
)
,
maComment
(
SD_RESSTR
(
STR_TITLE_RENAMESLIDE
))
{
sal_
uInt16
nPos
=
maOldName
.
SearchAscii
(
SD_LT_SEPARATOR
);
if
(
nPos
!=
(
sal_uInt16
)
-
1
)
maOldName
.
Erase
(
nPos
);
sal_
Int32
nPos
=
maOldName
.
indexOf
(
SD_LT_SEPARATOR
);
if
(
nPos
!=
-
1
)
maOldName
=
maOldName
.
copy
(
0
,
nPos
);
}
void
RenameLayoutTemplateUndoAction
::
Undo
()
{
String
aLayoutName
(
maNewName
);
aLayoutName
.
AppendAscii
(
SD_LT_SEPARATOR
);
aLayoutName
.
Append
(
String
(
SdResId
(
STR_LAYOUT_OUTLINE
)))
;
OUString
aLayoutName
(
maNewName
+
SD_LT_SEPARATOR
+
SD_RESSTR
(
STR_LAYOUT_OUTLINE
));
mpDoc
->
RenameLayoutTemplate
(
aLayoutName
,
maOldName
);
}
void
RenameLayoutTemplateUndoAction
::
Redo
()
{
String
aLayoutName
(
maOldName
);
aLayoutName
.
AppendAscii
(
SD_LT_SEPARATOR
);
aLayoutName
.
Append
(
String
(
SdResId
(
STR_LAYOUT_OUTLINE
)))
;
OUString
aLayoutName
(
maOldName
+
SD_LT_SEPARATOR
+
SD_RESSTR
(
STR_LAYOUT_OUTLINE
));
mpDoc
->
RenameLayoutTemplate
(
aLayoutName
,
maNewName
);
}
...
...
sd/source/ui/view/viewshe2.cxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -890,7 +890,7 @@ sal_Bool ViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb)
if
(
aErrCode
!=
0
&&
!
bAbort
)
{
ErrorHandler
::
HandleError
(
*
new
StringErrorInfo
(
aErrCode
,
String
()
)
);
ErrorHandler
::
HandleError
(
*
new
StringErrorInfo
(
aErrCode
,
OU
String
()
)
);
}
return
aErrCode
==
0
;
...
...
sd/source/ui/view/viewshe3.cxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -143,7 +143,7 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
{
// Set the necessary string like in
// sfx2/source/view/viewfrm.cxx ver 1.23 ln 1072 ff.
String
aTmp
(
SvtResId
(
STR_UNDO
)
);
OUString
aTmp
(
SVT_RESSTR
(
STR_UNDO
)
);
aTmp
+=
pUndoManager
->
GetUndoActionComment
(
0
);
rSet
.
Put
(
SfxStringItem
(
SID_UNDO
,
aTmp
));
}
...
...
@@ -170,7 +170,7 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
{
// Set the necessary string like in
// sfx2/source/view/viewfrm.cxx ver 1.23 ln 1081 ff.
String
aTmp
(
SvtResId
(
STR_REDO
));
OUString
aTmp
(
SVT_RESSTR
(
STR_REDO
));
aTmp
+=
pUndoManager
->
GetRedoActionComment
(
0
);
rSet
.
Put
(
SfxStringItem
(
SID_REDO
,
aTmp
));
}
...
...
@@ -198,8 +198,8 @@ SdPage* ViewShell::CreateOrDuplicatePage (
sal_uInt16
nSId
=
rRequest
.
GetSlot
();
SdDrawDocument
*
pDocument
=
GetDoc
();
SdrLayerAdmin
&
rLayerAdmin
=
pDocument
->
GetLayerAdmin
();
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRND
)
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
tring
(
SdResId
(
STR_LAYER_BCKGRNDOBJ
)
),
sal_False
);
sal_uInt8
aBckgrnd
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRND
),
sal_False
);
sal_uInt8
aBckgrndObj
=
rLayerAdmin
.
GetLayerID
(
S
D_RESSTR
(
STR_LAYER_BCKGRNDOBJ
),
sal_False
);
SetOfByte
aVisibleLayers
;
// Determine the page from which to copy some values, such as layers,
// size, master page, to the new page. This is usually the given page.
...
...
@@ -212,8 +212,8 @@ SdPage* ViewShell::CreateOrDuplicatePage (
else
aVisibleLayers
.
SetAll
();
String
aStandardPageName
;
String
aNotesPageName
;
OU
String
aStandardPageName
;
OU
String
aNotesPageName
;
AutoLayout
eStandardLayout
(
AUTOLAYOUT_NONE
);
AutoLayout
eNotesLayout
(
AUTOLAYOUT_NOTES
);
sal_Bool
bIsPageBack
=
aVisibleLayers
.
IsSet
(
aBckgrnd
);
...
...
@@ -310,7 +310,7 @@ SdPage* ViewShell::CreateOrDuplicatePage (
View
*
pDrView
=
GetView
();
const
bool
bUndo
=
pDrView
&&
pDrView
->
IsUndoEnabled
();
if
(
bUndo
)
pDrView
->
BegUndo
(
String
(
SdResId
(
STR_INSERTPAGE
)
)
);
pDrView
->
BegUndo
(
SD_RESSTR
(
STR_INSERTPAGE
)
);
sal_uInt16
nNewPageIndex
=
0xffff
;
switch
(
nSId
)
...
...
sd/source/ui/view/viewshel.cxx
Dosyayı görüntüle @
e1b8dfda
...
...
@@ -787,8 +787,7 @@ const SfxPoolItem* ViewShell::GetNumBulletItem(SfxItemSet& aNewAttr, sal_uInt16&
if
(
bOutliner
)
{
SfxStyleSheetBasePool
*
pSSPool
=
mpView
->
GetDocSh
()
->
GetStyleSheetPool
();
String
aStyleName
((
SdResId
(
STR_LAYOUT_OUTLINE
)));
aStyleName
.
AppendAscii
(
" 1"
);
OUString
aStyleName
(
SD_RESSTR
(
STR_LAYOUT_OUTLINE
)
+
" 1"
);
SfxStyleSheetBase
*
pFirstStyleSheet
=
pSSPool
->
Find
(
aStyleName
,
SD_STYLE_FAMILY_PSEUDO
);
if
(
pFirstStyleSheet
)
pFirstStyleSheet
->
GetItemSet
().
GetItemState
(
EE_PARA_NUMBULLET
,
sal_False
,
(
const
SfxPoolItem
**
)
&
pItem
);
...
...
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