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
3aab4202
Kaydet (Commit)
3aab4202
authored
Ara 22, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert RID_SVXFLOAT_FONTWORK_ALIGNMENT resource to strings and images
Change-Id: Id84a241971110a7e4edcf48e13ea8586bcd16e46
üst
29bb99c5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
180 deletions
+80
-180
dialogs.hrc
include/svx/dialogs.hrc
+11
-6
fontworkgallery.hrc
svx/inc/fontworkgallery.hrc
+0
-45
helpid.hrc
svx/inc/helpid.hrc
+0
-1
fontworkgallery.cxx
svx/source/tbxctrls/fontworkgallery.cxx
+16
-42
fontworkgallery.src
svx/source/tbxctrls/fontworkgallery.src
+53
-86
No files found.
include/svx/dialogs.hrc
Dosyayı görüntüle @
3aab4202
...
...
@@ -894,11 +894,6 @@
#define RID_SVXSTR_DEPTH_3_INCH (RID_SVX_START + 1000)
#define RID_SVXSTR_DEPTH_4_INCH (RID_SVX_START + 1001)
#define RID_SVXFLOAT_FONTWORK_ALIGNMENT (RID_SVX_START + 1002)
/* #i35426# DR 2004-10-19: (RID_SVX_START+1002) is
already used for RID_SVXFLOAT_FONTWORK_ALIGNMENT above. But these IDs describe floating
windows, and the following IDs are for strings, so this is no conflict. */
#define RID_SVXSTR_PAGES (RID_SVX_START + 1002)
#define RID_SVXSTR_UNDO_APPLY_FONTWORK_SHAPE (RID_SVX_START + 1118)
...
...
@@ -1084,9 +1079,19 @@
#define RID_SVXIMG_LIGHTING_BRIGHT (RID_SVX_START + 1365)
#define RID_SVXIMG_LIGHTING_NORMAL (RID_SVX_START + 1366)
#define RID_SVXIMG_LIGHTING_DIM (RID_SVX_START + 1367)
#define RID_SVXSTR_ALIGN_LEFT (RID_SVX_START + 1368)
#define RID_SVXSTR_ALIGN_CENTER (RID_SVX_START + 1369)
#define RID_SVXSTR_ALIGN_RIGHT (RID_SVX_START + 1370)
#define RID_SVXSTR_ALIGN_WORD (RID_SVX_START + 1371)
#define RID_SVXSTR_ALIGN_STRETCH (RID_SVX_START + 1372)
#define RID_SVXIMG_FONTWORK_ALIGN_LEFT (RID_SVX_START + 1373)
#define RID_SVXIMG_FONTWORK_ALIGN_CENTER (RID_SVX_START + 1374)
#define RID_SVXIMG_FONTWORK_ALIGN_RIGHT (RID_SVX_START + 1375)
#define RID_SVXIMG_FONTWORK_ALIGN_WORD (RID_SVX_START + 1376)
#define RID_SVXIMG_FONTWORK_ALIGN_STRETCH (RID_SVX_START + 1377)
// !!! IMPORTANT: consider and update RID_SVXSTR_NEXTFREE when introducing new RIDs for Strings !!!
#define RID_SVXSTR_NEXTFREE (RID_SVX_START + 13
6
8)
#define RID_SVXSTR_NEXTFREE (RID_SVX_START + 13
7
8)
// if we have _a_lot_ time, we should group the resource ids by type, instead
// of grouping them by semantics. The reason is that resource ids have to be
...
...
svx/inc/fontworkgallery.hrc
deleted
100644 → 0
Dosyayı görüntüle @
29bb99c5
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <svx/dialogs.hrc>
#define STR_ALIGN_LEFT 1
#define STR_ALIGN_CENTER 2
#define STR_ALIGN_RIGHT 3
#define STR_ALIGN_WORD 4
#define STR_ALIGN_STRETCH 5
#define STR_CHARS_SPACING_VERY_TIGHT 6
#define STR_CHARS_SPACING_TIGHT 7
#define STR_CHARS_SPACING_NORMAL 8
#define STR_CHARS_SPACING_LOOSE 9
#define STR_CHARS_SPACING_VERY_LOOSE 10
#define STR_CHARS_SPACING_CUSTOM 11
#define STR_CHARS_SPACING_KERN_PAIRS 12
#define IMG_FONTWORK_ALIGN_LEFT_16 1
#define IMG_FONTWORK_ALIGN_LEFT_26 3
#define IMG_FONTWORK_ALIGN_CENTER_16 5
#define IMG_FONTWORK_ALIGN_CENTER_26 7
#define IMG_FONTWORK_ALIGN_RIGHT_16 9
#define IMG_FONTWORK_ALIGN_RIGHT_26 11
#define IMG_FONTWORK_ALIGN_WORD_16 13
#define IMG_FONTWORK_ALIGN_WORD_26 15
#define IMG_FONTWORK_ALIGN_STRETCH_16 17
#define IMG_FONTWORK_ALIGN_STRETCH_26 19
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx/inc/helpid.hrc
Dosyayı görüntüle @
3aab4202
...
...
@@ -83,7 +83,6 @@
#define HID_MNU_ZOOM_WHOLE_PAGE "SVX_HID_MNU_ZOOM_WHOLE_PAGE"
#define HID_POPUP_COLOR "SVX_HID_POPUP_COLOR"
#define HID_POPUP_COLOR_CTRL "SVX_HID_POPUP_COLOR_CTRL"
#define HID_POPUP_FONTWORK_ALIGN "SVX_HID_POPUP_FONTWORK_ALIGN"
#define HID_POPUP_FRAME "SVX_HID_POPUP_FRAME"
#define HID_POPUP_LINE "SVX_HID_POPUP_LINE"
#define HID_POPUP_LINEEND "SVX_HID_POPUP_LINEEND"
...
...
svx/source/tbxctrls/fontworkgallery.cxx
Dosyayı görüntüle @
3aab4202
...
...
@@ -49,7 +49,6 @@
#include <svx/fontworkgallery.hxx>
#include "coreservices.hxx"
#include "fontworkgallery.hrc"
#include <algorithm>
#include <boost/scoped_ptr.hpp>
...
...
@@ -299,7 +298,6 @@ public:
FontworkAlignmentWindow
(
svt
::
ToolboxController
&
rController
,
const
Reference
<
XFrame
>&
rFrame
,
vcl
::
Window
*
pParentWindow
);
virtual
void
statusChanged
(
const
frame
::
FeatureStateEvent
&
Event
)
throw
(
RuntimeException
)
SAL_OVERRIDE
;
virtual
void
DataChanged
(
const
DataChangedEvent
&
rDCEvt
)
SAL_OVERRIDE
;
private
:
svt
::
ToolboxController
&
mrController
;
...
...
@@ -317,34 +315,30 @@ private:
void
implSetAlignment
(
int
nAlignmentMode
,
bool
bEnabled
);
};
FontworkAlignmentWindow
::
FontworkAlignmentWindow
(
svt
::
ToolboxController
&
rController
,
const
Reference
<
XFrame
>&
rFrame
,
vcl
::
Window
*
pParentWindow
)
:
ToolbarMenu
(
rFrame
,
pParentWindow
,
SVX_RES
(
RID_SVXFLOAT_FONTWORK_ALIGNMENT
)
)
,
mrController
(
rController
)
,
maImgAlgin1
(
SVX_RES
(
IMG_FONTWORK_ALIGN_LEFT_16
)
)
,
maImgAlgin2
(
SVX_RES
(
IMG_FONTWORK_ALIGN_CENTER_16
)
)
,
maImgAlgin3
(
SVX_RES
(
IMG_FONTWORK_ALIGN_RIGHT_16
)
)
,
maImgAlgin4
(
SVX_RES
(
IMG_FONTWORK_ALIGN_WORD_16
)
)
,
maImgAlgin5
(
SVX_RES
(
IMG_FONTWORK_ALIGN_STRETCH_16
)
)
,
msFontworkAlignment
(
".uno:FontworkAlignment"
)
{
SetHelpId
(
HID_POPUP_FONTWORK_ALIGN
);
FontworkAlignmentWindow
::
FontworkAlignmentWindow
(
svt
::
ToolboxController
&
rController
,
const
Reference
<
XFrame
>&
rFrame
,
vcl
::
Window
*
pParentWindow
)
:
ToolbarMenu
(
rFrame
,
pParentWindow
,
WB_MOVEABLE
|
WB_CLOSEABLE
|
WB_HIDE
|
WB_3DLOOK
)
,
mrController
(
rController
)
,
maImgAlgin1
(
SVX_RES
(
RID_SVXIMG_FONTWORK_ALIGN_LEFT
)
)
,
maImgAlgin2
(
SVX_RES
(
RID_SVXIMG_FONTWORK_ALIGN_CENTER
)
)
,
maImgAlgin3
(
SVX_RES
(
RID_SVXIMG_FONTWORK_ALIGN_RIGHT
)
)
,
maImgAlgin4
(
SVX_RES
(
RID_SVXIMG_FONTWORK_ALIGN_WORD
)
)
,
maImgAlgin5
(
SVX_RES
(
RID_SVXIMG_FONTWORK_ALIGN_STRETCH
)
)
,
msFontworkAlignment
(
".uno:FontworkAlignment"
)
{
SetSelectHdl
(
LINK
(
this
,
FontworkAlignmentWindow
,
SelectHdl
)
);
appendEntry
(
0
,
SVX_RESSTR
(
STR_ALIGN_LEFT
),
maImgAlgin1
);
appendEntry
(
1
,
SVX_RESSTR
(
STR_ALIGN_CENTER
),
maImgAlgin2
);
appendEntry
(
2
,
SVX_RESSTR
(
STR_ALIGN_RIGHT
),
maImgAlgin3
);
appendEntry
(
3
,
SVX_RESSTR
(
STR_ALIGN_WORD
),
maImgAlgin4
);
appendEntry
(
4
,
SVX_RESSTR
(
STR_ALIGN_STRETCH
),
maImgAlgin5
);
appendEntry
(
0
,
SVX_RESSTR
(
RID_SVXSTR_ALIGN_LEFT
),
maImgAlgin1
);
appendEntry
(
1
,
SVX_RESSTR
(
RID_SVXSTR_ALIGN_CENTER
),
maImgAlgin2
);
appendEntry
(
2
,
SVX_RESSTR
(
RID_SVXSTR_ALIGN_RIGHT
),
maImgAlgin3
);
appendEntry
(
3
,
SVX_RESSTR
(
RID_SVXSTR_ALIGN_WORD
),
maImgAlgin4
);
appendEntry
(
4
,
SVX_RESSTR
(
RID_SVXSTR_ALIGN_STRETCH
),
maImgAlgin5
);
SetOutputSizePixel
(
getMenuSize
()
);
FreeResource
();
AddStatusListener
(
msFontworkAlignment
);
}
void
FontworkAlignmentWindow
::
implSetAlignment
(
int
nSurface
,
bool
bEnabled
)
{
int
i
;
...
...
@@ -355,8 +349,6 @@ void FontworkAlignmentWindow::implSetAlignment( int nSurface, bool bEnabled )
}
}
void
FontworkAlignmentWindow
::
statusChanged
(
const
frame
::
FeatureStateEvent
&
Event
)
throw
(
RuntimeException
)
{
if
(
Event
.
FeatureURL
.
Main
.
equals
(
msFontworkAlignment
)
)
...
...
@@ -374,24 +366,6 @@ void FontworkAlignmentWindow::statusChanged( const frame::FeatureStateEvent& Eve
}
}
void
FontworkAlignmentWindow
::
DataChanged
(
const
DataChangedEvent
&
rDCEvt
)
{
ToolbarMenu
::
DataChanged
(
rDCEvt
);
if
(
(
rDCEvt
.
GetType
()
==
DATACHANGED_SETTINGS
)
&&
(
rDCEvt
.
GetFlags
()
&
SETTINGS_STYLE
)
)
{
appendEntry
(
0
,
SVX_RESSTR
(
STR_ALIGN_LEFT
),
maImgAlgin1
);
appendEntry
(
1
,
SVX_RESSTR
(
STR_ALIGN_CENTER
),
maImgAlgin2
);
appendEntry
(
2
,
SVX_RESSTR
(
STR_ALIGN_RIGHT
),
maImgAlgin3
);
appendEntry
(
3
,
SVX_RESSTR
(
STR_ALIGN_WORD
),
maImgAlgin4
);
appendEntry
(
4
,
SVX_RESSTR
(
STR_ALIGN_STRETCH
),
maImgAlgin5
);
}
}
IMPL_LINK_NOARG
(
FontworkAlignmentWindow
,
SelectHdl
)
{
if
(
IsInPopupMode
()
)
...
...
svx/source/tbxctrls/fontworkgallery.src
Dosyayı görüntüle @
3aab4202
...
...
@@ -19,95 +19,62 @@
#include "helpid.hrc"
#include <svx/dialogs.hrc>
#include "fontworkgallery.hrc"
#include "svtools/controldims.hrc"
#define MASKCOLOR MaskColor = Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; };
DockingWindow RID_SVXFLOAT_FONTWORK_ALIGNMENT
{
HelpID = "svx:DockingWindow:RID_SVXFLOAT_FONTWORK_ALIGNMENT";
Border = FALSE ;
Hide = TRUE ;
SVLook = TRUE ;
Sizeable = FALSE ;
Moveable = TRUE ;
Closeable = TRUE ;
Zoomable = TRUE ;
Text [ en-US ] = "Fontwork Alignment" ;
String STR_ALIGN_LEFT
{
Text [ en-US ] = "~Left Align";
};
String STR_ALIGN_CENTER
{
Text [ en-US ] = "~Center";
};
String STR_ALIGN_RIGHT
{
Text [ en-US ] = "~Right Align";
};
String STR_ALIGN_WORD
{
Text [ en-US ] = "~Word Justify";
};
String STR_ALIGN_STRETCH
{
Text [ en-US ] = "S~tretch Justify";
};
Image IMG_FONTWORK_ALIGN_LEFT_16
{
ImageBitmap = Bitmap { File = "fontworkalignleft_16.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_LEFT_26
{
ImageBitmap = Bitmap { File = "fontworkalignleft_26.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_CENTER_16
{
ImageBitmap = Bitmap { File = "fontworkaligncentered_16.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_CENTER_26
{
ImageBitmap = Bitmap { File = "fontworkaligncentered_26.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_RIGHT_16
{
ImageBitmap = Bitmap { File = "fontworkalignright_16.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_RIGHT_26
{
ImageBitmap = Bitmap { File = "fontworkalignright_26.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_WORD_16
{
ImageBitmap = Bitmap { File = "fontworkalignjustified_16.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_WORD_26
{
ImageBitmap = Bitmap { File = "fontworkalignjustified_26.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_STRETCH_16
{
ImageBitmap = Bitmap { File = "fontworkalignstretch_16.png"; };
MASKCOLOR
};
Image IMG_FONTWORK_ALIGN_STRETCH_26
{
ImageBitmap = Bitmap { File = "fontworkalignstretch_26.png"; };
MASKCOLOR
};
String RID_SVXSTR_ALIGN_LEFT
{
Text [ en-US ] = "~Left Align";
};
String RID_SVXSTR_ALIGN_CENTER
{
Text [ en-US ] = "~Center";
};
String RID_SVXSTR_ALIGN_RIGHT
{
Text [ en-US ] = "~Right Align";
};
String RID_SVXSTR_ALIGN_WORD
{
Text [ en-US ] = "~Word Justify";
};
String RID_SVXSTR_ALIGN_STRETCH
{
Text [ en-US ] = "S~tretch Justify";
};
Image RID_SVXIMG_FONTWORK_ALIGN_LEFT
{
ImageBitmap = Bitmap { File = "fontworkalignleft_16.png"; };
MASKCOLOR
};
Image RID_SVXIMG_FONTWORK_ALIGN_CENTER
{
ImageBitmap = Bitmap { File = "fontworkaligncentered_16.png"; };
MASKCOLOR
};
Image RID_SVXIMG_FONTWORK_ALIGN_RIGHT
{
ImageBitmap = Bitmap { File = "fontworkalignright_16.png"; };
MASKCOLOR
};
Image RID_SVXIMG_FONTWORK_ALIGN_WORD
{
ImageBitmap = Bitmap { File = "fontworkalignjustified_16.png"; };
MASKCOLOR
};
Image RID_SVXIMG_FONTWORK_ALIGN_STRETCH
{
ImageBitmap = Bitmap { File = "fontworkalignstretch_16.png"; };
MASKCOLOR
};
String RID_SVXSTR_CHARS_SPACING_VERY_TIGHT
...
...
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