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
e7df508e
Kaydet (Commit)
e7df508e
authored
May 07, 2011
tarafından
Rafael Dominguez
Kaydeden (comit)
Joseph Powers
May 08, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove deprecated List in SwInsertGrfRulerDlg.
üst
7efc8161
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
insrule.hxx
sw/source/ui/inc/insrule.hxx
+5
-2
insrule.cxx
sw/source/ui/misc/insrule.cxx
+4
-4
No files found.
sw/source/ui/inc/insrule.hxx
Dosyayı görüntüle @
e7df508e
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
************************************************************************/
************************************************************************/
#ifndef _INSRULE_HXX
#ifndef _INSRULE_HXX
#define _INSRULE_HXX
#define _INSRULE_HXX
#include <vector>
#include "num.hxx"
#include "num.hxx"
class
SwRulerValueSet
;
class
SwRulerValueSet
;
...
@@ -39,7 +42,7 @@ class SwInsertGrfRulerDlg : public SfxModalDialog
...
@@ -39,7 +42,7 @@ class SwInsertGrfRulerDlg : public SfxModalDialog
CancelButton
aCancelPB
;
CancelButton
aCancelPB
;
HelpButton
aHelpPB
;
HelpButton
aHelpPB
;
List
aGrfNames
;
std
::
vector
<
String
>
aGrfNames
;
String
sSimple
;
String
sSimple
;
String
sRulers
;
String
sRulers
;
sal_uInt16
nSelPos
;
sal_uInt16
nSelPos
;
...
@@ -56,7 +59,7 @@ public:
...
@@ -56,7 +59,7 @@ public:
String
GetGraphicName
();
String
GetGraphicName
();
sal_Bool
IsSimpleLine
()
{
return
nSelPos
==
1
;}
sal_Bool
IsSimpleLine
()
{
return
nSelPos
==
1
;}
sal_Bool
HasImages
()
const
{
return
0
!=
aGrfNames
.
Count
();}
sal_Bool
HasImages
()
const
{
return
!
aGrfNames
.
empty
();}
};
};
#endif
#endif
...
...
sw/source/ui/misc/insrule.cxx
Dosyayı görüntüle @
e7df508e
...
@@ -76,10 +76,10 @@ SwInsertGrfRulerDlg::SwInsertGrfRulerDlg( Window* pParent ) :
...
@@ -76,10 +76,10 @@ SwInsertGrfRulerDlg::SwInsertGrfRulerDlg( Window* pParent ) :
pExampleVS
->
InsertItem
(
1
,
1
);
pExampleVS
->
InsertItem
(
1
,
1
);
pExampleVS
->
SetItemText
(
1
,
sSimple
);
pExampleVS
->
SetItemText
(
1
,
sSimple
);
for
(
sal_uInt16
i
=
1
;
i
<=
aGrfNames
.
Count
();
i
++
)
for
(
sal_uInt16
i
=
1
;
i
<=
aGrfNames
.
size
();
i
++
)
{
{
pExampleVS
->
InsertItem
(
i
+
1
,
i
);
pExampleVS
->
InsertItem
(
i
+
1
,
i
);
pExampleVS
->
SetItemText
(
i
+
1
,
*
((
String
*
)
aGrfNames
.
GetObject
(
i
-
1
))
);
pExampleVS
->
SetItemText
(
i
+
1
,
aGrfNames
[
i
-
1
]
);
}
}
pExampleVS
->
Show
();
pExampleVS
->
Show
();
...
@@ -95,9 +95,9 @@ String SwInsertGrfRulerDlg::GetGraphicName()
...
@@ -95,9 +95,9 @@ String SwInsertGrfRulerDlg::GetGraphicName()
{
{
String
sRet
;
String
sRet
;
sal_uInt16
nSel
=
nSelPos
-
2
;
//align selection position with ValueSet index
sal_uInt16
nSel
=
nSelPos
-
2
;
//align selection position with ValueSet index
if
(
nSel
<
aGrfNames
.
Count
())
if
(
nSel
<
aGrfNames
.
size
())
sRet
=
URIHelper
::
SmartRel2Abs
(
sRet
=
URIHelper
::
SmartRel2Abs
(
INetURLObject
(),
*
(
String
*
)
aGrfNames
.
GetObject
(
nSel
)
,
INetURLObject
(),
aGrfNames
[
nSel
]
,
URIHelper
::
GetMaybeFileHdl
());
URIHelper
::
GetMaybeFileHdl
());
return
sRet
;
return
sRet
;
}
}
...
...
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