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
88b78bfb
Kaydet (Commit)
88b78bfb
authored
Kas 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-private-field
Change-Id: If8faa69302775cdd24bc6f45713eb246c9210745
üst
6b203d50
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
vbatabstop.cxx
sw/source/ui/vba/vbatabstop.cxx
+1
-1
vbatabstop.hxx
sw/source/ui/vba/vbatabstop.hxx
+1
-3
vbatabstops.cxx
sw/source/ui/vba/vbatabstops.cxx
+6
-6
No files found.
sw/source/ui/vba/vbatabstop.cxx
Dosyayı görüntüle @
88b78bfb
...
...
@@ -23,7 +23,7 @@
using
namespace
::
ooo
::
vba
;
using
namespace
::
com
::
sun
::
star
;
SwVbaTabStop
::
SwVbaTabStop
(
const
uno
::
Reference
<
ooo
::
vba
::
XHelperInterface
>&
rParent
,
const
uno
::
Reference
<
uno
::
XComponentContext
>&
rContext
,
const
uno
::
Reference
<
beans
::
XPropertySet
>&
xParaProps
,
const
style
::
TabStop
&
aTabStop
)
throw
(
uno
::
RuntimeException
)
:
SwVbaTabStop_BASE
(
rParent
,
rContext
),
mxParaProps
(
xParaProps
),
maTabStop
(
aTabStop
)
SwVbaTabStop
::
SwVbaTabStop
(
const
uno
::
Reference
<
ooo
::
vba
::
XHelperInterface
>&
rParent
,
const
uno
::
Reference
<
uno
::
XComponentContext
>&
rContext
,
const
uno
::
Reference
<
beans
::
XPropertySet
>&
xParaProps
)
throw
(
uno
::
RuntimeException
)
:
SwVbaTabStop_BASE
(
rParent
,
rContext
),
mxParaProps
(
xParaProps
)
{
}
...
...
sw/source/ui/vba/vbatabstop.hxx
Dosyayı görüntüle @
88b78bfb
...
...
@@ -21,7 +21,6 @@
#include <ooo/vba/word/XTabStop.hpp>
#include <vbahelper/vbahelperinterface.hxx>
#include <com/sun/star/style/TabStop.hpp>
typedef
InheritedHelperInterfaceWeakImpl
<
ooo
::
vba
::
word
::
XTabStop
>
SwVbaTabStop_BASE
;
...
...
@@ -29,10 +28,9 @@ class SwVbaTabStop : public SwVbaTabStop_BASE
{
private
:
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
mxParaProps
;
css
::
style
::
TabStop
maTabStop
;
public
:
SwVbaTabStop
(
const
css
::
uno
::
Reference
<
ooo
::
vba
::
XHelperInterface
>&
rParent
,
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
rContext
,
const
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>&
xParaProps
,
const
css
::
style
::
TabStop
&
aTabStop
)
throw
(
css
::
uno
::
RuntimeException
);
SwVbaTabStop
(
const
css
::
uno
::
Reference
<
ooo
::
vba
::
XHelperInterface
>&
rParent
,
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
rContext
,
const
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>&
xParaProps
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
~
SwVbaTabStop
();
// XHelperInterface
...
...
sw/source/ui/vba/vbatabstops.cxx
Dosyayı görüntüle @
88b78bfb
...
...
@@ -19,6 +19,7 @@
#include "vbatabstops.hxx"
#include "vbatabstop.hxx"
#include <com/sun/star/style/TabAlign.hpp>
#include <com/sun/star/style/TabStop.hpp>
#include <ooo/vba/word/WdTabLeader.hpp>
#include <ooo/vba/word/WdTabAlignment.hpp>
#include <cppuhelper/implbase.hxx>
...
...
@@ -69,27 +70,26 @@ private:
uno
::
Reference
<
XHelperInterface
>
mxParent
;
uno
::
Reference
<
uno
::
XComponentContext
>
mxContext
;
uno
::
Reference
<
beans
::
XPropertySet
>
mxParaProps
;
uno
::
Sequence
<
style
::
TabStop
>
ma
TabStops
;
sal_Int32
mn
TabStops
;
public
:
TabStopCollectionHelper
(
const
css
::
uno
::
Reference
<
ov
::
XHelperInterface
>&
xParent
,
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
&
xContext
,
const
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>&
xParaProps
)
throw
(
css
::
uno
::
RuntimeException
)
:
mxParent
(
xParent
),
mxContext
(
xContext
),
mxParaProps
(
xParaProps
)
{
m
aTabStops
=
lcl_getTabStops
(
xParaProps
);
m
nTabStops
=
lcl_getTabStops
(
xParaProps
).
getLength
(
);
}
virtual
~
TabStopCollectionHelper
()
{}
virtual
sal_Int32
SAL_CALL
getCount
(
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
override
{
return
m
aTabStops
.
getLength
()
;
return
m
nTabStops
;
}
virtual
uno
::
Any
SAL_CALL
getByIndex
(
sal_Int32
Index
)
throw
(
lang
::
IndexOutOfBoundsException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
override
{
if
(
Index
<
0
||
Index
>=
getCount
()
)
throw
css
::
lang
::
IndexOutOfBoundsException
();
const
style
::
TabStop
*
pTabs
=
maTabStops
.
getConstArray
();
return
uno
::
makeAny
(
uno
::
Reference
<
word
::
XTabStop
>
(
new
SwVbaTabStop
(
mxParent
,
mxContext
,
mxParaProps
,
pTabs
[
Index
]
)
)
);
return
uno
::
makeAny
(
uno
::
Reference
<
word
::
XTabStop
>
(
new
SwVbaTabStop
(
mxParent
,
mxContext
,
mxParaProps
)
)
);
}
virtual
uno
::
Type
SAL_CALL
getElementType
(
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
override
{
...
...
@@ -222,7 +222,7 @@ uno::Reference< word::XTabStop > SAL_CALL SwVbaTabStops::Add( float Position, co
else
lcl_setTabStops
(
mxParaProps
,
aNewTabs
);
return
uno
::
Reference
<
word
::
XTabStop
>
(
new
SwVbaTabStop
(
this
,
mxContext
,
mxParaProps
,
aTab
)
);
return
uno
::
Reference
<
word
::
XTabStop
>
(
new
SwVbaTabStop
(
this
,
mxContext
,
mxParaProps
)
);
}
void
SAL_CALL
SwVbaTabStops
::
ClearAll
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
...
...
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