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
39ba0533
Kaydet (Commit)
39ba0533
authored
Eyl 17, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sw/inc/IDocumentContentOperations.hxx from String to OUString
Change-Id: I0ee1415b0ae8a0707faafd05f3b2f95200062614
üst
5397d7c2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
28 deletions
+27
-28
IDocumentContentOperations.hxx
sw/inc/IDocumentContentOperations.hxx
+6
-7
doc.hxx
sw/inc/doc.hxx
+6
-6
doc.cxx
sw/source/core/doc/doc.cxx
+8
-8
docedt.cxx
sw/source/core/doc/docedt.cxx
+7
-7
No files found.
sw/inc/IDocumentContentOperations.hxx
Dosyayı görüntüle @
39ba0533
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
struct
SwPosition
;
struct
SwPosition
;
class
SwNode
;
class
SwNode
;
class
SwNodeRange
;
class
SwNodeRange
;
class
String
;
class
Graphic
;
class
Graphic
;
class
SfxItemSet
;
class
SfxItemSet
;
class
SfxPoolItem
;
class
SfxPoolItem
;
...
@@ -99,11 +98,11 @@
...
@@ -99,11 +98,11 @@
/** Overwrite string in an existing text node.
/** Overwrite string in an existing text node.
*/
*/
virtual
bool
Overwrite
(
const
SwPaM
&
rRg
,
const
String
&
rStr
)
=
0
;
virtual
bool
Overwrite
(
const
SwPaM
&
rRg
,
const
OU
String
&
rStr
)
=
0
;
/** Insert string into existing text node at position rRg.Point().
/** Insert string into existing text node at position rRg.Point().
*/
*/
virtual
bool
InsertString
(
const
SwPaM
&
rRg
,
const
String
&
,
virtual
bool
InsertString
(
const
SwPaM
&
rRg
,
const
OU
String
&
,
const
enum
InsertFlags
nInsertMode
=
INS_EMPTYEXPAND
)
=
0
;
const
enum
InsertFlags
nInsertMode
=
INS_EMPTYEXPAND
)
=
0
;
/** change text to Upper/Lower/Hiragana/Katagana/...
/** change text to Upper/Lower/Hiragana/Katagana/...
...
@@ -112,7 +111,7 @@
...
@@ -112,7 +111,7 @@
/** Insert graphic or formula. The XXXX are copied.
/** Insert graphic or formula. The XXXX are copied.
*/
*/
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
String
&
rGrfName
,
const
String
&
rFltName
,
const
Graphic
*
pGraphic
,
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
OUString
&
rGrfName
,
const
OU
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
)
=
0
;
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
)
=
0
;
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
GraphicObject
&
rGrfObj
,
const
SfxItemSet
*
pFlyAttrSet
,
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
GraphicObject
&
rGrfObj
,
const
SfxItemSet
*
pFlyAttrSet
,
...
@@ -120,7 +119,7 @@
...
@@ -120,7 +119,7 @@
/** Transpose graphic (with undo)
/** Transpose graphic (with undo)
*/
*/
virtual
void
ReRead
(
SwPaM
&
,
const
String
&
rGrfName
,
const
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
GraphicObject
*
pGrfObj
)
=
0
;
virtual
void
ReRead
(
SwPaM
&
,
const
OUString
&
rGrfName
,
const
OU
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
GraphicObject
*
pGrfObj
)
=
0
;
/** Insert a DrawObject. The object must be already registered
/** Insert a DrawObject. The object must be already registered
in DrawModel.
in DrawModel.
...
@@ -132,7 +131,7 @@
...
@@ -132,7 +131,7 @@
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
svt
::
EmbeddedObjectRef
&
xObj
,
const
SfxItemSet
*
pFlyAttrSet
,
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
svt
::
EmbeddedObjectRef
&
xObj
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
)
=
0
;
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
)
=
0
;
virtual
SwFlyFrmFmt
*
InsertOLE
(
const
SwPaM
&
rRg
,
const
String
&
rObjName
,
sal_Int64
nAspect
,
const
SfxItemSet
*
pFlyAttrSet
,
virtual
SwFlyFrmFmt
*
InsertOLE
(
const
SwPaM
&
rRg
,
const
OU
String
&
rObjName
,
sal_Int64
nAspect
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
)
=
0
;
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
)
=
0
;
/** Split a node at rPos (implemented only for TxtNode).
/** Split a node at rPos (implemented only for TxtNode).
...
@@ -147,7 +146,7 @@
...
@@ -147,7 +146,7 @@
( not \& ). E.g.: Find: "zzz", Replace: "xx\t\\t..&..\&"
( not \& ). E.g.: Find: "zzz", Replace: "xx\t\\t..&..\&"
--> "xx\t<Tab>..zzz..&"
--> "xx\t<Tab>..zzz..&"
*/
*/
virtual
bool
ReplaceRange
(
SwPaM
&
rPam
,
const
String
&
rNewStr
,
virtual
bool
ReplaceRange
(
SwPaM
&
rPam
,
const
OU
String
&
rNewStr
,
const
bool
bRegExReplace
)
=
0
;
const
bool
bRegExReplace
)
=
0
;
/** Insert an attribute. If rRg spans several nodes the
/** Insert an attribute. If rRg spans several nodes the
...
...
sw/inc/doc.hxx
Dosyayı görüntüle @
39ba0533
...
@@ -861,12 +861,12 @@ public:
...
@@ -861,12 +861,12 @@ public:
virtual
bool
MoveRange
(
SwPaM
&
,
SwPosition
&
,
SwMoveFlags
);
virtual
bool
MoveRange
(
SwPaM
&
,
SwPosition
&
,
SwMoveFlags
);
virtual
bool
MoveNodeRange
(
SwNodeRange
&
,
SwNodeIndex
&
,
SwMoveFlags
);
virtual
bool
MoveNodeRange
(
SwNodeRange
&
,
SwNodeIndex
&
,
SwMoveFlags
);
virtual
bool
MoveAndJoin
(
SwPaM
&
,
SwPosition
&
,
SwMoveFlags
);
virtual
bool
MoveAndJoin
(
SwPaM
&
,
SwPosition
&
,
SwMoveFlags
);
virtual
bool
Overwrite
(
const
SwPaM
&
rRg
,
const
String
&
rStr
);
virtual
bool
Overwrite
(
const
SwPaM
&
rRg
,
const
OU
String
&
rStr
);
virtual
bool
InsertString
(
const
SwPaM
&
rRg
,
const
String
&
,
virtual
bool
InsertString
(
const
SwPaM
&
rRg
,
const
OU
String
&
,
const
enum
InsertFlags
nInsertMode
=
INS_EMPTYEXPAND
);
const
enum
InsertFlags
nInsertMode
=
INS_EMPTYEXPAND
);
virtual
bool
UpdateParRsid
(
SwTxtNode
*
pTxtNode
,
sal_uInt32
nVal
=
0
);
virtual
bool
UpdateParRsid
(
SwTxtNode
*
pTxtNode
,
sal_uInt32
nVal
=
0
);
virtual
bool
UpdateRsid
(
const
SwPaM
&
rRg
,
xub_StrLen
nLen
);
virtual
bool
UpdateRsid
(
const
SwPaM
&
rRg
,
xub_StrLen
nLen
);
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
String
&
rGrfName
,
const
String
&
rFltName
,
const
Graphic
*
pGraphic
,
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
OUString
&
rGrfName
,
const
OU
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
);
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
);
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
GraphicObject
&
rGrfObj
,
const
SfxItemSet
*
pFlyAttrSet
,
virtual
SwFlyFrmFmt
*
Insert
(
const
SwPaM
&
rRg
,
const
GraphicObject
&
rGrfObj
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
);
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
);
...
@@ -878,14 +878,14 @@ public:
...
@@ -878,14 +878,14 @@ public:
const
SetAttrMode
nFlags
,
bool
bExpandCharToPara
=
false
);
const
SetAttrMode
nFlags
,
bool
bExpandCharToPara
=
false
);
virtual
bool
InsertItemSet
(
const
SwPaM
&
rRg
,
const
SfxItemSet
&
,
virtual
bool
InsertItemSet
(
const
SwPaM
&
rRg
,
const
SfxItemSet
&
,
const
SetAttrMode
nFlags
);
const
SetAttrMode
nFlags
);
virtual
void
ReRead
(
SwPaM
&
,
const
String
&
rGrfName
,
const
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
GraphicObject
*
pGrfObj
);
virtual
void
ReRead
(
SwPaM
&
,
const
OUString
&
rGrfName
,
const
OU
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
GraphicObject
*
pGrfObj
);
virtual
void
TransliterateText
(
const
SwPaM
&
rPaM
,
utl
::
TransliterationWrapper
&
);
virtual
void
TransliterateText
(
const
SwPaM
&
rPaM
,
utl
::
TransliterationWrapper
&
);
virtual
SwFlyFrmFmt
*
InsertOLE
(
const
SwPaM
&
rRg
,
const
String
&
rObjName
,
sal_Int64
nAspect
,
const
SfxItemSet
*
pFlyAttrSet
,
virtual
SwFlyFrmFmt
*
InsertOLE
(
const
SwPaM
&
rRg
,
const
OU
String
&
rObjName
,
sal_Int64
nAspect
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
);
const
SfxItemSet
*
pGrfAttrSet
,
SwFrmFmt
*
);
virtual
bool
SplitNode
(
const
SwPosition
&
rPos
,
bool
bChkTableStart
);
virtual
bool
SplitNode
(
const
SwPosition
&
rPos
,
bool
bChkTableStart
);
virtual
bool
AppendTxtNode
(
SwPosition
&
rPos
);
virtual
bool
AppendTxtNode
(
SwPosition
&
rPos
);
virtual
void
SetModified
(
SwPaM
&
rPaM
);
virtual
void
SetModified
(
SwPaM
&
rPaM
);
virtual
bool
ReplaceRange
(
SwPaM
&
rPam
,
const
String
&
rNewStr
,
virtual
bool
ReplaceRange
(
SwPaM
&
rPam
,
const
OU
String
&
rNewStr
,
const
bool
bRegExReplace
);
const
bool
bRegExReplace
);
virtual
void
RemoveLeadingWhiteSpace
(
const
SwPosition
&
rPos
);
virtual
void
RemoveLeadingWhiteSpace
(
const
SwPosition
&
rPos
);
...
...
sw/source/core/doc/doc.cxx
Dosyayı görüntüle @
39ba0533
...
@@ -916,7 +916,7 @@ bool SwDoc::AppendTxtNode( SwPosition& rPos )
...
@@ -916,7 +916,7 @@ bool SwDoc::AppendTxtNode( SwPosition& rPos )
return
sal_True
;
return
sal_True
;
}
}
bool
SwDoc
::
InsertString
(
const
SwPaM
&
rRg
,
const
String
&
rStr
,
bool
SwDoc
::
InsertString
(
const
SwPaM
&
rRg
,
const
OU
String
&
rStr
,
const
enum
InsertFlags
nInsertMode
)
const
enum
InsertFlags
nInsertMode
)
{
{
// fetching DoesUndo is surprisingly expensive
// fetching DoesUndo is surprisingly expensive
...
@@ -928,9 +928,9 @@ bool SwDoc::InsertString( const SwPaM &rRg, const String &rStr,
...
@@ -928,9 +928,9 @@ bool SwDoc::InsertString( const SwPaM &rRg, const String &rStr,
if
(
mpACEWord
)
// add to auto correction
if
(
mpACEWord
)
// add to auto correction
{
{
if
(
1
==
rStr
.
Len
()
&&
mpACEWord
->
IsDeleted
()
)
if
(
1
==
rStr
.
getLength
()
&&
mpACEWord
->
IsDeleted
()
)
{
{
mpACEWord
->
CheckChar
(
rPos
,
rStr
.
GetChar
(
0
)
);
mpACEWord
->
CheckChar
(
rPos
,
rStr
[
0
]
);
}
}
delete
mpACEWord
,
mpACEWord
=
0
;
delete
mpACEWord
,
mpACEWord
=
0
;
}
}
...
@@ -1028,8 +1028,8 @@ SwFlyFrmFmt* SwDoc::_InsNoTxtNode( const SwPosition& rPos, SwNoTxtNode* pNode,
...
@@ -1028,8 +1028,8 @@ SwFlyFrmFmt* SwDoc::_InsNoTxtNode( const SwPosition& rPos, SwNoTxtNode* pNode,
}
}
SwFlyFrmFmt
*
SwDoc
::
Insert
(
const
SwPaM
&
rRg
,
SwFlyFrmFmt
*
SwDoc
::
Insert
(
const
SwPaM
&
rRg
,
const
String
&
rGrfName
,
const
OU
String
&
rGrfName
,
const
String
&
rFltName
,
const
OU
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
Graphic
*
pGraphic
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
...
@@ -1085,7 +1085,7 @@ SwFlyFrmFmt* SwDoc::Insert(const SwPaM &rRg, const svt::EmbeddedObjectRef& xObj,
...
@@ -1085,7 +1085,7 @@ SwFlyFrmFmt* SwDoc::Insert(const SwPaM &rRg, const svt::EmbeddedObjectRef& xObj,
pFrmFmt
);
pFrmFmt
);
}
}
SwFlyFrmFmt
*
SwDoc
::
InsertOLE
(
const
SwPaM
&
rRg
,
const
String
&
rObjName
,
SwFlyFrmFmt
*
SwDoc
::
InsertOLE
(
const
SwPaM
&
rRg
,
const
OU
String
&
rObjName
,
sal_Int64
nAspect
,
sal_Int64
nAspect
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pFlyAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
const
SfxItemSet
*
pGrfAttrSet
,
...
@@ -1940,8 +1940,8 @@ void SwDoc::ResetModified()
...
@@ -1940,8 +1940,8 @@ void SwDoc::ResetModified()
}
}
}
}
void
SwDoc
::
ReRead
(
SwPaM
&
rPam
,
const
String
&
rGrfName
,
void
SwDoc
::
ReRead
(
SwPaM
&
rPam
,
const
OU
String
&
rGrfName
,
const
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
OU
String
&
rFltName
,
const
Graphic
*
pGraphic
,
const
GraphicObject
*
pGrafObj
)
const
GraphicObject
*
pGrafObj
)
{
{
SwGrfNode
*
pGrfNd
;
SwGrfNode
*
pGrfNd
;
...
...
sw/source/core/doc/docedt.cxx
Dosyayı görüntüle @
39ba0533
...
@@ -702,18 +702,18 @@ void SwDoc::SetModified(SwPaM &rPaM)
...
@@ -702,18 +702,18 @@ void SwDoc::SetModified(SwPaM &rPaM)
SetModified
();
SetModified
();
}
}
bool
SwDoc
::
Overwrite
(
const
SwPaM
&
rRg
,
const
String
&
rStr
)
bool
SwDoc
::
Overwrite
(
const
SwPaM
&
rRg
,
const
OU
String
&
rStr
)
{
{
SwPosition
&
rPt
=
*
(
SwPosition
*
)
rRg
.
GetPoint
();
SwPosition
&
rPt
=
*
(
SwPosition
*
)
rRg
.
GetPoint
();
if
(
mpACEWord
)
// Add to AutoCorrect
if
(
mpACEWord
)
// Add to AutoCorrect
{
{
if
(
1
==
rStr
.
Len
()
)
if
(
1
==
rStr
.
getLength
()
)
mpACEWord
->
CheckChar
(
rPt
,
rStr
.
GetChar
(
0
)
);
mpACEWord
->
CheckChar
(
rPt
,
rStr
[
0
]
);
delete
mpACEWord
,
mpACEWord
=
0
;
delete
mpACEWord
,
mpACEWord
=
0
;
}
}
SwTxtNode
*
pNode
=
rPt
.
nNode
.
GetNode
().
GetTxtNode
();
SwTxtNode
*
pNode
=
rPt
.
nNode
.
GetNode
().
GetTxtNode
();
if
(
!
pNode
||
(
static_cast
<
size_t
>
(
rStr
.
Len
())
// worst case: no erase
if
(
!
pNode
||
(
static_cast
<
size_t
>
(
rStr
.
getLength
())
// worst case: no erase
+
static_cast
<
size_t
>
(
pNode
->
GetTxt
().
getLength
())
>
TXTNODE_MAX
))
+
static_cast
<
size_t
>
(
pNode
->
GetTxt
().
getLength
())
>
TXTNODE_MAX
))
{
{
return
false
;
return
false
;
...
@@ -733,7 +733,7 @@ bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
...
@@ -733,7 +733,7 @@ bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
bool
bOldExpFlg
=
pNode
->
IsIgnoreDontExpand
();
bool
bOldExpFlg
=
pNode
->
IsIgnoreDontExpand
();
pNode
->
SetIgnoreDontExpand
(
true
);
pNode
->
SetIgnoreDontExpand
(
true
);
for
(
xub_StrLen
nCnt
=
0
;
nCnt
<
rStr
.
Len
();
++
nCnt
)
for
(
sal_Int32
nCnt
=
0
;
nCnt
<
rStr
.
getLength
();
++
nCnt
)
{
{
// start behind the characters (to fix the attributes!)
// start behind the characters (to fix the attributes!)
nStart
=
rIdx
.
GetIndex
();
nStart
=
rIdx
.
GetIndex
();
...
@@ -741,7 +741,7 @@ bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
...
@@ -741,7 +741,7 @@ bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
{
{
lcl_SkipAttr
(
pNode
,
rIdx
,
nStart
);
lcl_SkipAttr
(
pNode
,
rIdx
,
nStart
);
}
}
sal_Unicode
c
=
rStr
.
GetChar
(
nCnt
)
;
sal_Unicode
c
=
rStr
[
nCnt
]
;
if
(
GetIDocumentUndoRedo
().
DoesUndo
())
if
(
GetIDocumentUndoRedo
().
DoesUndo
())
{
{
bool
bMerged
(
false
);
bool
bMerged
(
false
);
...
@@ -2155,7 +2155,7 @@ static bool lcl_GetTokenToParaBreak( String& rStr, String& rRet, bool bRegExpRpl
...
@@ -2155,7 +2155,7 @@ static bool lcl_GetTokenToParaBreak( String& rStr, String& rRet, bool bRegExpRpl
return
bRet
;
return
bRet
;
}
}
bool
SwDoc
::
ReplaceRange
(
SwPaM
&
rPam
,
const
String
&
rStr
,
bool
SwDoc
::
ReplaceRange
(
SwPaM
&
rPam
,
const
OU
String
&
rStr
,
const
bool
bRegExReplace
)
const
bool
bRegExReplace
)
{
{
// unfortunately replace works slightly differently from delete,
// unfortunately replace works slightly differently from delete,
...
...
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