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
279ae511
Kaydet (Commit)
279ae511
authored
Eki 02, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add method to normalize strings in EditTextObject.
Change-Id: I1adb57279db0afeb8387599ec11984380e5a2e4a
üst
878439cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
editobj.cxx
editeng/source/editeng/editobj.cxx
+21
-0
editobj2.hxx
editeng/source/editeng/editobj2.hxx
+10
-0
editobj.hxx
include/editeng/editobj.hxx
+13
-0
No files found.
editeng/source/editeng/editobj.cxx
Dosyayı görüntüle @
279ae511
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
#include <vcl/graph.hxx>
#include <vcl/graph.hxx>
#include <svl/intitem.hxx>
#include <svl/intitem.hxx>
#include "svl/stringpool.hxx"
#include <unotools/fontcvt.hxx>
#include <unotools/fontcvt.hxx>
#include <tools/tenccvt.hxx>
#include <tools/tenccvt.hxx>
...
@@ -148,6 +149,11 @@ ContentInfo::~ContentInfo()
...
@@ -148,6 +149,11 @@ ContentInfo::~ContentInfo()
aAttribs
.
clear
();
aAttribs
.
clear
();
}
}
void
ContentInfo
::
NormalizeString
(
svl
::
StringPool
&
rPool
)
{
aText
=
OUString
(
rPool
.
intern
(
aText
));
}
const
WrongList
*
ContentInfo
::
GetWrongList
()
const
const
WrongList
*
ContentInfo
::
GetWrongList
()
const
{
{
return
mpWrongs
.
get
();
return
mpWrongs
.
get
();
...
@@ -316,6 +322,11 @@ editeng::FieldUpdater EditTextObject::GetFieldUpdater()
...
@@ -316,6 +322,11 @@ editeng::FieldUpdater EditTextObject::GetFieldUpdater()
return
mpImpl
->
GetFieldUpdater
();
return
mpImpl
->
GetFieldUpdater
();
}
}
void
EditTextObject
::
NormalizeString
(
svl
::
StringPool
&
rPool
)
{
mpImpl
->
NormalizeString
(
rPool
);
}
const
SfxItemPool
*
EditTextObject
::
GetPool
()
const
const
SfxItemPool
*
EditTextObject
::
GetPool
()
const
{
{
return
mpImpl
->
GetPool
();
return
mpImpl
->
GetPool
();
...
@@ -602,6 +613,16 @@ void EditTextObjectImpl::SetUserType( sal_uInt16 n )
...
@@ -602,6 +613,16 @@ void EditTextObjectImpl::SetUserType( sal_uInt16 n )
nUserType
=
n
;
nUserType
=
n
;
}
}
void
EditTextObjectImpl
::
NormalizeString
(
svl
::
StringPool
&
rPool
)
{
ContentInfosType
::
iterator
it
=
aContents
.
begin
(),
itEnd
=
aContents
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
ContentInfo
&
rInfo
=
*
it
;
rInfo
.
NormalizeString
(
rPool
);
}
}
bool
EditTextObjectImpl
::
IsVertical
()
const
bool
EditTextObjectImpl
::
IsVertical
()
const
{
{
return
bVertical
;
return
bVertical
;
...
...
editeng/source/editeng/editobj2.hxx
Dosyayı görüntüle @
279ae511
...
@@ -35,6 +35,12 @@ struct Section;
...
@@ -35,6 +35,12 @@ struct Section;
}
}
namespace
svl
{
class
StringPool
;
}
class
XEditAttribute
class
XEditAttribute
{
{
private
:
private
:
...
@@ -136,6 +142,8 @@ private:
...
@@ -136,6 +142,8 @@ private:
public
:
public
:
~
ContentInfo
();
~
ContentInfo
();
void
NormalizeString
(
svl
::
StringPool
&
rPool
);
const
XEditAttributesType
&
GetAttribs
()
const
{
return
aAttribs
;
}
const
XEditAttributesType
&
GetAttribs
()
const
{
return
aAttribs
;
}
XEditAttributesType
&
GetAttribs
()
{
return
aAttribs
;
}
XEditAttributesType
&
GetAttribs
()
{
return
aAttribs
;
}
...
@@ -198,6 +206,8 @@ public:
...
@@ -198,6 +206,8 @@ public:
sal_uInt16
GetUserType
()
const
;
sal_uInt16
GetUserType
()
const
;
void
SetUserType
(
sal_uInt16
n
);
void
SetUserType
(
sal_uInt16
n
);
void
NormalizeString
(
svl
::
StringPool
&
rPool
);
bool
IsVertical
()
const
;
bool
IsVertical
()
const
;
void
SetVertical
(
bool
b
);
void
SetVertical
(
bool
b
);
...
...
include/editeng/editobj.hxx
Dosyayı görüntüle @
279ae511
...
@@ -49,6 +49,12 @@ struct Section;
...
@@ -49,6 +49,12 @@ struct Section;
}
}
namespace
svl
{
class
StringPool
;
}
class
EditTextObjectImpl
;
class
EditTextObjectImpl
;
class
EDITENG_DLLPUBLIC
EditTextObject
:
public
SfxItemPoolUser
class
EDITENG_DLLPUBLIC
EditTextObject
:
public
SfxItemPoolUser
...
@@ -72,6 +78,13 @@ public:
...
@@ -72,6 +78,13 @@ public:
EditTextObject
(
const
EditTextObject
&
r
);
EditTextObject
(
const
EditTextObject
&
r
);
virtual
~
EditTextObject
();
virtual
~
EditTextObject
();
/**
* Set paragraph strings to the shared string pool.
*
* @param rPool shared string pool.
*/
void
NormalizeString
(
svl
::
StringPool
&
rPool
);
const
SfxItemPool
*
GetPool
()
const
;
const
SfxItemPool
*
GetPool
()
const
;
sal_uInt16
GetUserType
()
const
;
// For OutlinerMode, it can however not save in compatible format
sal_uInt16
GetUserType
()
const
;
// For OutlinerMode, it can however not save in compatible format
void
SetUserType
(
sal_uInt16
n
);
void
SetUserType
(
sal_uInt16
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