2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 // RID_PROPERTYPANEL_SC_ALIGNMENT--------------------------------------------------------------
21 #define FT_LEFT_INDENT 7
22 #define MF_LEFT_INDENT 8
25 #define CTL_SBSHAPE_POSREFERENCE 12
27 #define TBX_HORIZONTAL_ALIGNMENT 15
28 #define TBX_VERTICAL_ALIGN 16
29 #define DIAL_CONTROL 17
30 #define ID_SUBSTLEFT 20
31 #define ID_SUBSTCENTER 21
32 #define ID_SUBSTRIGHT 22
33 #define ID_SUBSTJUSTIFY 23
34 #define IID_VERT_TOP 24
35 #define IID_VERT_CENTER 25
36 #define IID_VERT_BOTTOM 26
40 #define FLIP_BUTTON_SIZE 13
41 #define ALIGNMENT_TBX_HEIGHT 17
42 #define ALIGNMENT_TBX_WIDTH 13
44 #define IMG_ALIGN_LEFT 50
45 #define IMG_ALIGN_CENTER 51
46 #define IMG_ALIGN_RIGHT 52
47 #define IMG_ALIGN_JUST 53
48 #define IMG_ALIGN_TOP 54
49 #define IMG_ALIGN_CENTER_V 55
50 #define IMG_ALIGN_BOTTOM 56
52 //---------------position-----------------
54 #define ALIGNMENT_X SECTIONPAGE_MARGIN_HORIZONTAL
55 #define ALIGNMENT_Y SECTIONPAGE_MARGIN_VERTICAL_TOP
56 #define ALIGNMENT_VERT_X (ALIGNMENT_X + TBX_OUT_BORDER_OFFSET_X*2 + TOOLBOX_ITEM_WIDTH * 4 + CONTROL_SPACING_HORIZONTAL)
57 #define ALIGNMENT_VERT_Y ALIGNMENT_Y
59 #define FT_LEFTINDENT_X ALIGNMENT_X
60 #define FT_LEFTINDENT_Y (ALIGNMENT_Y + TOOLBOX_ITEM_HEIGHT + TBX_OUT_BORDER_OFFSET_Y + CONTROL_SPACING_VERTICAL)
61 #define MTR_LEFTINDENT_X ALIGNMENT_X
62 #define MTR_LEFTINDENT_Y (FT_LEFTINDENT_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL)
64 #define CBX_WRAP_X (ALIGNMENT_X + TEXT_WIDTH + 10 + CONTROL_SPACING_HORIZONTAL)
65 #define CBX_WRAP_Y (FT_LEFTINDENT_Y + 2)
67 #define CBX_MERGE_X CBX_WRAP_X
68 #define CBX_MERGE_Y CBX_WRAP_Y + CBOX_HEIGHT + 2
70 #define FT_ORIENT_X ALIGNMENT_X
71 #define FT_ORIENT_Y MTR_LEFTINDENT_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
73 #define COMOBX_ROTATION_X FT_ORIENT_X + 30 + CONTROL_SPACING_HORIZONTAL
74 #define COMOBX_ROTATION_Y FT_ORIENT_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + 5
76 #define ROTATE_CONTROL_X FT_ORIENT_X
77 #define ROTATE_CONTROL_Y COMOBX_ROTATION_Y - 3
79 #define CBX_VERT_X COMOBX_ROTATION_X
80 #define CBX_VERT_Y COMOBX_ROTATION_Y + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL + 2
82 #define PANEL_HEIGHT CBX_VERT_Y + 6 + SECTIONPAGE_MARGIN_VERTICAL_BOT